2010-01-26, 19:42
Yesterday I posted this same issue in the general Support forum (Find it here) but it went down really quickly with only 39 reads and no responses.
I thought this might be a better placing. This is the thing:
I have a plugin that can extract video URLs from several web pages. Then is gives a list of videos and lets you watch one.
The plugin is also capable of detecting when the video is hosted in megavideo.com and then allows you to configure your premium user name and password and then allows premium features like better video quality and no time limit.
The thing is that I want to add some of the videos to my library (some tv episodes mainly). So I thought that I could create a strm file and instead of inserting a video url insert a plugin url in this form:
In this way I can place the stmr file with my other videos of that tv series and I can get library information for it.
And it almost works!
I can fill my library and I can select it to play. This launches the strm file that launches the plugin with specific parameters to scrapp the video url from sourceweb.com and then does what is necesary to prepare a premium cookie for megavideo and then plays the video in premium mode.
The only problem is that xbmc thinks that the strm content wasn't valid and a popup message screen appears:
The funny thing is that I can watch the video in the background just until the moment I press OK in the popup window.
Here is a view of the error logged in xbmc.log:
I hope there is a way for the plugin to tell xbmc that it actually played something and that there is no error.
Any ideas??
Thanks in advance,
Jur.
I thought this might be a better placing. This is the thing:
I have a plugin that can extract video URLs from several web pages. Then is gives a list of videos and lets you watch one.
The plugin is also capable of detecting when the video is hosted in megavideo.com and then allows you to configure your premium user name and password and then allows premium features like better video quality and no time limit.
The thing is that I want to add some of the videos to my library (some tv episodes mainly). So I thought that I could create a strm file and instead of inserting a video url insert a plugin url in this form:
PHP Code:
plugin://video/myplugin/?action=watch&source=MegaVideo&title=My+Online+Vid eo&url=http%3A%2F%2Fwww.sourceweb.com%2Fvideos%2F4 4413%2F
In this way I can place the stmr file with my other videos of that tv series and I can get library information for it.
And it almost works!
I can fill my library and I can select it to play. This launches the strm file that launches the plugin with specific parameters to scrapp the video url from sourceweb.com and then does what is necesary to prepare a premium cookie for megavideo and then plays the video in premium mode.
The only problem is that xbmc thinks that the strm content wasn't valid and a popup message screen appears:
PHP Code:
"Playback Failed
One or more items failed to play.
Check the log file for details."
The funny thing is that I can watch the video in the background just until the moment I press OK in the popup window.
Here is a view of the error logged in xbmc.log:
PHP Code:
...
21:42:29 T:3924 M:2836717568 NOTICE: running thread: CDVDPlayerAudio::Process()
21:42:29 T:3924 M:2838233088 NOTICE: Creating audio device with codec id: 86016, channels: 2, sample rate: 44100, no pass-through
21:42:29 T:4952 M:2833293312 NOTICE: fps: 25.000000, pwidth: 640, pheight: 480, dwidth: 840, dheight: 480
21:42:29 T:4952 M:2833293312 NOTICE: Display resolution DESKTOP : 1366x768 @ 60.00 - Full Screen (12)
21:42:30 T:2852 M:2835431424 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://video/myplugin/?action=watch&source=MegaVideo&title=My+Online+Video&url=http%3A%2F%2Fwww.sourceweb.com%2Fvideos%2F44413%2F
]
I hope there is a way for the plugin to tell xbmc that it actually played something and that there is no error.
Any ideas??
Thanks in advance,
Jur.