<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style>
<title>Re: [Live-devel] TS over UDP (or RTP)</title>
</head>
<body><p><font size=2 color=navy face=Arial>
Hi<br><br>I have been working on this, I have a DeviceSource with doGetNextFrame and deliverFrame methods. I want to check if my process is correct. <br><br>The DirectShow filter calls a method on my DeviceSource and offloads a large block of TS packets. The deliverFrame method when called gets the next 7xTS packet Frame each time it is called. The data is copied into fTo rather than fTo being changed per the framework instructions. <br><br>The doGetNextFrame method I assume is called from the framework, it calls deliverFrame. These are all interlocked to make sure data doesn't overwrite and nothing is blocking. <br><br>Any comments?<br><br>the examples I have just call taskScheduler.doEventLoop() though the DeviceSource framework implies I could call turnOnBackGroundReadHandler, I couldn't find an example of that. I currently have the live portion of my software running in its own thread so the doEventLoop can run and not block the DS code. <br><br>Do you have a recommendation if this is not an appropriate approach. <br><br>Thanks<br><br>Jon </font></p>
<p><hr size=2 width="100%" align=center tabindex=-1>
<font face=Tahoma size=2>
<b>From</b>: live-devel-bounces@ns.live555.com <live-devel-bounces@ns.live555.com> <br><b>To</b>: LIVE555 Streaming Media - development & use <live-devel@ns.live555.com> <br><b>Sent</b>: Thu Oct 01 21:13:56 2009<br><b>Subject</b>: Re: [Live-devel] TS over UDP (or RTP) <br></font></p>

<blockquote type="cite" cite=""><font face="Arial" size="-1" color="#0000FF">My question then is do I have to create a FramedSource derived class</font></blockquote>
<div><br>
Yes.<br>
</div>
<blockquote type="cite" cite=""><font face="Arial" size="-1" color="#0000FF">and which methods do I have to implement/override?</font></blockquote>
<div><br>
doGetNextFrame()<br>
</div>
<blockquote type="cite" cite=""><font face="Arial" size="-1" color="#0000FF">&nbsp;If you can point me at a example of this it would be great.</font></blockquote>
<div><br>
</div>
<div>There are several in the code.&nbsp; However, for a template of how to do this, see &quot;DeviceSource.cpp&quot;.</div>
<div><br>
</div>
<div>Also, for an example of code that reads from a capture devlce, converts it into a Transport Stream, collects Transport Stream packets into groups of 7, and then streams it via RTP, see the &quot;wis-streamer&quot; code - http://www.live555.com/wis-streamer/ - in
 particular, &quot;WISMPEG2TransportStreamServerMediaSubsession.cpp&quot;</div>
<x-sigsep>
<pre>-- 
</pre>
</x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
<br>
<hr>
<font face="Arial" color="Green" size="2">Please consider the environment before printing this e-mail.<br>
</font>
</body>
</html>