home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="georgius" data-source="post: 728113" data-attributes="member: 107951"><p><strong>Re: AW: Re: IPTV/DVB-IP in MP: Support for http, rtp and udp</strong></p><p></p><p></p><p></p><p>Yes, you're right actually is not working (all RTP code is commented). I'm planning to add support as soon as possible, but I don't know any RTP stream. I can simulate streams with VLC, but it's not as real stream.</p><p></p><p></p><p></p><p>I choose non-blocking sockets, so on any of network methods code did't stop. Filter must periodicaly check requests in DoBufferProcessingLoop() method and also gather data from network (doesn't matter if UDP or HTTP). Also gathering data must periodicaly check if filter don't stopping its work.</p><p></p><p></p><p></p><p>10 ms is enough time to give other threads some time to work (at least for DoBufferProcessingLoop() and in case of received data for FillBuffer() too). Because non-blocking sockets are used, the recvfrom() method exits immediately if no data received. It can cause high CPU load, if no data available and gathering thread is always checking if data are received. Also internal socket buffer is set to much higher value (from 32 KB to 1MB), which should be enough - if gathering thread waits longer, data are not lost.</p><p></p><p></p><p></p><p>Friendly, I didn't compare polling and winsock implementation. I just reverted to old code (the code in TvService 1.1.3 on SVN) because it was working (your version wasn't working - at least for me).</p></blockquote><p></p>
[QUOTE="georgius, post: 728113, member: 107951"] [b]Re: AW: Re: IPTV/DVB-IP in MP: Support for http, rtp and udp[/b] Yes, you're right actually is not working (all RTP code is commented). I'm planning to add support as soon as possible, but I don't know any RTP stream. I can simulate streams with VLC, but it's not as real stream. I choose non-blocking sockets, so on any of network methods code did't stop. Filter must periodicaly check requests in DoBufferProcessingLoop() method and also gather data from network (doesn't matter if UDP or HTTP). Also gathering data must periodicaly check if filter don't stopping its work. 10 ms is enough time to give other threads some time to work (at least for DoBufferProcessingLoop() and in case of received data for FillBuffer() too). Because non-blocking sockets are used, the recvfrom() method exits immediately if no data received. It can cause high CPU load, if no data available and gathering thread is always checking if data are received. Also internal socket buffer is set to much higher value (from 32 KB to 1MB), which should be enough - if gathering thread waits longer, data are not lost. Friendly, I didn't compare polling and winsock implementation. I just reverted to old code (the code in TvService 1.1.3 on SVN) because it was working (your version wasn't working - at least for me). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
Contact us
RSS
Top
Bottom