Skip to content

Commit

Permalink
Player.state update internally
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Jul 30, 2024
1 parent ca53d2a commit 5985e1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ class Player {
Libfvp.registerPort(nativeHandle, NativeApi.postCObject.cast(),
_receivePort.sendPort.nativePort);

onStateChanged((oldValue, newValue) {
_state = newValue;
});
onMediaStatus((oldValue, newValue) {
if (_videoSize.isCompleted) {
return true;
Expand Down

0 comments on commit 5985e1b

Please sign in to comment.