Guest User

Untitled

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. function showVideoPlayerAfterLoading(type) {
  2.  
  3. if (mediaWaitPreloader.PlayerDisplayed())
  4. return;
  5.  
  6. if (type === "audio" && !videoPlayer.DoesStartedToPlay()) {
  7. audioPlayer.Pause();
  8. }
  9. else {
  10. mediaWaitPreloader.ShowMediaPlayerAfterLoading();
  11. }
  12.  
  13. }
  14.  
  15.  
  16.  
  17. //------------------
  18.  
  19.  
  20. ShowMediaPlayerAfterLoading: function() {
  21.  
  22. var that = this;
  23.  
  24. if (that._playerDisplayed)
  25. return;
  26.  
  27. if (that._playerWrapper.hasClass("hidden")) {
  28.  
  29. that._preloaderSpinnerBlock.hide();
  30. that._playerWrapper.removeClass("hidden");
  31. that._playerDisplayed = true;
  32. }
  33. },
  34.  
  35. PlayerDisplayed: function() {
  36. var that = this;
  37.  
  38. return that._playerDisplayed;
  39. },
Add Comment
Please, Sign In to add comment