Skip to main content
Home Forums Silverlight Design Video and Media Cannot play local WMV file with ExpressionMediaPlayer
2 replies. Latest Post by Congero8 on November 2, 2009.
(0)
mpalmer.sps
Member
1 points
12 Posts
09-12-2009 7:40 PM |
Trying to play an item in the 'new' ExpressionMediaPlayer control and getting nowhere fast...
XAML:
namespace:
xmlns
control markup:
<
try
ExpressionMediaPlayer.
playItem.MediaSource = videoSource;
ctrlExpressionMedia1.Playlist.Items.Add(playItem);
ctrlExpressionMedia1.Play();
}
Error:
Could not open media file "http://localhost:2673/SuperSpeedway.wmv AG_E_NETWORK_ERROR
The WMV file is a High-def video that plays just fine in my local instance of Windows Media Player (v11) on Win XP SP3
The video is located in the ClientBin folder of the Visual Studio 2008 Web Project
Anyone have any ideas?
Anyone have a working code sample that uses this control succesfully?
Thanks!
09-12-2009 8:07 PM |
ok - got it figured out
the path needs to be "ClientBin/yourvideonamehere.wmv"
Congero8
7 points
18 Posts
11-02-2009 12:54 PM |
Thanks, I've been looking for this all day.