Skip to content

Commit

Permalink
iOS/IJKFFMoviePlayerController: support getFileSize when use ijkio
Browse files Browse the repository at this point in the history
  • Loading branch information
raymond1012 committed Sep 8, 2017
1 parent 1f253dc commit ae38281
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,13 @@ - (float)playbackVolume
return ijkmp_get_property_float(_mediaPlayer, FFP_PROP_FLOAT_PLAYBACK_VOLUME, 1.0f);
}

- (int64_t)getFileSize
{
if (!_mediaPlayer)
return 0;
return ijkmp_get_property_int64(_mediaPlayer, FFP_PROP_INT64_LOGICAL_FILE_SIZE, 0);
}

- (int64_t)trafficStatistic
{
if (!_mediaPlayer)
Expand Down

0 comments on commit ae38281

Please sign in to comment.