new and updated
[webos-internals:djcin7s-modifications.git] / video-player / video-player-no-video-pause-when-minimized.patch
1 diff --git a/usr/palm/frameworks/metascene.videos/submission/100/javascript/assistants/nowplaying-assistant.js b/usr/palm/frameworks/metascene.videos/submission/100/javascript/assistants/nowplaying-assistant.js
2 index 0265e4d..5c3dea9 100644
3 --- a/usr/palm/frameworks/metascene.videos/submission/100/javascript/assistants/nowplaying-assistant.js
4 +++ b/usr/palm/frameworks/metascene.videos/submission/100/javascript/assistants/nowplaying-assistant.js
5 @@ -281,7 +281,7 @@ var NowplayingAssistant = Class.create(metascene.Base, {
6                 this._blockDim(false);
7  
8                 if (this.mediaController.isStaticStream){
9 -                       this.pause();           
10 +                       //this.pause();         
11                 } else {
12                         this.mediaController.stop();
13                 }
14 @@ -375,7 +375,7 @@ var NowplayingAssistant = Class.create(metascene.Base, {
15                 if (event.event === "displayOff"){
16                         this.playEngine.setBlockPlayEvents(true);
17                         Mojo.Log.info ("display is off, sending pause");
18 -                       this.pause();
19 +                       //this.pause();
20                 } else if (event.event === "displayOn" && this.controller.stageController.active){
21                         //this tells the videoplayer to continue blocking play events if autoplay is set to false
22                         this.playEngine.setBlockPlayEvents(!this.autoplay);