Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player.dispose() crashes or freezes my app #378

Open
MazenxELGayar opened this issue Aug 16, 2023 · 0 comments
Open

player.dispose() crashes or freezes my app #378

MazenxELGayar opened this issue Aug 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MazenxELGayar
Copy link

[000001c068bb8ec0] cache_read stream error: cannot pre fill buffer
[000001c068bba050] mjpeg demux error: cannot peek
[000001c068d9e450] main vout display error: Failed to set on top
[000001c068e08000] main vout display error: Failed to set on top
[000001c068be0c50] main decoder error: Timestamp conversion failed (delay 1000000, buffering 100000, bound 9000000)
[000001c068be0c50] main decoder error: Could not convert timestamp 25105193001 for FFmpeg
[000001c06a851250] cache_read stream error: cannot pre fill buffer
[000001c0623c89c0] mjpeg demux error: cannot peek
[000001c06a85ab60] main vout display error: Failed to set on top
[000001c06a85ab60] main vout display error: Failed to set on top
[000001c068dbe530] cache_read stream error: cannot pre fill buffer
[000001c06a84e300] mjpeg demux error: cannot peek
[000001c068da4e80] main vout display error: Failed to set on top
[000001c068da5e40] main vout display error: Failed to set on top
[000001c06a7edf20] cache_read stream error: cannot pre fill buffer
[000001c068cebf70] mjpeg demux error: cannot peek
[000001c068da30b0] main vout display error: Failed to set on top
[000001c068da2b70] main vout display error: Failed to set on top

i removed it from the code and used different player id for each player until i find a solution.

@OverRide
Future dispose() async {
player.dispose();
timer?.cancel();
_streamSubscription?.cancel();
super.dispose();
}

void playerPop() {
player.pause();
player.stop();
saveEpisode();
Wakelock.disable();
HomeTabBar.streamSubscription?.resume();
WindowsFunctions.pop(context);

}

static void pop(BuildContext context) {
if (Navigator.canPop(context)) {
  Navigator.pop(context);
} else {
  print('Cannot pop: navigation stack is empty');
}

}

@MazenxELGayar MazenxELGayar added the bug Something isn't working label Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant