-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add flutter like background playback example #72
Conversation
/// This example showcases how to achieve background playback with the | ||
/// Bitmovin Player using the `audio_session` package. | ||
/// https://pub.dev/packages/audio_session |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't have comments on other samples but I thought it would make sense to add it.
@@ -72,6 +75,15 @@ class Home extends StatelessWidget { | |||
}, | |||
child: const Text('Casting'), | |||
), | |||
Visibility( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it would make sense to hide this example on Android for now since it's not yet supported there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 💪 Manual testing looking good as well
Description
Changes
In #71 we introduced support for background playback on iOS. We did that by explicitly calling
AVAudioSession
inside of theAppDelegate.swift
. However, this was not really flutter like.This PR adds a new sample showcasing how this can be achieved per page from flutter without the need of touching the
AppDelegate.swift