Forum

Full Version: autoplay udp stream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i am looking for a solution to autoplay udp streams a raspberry pi receives:

i have a udp stream created with a h264 dedicated internet streamer from various lovcations. It produces an udp stream. I want the rpi to listen on a certain port 24/7 for an incoming stream, and then start to play that stream when it receives something.
Anyone got a clue how to make this work?
Hi,

You have to do a python service to achieve this.
it will wait on the stream, when stream is available, start the stream with xbmc.Player().play(url)
XBMC itself cannot do this.

Belese
hmm, i have 0 experience with python Sad
time to learn :-)
Not really hard to do something like this. and python is quite easy.
can you help me get started?AngelAngel
never do a udp connection
but on google :
http://stackoverflow.com/questions/2663247/getting-a-udp-socket-program-in-python-to-accept-messages-from-a-syslog-client.
and for xbmc service :
http://wiki.xbmc.org/index.php?title=How-to:Automatically_start_addons_using_services

But have lot of work now, so can't look deeper, but if you have specific question, i can try to answer.
This is a personal request and opinion: please do not disturb Belese too much as he is busy with a very important part of XBian Alpha 5. We can't release without it so every delay of his work hurts XBian.

Alternatives:
#python at freenode
#xbmc-scripting at freenode
thanks barttoten,
but i'ts ok, i'm at work so can't develop the addon.
But can't do all the job.
ok, ill ask later again
Reference URL's