querying duration of media in bytes

Sebastian Dröge sebastian at centricular.com
Mon Feb 15 22:27:29 UTC 2016


On Mo, 2016-02-15 at 04:18 -0800, vaibhav at wowvision.in wrote:
> I am querying media duration in bytes format but it giving 0.
> I am querying on media file coming on tcp socket.
> Is it that i cannot query in bytes on media stream coming on tcp?

That's correct, you can't query a TCP socket for the size of the data
on the sender side. If you need such functionality, you'll have to
implement an actual protocol on top of TCP for that. HTTP for example
allows to do that.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160216/e6bee909/attachment-0001.sig>


More information about the gstreamer-devel mailing list