Skip to main content

Microsoft Silverlight

Answered Question I published my job in my silverlight account but it is not workingRSS Feed

(0)

banderastyle28
banderas...

Member

Member

9 points

56 Posts

I published my job in my silverlight account but it is not working

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
Ardman

Contributor

Contributor

3320 points

919 Posts

Re: I published my job in my silverlight account but it is not working

Can we have a bit more information?  What is a "job"?

banderastyle28
banderas...

Member

Member

9 points

56 Posts

Re: I published my job in my silverlight account but it is not working

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 Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft
Answered Question

Re: I published my job in my silverlight account but it is not working

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.

  • Add a namespace mapping:

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

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

banderastyle28
banderas...

Member

Member

9 points

56 Posts

Re: Re: I published my job in my silverlight account but it is not working

 Hi I'm new to to this sorry how can you link the assembly for the dll file thank you

Jonathan Shen – MSFT
Jonathan...

All-Star

All-Star

24939 points

2,425 Posts

Microsoft

Re: Re: I published my job in my silverlight account but it is not working

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.

Best regards,

Jonathan

Jonathan Shen
Microsoft Online Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.

banderastyle28
banderas...

Member

Member

9 points

56 Posts

Re: Re: I published my job in my silverlight account but it is not working

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

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities