Skip to content

Commit

Permalink
iijkplayer/IjkMediaPlayer.java: add getter for buf_backwards, buf_for…
Browse files Browse the repository at this point in the history
…ward, buf_capacity
  • Loading branch information
xinzhengzhang committed Sep 6, 2016
1 parent 871e825 commit e384fe5
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ public final class IjkMediaPlayer extends AbstractMediaPlayer {
public static final int FFP_PROP_INT64_AUDIO_CACHED_BYTES = 20008;
public static final int FFP_PROP_INT64_VIDEO_CACHED_PACKETS = 20009;
public static final int FFP_PROP_INT64_AUDIO_CACHED_PACKETS = 20010;
public static final int FFP_PROP_INT64_ASYNC_STATISTIC_BUF_BACKWARDS = 20201;
public static final int FFP_PROP_INT64_ASYNC_STATISTIC_BUF_FORWARDS = 20202;
public static final int FFP_PROP_INT64_ASYNC_STATISTIC_BUF_CAPACITY = 20203;
//----------------------------------------

@AccessedByNative
Expand Down Expand Up @@ -755,6 +758,18 @@ public long getAudioCachedPackets() {
return _getPropertyLong(FFP_PROP_INT64_AUDIO_CACHED_PACKETS, 0);
}

public long getAsyncStatisticBufBackwards() {
return _getPropertyLong(FFP_PROP_INT64_ASYNC_STATISTIC_BUF_BACKWARDS, 0);
}

public long getAsyncStatisticBufForwards() {
return _getPropertyLong(FFP_PROP_INT64_ASYNC_STATISTIC_BUF_FORWARDS, 0);
}

public long getAsyncStatisticBufCapacity() {
return _getPropertyLong(FFP_PROP_INT64_ASYNC_STATISTIC_BUF_CAPACITY, 0);
}

private native float _getPropertyFloat(int property, float defaultValue);
private native void _setPropertyFloat(int property, float value);
private native long _getPropertyLong(int property, long defaultValue);
Expand Down

0 comments on commit e384fe5

Please sign in to comment.