RadPlayer.OpenClip( string fileName ) and RadPlayer.OpenClipFromResource( string resourceName ) methods

2 posts, 0 answers
  1. Jill-Connie Lorentsen
    Jill-Connie Lorentsen avatar
    118 posts
    Member since:
    Nov 2008

    Posted 05 May 2009 Link to this post

    What is the difference between the RadPlayer.OpenClip( string fileName ) and RadPlayer.OpenClipFromResource( string resourceName ) methods?

    I would like to play a byte[] directly, without saving it to file, intermediate or not. I would think that the OpenClipFromResourse method would do the trick (with some preprosessing), but I can't figure out how.

    Is there a way to play a byte[] or MemoryStream object?

    Regards, Jill-Connie Lorentsen
  2. Nick
    Admin
    Nick avatar
    767 posts

    Posted 05 May 2009 Link to this post

    Hello Jill-Connie Lorentsen,

    Thank you for your question. Unfortunately it goes outside the scope of our support, but hopefully someone from the Telerik community will help you out further.

    RadPlayer is a simple wrapper of windows media player API and is created with the sole purpose of demonstrating the UI of our controls. You can find the functionality of both methods in our source code which you can download from your account, namely the first one is loading the clip from file and the latter one from a resource in you assembly. I think that you can use memory streams for media content. Please research this in MSDN.

     
    Greetings,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top