betterplayer
betterplayer copied to clipboard
Feature Android SurfaceView
Features: replace Android SurfaceTextureEntry to SurfaceView
Profit
- video not skipped frames on AndroidTV
- best for Android WideVine
Block problem
- [ ] https://github.com/flutter/flutter/issues/104797#issuecomment-1166486203
Hi @FlutterSu! I'm tryin to test your feature but i'm getting the following error when running the example app
PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, , null)
Any hints? I need to do something else to get this working?
Hi @FlutterSu! I'm tryin to test your feature but i'm getting the following error when running the example app
PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, , null)
Any hints? I need to do something else to get this working?
Hi! Nothing is needed.
Are you running the better_player example?
Can you provide more detail?
the error occurs in the DRM page from the better_player example, but in my app with my own drm implementation is running fine. Thanks for the work.
Hi! I get a issue when release mode
Platform view hasn't been initialized from the platform view channel.
Hello @FlutterSu would you be able to look at this feature request? https://github.com/jhomlala/betterplayer/issues/1066 I was just wondering if it would possible to render the SubtitleView alongside the Surface renderer, or something similar. Thanks!
Unfortunately, this feature somehow breaks the return from fullscreen: the screen goes black.
Hello @FlutterSu would you be able to look at this feature request? #1066 I was just wondering if it would possible to render the SubtitleView alongside the Surface renderer, or something similar. Thanks!
SurfaceView is strictly a consumer and Surface is strictly a producer.
SurfaceView's Surface is the producing side of a producer/consumer pair, with the consumer side being the display. You can't use SurfaceView as the source of a stream as a result, so the entire concept of connecting a SurfaceView to a video encoder doesn't work. Both of those consume frames and neither of them produce frames.
Read more : https://source.android.com/docs/core/graphics/architecture