0

每当我尝试提前某个时间寻找视频时,播放器都会从头开始播放视频。一旦发生,搜索栏将视频总长度显示为 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, color 0x13, rotation 0, usage 0x1002900 D/SurfaceUtils(15571): disconnecting from surface 0xe34771a8, reason disconnectFromSurface W/cr_MediaCodecBridge(15571): Codec released D/SurfaceUtils(15571): disconnecting from surface 0xe3468ef8, 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): 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, 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 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, color 0x13, rotation 0, 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 - 请检查此问题一次以查看我创建的视频以便更好地参考,因为堆栈溢出不允许我们添加视频。

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

4

0 回答 0