2005-01-29, 15:25
maybe this might help? "copy / pasted it from another topic...
the problem is not python, but xbmc. i recently did this myself in the web media browser. what you have to do is to parse the asf/asx/ram/rm files yourself for the urls. in the asf/asx files, replace the "[url]http://"[/url] urls with "mms://". in the ram/rm files, replace the "[url]http://"[/url] urls with "rtsp://". you can use the parsed urls with xbmc.play.
for a code example look in my browser for the class mediaurlparser.
i suppose you only have to call?:
xbmc.player().play(mms://......../movie.asx)
or
xbmc.player().play(rtsp://......../movie.ram)
yes, that's about right. and i suppose you put the argument with quotes, like:
xbmc.player().play("mms://......../movie.asx")
but did you parse the asf file? for example, the link http://www.omroep.nl/live/vpro3voor12tvcentral-bb.asx has the following file:
code sample
<asx version = "3.0">
<entry>
<ref href="mms://livemedia.omroep.nl/vpro3voor12tvcentral-bb"/>
<ref href="mms://livemedia2.omroep.nl/vpro3voor12tvcentral-bb"/>
</entry>
</asx>
you'll have to get to href's out of this. if it is showing http, you'll have to substitute it with mms.
you can start this web tv with:
xbmc.player().play("mms://livemedia.omroep.nl/vpro3voor12tvcentral-bb")
not with opening the asx url directly... crash...
the problem is not python, but xbmc. i recently did this myself in the web media browser. what you have to do is to parse the asf/asx/ram/rm files yourself for the urls. in the asf/asx files, replace the "[url]http://"[/url] urls with "mms://". in the ram/rm files, replace the "[url]http://"[/url] urls with "rtsp://". you can use the parsed urls with xbmc.play.
for a code example look in my browser for the class mediaurlparser.
i suppose you only have to call?:
xbmc.player().play(mms://......../movie.asx)
or
xbmc.player().play(rtsp://......../movie.ram)
yes, that's about right. and i suppose you put the argument with quotes, like:
xbmc.player().play("mms://......../movie.asx")
but did you parse the asf file? for example, the link http://www.omroep.nl/live/vpro3voor12tvcentral-bb.asx has the following file:
code sample
<asx version = "3.0">
<entry>
<ref href="mms://livemedia.omroep.nl/vpro3voor12tvcentral-bb"/>
<ref href="mms://livemedia2.omroep.nl/vpro3voor12tvcentral-bb"/>
</entry>
</asx>
you'll have to get to href's out of this. if it is showing http, you'll have to substitute it with mms.
you can start this web tv with:
xbmc.player().play("mms://livemedia.omroep.nl/vpro3voor12tvcentral-bb")
not with opening the asx url directly... crash...