Asx or ram streaming.
#1
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
Reply
#2
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.

greetz,
piscator
Reply
#3
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?
Reply
#4
(kungture @ jan. 11 2005,11:39 Wrote: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:
Quote:<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
Reply
#5
that!!!!! did the trick...

a huge bunch of thanks to you... respect...  :thumbsup:
Reply

Logout Mark Read Team Forum Stats Members Help
Asx or ram streaming.0