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
stops playing in android when screen gets locked #82
Comments
i have the same problem |
Have you tried using the background mode plugin? |
@alexhackney It doesn't work even with the import { StreamingMedia, StreamingAudioOptions } from '@ionic-native/streaming-media';
import { BackgroundMode } from '@ionic-native/background-mode';
[...]
let options: StreamingAudioOptions = {
bgColor: '#008A99',
bgImage: image,
successCallback: () => { this.background.disable(); }
};
this.background.enable();
this.streamingMedia.playAudio(
`${ EnvironmentProvider.PODCAST_AUDIO_ENDPOINT }${ id }/audio`,
options
); |
Works here. |
@alexhackney Welp. Really doesn't work. I resorted to using HTML5 |
i have the same problem , playVideo is ok but playAudio has this problem and playback stopped on screen lock |
I can probably provide a PR in the future if necessary |
stops playing in android when screen gets locked
The text was updated successfully, but these errors were encountered: