2
Answers

How to display video file to Media element from web server

Sachin Kadam

Sachin Kadam

13y
1.6k
1
Hi,

here i m using follwoing code for play video :

string strFileName = m.VideName;
Uri VideoUri = new Uri(App.Current.Host.Source, strFileName);
meVideo.Source = VideoUri;
meVideo.AutoPlay = true;

above file is present on ClientBin folder, and path is display with browser "url/ClientBin/fileName.mp4" but its can't Play.


Can anyone tell me how this is done?


Answers (2)
0
arvind baldaniya
NA 282 13.3k 8y
Not Display Data 
My XAML File
 
<Picker x:Name="City" Title="City" HorizontalOptions="FillAndExpand" BindingContext="{Binding get_Cities}" SelectedIndex="{Binding CitySelectedIndex}" >
</Picker>
 
 
 
 
 
0
Madhanmohan Devarajan
NA 6.5k 471.5k 8y
Your code seems to be fine. Do you have any problem in populating the City dropdown dynamically?