mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Forcing pause icon to be active on play
This commit is contained in:
		| @@ -1085,8 +1085,8 @@ var Player = { | |||||||
|                     if(scUsingWidget) { |                     if(scUsingWidget) { | ||||||
|                         Player.soundcloud_player.isPaused(function(playing) { |                         Player.soundcloud_player.isPaused(function(playing) { | ||||||
|                             if(!playing) { |                             if(!playing) { | ||||||
|                                 Helper.removeClass("#play", "hide"); |                                 Helper.addClass("#play", "hide"); | ||||||
|                                 Helper.addClass("#pause", "hide"); |                                 Helper.removeClass("#pause", "hide"); | ||||||
|                             } |                             } | ||||||
|                             playing = !playing; |                             playing = !playing; | ||||||
|                             if(Math.ceil(currDurr) + 1 > Player.np.end && playing) { |                             if(Math.ceil(currDurr) + 1 > Player.np.end && playing) { | ||||||
| @@ -1102,8 +1102,8 @@ var Player = { | |||||||
|                         }) |                         }) | ||||||
|                     } else { |                     } else { | ||||||
|                         if(Player.soundcloud_player.isPlaying()) { |                         if(Player.soundcloud_player.isPlaying()) { | ||||||
|                             Helper.removeClass("#play", "hide"); |                             Helper.addClass("#play", "hide"); | ||||||
|                             Helper.addClass("#pause", "hide"); |                             Helper.removeClass("#pause", "hide"); | ||||||
|                         } |                         } | ||||||
|                         if(Math.ceil(currDurr) + 1 > Player.np.end && Player.soundcloud_player.isPlaying()) { |                         if(Math.ceil(currDurr) + 1 > Player.np.end && Player.soundcloud_player.isPlaying()) { | ||||||
|                             end_programmatically = true; |                             end_programmatically = true; | ||||||
| @@ -1118,8 +1118,8 @@ var Player = { | |||||||
|                     } |                     } | ||||||
|                 } else { |                 } else { | ||||||
|                     if(Player.player.getPlayerState() == 1) { |                     if(Player.player.getPlayerState() == 1) { | ||||||
|                         Helper.removeClass("#play", "hide"); |                         Helper.addClass("#play", "hide"); | ||||||
|                         Helper.addClass("#pause", "hide"); |                         Helper.removeClass("#pause", "hide"); | ||||||
|                     } |                     } | ||||||
|                     if(Math.ceil(Player.player.getCurrentTime()) >= Player.np.end && (Player.player.getPlayerState() == YT.PlayerState.PLAYING)) { |                     if(Math.ceil(Player.player.getCurrentTime()) >= Player.np.end && (Player.player.getPlayerState() == YT.PlayerState.PLAYING)) { | ||||||
|                         end_programmatically = true; |                         end_programmatically = true; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user