Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Silverlight Mediaplayer - Hiding Mediasource URL RSS

2 replies

Last post Jul 09, 2009 03:07 PM by cbkernow

(0)
  • cbkernow

    cbkernow

    0 Points

    5 Posts

    Silverlight Mediaplayer - Hiding Mediasource URL

    Jul 09, 2009 02:12 PM | LINK

     hi all, I've got a vb.net web page with a SL mediaplayer on the page:


    <asp:MediaPlayer ID="MediaPlayer1" runat="server" Height="480px" Width="640px" 
            AutoLoad="true" AutoPlay="true" MediaSkinSource="~/Simple.xaml" 
            ScaleMode="none" Windowless="True"></asp:MediaPlayer>

      and I'm dynamically setting the mediasource in the code behind page:

    MediaPlayer1.MediaSource  = myStreamingVideoUrl

    This works fine and displays the video correctly, however  I'm trying to  hide the URL of the video file on the server but the source of the page displays this section in the bottom of the page:

     

     

    <script type="text/javascript">
    //<![CDATA[
    Sys.Application.initialize();
    Sys.Application.add_init(function() {
        $create(Sys.UI.Silverlight.MediaPlayer, {"autoPlay":true,"mediaSource":"http://streaming.myserver.co.uk/134342686.wmv","source":"Simple.xaml"}, null, null, $get("ctl00_contentPlaceHolderBody1_MediaPlayer1_parent"));
    });
    //]]>
    </script>
    

      I can't find any way around it!!

     

    I'm using urlrewriting on the page to disguise ?id=12123123 as a more practical URL so I tried to d ot he same with this URL but it doesn't work.

     does anyone know of a way to hide the URL??

     

    The only option I've come up with is to write a seperate public facing webservice which will take a code fomr this page and return a video file thus hiding the server URL friom this mediaplayer.

     

     

  • tanmoy.r

    tanmoy.r

    Contributor

    4163 Points

    796 Posts

    Microsoft

    Re: Silverlight Mediaplayer - Hiding Mediasource URL

    Jul 09, 2009 02:27 PM | LINK

    Check this post if it helps.

    Please Mark as Answer if this helps you.
    Thanks n Regards
    ~Tanmoy
    Blog: http://anothersilverlight.blogspot.com/
  • cbkernow

    cbkernow

    0 Points

    5 Posts

    Re: Re: Silverlight Mediaplayer - Hiding Mediasource URL

    Jul 09, 2009 03:07 PM | LINK

    I am using streaming video so it is relatively safe from stealing the video, but I'd still like to be able to hide the server URL