PC Review


Reply
Thread Tools Rate Thread

Asp.Net Silverlight Media and Xaml control

 
 
Oriane
Guest
Posts: n/a
 
      2nd Jan 2008
Bonjour,

With Asp.Net futures (Microsoft.Web.Preview), I can't use the Media and Xaml
controls (Silverlight). I've got this error messages, with several wmv
files:

Execution error:

Microsoft JScript: Sys.Preview.UI.Xaml.Media.MediaFailedException: Unable to
load media "App_Data/xxx.wmv".

function Sys$Preview$UI$Xaml$Media$Player$_meMediaFailed() {
this._naturalduration = null;
this._enableBuffering(false);
this._mediaAvailable(false);
this._ensureDuration(false);
this._ensureSeeking(false);
this._mediaEnded = false;
this.set_caption("");

var handler = this.get_events().getHandler('mediaFailed');
if (handler) {
handler(this, Sys.EventArgs.Empty);
}
else {
throw this._getMediaFailedError(); <------
}
}

Any idea ?
Oriane

 
Reply With Quote
 
 
 
 
PhilTheGap
Guest
Posts: n/a
 
      21st Jan 2008
It looks like you've got your media file in the App_Data folder, after some
quick tests, I couldn't get my app to play if I tried putting the media in
my App_Data folder. Where if I moved it to a folder called video and then
set the MediaURL like this MediaUrl="~/videos/XXX.wmv" it works fine.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XAML, WPF and Silverlight Nick Large Microsoft Dot NET 1 22nd Oct 2009 06:55 AM
Parse Exception error in XAML file for Silverlight Application Alex. O. Koranteng Microsoft ADO .NET 4 5th Aug 2009 02:30 PM
Re: win vista silverlight (media) Zaphod Beeblebrox Windows Vista Installation 0 10th Nov 2008 02:21 PM
Re: win vista silverlight (media) Mick Murphy Windows Vista Installation 0 10th Nov 2008 06:49 AM
silverlight 1.0, asp.net and asp.net futures Media control Andy B Microsoft ASP .NET 0 26th Nov 2007 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:33 PM.