cbanks Active Member Licensed User Longtime User Oct 15, 2013 #1 What is the code to resume MediaPlayerStream audio? I don't mean just the stop and play, but a way to save where the user was and when they run the app to resume where they left off. Thanks.
What is the code to resume MediaPlayerStream audio? I don't mean just the stop and play, but a way to save where the user was and when they run the app to resume where they left off. Thanks.
JakeBullet70 Well-Known Member Licensed User Longtime User Oct 15, 2013 #2 This is the code I use. Code: Copy Private Sub btnPlayPause_Click If mp.IsPlaying Then mp.Pause btnPlayPause.Text = "paused" ShowStatus("Paused") Else mp.Play btnPlayPause.Text = "playing" End If End Sub Upvote 0
This is the code I use. Code: Copy Private Sub btnPlayPause_Click If mp.IsPlaying Then mp.Pause btnPlayPause.Text = "paused" ShowStatus("Paused") Else mp.Play btnPlayPause.Text = "playing" End If End Sub
cbanks Active Member Licensed User Longtime User Oct 15, 2013 #3 But that doesn't resume if you exit the app inbetween pausing and playing again. Upvote 0
JakeBullet70 Well-Known Member Licensed User Longtime User Oct 16, 2013 #4 Probably because MediaPlayerStream get destroyed when you exit the app so it does not remember where it was at. Upvote 0
Probably because MediaPlayerStream get destroyed when you exit the app so it does not remember where it was at.
Erel B4X founder Staff member Licensed User Longtime User Oct 16, 2013 #5 How do you exit the app? You can save MP.Position value to a file and then load it when the activity is created for the first time. Upvote 0
How do you exit the app? You can save MP.Position value to a file and then load it when the activity is created for the first time.
cbanks Active Member Licensed User Longtime User Oct 16, 2013 #6 Position isn't an option for me with MediaPlayerStream. Upvote 0
cbanks Active Member Licensed User Longtime User Oct 17, 2013 #7 Position doesn't seem to be an option for MediaPlayerStream. Is there a way to save where you left off and resume there next time you start the app when streaming audio? Upvote 0
Position doesn't seem to be an option for MediaPlayerStream. Is there a way to save where you left off and resume there next time you start the app when streaming audio?
Erel B4X founder Staff member Licensed User Longtime User Oct 18, 2013 #8 This is technically impossible. The stream is "live". You cannot pause and later return to a previous point. Ignore my previous answer as I was writing about MediaPlayer, not MediaPlayerStream. Upvote 0
This is technically impossible. The stream is "live". You cannot pause and later return to a previous point. Ignore my previous answer as I was writing about MediaPlayer, not MediaPlayerStream.