Skip to content

Commit

Permalink
ijkplayer-java: ijkio support getFileSize
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond1012 committed Sep 8, 2017
1 parent 0598370 commit e74cb3a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public final class IjkMediaPlayer extends AbstractMediaPlayer {
public static final int FFP_PROP_INT64_CACHE_STATISTIC_FILE_FORWARDS = 20206;
public static final int FFP_PROP_INT64_CACHE_STATISTIC_FILE_POS = 20207;
public static final int FFP_PROP_INT64_CACHE_STATISTIC_COUNT_BYTES = 20208;
public static final int FFP_PROP_INT64_LOGICAL_FILE_SIZE = 20209;
public static final int FFP_PROP_INT64_BIT_RATE = 20100;
public static final int FFP_PROP_INT64_TCP_SPEED = 20200;
public static final int FFP_PROP_INT64_LATEST_SEEK_LOAD_DURATION = 20300;
Expand Down Expand Up @@ -825,6 +826,10 @@ public long getCacheStatisticCountBytes() {
return _getPropertyLong(FFP_PROP_INT64_CACHE_STATISTIC_COUNT_BYTES, 0);
}

public long getFileSize() {
return _getPropertyLong(FFP_PROP_INT64_LOGICAL_FILE_SIZE, 0);
}

public long getBitRate() {
return _getPropertyLong(FFP_PROP_INT64_BIT_RATE, 0);
}
Expand Down

0 comments on commit e74cb3a

Please sign in to comment.