You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The platform view is hosted successfully (Hosting view in view hierarchy for platform view: 2).
VLC library detects the video format (libvlc demux: Changing stream format Unknown -> TS).
Audio information is extracted (libvlc packetizer: AAC channels: 2 samplerate: 48000).
when dispose of thread block and application UI stop/freeze to use. if multiple requests for use, the app isn't responding, and a message showing. But mp4 URL no issue faced
The text was updated successfully, but these errors were encountered:
istiaksaif
changed the title
Thread block(app isn't responding) after dispose the player screen. case initialize m3u8 url on that occasion
ANR (Application Not Responding) blocking operations on the main thread
Oct 10, 2024
url is m3u8 type
Initialisation:
The platform view is hosted successfully (Hosting view in view hierarchy for platform view: 2).
VLC library detects the video format (libvlc demux: Changing stream format Unknown -> TS).
Audio information is extracted (libvlc packetizer: AAC channels: 2 samplerate: 48000).
when dispose of thread block and application UI stop/freeze to use. if multiple requests for use, the app isn't responding, and a message showing. But mp4 URL no issue faced
@OverRide
void initState() {
super.initState();
log('------------------- ${widget.link}');
_videoPlayerController = VlcPlayerController.network(
widget.link,
hwAcc: HwAcc.full,
autoPlay: true,
options: VlcPlayerOptions(),
);
}
@OverRide
void dispose() {
super.dispose();
WidgetsBinding.instance.addPostFrameCallback((_) async {
await _videoPlayerController.stop();
await _disposeAsync();
});
}
Future _disposeAsync() async {
try {
if (_videoPlayerController.value.isInitialized) {
await _videoPlayerController.stopRendererScanning();
await _videoPlayerController.dispose();
}
} catch (e) {
// Handle errors
}
}
The text was updated successfully, but these errors were encountered: