using coverflow with the media player.

10 posts, 0 answers
  1. mark
    mark avatar
    50 posts
    Member since:
    Mar 2009

    Posted 06 Apr 2009 Link to this post

    I was able to load the Telerik Media Player Control but now I need to figure out how to use the Cover flow with the Media Player control..I user clicks an image, then a media file loads into the player.  Does anyone have sample code for that?

    thanks.
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 07 Apr 2009 Link to this post

    Hello mark,

    If you mean something like http://demos.telerik.com/silverlight/telerikmedia/, take a look at the attached project. Hope this helps!

    Regards,
    Miroslav Nedyalkov
  3. DevCraft banner
  4. mark
    mark avatar
    50 posts
    Member since:
    Mar 2009

    Posted 07 Apr 2009 Link to this post

    Perfect, thanks.
  5. mark
    mark avatar
    50 posts
    Member since:
    Mar 2009

    Posted 07 Apr 2009 Link to this post

    One more question...for now...I was able to get my own prototype working, but I would like to see some text that is tied to the image.  In my case, I am using Videos and I would like to display the episode title for the show.  I have an observable collection of "mediaItems" and one of the properties is called Title.  I am having difficulty finding how to set a displayable title for the user when the image comes up. 

    Thanks again.
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Apr 2009 Link to this post

    Hello mark,

    You can display a text, but it will not receive the transformation of the image (the perspective transformation is applied on the image only). I'm attaching a project with an example how to do this.

    Regards,
    Miroslav Nedyalkov
  7. Damon Null
    Damon Null avatar
    3 posts
    Member since:
    Jun 2009

    Posted 02 Jun 2009 Link to this post

    Hello.

    I'm trying to use this coverflow with the media player and having a little trouble.

    I dumped my .wmv files into the Media folder, then changed the Library.xml file to reflect that change.

    All I literally did was change the next of the file in the Librarty.xml file and added the wmv to the /Media folder.

    For some wierd reason, I get


    Unhandled Error in Silveright 2 Application MovieFlop.xap
    Code : 4001
    Category : Media Errror
    Messaage: AG_E_NETWORK_ERROR

    It's like it can't find the wmv. All i did was add a new WMV into the Media folder and change the library.xml.

    Help?

    Thanks
    Geoff



    --------------------

    Just figured it out....

    Apparently went I click and drag my .wmv into the Media folder, one of it's properties is Copy to Output Directory, it defaults to "Do Not Copy". I changed that to "Always Copy" and now it works.

    Thanks.
  8. Damon Null
    Damon Null avatar
    3 posts
    Member since:
    Jun 2009

    Posted 02 Jun 2009 Link to this post

    Next question.

    How do I change the slideshow so that it reads a http://www.something.com/myvideo.wmv instead of a relative path?

    Thanks again!
  9. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 05 Jun 2009 Link to this post

    Hi Darrick King,

    If you put the path you've defined it should work fine. Note that if you host your Silverlight application at a different domain you will need a cross domain policy file. Also note that if you are running the application from the file system (i.e. file://) you will not have access to the Internet from the application.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  10. Pawan Venugopal
    Pawan Venugopal avatar
    4 posts
    Member since:
    Dec 2009

    Posted 21 Dec 2009 Link to this post

    Hi,

          Thanks for the source. Say what if i have a observable collection which has the title , Image, Video-Uri and Description.  Currently i have binded it to the Cover Flow. I need the Video-Uri to start playing when clicked on it. How do i achieve it. 

    Secondly, Once the first video has played the coverflow show move to the next element automatically and the media player should start playing automatically. Can this be achieved. 

    Could show me code sample for these.

    Regards,
    Pawan Venugopal

  11. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 22 Dec 2009 Link to this post

    Hi Pawan,

     For the first question you could refer to the following example: http://demos.telerik.com/silverlight/#CoverFlow/DataInfo - it demonstrates how to handle a click on the selected item and perform some custom action.

    About the second one - you can achieve this, but you will need to play with the events of the MediaElement (or with the events of the RadMediaPlayer). When the MediaEnded event of the media element is fired you could just increment the SelectedIndex property of the RadCoverFlow control and to start the video of the newly selected item. For more information about how to work with the MediaElement control you could refer to the following article - http://msdn.microsoft.com/en-us/library/system.windows.controls.mediaelement.aspx.

    Hope this helps.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top
DevCraft banner