Skip to content

Commit

Permalink
开启追帧,增加最大缓冲大小1024kb
Browse files Browse the repository at this point in the history
Change-Id: I292a7b89b4af0927d3f82e5e385062b9d28b4900
  • Loading branch information
SundoggyNew committed Apr 29, 2022
1 parent c737fd9 commit 29a43bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ class VideoPreviewActivity : VideoBaseActivity(), EventView, TextureView.Surface

it.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "analyzemaxduration", 100)
it.setOption(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "probesize", 25 * 1024)
// it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "packet-buffering", 0)
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "packet-buffering", 0)
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "max-buffer-size",1024); //最大缓冲大小,单位kb
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "start-on-prepared", 1)
it.setOption(IjkMediaPlayer.OPT_CATEGORY_CODEC, "threads", 1)
it.setOption(IjkMediaPlayer.OPT_CATEGORY_PLAYER, "sync-av-start", 0)
Expand Down

0 comments on commit 29a43bf

Please sign in to comment.