betterplayer icon indicating copy to clipboard operation
betterplayer copied to clipboard

Feature Android SurfaceView

Open FlutterSu opened this issue 2 years ago • 7 comments

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

FlutterSu avatar Jun 28 '22 12:06 FlutterSu

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?

andreyneto avatar Jul 01 '22 16:07 andreyneto

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?

FlutterSu avatar Jul 01 '22 17:07 FlutterSu

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.

andreyneto avatar Jul 03 '22 18:07 andreyneto

Hi! I get a issue when release mode

Platform view hasn't been initialized from the platform view channel.

artem-2024 avatar Jul 27 '22 09:07 artem-2024

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!

mis-kcn avatar Aug 08 '22 15:08 mis-kcn

Unfortunately, this feature somehow breaks the return from fullscreen: the screen goes black.

rounce avatar Jan 24 '23 06:01 rounce

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

TDUser91 avatar Nov 08 '23 10:11 TDUser91