[Live-devel] Current playing file stats

Dex dex at konseptz.com
Tue Nov 28 15:05:53 PST 2017


Thanks Ross,

Currently I am streaming without the use of 
MediaSession/MediaSubsession, check the below pseudo-code for how I am 
streaming the files:

Groupsock rtpGroupsock
Groupsock rtcpGroupsock
SimpleRTPSink *videoSink =  SimpleRTPSink::createNew
RTCPInstance* rtcp = RTCPInstance::createNew
ByteStreamFileSource* fileSource
videoSource = MPEG2TransportStreamFramer::createNew
videoSink->startPlaying

So my question would be where would I fit the MediaSubsession in the 
above context?

Thanks,
On 28/11/2017 2:00 PM, live-devel-request at ns.live555.com wrote:
> Send live-devel mailing list submissions to
> 	live-devel at lists.live555.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.live555.com/mailman/listinfo/live-devel
> or, via email, send a message with subject or body 'help' to
> 	live-devel-request at lists.live555.com
>
> You can reach the person managing the list at
> 	live-devel-owner at lists.live555.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of live-devel digest..."
>
>
> Today's Topics:
>
>     1. Re: Current playing file stats (Ross Finlayson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 28 Nov 2017 14:43:01 +1300
> From: Ross Finlayson <finlayson at live555.com>
> To: LIVE555 Streaming Media - development & use
> 	<live-devel at ns.live555.com>
> Subject: Re: [Live-devel] Current playing file stats
> Message-ID: <A4BBA934-7C91-4279-AF15-722A9F2D5D3C at live555.com>
> Content-Type: text/plain;	charset=utf-8
>
>> I am currently developing a GUI application that uses live555 for RTP streaming. The integration works perfectly so far and I am able to play media files correctly, however, I have a particular question about the current file being played status/statistics.
>>
>> In the front-end of the application, I display the currently playing file name & info in a widget with a progress bar, I want to reflect the current play status on that progress bar. So for example if I could get/retrieve the last read byte index, or the elapsed  time relative to the currently playing file, or anything else that helps in the said regard, then I could use this information to update the GUI accordingly.
>>
>> Any help to achieve the above would be much appreciated.
> Yes, we have a function
> 	MediaSubsession::getNormalPlayTime()
> that returns the ?current playing time? for the stream.  (It should work even if you seek within the stream, and/or use fast-forward/reverse-play.)
>
> For an example, note the code at line 514 of ?testProgs/testRTSPClient.cpp? (enabled if ?DEBUG_PRINT_NPT? is defined).
>
>
> Ross Finlayson
> Live Networks, Inc.
> http://www.live555.com/
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
>
> ------------------------------
>
> End of live-devel Digest, Vol 168, Issue 6
> ******************************************



More information about the live-devel mailing list