ExoPlayer不显示视频警告消息

时间:2015-05-12 08:55:06

标签: android exoplayer

我尝试在Android 4.2.2和内核版本3.0.50的测试设备上运行ExoPlayer演示应用程序。视频没有显示,但进度条正在移动。在logcat中我总是有相同的消息,直到取消视频:

String decimalToFractional(double d) async {
  var df = 1.0;
  var top = 1;
  var bot = 1;

  var future = new Future<String>(() {
    while (df != d) {
      if (df < d) {
        top += 1;
      } else {
        bot += 1;
        top = (d * bot).toInt();
      }
      df = top / bot;
    }
    return new Future.value('$top/$bot');
  });
  future.timeout(new Duration(seconds: 2), onTimeout: () => new Future.value(d.toString()));
  return await future;
}

有人有类似的问题和消息吗?也许不是ExoPlayer。

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。 设备使用了我需要的其他默认编解码器。在MediaCodec.java函数中,getMediaCodecInfoInternal过滤所有可用的编解码器&#34; OMX。&#34; prefics。但我需要OMX.google。过滤选择软件解码器。