Re: [Live-devel] Current playing file stats

2017-11-28 Thread Dex

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 
To: LIVE555 Streaming Media - development & use

Subject: Re: [Live-devel] Current playing file stats
Message-ID: 
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


Re: [Live-devel] Current playing file stats

2017-11-28 Thread Ross Finlayson
> Currently I am streaming without the use of MediaSession/MediaSubsession

Are you not using RTSP?  If you’re not using RTSP, then you won’t be able to 
use “getNormalPlayTime()”.

Instead, you can check each incoming frame’s ‘presentation time’, and compare 
this to the first ‘presentation time’ that you saw that was RTCP-synchronized.  
(See http://live555.com/liveMedia/faq.html#rtcp-synchronization-issue )


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

ps. When responding to a mailing list message (especially if it’s a ‘digest’), 
please remember to trim your response.


___
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel