2015-03-15, 12:20
Hi,
I have an addon which based on t0mm0.common.addon lib.
Currently I have my add-on created with the following snippet.
on my method I am resolving the streaming URL and passing it to addon.resolve_url(stream_url) when I finally resolve the streaming URL. The playback happens fine if the sever is good, if it's slow then it takes more than 30 seconds to start the playback. Due to the 30 seconds timeout the video playback fails.
Is there any way I can set the timeout from my plugin?
I have an addon which based on t0mm0.common.addon lib.
Currently I have my add-on created with the following snippet.
Code:
from t0mm0.common.addon import Addon
addon = Addon('plugin.video.howtovideos', sys.argv)
.
.
.
addon.resolve_url(stream_url)
Is there any way I can set the timeout from my plugin?
Code:
02:50:01 T:5900 NOTICE: DVDPlayer: Opening: http://www.dailymotion.com/cdn/H264-848x480/video/helpto.mp4?auth=14ee5799-2562-y3lahw4z-1b2ef5a2d424a23f966c611c038caab4
02:50:02 T:5900 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
02:50:02 T:13856 NOTICE: Thread DVDPlayer start, auto delete: false
02:50:02 T:13856 NOTICE: Creating InputStream
02:50:02 T:13856 WARNING: XFILE::CSimpleFileCache::Close: failed to delete temporary file ""
02:50:03 T:13856 WARNING: Previous line repeats 1 times.
02:50:04 T:13856 NOTICE: Creating Demuxer
02:50:04 T:15200 NOTICE: Thread FileCache start, auto delete: false
02:50:34 T:13856 ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file http://www.dailymotion.com/cdn/H264-848x480/video/helpto.mp4?auth=14ee5799-2562-y3lahw4z-1b2ef5a2d424a23f966c611c038caab4
02:50:34 T:13856 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
02:50:34 T:13856 NOTICE: CDVDPlayer::OnExit()
02:50:34 T:13856 WARNING: XFILE::CSimpleFileCache::Close: failed to delete temporary file ""
02:50:34 T:5900 WARNING: Previous line repeats 1 times.
02:50:34 T:5900 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.howtovideos/?url=http%3A%2F%2Fwww.dailymotion.com%2Fswf%2Fx2h09c6%3Fsyndication%3helpto%26autoplay%3D1&play=True&AddtoHist=True&img=http%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fen%2Fthumb%2F1%2F15%2Fhelpto.jpg%2F220px-helpto.jpg&title=Helpto+%282013%29+%5BSL]
02:50:34 T:13772 NOTICE: Stream All The Sources: Service: Playback Stopped
02:50:34 T:5900 NOTICE: CDVDPlayer::CloseFile()
02:50:34 T:5900 NOTICE: DVDPlayer: waiting for threads to exit
02:50:34 T:5900 NOTICE: DVDPlayer: finished waiting
02:50:34 T:5900 NOTICE: CDVDPlayer::CloseFile()
02:50:34 T:5900 NOTICE: DVDPlayer: waiting for threads to exit
02:50:34 T:5900 NOTICE: DVDPlayer: finished waiting