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

Devici15 Apr 2011 1:01 PM
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
Benjamin Toll16 Apr 2011 2:18 PM
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.
Benjamin Toll17 Apr 2011 9:09 PM
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.