0

FullscreenView, mediaplayer, snippet question

I have code that takes a user to a fullscreenView, which then renders a mediaplayer to play a video. When the user presses Stop, it then takes the user back to the previous screen, which is the correction functionality.

However, when I then bring up the dock, it displays "Return to Video" even though the video is stopped. If I choose to return to video, it takes me to a blank fullscreen mediaplayer, for a few seconds before going back to the correct screen.

Here is my code:


by
  • Ad
  • Apr 23, 2012
2 Replies
  • Forgot to attach code from previous question:

    _backToDoubleGridView: function () {
    if (!this._previousViewHasBeenCalled){
    this._previousViewHasBeenCalled = true;
    this._unregisterHandlers(); a
    KONtx.application.loadView('view-DoubleGrid');
    //KONtx.application.previousView();
    }
    }

    //different function
    switch(event.type) {

                case 'onPlaylistEnd':

                    event.preventDefault();

                     KONtx.mediaplayer.control.stop();

                    this._backToDoubleGridView();

                    break;

                case 'onStreamLoadError':

                    this.dialogs.error.show();

                    break;

                case 'onStopRemoteKeyPress':

                    //event.preventDefault();

                    currentAppData.set("userStopped", "true"); //Used to
    make sure we don't push them back (sidebar cancel edge case)   

                    KONtx.mediaplayer.control.stop();
                    //this._backToDoubleGridView();
                    break;
                case 'onControlStop':

                    //event.preventDefault();

                    currentAppData.set("userStopped", "true"); //Used to
    make sure we don't push them back (sidebar cancel edge case)

                    this._backToDoubleGridView();
                    break;
                default:
                    break;
            }
        }
    0
  • The 'Return to Video' is displayed in my application snippet.

    QUOTE(Ad @ 23 Apr 2012 3:51 PM)
    I have code that takes a user to a fullscreenView, which then renders a mediaplayer to play a video. When the user presses Stop, it then takes the user back to the previous screen, which is the correction functionality.

    However, when I then bring up the dock, it displays "Return to Video" even though the video is stopped. If I choose to return to video, it takes me to a blank fullscreen mediaplayer, for a few seconds before going back to the correct screen.

    Here is my code:


    0

Recent Posts

in General - Yahoo! TV Widgets