Quantcast
Channel: Recent Discussions — Mixed Reality Developer Forum
Viewing all articles
Browse latest Browse all 10543

Play audio from MediaSource

$
0
0

Hello, I work on a HoloLens chat-kind of application. What I am dealing with is how to play audio of the remote peer on HL. I have a MediaSource from Windows.Media.Core containing the remote audio and video , but simply creating a MediaPlayer and playing does not work. I am only concerned about the audio at the moment. Any suggestion, what might be the problem, or how else could I solve? Thanks!

MediaSource createdSource = MediaSource.CreateFromIMediaSource(source);
var _mediaPlayer = new MediaPlayer { Source = createdSource };
_mediaPlayer.Play();


Viewing all articles
Browse latest Browse all 10543

Trending Articles