How to play video from a url? RRS feed

  • Question

  • 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"
            DoubleTapped="VideoPlayer_DoubleTapped" />
    I have given a random MediaElement.Source here. MediaElement.Source can be from any website.


    Tuesday, April 14, 2015 10:36 AM


  • Hello,

    The link you supplied does not point to a media stream. Instead it just points to a web page. You need to know the link to the actual media source of the video. You will need to work with the content provider to understand how to access their media source directly. You will also need to understand the streaming format that they are using and make sure that the format is supported by the MediaElement out of the box. If we do not support the stream format you can create a custom MediaStreamSource to manually parse the data.

    IANAL it is always a good idea to have your legal representation work directly with the content provider to make sure you have the appropriate permissions to consume the content in your 3rd party app.

    I hope this helps,


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, April 14, 2015 6:08 PM