wplayer

Check-in [eefabcc658]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make printable version for "now playing" text pane.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:eefabcc6589fc0f45b34601c0a6b999945e8688697d5b03320c0ad58ede2fa88
User & Date: ajv-899-334-8894@vsta.org 2016-02-01 04:12:59
Context
2016-02-01
15:21
Fix layout. Fix display of Now Playing filename. check-in: c040f16c53 user: ajv-899-334-8894@vsta.org tags: master, trunk
04:12
Make printable version for "now playing" text pane. check-in: eefabcc658 user: ajv-899-334-8894@vsta.org tags: master, trunk
2016-01-31
03:16
Escape things before they go back out (they were already un-escaped on the way int). Fix some resulting display treatment. check-in: 175042e320 user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to js/player.js.

109
110
111
112
113
114
115
116

117
118
119
120
121
122
123
...
133
134
135
136
137
138
139
140

141
142
143
144
145
146
147
// End of current track, try to advance
function playNext() {
    if (playing && !player.ended) {
	// Playing and user hit "next track"
	player.pause();
    }
    if (playlist.length > 0) {
	nowplaying.textContent = player.src = playlist.shift();

	paintQueue();
	playing = true;
    } else {
	nowplaying.textContent = '';
	playing = false;
    }
}
................................................................................
    if (pcontents == null) {
	return false;
    }

    // Assemble full filename
    var fname = "/media" + path + "/" + pcontents.files[fidx]
    if (!playing) {
	nowplaying.textContent = player.src = fname;

	player.play();
	playing = true;
    } else {
	playlist.push(fname);
	paintQueue();
    }
    return false;







|
>







 







|
>







109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
...
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// End of current track, try to advance
function playNext() {
    if (playing && !player.ended) {
	// Playing and user hit "next track"
	player.pause();
    }
    if (playlist.length > 0) {
	player.src = playlist.shift();
	nowplaying.textContent = unescape(player.src);
	paintQueue();
	playing = true;
    } else {
	nowplaying.textContent = '';
	playing = false;
    }
}
................................................................................
    if (pcontents == null) {
	return false;
    }

    // Assemble full filename
    var fname = "/media" + path + "/" + pcontents.files[fidx]
    if (!playing) {
	player.src = fname;
	nowplaying.textContent = unescape(player.src);
	player.play();
	playing = true;
    } else {
	playlist.push(fname);
	paintQueue();
    }
    return false;