Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

autoplay udp stream
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
autoplay udp stream
5th Feb, 2013, 06:04 PM
Post: #1
sandoz Offline
Registered
Posts: 16
Joined: Dec 2012
Reputation: 0
autoplay udp stream
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?
Find all posts by this user
Quote this message in a reply
5th Feb, 2013, 09:30 PM
Post: #2
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: autoplay udp stream
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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 01:57 AM
Post: #3
sandoz Offline
Registered
Posts: 16
Joined: Dec 2012
Reputation: 0
RE: autoplay udp stream
hmm, i have 0 experience with python Sad
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 02:19 AM
Post: #4
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: autoplay udp stream
time to learn :-)
Not really hard to do something like this. and python is quite easy.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 04:06 AM
Post: #5
sandoz Offline
Registered
Posts: 16
Joined: Dec 2012
Reputation: 0
RE: autoplay udp stream
can you help me get started?AngelAngel
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 04:36 AM
Post: #6
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: autoplay udp stream
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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 04:50 AM
Post: #7
BartOtten Offline
Registered
Posts: 815
Joined: Jun 2012
Reputation: 29
Re: autoplay udp stream
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
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 05:14 AM
Post: #8
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: autoplay udp stream
thanks barttoten,
but i'ts ok, i'm at work so can't develop the addon.
But can't do all the job.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
6th Feb, 2013, 07:29 PM
Post: #9
sandoz Offline
Registered
Posts: 16
Joined: Dec 2012
Reputation: 0
RE: autoplay udp stream
ok, ill ask later again
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 10th May, 2025, 05:58 PM Powered By MyBB, © 2002-2025 MyBB Group.