2010-10-27, 07:01
Hello,
I'm working on a plugin to stream videos from gomtv.net. However, I've hit a stumbling block.. While I can download and then play videos, I cannot stream videos.
I believe the issue is that XBMC is using curl to get the mimetype prior to launching dvdplayer to play the file. The problem is that there is a key that is "assigned", but it is good for one use only. So by trying to grab the file multiple times (once for the mimetype and again to actually play the file) it is failing. Here's a snippet from the debug log. Not sure if anyone has any thoughts/suggestions on working around this.
I'm working on a plugin to stream videos from gomtv.net. However, I've hit a stumbling block.. While I can download and then play videos, I cannot stream videos.
I believe the issue is that XBMC is using curl to get the mimetype prior to launching dvdplayer to play the file. The problem is that there is a key that is "assigned", but it is good for one use only. So by trying to grab the file multiple times (once for the mimetype and again to actually play the file) it is failing. Here's a snippet from the debug log. Not sure if anyone has any thoughts/suggestions on working around this.
Code:
00:53:47 T:4028 M:4294967295 INFO: XCURL::DllLibCurlGlobal::easy_aquire - Created session to http://211.43.144.142
00:53:47 T:4028 M:4294967295 DEBUG: CFileCurl::GetMimeType - http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e -> video/x-flv
00:53:47 T:4028 M:4294967295 NOTICE: DVDPlayer: Opening: http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e
00:53:47 T:4028 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:53:47 T:5044 M:4294967295 DEBUG: thread start, auto delete: 0
00:53:47 T:5044 M:4294967295 NOTICE: Creating InputStream
00:53:47 T:5044 M:4294967295 DEBUG: CFileCache::Open - opening <stream.gom> using cache
00:53:47 T:5044 M:4294967295 DEBUG: FileCurl::Open(00E1AE18) http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e
00:53:47 T:4028 M:4294967295 DEBUG: ------ Window Init (DialogBusy.xml) ------
00:53:47 T:4028 M:4294967295 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
00:53:48 T:5044 M:4294967295 WARNING: XFILE::CFileCurl::CReadState::FillBuffer: curl failed with code 22
00:53:48 T:5044 M:4294967295 ERROR: CFileCurl::CReadState::Open, didn't get any data from stream.
00:53:48 T:5044 M:4294967295 DEBUG: FileCurl::Close(00E1AE18) http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e
00:53:48 T:5044 M:4294967295 ERROR: XFILE::CFileCache::Open - failed to open source <http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e>
00:53:48 T:5044 M:4294967295 ERROR: CDVDPlayer::OpenInputStream - error opening [http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e]
00:53:48 T:5044 M:4294967295 NOTICE: CDVDPlayer::OnExit()
00:53:48 T:5044 M:4294967295 NOTICE: CDVDPlayer::OnExit() deleting input stream
00:53:48 T:5044 M:4294967295 DEBUG: Thread 5044 terminating
00:53:48 T:4028 M:4294967295 DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
00:53:48 T:4028 M:4294967295 ERROR: Playlist Player: skipping unplayable item: 0, path [http://211.43.144.142/stream.gom?bid=1215&nodeid=10855&level=50&ispay=1&uno=74309&uip=76.28.104.59&title=TSL_Rain%20vs%20oGsEnsnare%20[Round%20of%2032%20match%202]%20Set1&key=8b3546d9f2ae9eda0ab7d88fc216693e]
00:53:48 T:4028 M:4294967295 DEBUG: Playlist Player: no more playable items... aborting playback
00:53:48 T:4028 M:4294967295 DEBUG: SDLKeyboard: scancode: 56, sym: 308, unicode: 0, modifier: 0
00:53:48 T:4028 M:4294967295 DEBUG: CWinEventsWin32::WndProcWindow is active
00:53:48 T:4028 M:4294967295 DEBUG: CWinEventsWin32::WndProcWindow lost focus
00:53:48 T:4028 M:4294967295 NOTICE: CDVDPlayer::CloseFile()
00:53:48 T:4028 M:4294967295 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
00:53:48 T:4028 M:4294967295 NOTICE: DVDPlayer: waiting for threads to exit
00:53:48 T:4028 M:4294967295 NOTICE: DVDPlayer: finished waiting
00:53:48 T:3152 M:4294967295 INFO: Scriptresult: Success
00:53:48 T:3152 M:4294967295 INFO: Python script stopped
00:53:48 T:3152 M:4294967295 DEBUG: Thread 3152 terminating
00:53:48 T:4028 M:4294967295 DEBUG: python thread 8 destructed
00:53:48 T:4028 M:4294967295 DEBUG: ------ Window Deinit (DialogBusy.xml) ------