youtube_player_flutter -- 在 Flutter 中寻找时,Youtube 视频不断开始

问题描述

每当我尝试在某个时间之前寻找视频时,播放器都会从头开始播放视频。一旦发生,搜索栏会显示视频总长度为 0。我附上了视频以供参考。

不确定如何重现该问题。

确切的行为应该是正确寻找的工作。

技术细节:

Device: Pixel 3A,emulator

我遵循了正确的例子。

这是我尝试重新加载视频时得到的堆栈跟踪 -

D/SurfaceUtils(15571): disconnecting from surface 0xe345c578,reason disconnectFromSurface W/cr_MediaCodecBridge(15571): Codec released D/SurfaceUtils(15571): disconnecting from surface 0xe3462a38,reason disconnectFromSurface I/chromium(15571): [INFO:CONSOLE(627)] "Unrecognized feature: 'clipboard-write'.",source: https://www.youtube.com/s/player/0d54190b/www-widgetapi.vflset/www-widgetapi.js (627) I/chromium(15571): [INFO:CONSOLE(627)] "Unrecognized feature: 'picture-in-picture'.",source: https://www.youtube.com/s/player/0d54190b/www-widgetapi.vflset/www-widgetapi.js (627) I/Flutter (15571): The controller is not ready for method calls. I/Flutter (15571): Player is ready. D/p.kanak_kitche(15571): PlayerBase::PlayerBase() D/p.kanak_kitche(15571): TrackPlayerBase::TrackPlayerBase() I/libOpenSLES(15571): Emulating old channel mask behavior (ignoring positional mask 0x3,using default mask 0x3 based on channel count of 2) I/cr_MediaCodecBridge(15571): create MediaCodec video decoder,mime video/x-vnd.on2.vp9 I/OMXClient(15571): IOmx service obtained I/MediaCodec(15571): MediaCodec will operate in async mode D/SurfaceUtils(15571): connecting to surface 0xe34771a8,reason connectToSurface I/MediaCodec(15571): [OMX.android.goldfish.vp9.decoder] setting surface generation to 15944710 D/SurfaceUtils(15571): disconnecting from surface 0xe34771a8,reason connectToSurface(reconnect) D/SurfaceUtils(15571): connecting to surface 0xe34771a8,reason connectToSurface(reconnect) E/ACodec (15571): [OMX.android.goldfish.vp9.decoder] setPortMode on output to DynamicANWBuffer Failed w/ err -1010 D/SurfaceUtils(15571): disconnecting from surface 0xe34771a8,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): connecting to surface 0xe34771a8,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): set up nativeWindow 0xe34771a8 for 854x480,color 0x13,rotation 0,usage 0x1002900 W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case D/NdkImageReader(15571): acquireImageLocked: Overriding buffer format YUV_420_888 to 0x13. W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case V/InputMethodManager(15571): b/117267690: Failed to get fallback IMM with expected displayId=126 actual IMM#displayId=0 view=io.Flutter.plugins.webviewFlutter.InputAwareWebView{1689cbe VFEDHVC.. ........ 0,0-1080,608} D/p.kanak_kitche(15571): PlayerBase::stop() from IPlayer D/AudioTrack(15571): stop(76): called with 358006 frames delivered W/cr_MediaCodecBridge(15571): Releasing: OMX.android.goldfish.vp9.decoder D/SurfaceUtils(15571): connecting to surface 0xe3468ef8,reason connectToSurface I/MediaCodec(15571): [OMX.android.goldfish.vp9.decoder] setting surface generation to 15944711 D/SurfaceUtils(15571): disconnecting from surface 0xe3468ef8,reason connectToSurface(reconnect) D/SurfaceUtils(15571): connecting to surface 0xe3468ef8,reason connectToSurface(reconnect) D/SurfaceUtils(15571): disconnecting from surface 0xe3468ef8,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): connecting to surface 0xe3468ef8,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): set up nativeWindow 0xe3468ef8 for 854x480,usage 0x1002900 D/SurfaceUtils(15571): disconnecting from surface 0xe34771a8,reason disconnectFromSurface W/cr_MediaCodecBridge(15571): Codec released D/SurfaceUtils(15571): disconnecting from surface 0xe3468ef8,source: https://www.youtube.com/s/player/0d54190b/www-widgetapi.vflset/www-widgetapi.js (627) I/Flutter (15571): Player is ready. I/cr_MediaCodecBridge(15571): create MediaCodec video decoder,mime video/x-vnd.on2.vp9 I/OMXClient(15571): IOmx service obtained I/MediaCodec(15571): MediaCodec will operate in async mode D/SurfaceUtils(15571): connecting to surface 0xe347bd38,reason connectToSurface I/MediaCodec(15571): [OMX.android.goldfish.vp9.decoder] setting surface generation to 15944712 D/SurfaceUtils(15571): disconnecting from surface 0xe347bd38,reason connectToSurface(reconnect) D/SurfaceUtils(15571): connecting to surface 0xe347bd38,reason connectToSurface(reconnect) E/ACodec (15571): [OMX.android.goldfish.vp9.decoder] setPortMode on output to DynamicANWBuffer Failed w/ err -1010 D/SurfaceUtils(15571): disconnecting from surface 0xe347bd38,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): connecting to surface 0xe347bd38,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): set up nativeWindow 0xe347bd38 for 854x480,usage 0x1002900 W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case D/NdkImageReader(15571): acquireImageLocked: Overriding buffer format YUV_420_888 to 0x13. W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case W/AudioManager(15571): Use of stream types is deprecated for operations other than volume control W/AudioManager(15571): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case D/p.kanak_kitche(15571): PlayerBase::stop() from IPlayer D/AudioTrack(15571): stop(76): called with 1284343 frames delivered W/cr_MediaCodecBridge(15571): Releasing: OMX.android.goldfish.vp9.decoder D/SurfaceUtils(15571): connecting to surface 0xe3461108,reason connectToSurface I/MediaCodec(15571): [OMX.android.goldfish.vp9.decoder] setting surface generation to 15944713 D/SurfaceUtils(15571): disconnecting from surface 0xe3461108,reason connectToSurface(reconnect) D/SurfaceUtils(15571): connecting to surface 0xe3461108,reason connectToSurface(reconnect) D/SurfaceUtils(15571): disconnecting from surface 0xe3461108,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): connecting to surface 0xe3461108,reason setNativeWindowSizeformatandUsage D/SurfaceUtils(15571): set up nativeWindow 0xe3461108 for 854x480,usage 0x1002900 D/SurfaceUtils(15571): disconnecting from surface 0xe347bd38,reason disconnectFromSurface W/cr_MediaCodecBridge(15571): Codec released D/SurfaceUtils(15571): disconnecting from surface 0xe3461108,reason disconnectFromSurface

https://github.com/sarbagyastha/youtube_player_flutter/issues/446 -- 请检查此问题一次以查看我创建的视频以便更好地参考,因为堆栈溢出不允许我们添加视频

如果需要任何其他详细信息,请告诉我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...