Sameel
Sameel

Reputation: 115

How to Play Video from a url?

I am developing a Windows 8.1 app and I'd like to play a video from a URL.

I tried this but it is not working

<MediaElement x:Name="VideoPlayer"
        Height="425"
        Width="700"
        AreTransportControlsEnabled="True"
        Source="http://www.dailymotion.com/video/x16xp80_brain-games-what-you-don-t-know_shortfilms"
        AutoPlay="False"
        DoubleTapped="VideoPlayer_DoubleTapped" />

Upvotes: 0

Views: 1074

Answers (1)

Nguyen Kien
Nguyen Kien

Reputation: 1927

This not working because your url is a web page. You must set uri of supported video file.

Upvotes: 1

Related Questions