Replies: 1 comment
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My question: How can I correctly instantiate a MediaSource instance and/or the MediaElement using code behind so that I can:
I'm planning to hide the control as I just want to be able to selectively play short sound "effects" without a player control visible. But first....
WelcomeVoicePlayer is a named MediaElement in the PageContent xaml. I'm trying to use that element to play a sound that I set at runtime and/or change at runtime in the ContentPage code.
Approach that's not working:
Happy to reinstantiate the control if needed for each new source, but still need to able to set Source from code.
Any clues appreciated.
Dave G
P.S. Big thanks to all those that brought the MediaElement forward to Maui!
Beta Was this translation helpful? Give feedback.
All reactions