Failed Video Stream

Tek11 Jan 2012 6:05 AM
Is there anything that can be captured on the actual TV to diagnose a failed video in the media player?

In your basicplayer.js you handle failure like this:

    _playerDispatcher: function(event) {
        switch(event.type) {
            case 'onStateChange':
                if(event.payload.newState == KONtx.mediaplayer.constants.states.STOP) {
                    KONtx.application.previousView();
                }
                if(event.payload.newState == KONtx.mediaplayer.constants.states.ERROR || event.payload.newState == KONtx.mediaplayer.constants.states.UNKNOWN) {
                    this.dialogs.error.show();
                }


You just pop up the error message. But is there anything in the payload or somewhere else that would give a clue to the actual cause of the problem?

Thanks
 
Vivek Jani15 Jan 2012 9:53 PM
Unfortunately there is no way to diagnose the failed video, except external tools like ffmpeg/mediainfo. It may be due to unsupported codec/ video format etc. Could you give me the video URL so that I can try to find out more?<br><br>Thanks,<br>Vivek<br><br> QUOTE (Tek @ 11 Jan 2012 6:05 AM) Is there anything that can be captured on the actual TV to diagnose a failed video in the media player? <br><br>In your basicplayer.js you handle failure like this:<br><br>&nbsp;&nbsp;&nbsp; _playerDispatcher: function(event) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;switch(event.type) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;case &#39;onStateChange&#39;:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if(event.payload.newState == KONtx.mediaplayer.constants.states.STOP) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;KONtx.application.previousView();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;}<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if(event.payload.newState == KONtx.mediaplayer.constants.states.ERROR || event.payload.newState == KONtx.mediaplayer.constants.states.UNKNOWN) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;this.dialogs.error.show();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>You just pop up the error message. But is there anything in the payload or somewhere else that would give a clue to the actual cause of the problem?<br><br>Thanks<br>&nbsp;