Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Problems Merging a MediaPlayer SL2Gallery Template into an Existing SL 2 App

Problems Merging a MediaPlayer SL2Gallery Template into an Existing SL 2 App

Scheduled Pinned Locked Moved WPF
wpftutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SBJ
    wrote on last edited by
    #1

    I created an Expression MediaPlayer app with Encoder 2 using the SL2Gallery template. The app works perfectly stand-alone but I want to put the player on a page in another Silverlight 2 app. The playlist for the original app is supplied to the .xap through initParams. I copied the entire Page.xaml into my page (changed the namspace etc) and added the playlist to the player as follows. It almost works. I have three problems. 1. The playlist listbox acts as though the scroll area is only two items long. It's plenty big to show all of the items. Sometimes when scrolling a third item will show up, but it's intermittent. 2. The Thumbs don't display. I've tried every conceivable Build Action, but nothing seems to work. And yes I can see them added to the compilation during the build. 3. If the first two can be solved, I'd like it to auto start when the page opens.

    <ExpressionPlayer:ExpressionPlayer Margin="0,0,0,0"
    x:Name="myPlayer"
    Style="{StaticResource GalleryTemplate}">
    ExpressionPlayer:ExpressionPlayer.Playlist
    <ExpressionMediaPlayer:PlaylistItem Title="Preparing Your Home"
    MediaUrl="Properties/video1.wmv"
    Description="My Description"
    ThumbSource= "Properties/video1_Thumb.jpg"
    FrameRate="25" />
    <ExpressionMediaPlayer:PlaylistItem Title="2"
    MediaUrl="Properties/video2.wmv"
    ThumbSource="Properties/video2_Thumb.jpg"
    FrameRate="25" />
    <ExpressionMediaPlayer:PlaylistItem Title="3"
    MediaUrl="Properties/video3.wmv"
    ThumbSource="Properties/video3_Thumb.jpg"
    FrameRate="25" />
    <ExpressionMediaPlayer:PlaylistItem Title="4"
    MediaUrl="Properties/video4.wmv"
    ThumbSource="Properties/video4_Thumb.jpg"
    FrameRate="25" />
    </ExpressionPlayer:ExpressionPlayer.Playlist>
    </ExpressionPlayer:ExpressionPlayer>

    There is very little information on how to use

    M 1 Reply Last reply
    0
    • S SBJ

      I created an Expression MediaPlayer app with Encoder 2 using the SL2Gallery template. The app works perfectly stand-alone but I want to put the player on a page in another Silverlight 2 app. The playlist for the original app is supplied to the .xap through initParams. I copied the entire Page.xaml into my page (changed the namspace etc) and added the playlist to the player as follows. It almost works. I have three problems. 1. The playlist listbox acts as though the scroll area is only two items long. It's plenty big to show all of the items. Sometimes when scrolling a third item will show up, but it's intermittent. 2. The Thumbs don't display. I've tried every conceivable Build Action, but nothing seems to work. And yes I can see them added to the compilation during the build. 3. If the first two can be solved, I'd like it to auto start when the page opens.

      <ExpressionPlayer:ExpressionPlayer Margin="0,0,0,0"
      x:Name="myPlayer"
      Style="{StaticResource GalleryTemplate}">
      ExpressionPlayer:ExpressionPlayer.Playlist
      <ExpressionMediaPlayer:PlaylistItem Title="Preparing Your Home"
      MediaUrl="Properties/video1.wmv"
      Description="My Description"
      ThumbSource= "Properties/video1_Thumb.jpg"
      FrameRate="25" />
      <ExpressionMediaPlayer:PlaylistItem Title="2"
      MediaUrl="Properties/video2.wmv"
      ThumbSource="Properties/video2_Thumb.jpg"
      FrameRate="25" />
      <ExpressionMediaPlayer:PlaylistItem Title="3"
      MediaUrl="Properties/video3.wmv"
      ThumbSource="Properties/video3_Thumb.jpg"
      FrameRate="25" />
      <ExpressionMediaPlayer:PlaylistItem Title="4"
      MediaUrl="Properties/video4.wmv"
      ThumbSource="Properties/video4_Thumb.jpg"
      FrameRate="25" />
      </ExpressionPlayer:ExpressionPlayer.Playlist>
      </ExpressionPlayer:ExpressionPlayer>

      There is very little information on how to use

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Hi Steve, If you can send the sample project that you are having problems then I will try to see what I can help you.. The code that you pasted here seems fine to me.

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

      S 1 Reply Last reply
      0
      • M Michael Sync

        Hi Steve, If you can send the sample project that you are having problems then I will try to see what I can help you.. The code that you pasted here seems fine to me.

        Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

        S Offline
        S Offline
        SBJ
        wrote on last edited by
        #3

        Michael, I created a small app that just included the MediaPlayer in Blend 2 and it worked fine. As soon as I opened it in VS it transformed the project into a SL3 project and it stopped working. I guess I wasn't paying attention the first time. In an attempt to get everything into SL3 I downloaded Encoder 3 (I already have Blend 3), however now apparently Playlist doesn't contain PlaylistItems. At this point I'm totally confused. Plus, our neighbors are having a tree taken down and the noise is driving me crazy!!! I'm going to hang it up for the day and start fresh tomorrow. Thanks for your offer of help and if I find anything tomorrow I'll post it, Steve

        M 1 Reply Last reply
        0
        • S SBJ

          Michael, I created a small app that just included the MediaPlayer in Blend 2 and it worked fine. As soon as I opened it in VS it transformed the project into a SL3 project and it stopped working. I guess I wasn't paying attention the first time. In an attempt to get everything into SL3 I downloaded Encoder 3 (I already have Blend 3), however now apparently Playlist doesn't contain PlaylistItems. At this point I'm totally confused. Plus, our neighbors are having a tree taken down and the noise is driving me crazy!!! I'm going to hang it up for the day and start fresh tomorrow. Thanks for your offer of help and if I find anything tomorrow I'll post it, Steve

          M Offline
          M Offline
          Michael Sync
          wrote on last edited by
          #4

          Sorry to hear about those behavior in Silverlight 3 and Encoder. Feel free to let me know if you are having the same problem even you start fresh

          Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

          S 1 Reply Last reply
          0
          • M Michael Sync

            Sorry to hear about those behavior in Silverlight 3 and Encoder. Feel free to let me know if you are having the same problem even you start fresh

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) Microsoft MVP (Silverlight), WPF/Silverlight Insiders

            S Offline
            S Offline
            SBJ
            wrote on last edited by
            #5

            Sorry I didn't get back on this; I got busy with other things. I worked it out by modifying the template code. Now it works beautifully! Thanks for the help, Steve

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups