question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Playback stops after changing several tracks (data sources) in HybridMediaPlayerFactory only..

See original GitHub issue

Hello 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:closed
  • Created 7 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
h6ah4icommented, Jan 29, 2017

UPDATE I’ve just reproduced the bug on my Nexus 5X!

Also, I tweaked the sample app to automate the testing

1reaction
hunnydarapstarcommented, Jan 28, 2017

@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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found