Skip to main content
Home Forums Silverlight Design Video and Media I published my job in my silverlight account but it is not working
6 replies. Latest Post by banderastyle28 on November 4, 2009.
(0)
banderas...
Member
9 points
56 Posts
10-24-2009 2:02 AM |
Hello anyone can help me please I created a job and then I published it in my silverlight account however everything seem good when
when I try demo it is not working. Anyone can help me please
Ardman
Contributor
3320 points
919 Posts
10-24-2009 4:23 AM |
Can we have a bit more information? What is a "job"?
10-24-2009 5:23 AM |
well basically I have .wmv music file I encoded with encoder and you in the output you have like different files .xap's file .dat .wmv itself and default.html so I zipped it and put into my silverlight account then it is say you have to copy and past the code into your html file so I did it show the player but it doesnt play clip
Jonathan...
All-Star
24939 points
2,425 Posts
10-30-2009 6:26 AM |
Hi Banderastyle28,
Do you want to use a template player in your own project? If yes, please take a look at this.
To use the player:
Rename the xap file to zip and extract its content. After you unzip the file, you’ll get a few dll files. Each dll file is called an assembly.
In your own project, add references to all those assemblies.
xmlns:player="clr-namespace:ExpressionMediaPlayer;assembly=MediaPlayer"
Create the MediaPlayer Control in XAML:
<player:MediaPlayer x:Name="player" Loaded="player_Loaded"> <player:MediaPlayer.Playlist> <player:Playlist> <player:Playlist.Items> <player:PlaylistItem Title="My Title" MediaSource="ClientBin/videotest.wmv"/> </player:Playlist.Items> </player:Playlist> </player:MediaPlayer.Playlist> </player:MediaPlayer>
Below is the working sample.
<UserControl x:Class="PlayerTest.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:player="clr-namespace:ExpressionMediaPlayer;assembly=MediaPlayer" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <Grid x:Name="LayoutRoot"> <player:MediaPlayer x:Name="player" Loaded="player_Loaded"> <player:MediaPlayer.Playlist> <player:Playlist> <player:Playlist.Items> <player:PlaylistItem Title="My Title" MediaSource="ClientBin/videotest.wmv"/> </player:Playlist.Items> </player:Playlist> </player:MediaPlayer.Playlist> </player:MediaPlayer> </Grid> </UserControl>
Best regards,
Jonathan
10-31-2009 1:35 AM |
Hi I'm new to to this sorry how can you link the assembly for the dll file thank you
11-02-2009 2:35 AM |
Hi Banderas,
First, we'd better use Encoder to encode a Video(please select the specific template before encode). After encode, we will get the xap file and change its extension to zip, unzip the folder and get the mediaplayer.dll. Now, we can add reference to it.
11-04-2009 3:06 AM |
hi jonathan I see what you are saying but the thing is in blend 3 it has the same name mediplayer so all those dll and do I have to change the name of my mediaplayer