mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Fixed small issues with client and navigating to a channel with soundcloud songs
This commit is contained in:
@@ -16,6 +16,10 @@ var Channel = {
|
||||
Helper.addClass(".pagination-results", "client-pagination-height");
|
||||
Helper.addClass(".control-list", "client-control-list");
|
||||
} else {
|
||||
SC.initialize({
|
||||
client_id: 'ed53fc01f248f15becddf8eb52cc91ef'
|
||||
}, function() {
|
||||
});
|
||||
//Player.soundcloud_player = document.querySelector("#soundcloud_player");
|
||||
}
|
||||
if(!Admin.logged_in) Admin.display_logged_out();
|
||||
|
||||
@@ -178,10 +178,6 @@ if(!Helper.mobilecheck() && (window.location.host != "localhost" && window.locat
|
||||
};
|
||||
}
|
||||
*/
|
||||
SC.initialize({
|
||||
client_id: 'ed53fc01f248f15becddf8eb52cc91ef'
|
||||
}, function() {
|
||||
});
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
if(!localStorage.getItem("VERSION") || parseInt(localStorage.getItem("VERSION")) != VERSION) {
|
||||
localStorage.setItem("VERSION", VERSION);
|
||||
|
||||
@@ -13,7 +13,7 @@ var Player = {
|
||||
|
||||
now_playing_listener: function(obj) {
|
||||
if(obj.np != undefined) {
|
||||
if(offline && (video_id == "" || video_id == undefined)){
|
||||
if(offline && (video_id == "" || video_id == undefined) && !client){
|
||||
video_id = obj.np[0].id;
|
||||
Player.np = obj.np[0];
|
||||
Player.np.start = obj.np[0].start;
|
||||
@@ -92,10 +92,10 @@ var Player = {
|
||||
if(obj.np != undefined && !offline) {
|
||||
seekTo = (time - conf.startTime) + Player.np.start;
|
||||
Player.getTitle(song_title, viewers);
|
||||
if(((embed && autoplay) || !embed) && !was_stopped) {
|
||||
if(((embed && autoplay) || !embed) && !was_stopped && !client) {
|
||||
Helper.log(["loadVideoById \nwas_stopped="+was_stopped+"\noffline="+offline])
|
||||
Player.loadVideoById(Player.np.id, duration, Player.np.start, Player.np.end);
|
||||
} else {
|
||||
} else if(!client) {
|
||||
Helper.log(["cueVideoById \nwas_stopped="+was_stopped+"\noffline="+offline])
|
||||
Player.cueVideoById(Player.np.id, duration, Player.np.start, Player.np.end);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user