rite so basically as you may well know,
i'm building a radio station app. but wanted
our stream music to show up in phones notifications
just like a normal mediaplayer app would.
example when you have a media player with music inside on you're phone
you'll expect to see whats playing in notification so gina g just a little bit
so i'm testing and playing around with the example app
looks brilliant must i say BUT it's showing me an error 2801: Percent Values
should be between 0 and 100
my app keeps crashing everytime i press play on my play/pause button
a pop-up keeps telling me mit app inventor not responding
close app or wait
i'v debugged but can't find any blocks that could be causing the issue
as when you hit play/pause on any normal media player the button instantly works
but mine you press the play button then pause. it keeps freezing
in the phones notifications you can press play/pause instantly
but the play/pause button in app nope not like the notification bar
event-driven. You have to consider when which events are triggered and what should happen there.
In the current version of your code, you start the mediaplayer twice. It doesn't like that! I deactivated the second MediaPlayer.start and it works.
One more tip. If you work with several objects and it doesn't work, then you should deactivate all of them one after the other or activate only one so that you can find the cause.
No, not as expected. I disabled the first (MediaNotif.Play as shown in my screenshot) and it works as expected. In addition, the audio source should not be reassigned every time it plays/pauses. It has already been assigned in the Screen.Initialize event.