diff options
Diffstat (limited to 'pjmedia')
-rw-r--r-- | pjmedia/include/pjmedia/stream.h | 10 | ||||
-rw-r--r-- | pjmedia/src/pjmedia/stream.c | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pjmedia/include/pjmedia/stream.h b/pjmedia/include/pjmedia/stream.h index c3454ac1..d260f11b 100644 --- a/pjmedia/include/pjmedia/stream.h +++ b/pjmedia/include/pjmedia/stream.h @@ -184,6 +184,16 @@ PJ_DECL(pj_status_t) pjmedia_stream_destroy(pjmedia_stream *stream); /** + * Get the last frame type retreived from the jitter buffer. + * + * @param stream The media stream. + * + * @return Jitter buffer frame type. + */ +PJ_DEF(char) pjmedia_stream_get_last_jb_frame_type(pjmedia_stream *stream); + + +/** * Get the media port interface of the stream. The media port interface * declares put_frame() and get_frame() function, which is the only * way for application to transmit and receive media frames from the diff --git a/pjmedia/src/pjmedia/stream.c b/pjmedia/src/pjmedia/stream.c index 7f9e56b3..5e612e6e 100644 --- a/pjmedia/src/pjmedia/stream.c +++ b/pjmedia/src/pjmedia/stream.c @@ -2459,6 +2459,14 @@ PJ_DEF(pj_status_t) pjmedia_stream_destroy( pjmedia_stream *stream ) } +/* + * Get the last frame frame type retreived from the jitter buffer. + */ +PJ_DEF(char) pjmedia_stream_get_last_jb_frame_type(pjmedia_stream *stream) +{ + return stream->jb_last_frm; +} + /* * Get the port interface. |