0

[Bug in 1.2.15 (FIXED)] Simulator MediaPlayer "onStateChange"

Is there a reason that the Mediaplayer is calling the "onStateChange" of STOP while switching between videos?
This has not been the case previously in the simulator.
Can this now be expected to happen on the TV devices?

CODE
this._playerChangeDispatcher.subscribeTo(KONtx.mediaplayer, "onStateChange", this);

_playerChangeDispatcher: function (event) {
if(event.payload.newState == KONtx.mediaplayer.constants.states.STOP) {
print('**************************** STOP!!!!!!!!!!!!!!!!!!!! **********************************');
KONtx.application.previousView(this.config.current);
}
},


The above will fire between Playlist Entries playing - sending the application back to the previous view.... blink.gif

by
2 Replies
  • QUOTE (WidgetRealm @ Apr 15 2011, 12:01 PM) <{POST_SNAPBACK}>
    Is there a reason that the Mediaplayer is calling the "onStateChange" of STOP while switching between videos?
    This has not been the case previously in the simulator.
    Can this now be expected to happen on the TV devices?

    CODE
    this._playerChangeDispatcher.subscribeTo(KONtx.mediaplayer, "onStateChange", this);

    _playerChangeDispatcher: function (event) {
    if(event.payload.newState == KONtx.mediaplayer.constants.states.STOP) {
    print('**************************** STOP!!!!!!!!!!!!!!!!!!!! **********************************');
    KONtx.application.previousView(this.config.current);
    }
    },


    The above will fire between Playlist Entries playing - sending the application back to the previous view.... :bThis is a known issue and has been fixed. The next version of the wdk will include the patch.
    0
  • Note that the version of the wdk that contains this bug is 1.2.15. Version 1.2.16 includes the patch that fixes this bug and is now available for download.
    0

Recent Posts

in General - Yahoo! TV Widgets