Revert "Eliminated running try catch when player.type="youtube""
This reverts commit 5fcfd5fa4f.
			
			
This commit is contained in:
		| @ -1245,16 +1245,15 @@ | |||||||
|                 targetTime = player.media.duration; |                 targetTime = player.media.duration; | ||||||
|             } |             } | ||||||
|  |  | ||||||
| 			// Set the current time |             // Set the current time | ||||||
|             if(player.type == "video" || player.type == "audio") { |             // Try/catch incase the media isn't set and we're calling seek() from source() and IE moans | ||||||
|             	// Try/catch incase the media isn't set and we're calling seek() from source() and IE moans |             try { | ||||||
|             	try { |                 player.media.currentTime = targetTime.toFixed(1); | ||||||
| 					player.media.currentTime = targetTime.toFixed(1); |             } | ||||||
| 				} |             catch(e) {} | ||||||
| 				catch(e) {} |  | ||||||
| 			} |  | ||||||
|             // YouTube |             // YouTube | ||||||
|             else if(player.type == "youtube") { |             if(player.type == "youtube") { | ||||||
|                 player.embed.seekTo(targetTime); |                 player.embed.seekTo(targetTime); | ||||||
|  |  | ||||||
|                 // Trigger timeupdate |                 // Trigger timeupdate | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user