Closed mturjak closed 8 years ago
Show only the pause symbol if video started playing (on devices that support autoplay) and only the play symbol if video is paused. Now the joint-symbol button can be a bit confusing on page load.
Added a directive on the video element binding to the playing event and manipulating a global variable with isPlaying(bool):
playing
isPlaying(bool)
elem.bind('playing', function () { $rootScope.isPlaying(true); });
Show only the pause symbol if video started playing (on devices that support autoplay) and only the play symbol if video is paused. Now the joint-symbol button can be a bit confusing on page load.