0

Stopping Video on unloadProfile

So Yahoo QA has marked a bug for not stopping video when the user's profile changes.

We implemented this code in init.js

// We will check for all of these events.
EventHandlers.handleProfileEvent.subscribeTo(KONtx.HostEventManager, ['onUnloadProfile', 'onLoadProfile'], EventHandlers);
EventHandlers.handleProfileEvent.subscribeTo(KONtx.application, ['onUnloadProfile','onLoadProfile'], EventHandlers);


And in events.js

EventHandlers = {
    handleProfileEvent: function(e) {
ADE.util.remoteLog("***********************\n\nPROFILE CHANGED\n\n***************************")
ADE.util.remoteLog(" GOT PROFILE EVENT ")
if(KONtx.mediaplayer.isPlaylistEntryActive) {
KONtx.mediaplayer.control.stop();
}
    }
}


This works in the simulators, but not on our Vizio TVs.  Has anyone run into this issue and have a solution?

by
0 Replies

Recent Posts

in General - Yahoo! TV Widgets