Wowza Community

rtpSession

Hello!

Is it quite possible to get the last video keyframe from RTPSession (not tranconding, yes inbound stream)? Like IMediaStream.getLastKeyFrame()?

Regards,

Hi,

If it is an inbound stream, so being published and you know the name you can use the Java API. Assuming the name of the stream is myStream

IMediaStream streamSource = appInstance.getStreams().getStream("myStream");
streamSource.getLastKeyFrame()

You can use the getLastKeyFrame on the stream, regardless of the inbound type.

Andrew.