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
When I am playing one video from YouTube and minimising the app Picture in Picture mode is destroying immediately and background audio is getting paused.
Expected Behavior
When we minimise the app PIP mode should not destroy
Steps with code example to reproduce
ScreenRecording_10-29-2024.20-38-46_1.mov
[
](url)
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: InAppWebView(
key: webViewKey,
initialUrlRequest: URLRequest(url: WebUri('https://youtube.com/')),
initialSettings: InAppWebViewSettings(
allowsPictureInPictureMediaPlayback: true,
allowBackgroundAudioPlaying: true),
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
),
// This trailing comma makes auto-formatting nicer for build methods.
);
}
Stacktrace/Logs
Getting the below error in Xcode as soon as I am minimising from the app.
-[AVPlayerViewController exitFullScreenAnimated:completionHandler:] failed with error Invalid call of -[AVPlayerViewController (0x1594c3000) _transitionFromFullScreenAnimated:interactive:completionHandler:]!
Flutter version
Flutter (Channel main, 3.27.0-1.0.pre.278, on macOS 15.0
Operating System, Device-specific and/or Tool
iOS 17+
Plugin version
v6.1.5
Additional information
No response
Self grab
I'm ready to work on this issue!
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
When I am playing one video from YouTube and minimising the app Picture in Picture mode is destroying immediately and background audio is getting paused.
Expected Behavior
When we minimise the app PIP mode should not destroy
Steps with code example to reproduce
ScreenRecording_10-29-2024.20-38-46_1.mov
[
](url)
@OverRide
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
// TRY THIS: Try changing the color here to a specific color (to
// Colors.amber, perhaps?) and trigger a hot reload to see the AppBar
// change color while the other colors stay the same.
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
// Here we take the value from the MyHomePage object that was created by
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: InAppWebView(
key: webViewKey,
initialUrlRequest: URLRequest(url: WebUri('https://youtube.com/')),
initialSettings: InAppWebViewSettings(
allowsPictureInPictureMediaPlayback: true,
allowBackgroundAudioPlaying: true),
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
),
// This trailing comma makes auto-formatting nicer for build methods.
);
}
Stacktrace/Logs
Getting the below error in Xcode as soon as I am minimising from the app.
-[AVPlayerViewController exitFullScreenAnimated:completionHandler:] failed with error Invalid call of -[AVPlayerViewController (0x1594c3000) _transitionFromFullScreenAnimated:interactive:completionHandler:]!
Flutter version
Flutter (Channel main, 3.27.0-1.0.pre.278, on macOS 15.0
Operating System, Device-specific and/or Tool
iOS 17+
Plugin version
v6.1.5
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: