Playback stops after changing several tracks (data sources) in HybridMediaPlayerFactory only..
See original GitHub issueHello h6ah4i first of all amazing mediaplayer library, I just found one glitch while using HybridMediaPlayerFactory when my app changes tracks, after 10-15 changes it suddenly stops playback with no error or warning in logcat too 😦 This is my code for changing tracks:
GlobalApp.mediaPlayer.reset();
GlobalApp.mediaPlayer.setDataSource(context, Uri.parse("file://mysong"));
GlobalApp.mediaPlayer.setOnPreparedListener(new IBasicMediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(IBasicMediaPlayer mp) {
GlobalApp.mediaPlayer.start();
}});
GlobalApp.mediaPlayer.prepareAsync();
Above code working fine in case of OpenSLMediaPlayerFactory… Please Suggest if I am doing something wrong…!!
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Playback User Guide | MultiTracks.com Help Center
What can you change in the Tracks/Buses mixer while in Setlist edit? Track Output (Pro feature): While in Setlist Edit, Tap the Track...
Read more >Playback stops on mobile devices. Progress bar stays at 0:00.
After a few songs are played from either an album or a playlist, playback stops on next track change. Timer remains to 0:00...
Read more >Playback stops on Beatport Link, requires restart - Media Players
I have an issue on a single SC5000 where randomly it will stop playing Beatport Link tracks (and then anything after that).
Read more >Session 3: Practical issues. 3.1 Data sources - YouTube
Session 3: Practical issues. 3.1 Data sources. Watch later. Share. Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin ...
Read more >Apple music on iMac stops playing after each song
I have Catalina 10.15.7 installed on my iMac. All my music consists of legally purchased CDs that I imported into iTunes. Playback always ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
UPDATE I’ve just reproduced the bug on my Nexus 5X!
Also, I tweaked the sample app to automate the testing
@h6ah4i Hiii I have created sample project for you on github. Take a look here https://github.com/hunnydarapstar/sample-openslmediaplayer-buggy To reproduce the bug, you have to carefully change 20-25 tracks (make sure you are testing on device having more than 30 tracks), after sometime while you forward a track, playback will stop and you can start your investigation. If you need any help regarding reproducing the bug, Feel free to ask. Thanks 😃