wplayer

Check-in [bc0d6d6ec2]
Login

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

Overview
Comment:Embrace ES6 now that we can play flac on FF using transcoding. Shorten playlist entries when they have a common path.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:bc0d6d6ec28d480757287dcc3e1a94ab6360ab98a7979db8100a447370992270
User & Date: ajv-899-334-8894@vsta.org 2017-11-22 04:21:30
Context
2018-03-13
01:44
Save scroll position so you continue from wherever you left off at a given folder level. Add keyboard shortcuts (need fixing, sees search input). Add "love" with logging to var/ check-in: 31f5dff385 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-11-22
04:21
Embrace ES6 now that we can play flac on FF using transcoding. Shorten playlist entries when they have a common path. check-in: bc0d6d6ec2 user: ajv-899-334-8894@vsta.org tags: master, trunk
2017-10-24
13:48
Fix regression for non-transcode code path check-in: b7a4eb540e user: ajv-899-334-8894@vsta.org tags: master, trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to js/player.js.

138
139
140
141
142
143
144
145
146
147









148
149
150
151
152
153
154
	res += elem;
    }
    return res;
}

// Update playlist queue pane
function paintQueue() {
    var fidx, f, res = '';
    for (fidx = 0; fidx < playlist.length; fidx++) {
	f = do_trim(unescape(playlist[fidx]));









	res += f + '\n';
    }
    pqueue.textContent = res;
}

// Get a dir/file listing from the URL
function getDir(url) {







|


>
>
>
>
>
>
>
>
>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
	res += elem;
    }
    return res;
}

// Update playlist queue pane
function paintQueue() {
    let fidx, f, res = '', prev = '';
    for (fidx = 0; fidx < playlist.length; fidx++) {
	f = do_trim(unescape(playlist[fidx]));
	const slash = f.indexOf(" / ");
	if (slash >= 0) {
	    const pathpart = f.substring(slash);
	    if (pathpart == prev) {
		f = f.substring(0, slash);
	    } else {
		prev = pathpart;
	    }
	}
	res += f + '\n';
    }
    pqueue.textContent = res;
}

// Get a dir/file listing from the URL
function getDir(url) {