ryanheise
ryanheise
Hmm, I don't seem to be able to reproduce the issue. One thing I noticed is that you're triggering an update more times than is necessary by continuously publishing a...
My example definitely doesn't do that with updatePosition, although it does update bufferedPosition more often than I'd like. The example pretty much just reflects the behaviour of just_audio which treats...
The video player plugin has an unfortunate design where it continuously broadcasts state changes whenever the position changes. Will, not exactly continuously but at 500ms intervals. But the media notification...
Apologies that my latest commit introduced a conflict in `pubspec.yaml`. But other than that, would you be able to uncomment your example, and comment out whatever conflicts with your example?...
FYI I have changed the base of this PR to the `master` branch.
Trying the latest commit, I get this stack trace: ``` PlatformException(IllegalStateException, java.lang.IllegalStateException: Unsupported type: 4, null, null) E/flutter (24394): #0 VideoPlayerApi.create (package:video_player_platform_interface/messages.dart:203:7) E/flutter (24394): E/flutter (24394): #1 MethodChannelVideoPlayer.create (package:video_player_platform_interface/method_channel_video_player.dart:50:31) E/flutter...
It was actually the conflicting ExoPlayer in just_audio. Can you comment out the just_audio dependency which as you pointed out conflicts with video_player's linked ExoPlayer?
Also, I think it would be appropriate to stick these `await`s in here: ```dart await _controller?.setLooping(true); await _controller?.initialize(); _controller?.addListener(_broadcastState); await _controller?.play(); ```
The play/pause button in the notification seems to be working correctly. Incidentally, an old version of the Android code in just_audio used to do a similar detection of time discontinuities...
Regarding making audio_service do this, that has been suggested before although audio_service reflects the underlying native APIs and that is how they work. At the native level these APIs were...