G
Generation Continuum
Guest
I'm developing a UWP app that has a collection of properties of type MediaSource and each element in the collection is assigned to a source from a URI class:
Video = MediaSource.CreateFromUri(new Uri("Sign in - Google Accounts"))
The video is supposed to play inside a MediaPlayerElement control. The control's source is bound to the MediaSource property through a view model. The video in each element of the collection changes when the user clicks a Next AppBarButton controlled by a Command Object. The control played each video correctly when I tested the above code using a localhost site on an IIS server I set up:
Video = MediaSource.CreateFromUri(new Uri("http://locahost/images/video.mp4"))
But when I switched to the above https URI, I get the following error from the MediaPlayerElement control-Unidentified file type or invalid path.
Any suggestions on how I can fix this?
Continue reading...
Video = MediaSource.CreateFromUri(new Uri("Sign in - Google Accounts"))
The video is supposed to play inside a MediaPlayerElement control. The control's source is bound to the MediaSource property through a view model. The video in each element of the collection changes when the user clicks a Next AppBarButton controlled by a Command Object. The control played each video correctly when I tested the above code using a localhost site on an IIS server I set up:
Video = MediaSource.CreateFromUri(new Uri("http://locahost/images/video.mp4"))
But when I switched to the above https URI, I get the following error from the MediaPlayerElement control-Unidentified file type or invalid path.
Any suggestions on how I can fix this?
Continue reading...