「已注销」 2021-05-28 09:47 采纳率: 0%
浏览 451

exoplayer播放直播时缓存时间过长

用exoplayer进行直播hls时候,每次都要等待10来秒才能开始直播,而退出后重进基本就能立刻开始直播了。想知道如何改进。代码上就是下面这样实现的,

开始缓存时,只有这个说明:I/ExoPlayerImpl: Init b34881b [ExoPlayerLib/2.14.0] [generic_x86_arm, sdk_gphone_x86, Google, 30]

开始直播后:

I/OMXClient: IOmx service obtained
D/SurfaceUtils: connecting to surface 0xef34b068, reason connectToSurface
I/MediaCodec: [OMX.android.goldfish.h264.decoder] setting surface generation to 12218378
D/SurfaceUtils: disconnecting from surface 0xef34b068, reason connectToSurface(reconnect)
D/SurfaceUtils: connecting to surface 0xef34b068, reason connectToSurface(reconnect)
E/ACodec: [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
I/ACodec: codec does not support config priority (err -1010)
D/SurfaceUtils: disconnecting from surface 0xef34b068, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils: connecting to surface 0xef34b068, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils: set up nativeWindow 0xef34b068 for 1280x720, color 0x13, rotation 0, usage 0x1002900
W/ACodec: [OMX.android.goldfish.h264.decoder] BAD CODEC: Output format changed unexpectedly from (diff) AMessage(what = 0x00000000) = {
          int32_t color-range = 2
          int32_t android._dataspace = 260
        } to (diff) AMessage(what = 0x00000000) = {
          int32_t color-range = 1
          int32_t android._dataspace = 146866176
        }

 

  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2022-09-07 19:04
    关注
    不知道你这个问题是否已经解决, 如果还没有解决的话:

    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^
    评论

报告相同问题?

悬赏问题

  • ¥15 请各位帮我看看是哪里出了问题
  • ¥15 vs2019的js智能提示
  • ¥15 关于#开发语言#的问题:FDTD建模问题图中代码没有报错,但是模型却变透明了
  • ¥15 uniapp的h5项目写一个抽奖动画
  • ¥15 hadoop中启动hive报错如下怎么解决
  • ¥15 如何优化QWebEngineView 加载url的速度
  • ¥15 关于#hadoop#的问题,请各位专家解答!
  • ¥15 如何批量抓取网站信息
  • ¥15 Spring Boot离线人脸识别
  • ¥15 使用Ant Design Pro vue的时候,使用环境变量的时候,构建报错是什么原因