Hey all,
I'm going spare here. I've got a simple mediaelement, and when I set the
source in the xaml it works fine. If I set the source in the codebehind it
doesn't work. It doesn't even seem to hit the url. (using Fiddler aimed at
www.somesite.com)

has something changed with Uri's?

I've downloaded Tim Heuer's silverlight 2 media player which works. I've
copied his code (doesn't work) and put my url into his code (works).


Application startup has this;

 if (!string.IsNullOrEmpty(url)) {
                    Uri mediaUri;

                    if (url.Contains("://")) {
                        mediaUri = new Uri(url, UriKind.RelativeOrAbsolute);
                    }
                    else {
                        mediaUri = new Uri(url, UriKind.Relative);
                    }

                    this.Resources.Add("url", mediaUri);

                }


and then I put this into page constructor

   videoClipPlayer.Source = App.Current.Resources["url"] as Uri;


Am I missing something really obvious or obscure here?

cheers,
Stephen
--------------------------------------------------------------------------------
Support procedure: https://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozsilverlight
Other lists you might want to join: http://www.codify.com/lists

Reply via email to