Hello All,
I am using media player framework , but it is giving error as soon as I try to run the code , and also closing the simulator. Also I have checked in TV but then also its not working.Also I have used the patch file provided in the Link
http://developer.yahoo.net/forum/?showtopi...mp;endsession=1.
Also I have checked the version of TV and simulator it is greater than 1.2
CODE
var multimediaframework = new KONtx.Class({
ClassName: 'multimediaframework',
Extends: KONtx.system.FullscreenView,
createView: function() {
/*KONtx.mediaplayer.initialize();
var playlist = new KONtx.media.Playlist();
playlist.addEntryByURL("http://122.181.148.147/syncpointe/demo/video.mp4" );
KONtx.mediaplayer.playlist.set(playlist);
KONtx.mediaplayer.playlist.start();// use KONtx.speedtest to determine KONtx.mediaplayer.playlist.start();*/
KONtx.mediaplayer.initialize();
var overlay = new KONtx.control.MediaTransportOverlay({}).appendTo(this);
function playerDispatcher(event) { if(event.type == "onPlaylistEnd") {
KONtx.application.previousView();
}
}
playerDispatcher.subscribeTo(KONtx.mediaplayer, ‘onPlaylistEnd’);
var playlist = new KONtx.media.Playlist();
playlist.addEntry(new KONtx.media.PlaylistEntry({
streams:[
{ url:"http://122.181.148.147/syncpointe/demo/video.mp4", bitrate:300 },
{ url:"http://122.181.148.147/syncpointe/demo/video.mp4", bitrate:600 },
{ url:"http://122.181.148.147/syncpointe/demo/video.mp4", bitrate:900 },
]
}));
playlist.addEntry(new KONtx.media.PlaylistEntry({
streams: [
{ url: "http://122.181.148.147/syncpointe/demo/video.mp4", bitrate: 300 },
{ url: "http://122.181.148.147/syncpointe/demo/video.mp4", bitrate: 1000 },
]
}));
/*KONtx.mediaplayer.playlist.set(playlist);
KONtx.mediaplayer.setConnectionBandwidth(KONtx.messages.fetch("bandwidthBitrate")); // use KONtx.speedtest to determine KONtx.mediaplayer.playlist.start();
KONtx.mediaplayer.playlist.start();*/
},
updateView: function()
{
KONtx.mediaplayer.playlist.set(playlist);
KONtx.mediaplayer.setConnectionBandwidth(KONtx.messages.fetch("bandwidthBitrate")); // use KONtx.speedtest to determine KONtx.mediaplayer.playlist.start();
KONtx.mediaplayer.playlist.start();
}
})
Can any one please help me out.
The error which I m getting is given below
------------------------------------------------------------------------------------------------------------------------------------------------------------
>>>>> play:2149
>>>>> GetSystemTVState: attached shared memory
>>>>> DetectStreamDimension:1332
>>>>> # 0 audio: not found video: not found
>>>>> # 1 audio: OK video: not found
>>>>> # 2 audio: OK video: not found
>>>>> # 3 audio: OK video: not found
>>>>> # 4 audio: OK video: not found
>>>>> # 5 audio: OK video: not found
>>>>> # 6 audio: OK video: not found
>>>>> # 7 audio: OK video: not found
>>>>> # 8 audio: OK video: not found
>>>>> # 9 audio: OK video: not found
>>>>> #10 audio: OK video: not found
>>>>> #11 audio: OK video: not found
>>>>> #12 audio: OK video: not found
>>>>> #13 audio: OK video: not found
>>>>> #14 audio: OK video: not found
>>>>> #15 audio: OK video: not found
>>>>> #16 audio: OK video: not found
>>>>> #17 audio: OK video: not found
>>>>> #18 audio: OK video: not found
>>>>> #19 audio: OK video: not found
>>>>> #20 audio: OK video: not found
>>>>> #21 audio: OK video: not found
>>>>> #22 audio: OK video: not found
>>>>> #23 audio: OK video: not found
>>>>> #24 audio: OK video: not found
>>>>> #25 audio: OK video: not found
>>>>> #26 audio: OK video: not found
>>>>> #27 audio: OK video: not found
>>>>> #28 audio: OK video: not found
>>>>> #29 audio: OK video: not found
>>>>> #30 audio: OK video: not found
>>>>> #31 audio: OK video: not found
>>>>> #32 audio: OK video: not found
>>>>> #33 audio: OK video: not found
>>>>> #34 audio: OK video: not found
>>>>> #35 audio: OK video: not found
>>>>> #36 audio: OK video: not found
>>>>> #37 audio: OK video: not found
!!BEGIN PLAYING MEDIA FILE!!
EM 00:00:11:908: [T:12373] Run-Time: 2794
WM 00:00:11:910: [T:12373] ** AppManager._handleDispatchedHostEvent() @subject onLoadView @app id VideoTest.widget @result
WM 00:00:11:910: [T:12373] ** AppManager._loadView._handleLoadViewDone()
WM 00:00:11:910: [T:12373] ** AppManager._send() Sent @subject onLoadView @app id VideoTest.widget @seq 41
WM 00:00:11:910: [T:12373] ** AppManager._sendVisibilityStatus @app id VideoTest.widget @view id view-multimediaFrame @vis true
WM 00:00:11:911: [T:12373] ** AppManager._send() @subject onShowView @app id VideoTest.widget @seq 43 @args {"filename":"Framework/kontx/1.1/etc/window.xml","id":"view-multimediaFrame","type":"FULL_SCREEN"}
WM 00:00:11:911: [T:12373] [KONtx/VideoTest] {HostEventManager} :: Got HostEvent: onShowView
WM 00:00:11:912: [T:12373] [KONtx/VideoTest] {multimediaframework-8} :: _onShowView
WM 00:00:11:912: [T:12373] [KONtx/VideoTest] {multimediaframework-8} :: updateView
WM 00:00:11:912: [T:12373] ** AppManager._handleDispatchedHostEvent() @subject onShowView @app id VideoTest.widget @result
WM 00:00:11:913: [T:12373] ** AppManager._send() Sent @subject onShowView @app id VideoTest.widget @seq 43
WM 00:00:11:913: [T:12373] ******** main.updateWaitIndicator(): Visible = null
WM 00:00:11:913: [T:12373] ******** main._updateWaitIndicator(): Visible = 0
WM 00:00:11:913: [T:12373] ******** main._updateWaitIndicator(): Visible = 0
WM 00:00:11:914: [T:12373] ** main.updateIcons() @force type fs
WM 00:00:11:914: [T:12373] ** AppManager._sendIsSelected @app id VideoTest.widget @view id view-Main @val false
WM 00:00:11:915: [T:12373] ** AppManager._send() @subject onUnselect @app id VideoTest.widget @seq 44 @args {"filename":"Framework/kontx/1.1/etc/window.xml","id":"view-Main","type":"SIDE_BAR"}
WM 00:00:11:915: [T:12373] [KONtx/VideoTest] {HostEventManager} :: Got HostEvent: onUnselect
WM 00:00:11:916: [T:12373] [KONtx/VideoTest] {SidebarView-3} :: _onUnselectView
WM 00:00:11:917: [T:12373] ** AppManager._handleDispatchedHostEvent() @subject onUnselect @app id VideoTest.widget @result
WM 00:00:11:922: [T:12373] ** AppManager._send() Sent @subject onUnselect @app id VideoTest.widget @seq 44
WM 00:00:11:922: [T:12373] ** AppManager._sendIsSelected @app id VideoTest.widget @view id view-multimediaFrame @val true
WM 00:00:11:922: [T:12373] ** AppManager._send() @subject onSelect @app id VideoTest.widget @seq 45 @args {"filename":"Framework/kontx/1.1/etc/window.xml","id":"view-multimediaFrame","type":"FULL_SCREEN"}
WM 00:00:11:923: [T:12373] [KONtx/VideoTest] {HostEventManager} :: Got HostEvent: onSelect
WM 00:00:11:923: [T:12373] [KONtx/VideoTest] {multimediaframework-8} :: _onSelectView
WM 00:00:11:924: [T:12373] calling window.navigate()
TV 00:00:11:924: [T:12373] NETWORK INTERFACE TV Network Type STATUS = 0
WM 00:00:11:924: [T:12373] Network status: up
WM 00:00:11:925: [T:12373] ** AppManager._handleDispatchedHostEvent() @subject onSelect @app id VideoTest.widget @result "view"
WM 00:00:11:925: [T:12373] ** AppManager._send() Sent @subject onSelect @app id VideoTest.widget @seq 45
WM 00:00:11:926: [T:12373] gainfocus: view-multimediaFrame
WM 00:00:11:926: [T:12373] [KONtx/VideoTest] {multimediaframework-8} :: _setInitialFocus
WM 00:00:11:926: [T:12373] calling window.navigate
WM 00:00:11:926: [T:12373] calling window.navigate()
WM 00:00:11:926: [T:12373] [KONtx/VideoTest] {multimediaframework-8} :: focusView
WM 00:00:11:927: [T:12373] ** main._updateTVState() @forced state
WM 00:00:11:927: [T:12373] ** main._updateTVState() @display mode fs @need numeric true @need text false
WM 00:00:11:927: [T:12373] ** main._updateTVState() @app id VideoTest.widget
WM 00:00:11:927: [T:12373] ** main._updateTVState() @new state 112 @old state 112
EM 00:00:11:927: [T:12373] System::SetTvState inState = 0x70
EM 00:00:11:928: [T:12373] + TV_NUMERIC_KEYS
EM 00:00:11:928: [T:12373] + TV_AUDIO_KEYS
EM 00:00:11:928: [T:12373] + TV_PLAYBACK_KEYS
EM 00:00:11:928: [T:12373] AppHostIfaceSDL::SetState 112
WM 00:00:11:928: [T:12373] ** main._updateTVState() @forced state
WM 00:00:11:928: [T:12373] ** main._updateTVState() @display mode fs @need numeric true @need text false
WM 00:00:11:928: [T:12373] ** main._updateTVState() @app id VideoTest.widget
WM 00:00:11:928: [T:12373] ** main._updateTVState() @new state 112 @old state 112
EM 00:00:11:928: [T:12373] System::SetTvState inState = 0x70
EM 00:00:11:928: [T:12373] + TV_NUMERIC_KEYS
EM 00:00:11:928: [T:12373] + TV_AUDIO_KEYS
EM 00:00:11:929: [T:12373] + TV_PLAYBACK_KEYS
EM 00:00:11:929: [T:12373] AppHostIfaceSDL::SetState 112
WM 00:00:11:929: [T:12373] ** main.getPageInfo() @a_params @a_defaults
WM 00:00:11:929: [T:12373] ** main.getLinksInfo()
WM 00:00:11:929: [T:12373] ** main.getLinksInfo() @links [object Object],[object Object],[object Object],[object Object]
WM 00:00:11:929: [T:12373] ** main.getPageInfo() @info [object Object]
WM 00:00:11:930: [T:12373] ** main.sendViewBeacon() @params [object Object] @is page view
WM 00:00:11:930: [T:12373] ** main._qBeacon() @type view
WM 00:00:11:930: [T:12373] ** main._startAnim().done() Calling q.start again
WM 00:00:11:930: [T:12373] ******** Utils.TaskQ.start()
EM 00:00:11:930: [T:12373] Run-Time: 2849
WM 00:00:11:956: [T:12373] ** main._sendBeacon()
SB 00:00:11:956: [T:12373] SurfaceBook: curr = 16.522MB (86) : peak = 16.522MB (86)
TV 00:00:11:956: [T:12373] HANDLENOTIFICATION inSubject = tv.path.created
Segmentation fault! (SIGSEGV)
----------------- KONFABULATOR SegFaultHandler ---------------
Obtained 19 stack frames [T:12373]:
[T:12373] 19: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN7KFDebug9DumpStackEPKcPv+0x6c) [0x829c2dc]
[T:12373] 18: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator [0x81c998f]
[T:12373] 17: [0xb7f70420]
[T:12373] 16: /root/TVWidgets/Konfabulator-Latest-540/Plugins/libPluginTv.so(_ZN12Konfabulator15TVMasterControl18HandleNotificationERK8KFStrin
gN3YWE8SmartPtrINS4_10RetainableEEEPv+0x1752) [0xb4775d42]
[T:12373] 15: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN20KFNotificationCenter16SendNotificationERK8KFStringN3YWE8SmartP
trINS3_10RetainableEEEPv+0x407) [0x851c877]
[T:12373] 14: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN20KFNotificationAction7PerformEv+0x69) [0x851d829]
[T:12373] 13: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN8KFAction21PerformDelayedActionsENS_4WhenE+0x7f) [0x829291f]
[T:12373] 12: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN21GSAppControllerAction12ProcessEventEv+0x34) [0x8293674]
[T:12373] 11: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN4Glib11ActionEvent12ProcessEventEv+0x18) [0x81b23d8]
[T:12373] 10: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator [0x81b0f5c]
[T:12373] 9: /usr/lib/libglib-2.0.so.0 [0xb7dcb0d1]
[T:12373] 8: /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x176) [0xb7dcccc6]
[T:12373] 7: /usr/lib/libglib-2.0.so.0 [0xb7dd0083]
[T:12373] 6: /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1e7) [0xb7dd0467]
[T:12373] 5: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN2FB13Load_internalEPNS_14AppHostIfaceFBE+0xeae) [0x81d305e]
[T:12373] 4: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(_ZN2FB6Widget4LoadEPNS_14AppHostIfaceFBE+0x12) [0x81d3af2]
[T:12373] 3: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(main+0x18d) [0x81dc18d]
[T:12373] 2: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7b1b450]
[T:12373] 1: /root/TVWidgets/Konfabulator-Latest-540/Konfabulator(realloc+0xb5) [0x81a5fe1]
-------------------------------------------------
Calling next signal handler...
Segmentation fault