jhomlala / betterplayer

Better video player for Flutter, with multiple configuration options. Solving typical use cases!
Apache License 2.0
919 stars 981 forks source link

[BUG]Upgrade the flutter sdk to more than 3.0, better_ Player and flutter_ widget_ from_ HTML conflict, video cannot be played #1143

Open devyueyue opened 1 year ago

devyueyue commented 1 year ago

History check Please confirm that you've checked issues history and you didn't find anything which may solve your issue.

Describe the bug Upgrade the flutter sdk to more than 3.0, better Player and flutter widget from HTML conflict, video cannot be played

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

*Example code Paste here your minimal reproducible code. This code should be ready to copy-paste-run.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Flutter doctor [✓] Flutter (Channel stable, 3.3.3, on macOS 13.0.1 22A400 darwin-x64, locale zh-Hans-CN)

Better Player version

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

devyueyue commented 1 year ago

Only Android can't play, ios plays normally

roiskhoiron commented 1 year ago

Only Android can't play, ios plays normally

i've same issue : E/MethodChannel#better_player_channel(27223): java.lang.NullPointerException: MediaSource.Factory#setDrmSessionManagerProvider no longer handles null by instantiating a new DefaultDrmSessionManagerProvider. Explicitly construct and pass an instance in order to retain the old behavior.

HarGarX commented 1 year ago

facing the same issue here , any updates or fix suggestions

giroprotagonist commented 1 year ago

Same issue, conflict with videoplayer, fixed by removing video player. Found a fix here. https://github.com/jhomlala/betterplayer/pull/1085