0

Showing blank screen on reconnecting the network while playing the video

[Samsung 2010]YuppTV:Showing blank screen on reconnecting the network while playing the video

Tested on Samsung 2010 TV

Engine: 5.5.3
FW: 1.3.12.C

Widget version: 1.0.2
Reproducibility: 100%

1.Start TV
2.Launch YuppTV side bar
3.Select TELUGU PACK from home page
4.It takes to full screen with channels list
5.Select any Channel (Maa )
6.Select any Date from dates list (1/26/2011)
7.Select any program from the list
8.Remove the network connection while playing the video
9.It shows connection unavailable dialog
10.Reconnect the network without closing connection unavailable dialog

Observe it's closing the dialog as expected. But it's not returning to DOCK or side bar. Showing blank screen.

Expected: It should return to side bar to select the video again or return to DOCK
or it should continue the video on reconnecting the network.

Actual: It's showing blank screen on reconnecting the network.

by
3 Replies
  • Can it be resolved by handling onNetworkRestored / onNetworkConnectionReconnect events?
    0
  • QUOTE (swarupa @ Feb 14 2011, 03:04 AM) <{POST_SNAPBACK}>
    Can it be resolved by handling onNetworkRestored / onNetworkConnectionReconnect events?


    Yes. You should send it back to the Dock or have it re-pull data that will drive the app to reload the view.
    0
  • QUOTE (swarupa @ Feb 14 2011, 03:04 AM) <{POST_SNAPBACK}>
    Can it be resolved by handling onNetworkRestored / onNetworkConnectionReconnect events?

    Actually, if the physical network is down, you can't rely on receiving these events.

    onNetworkRestored
    When the user sets the network down due to a failed http request, i.e., calling

    CODE
    KONtx.application.setNetworkRequestFailed(true);

    in their request handler, this flips a boolean variable. Then, when another http request succeeds, calling

    CODE
    KONtx.application.setNetworkRequestFailed(false);

    would then fire the event and reset the boolean.

    So, if the physical network goes down, you'll never receive this event.

    onNetworkConnectionReconnect
    This event is only fired if the network had gone down and then came back up. At this point, a timer is set to be fired after 60 seconds that would fire this event. While you may eventually receive this event, having the user/viewer wait a full minute is probably not a good user experience.

    The intent of this event is to be doubly (or trebly) sure that the network is stable before firing this event, so any subscribers could be totally certain that it would then be ok to fire off a request.

    Now, the best way to handle network disconnection states is to listen for the onNetworkHideDialog event. This is a newer event, and most frameworks won't have it yet. However, it is possible to handle a physical network disconnect in a legacy manner by listening to the onNetworkConnectionDisconnect and onNetworkConnectionStillDisconnected events.

    CODE
            onNetworkConnectionDisconnect: function(event) {
    KONtx.application.previousView();
    //KONtx.mediaplayer.control.stop(); //maybe a good idea to stop the player;
    event.preventDefault();
    },
    onNetworkConnectionStillDisconnected: function(event) {
    event.preventDefault();
    },

    Note that you should only subscribe/unsubscribe these handlers in your fullscreen video view.

    View the source.
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets