<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel]
ByteStreamFileSource</title></head><body>
<blockquote type="cite" cite><tt><font size="-1">As an application
programmer, when would I want to specify playTimePerFrame to
ByteStreamFileSource?</font></tt></blockquote>
<div><br></div>
<div>When you are streaming directly from a file, by reading/streaming
one fixed-size chunk of data at a time. This happens for many
simple audio codecs (although not for more complex audio codecs like
AAC or MP3, because their frames are typically variable-sized).
Because you're streaming directly from the file - without any separate
intermediate 'framer' object - you need to tell the downstream
"RTPSink" object the duration and presentation time of each
(fixed-size) chunk of data that you're delivering. Therefore, in
this case, you need to tell the "ByteStreamFileSource" the
duration of each chunk ('frame').</div>
<div><br></div>
<div>If, however, you are using a separate 'framer' object to parse
the file data, then you should not specify
"playTimePerFrame". Instead, it will be up to the
'framer' object to specify the duration and presentation time of each
parsed frame.</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>