This is a migrated thread and some comments may be shown as answers.

using coverflow with the media player.

9 Answers 151 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 06 Apr 2009, 10:18 PM
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.

9 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 07 Apr 2009, 07:42 AM
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
0
mark
Top achievements
Rank 1
answered on 07 Apr 2009, 03:58 PM
Perfect, thanks.
0
mark
Top achievements
Rank 1
answered on 07 Apr 2009, 11:22 PM
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.
0
Miroslav Nedyalkov
Telerik team
answered on 08 Apr 2009, 10:06 AM
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
0
Damon Null
Top achievements
Rank 1
answered on 02 Jun 2009, 02:39 PM
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.
0
Damon Null
Top achievements
Rank 1
answered on 02 Jun 2009, 05:35 PM
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!
0
Miroslav Nedyalkov
Telerik team
answered on 05 Jun 2009, 11:53 AM
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.
0
Pawan Venugopal
Top achievements
Rank 1
answered on 21 Dec 2009, 10:33 PM
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

0
Miroslav Nedyalkov
Telerik team
answered on 22 Dec 2009, 12:41 PM
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.
Tags
CoverFlow
Asked by
mark
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
mark
Top achievements
Rank 1
Damon Null
Top achievements
Rank 1
Pawan Venugopal
Top achievements
Rank 1
Share this question
or