View Full Version : Asx or ram streaming.
KungTure
2005-01-11, 01:48
hi there.
i have tried to add streaming video to my script, but the only type working is the wmv file-types.
does python support asx and/or real media streaming?
//kungture
Piscator
2005-01-11, 02:20
the problem is not python, but xbmc. i recently did this myself in the web media browser (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=21;t=9606). 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 "http://" urls with "mms://". in the ram/rm files, replace the "http://" urls with "rtsp://". you can use the parsed urls with xbmc.play.
for a code example look in my browser for the class mediaurlparser.
greetz,
piscator
KungTure
2005-01-11, 13:39
thanks.
i tried that, but the screen was black as the night. no streaming at all...
i suppose you only have to call?:
xbmc.player().play(mms://......../movie.asx)
or
xbmc.player().play(rtsp://......../movie.ram)
no initialization is needed for this?
Piscator
2005-01-11, 18:06
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:
<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...
greetz,
piscator
KungTure
2005-01-11, 23:17
that!!!!! did the trick...
a huge bunch of thanks to you... respect... *:thumbsup: