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-requ...@ns.live555.com wrote:
Send live-devel mailing list submissions to
live-devel@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-requ...@lists.live555.com
You can reach the person managing the list at
live-devel-ow...@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 <finlay...@live555.com>
To: LIVE555 Streaming Media - development & use
<live-de...@ns.live555.com>
Subject: Re: [Live-devel] Current playing file stats
Message-ID: <a4bba934-7c91-4279-af15-722a9f2d5...@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@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
------------------------------
End of live-devel Digest, Vol 168, Issue 6
******************************************
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel