Last active
September 5, 2018 15:53
-
-
Save erfg12/a16191008506b3eb3c321d7d92e1eeee to your computer and use it in GitHub Desktop.
Xamarin C# convert string to UriVideoSource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// need to use https://developer.xamarin.com/samples/xamarin-forms/CustomRenderers/VideoPlayerDemos/ FormsVideoLibrary class | |
// the function ConvertFromInvariantString is built in to this library class. | |
VideoSourceConverter p = new VideoSourceConverter(); | |
UriVideoSource test = (UriVideoSource)p.ConvertFromInvariantString("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"); | |
videoPlayer.Source = test; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment