alexmercerind / dart_vlc

Flutter bindings to libVLC.
GNU Lesser General Public License v2.1
513 stars 137 forks source link

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

Open MazenxELGayar opened 1 year ago

MazenxELGayar commented 1 year ago

[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');
}

}