solid-software / flutter_vlc_player

📺 Flutter VLC powered video player.
507 stars 247 forks source link

无法播放,报这个错误!! #77

Open songguowei opened 4 years ago

songguowei commented 4 years ago

Performing hot restart... -W/libEGL (12377): EGLNativeWindowType 0x7c493816d0 disconnect failed Restarted application in 1,297ms. I/DecorView: old windowMode:0 new windoMode:1 D/OpenGLRenderer(12377): disableOutlineDraw is true I/HiTouch_HiTouchSensor(12377): HiTouch restricted: Sub windows restricted. D/HiTouch_PressGestureDetector(12377): onAttached, package=software.solid.fluttervlcplayerexample, windowType=2030, mHiTouchRestricted=true D/mali_winsys(12377): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000

Autokaka commented 4 years ago

请问是不是在hot restart或者hot reload的时候出现了白屏现象? 这个问题仅在android端出现, 部分时候确实会出现Surface重连失败的问题, 目前为止暂时没有好的解决方案, 你的issue暂时无法得到解决. vlc-android在hot restart的时候, android侧的VideoView会被完全重新生成(create), 这直接导致了整个播放器需要重新和Surface绑定才能继续播放视频: image 暂时不清楚这个问题是否是libvlc造成的, 我尝试用exoplayer做了个类似的视频播放器, 没有出现这个问题, 如果你只是需要在android一个平台上跑, 可以去试试我那个.