diff options
author | PeterTheOne <petertheone@gmail.com> | 2018-02-28 10:58:31 +0100 |
---|---|---|
committer | PeterTheOne <petertheone@gmail.com> | 2018-02-28 10:58:31 +0100 |
commit | 465f4c199a1a5acef632126d9f5cb60031646227 (patch) | |
tree | cb97965b250474f7eb41db87ab250d465453bf3b /contrib/site/index.html | |
parent | update and test flash flowplayer (diff) |
short direct-links
Diffstat (limited to 'contrib/site/index.html')
-rw-r--r-- | contrib/site/index.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/contrib/site/index.html b/contrib/site/index.html index 19e2580..4cf4c4c 100644 --- a/contrib/site/index.html +++ b/contrib/site/index.html @@ -177,9 +177,13 @@ return this.baseUrl + '/' + this.path + '?' + parametersTmp.join('&'); }; - Model.prototype.getStreamUrl = function (thing, cache) { + Model.prototype.getStreamUrl = function (thing, cache, noBaseUrl) { cache = cache || false; - var url = this.config.streamBaseUrl + '/'; + noBaseUrl = noBaseUrl || false; + var url = ''; + if (!noBaseUrl) { + url += this.config.streamBaseUrl + '/'; + } switch(thing) { case 'webm': url += this.parameters.src + '-webm-' + @@ -293,11 +297,11 @@ function setDirectLinks(model) { $('#footer .direct-links') - .append('<a href="' + model.getStreamUrl('webm', true) + '">' + model.getStreamUrl('webm', true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('hls', true) + '">' + model.getStreamUrl('hls', true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('flash', true) + '">' + model.getStreamUrl('flash', true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('ogg', true) + '">' + model.getStreamUrl('ogg', true) + '</a><br />') - .append('<a href="' + model.getStreamUrl('mp3', true) + '">' + model.getStreamUrl('mp3', true) + '</a><br />'); + .append('<a href="' + model.getStreamUrl('webm', true) + '">.../' + model.getStreamUrl('webm', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('hls', true) + '">.../' + model.getStreamUrl('hls', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('flash', true) + '">.../' + model.getStreamUrl('flash', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('ogg', true) + '">.../' + model.getStreamUrl('ogg', true, true) + '</a><br />') + .append('<a href="' + model.getStreamUrl('mp3', true) + '">.../' + model.getStreamUrl('mp3', true, true) + '</a><br />'); } var uri = parseLocationHref(); |