Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void invokePlay( Boolean loop )
- {
- Boolean playing = ( mp.isLooping() || mp.isPlaying() );
- if ( playing )
- {
- mp.pause();
- mp.setLooping(loop);
- mp.seekTo(0);
- mp.start();
- }
- if ( !playing && state == PREPARED )
- {
- state = PENDING_LOOP;
- onPrepared( mp );
- }
- else if ( !playing )
- {
- state = PENDING_LOOP;
- mp.setLooping(loop);
- mp.start();
- }
- }
Add Comment
Please, Sign In to add comment