mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fix for skipping in offline mode on chromecast
This commit is contained in:
4
public/dist/embed.min.js
vendored
4
public/dist/embed.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/dist/main.min.js
vendored
8
public/dist/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -875,10 +875,10 @@ function seekToMove(e){
|
|||||||
function seekToClick(e){
|
function seekToClick(e){
|
||||||
var acceptable = ["bar", "controls", "duration"];
|
var acceptable = ["bar", "controls", "duration"];
|
||||||
if(acceptable.indexOf($(e.target).attr("id")) >= 0) {
|
if(acceptable.indexOf($(e.target).attr("id")) >= 0) {
|
||||||
var total = Player.player.getDuration() / $("#controls").width();
|
var total = full_playlist[full_playlist.length - 1].duration / $("#controls").width();
|
||||||
total = total * e.clientX;
|
total = total * e.clientX;
|
||||||
|
|
||||||
|
Helper.log(total);
|
||||||
if(!chromecastAvailable){
|
if(!chromecastAvailable){
|
||||||
Player.player.seekTo(total);
|
Player.player.seekTo(total);
|
||||||
|
|
||||||
@@ -1689,7 +1689,6 @@ function before_toast(){
|
|||||||
function onepage_load(){
|
function onepage_load(){
|
||||||
|
|
||||||
var url_split = window.location.href.split("/");
|
var url_split = window.location.href.split("/");
|
||||||
|
|
||||||
if(url_split[3].substr(0,1) != "#!" && url_split[3] !== "" && !(url_split.length == 5 && url_split[4].substr(0,1) == "#")){
|
if(url_split[3].substr(0,1) != "#!" && url_split[3] !== "" && !(url_split.length == 5 && url_split[4].substr(0,1) == "#")){
|
||||||
|
|
||||||
socket.emit("change_channel");
|
socket.emit("change_channel");
|
||||||
|
|||||||
Reference in New Issue
Block a user