Commit 392dc7d9 authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-5002 (YouTube videos not playing well with slideshow mode)

parent 328dd31d
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -37,7 +37,15 @@
				},
				'onStateChange': function(newState) {
					if (slideshow_mode) {
						if (newState==0) player_stopped();
						switch (newState.data) {
							case YT.PlayerState.ENDED:
								player_stopped();
								break;

							case YT.PlayerState.PLAYING:
								stop_slideshow_timer();
								break;
						}
					}
				}
			}