Annotation in RadMediaPlayer

5 posts, 1 answers
  1. kalyan
    kalyan avatar
    38 posts
    Member since:
    Jul 2008

    Posted 23 Dec 2008 Link to this post

    Hi,

    I just want how to annotation in RadMediaPlayer. Earlier i was using simple SilverlIght Media element to accomplish this task, by putting a InkPresnter and setting the Media element as the VideoBrush of the Ink presenter. but this not working in RadMediaPlayer, because annotation should work only when the Video is in pause mode,When i put the RadMediaPlayer in a InkPresnter its controls(Play,Pause) are not working.
    I just want a solution of this problem. Can any one help me from this Problem.

    Thanks

    Kalyan
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 28 Dec 2008 Link to this post

    Hi Kalyan,
    Have you tried editting the ControlTemplate of RadMediaPlayer and putting the MediaElement that is there inside an InkPresenter? In the attachment you can find the current ControlTemplate of RadMediaPlayer.
    Let me know how this works for you.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. kalyan
    kalyan avatar
    38 posts
    Member since:
    Jul 2008

    Posted 29 Dec 2008 Link to this post

    Hi,

    Thanks for this template,  we already have this template as we purachased the full version of this product.  I have some problems regarding this MediaPlayer like i am not able to access the Buttons (Play,Pause) and the Slider  of the mediaPlayer because they are Private members. How can i disable or enable the above controls according to my requirement. Ex I have saved some annotation comments in my database . I am showing those comments on the Datagrid. And when i select a comment ,that particular position will be viewed on the MediaPlayer. Suppose i want to edit one comment, i want all my Buttons/Slider in disable mode.Please advise me regarding this requirement.

    Thanks

    Kalyan
  5. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 29 Dec 2008 Link to this post

    Hi Kalyan,
    Nevertheless the buttons are private fields, you can still obtain them via the root element in the ControlTemplate. Please, take a look at the piece of code bellow, as it shows how to access the visual elements from RadMediaPlayer's ControlTemplate:

    public Page()  
    {  
        InitializeComponent();  
        Loaded += new RoutedEventHandler(Page_Loaded);  
    }  
     
    private void Page_Loaded(object sender, RoutedEventArgs e)  
    {  
        radMediaPlayer1.Loaded += new RoutedEventHandler(RadMediaPlayer1_Loaded);  
    }  
     
    private void RadMediaPlayer1_Loaded(object sender, RoutedEventArgs e)  
    {  
        Panel root = (Panel)VisualTreeHelper.GetChild(radMediaPlayer1, 0);  
        Button stopButton = (Button)root.FindName("StopButton");  
        stopButton.IsEnabled = false;  
    } 

    Unfortunately currently there is no other way to get the elements. This may be one of the directions in which we will extend the Media Player in the future versions.

    If you have any additional questions, do not hesitate to contact us.

    Best wishes,
    Kiril Stanoev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. kalyan
    kalyan avatar
    38 posts
    Member since:
    Jul 2008

    Posted 29 Dec 2008 Link to this post

    Hi,

    I finally got the solution . Actually I got the solution from the above templete.Any how Thanks for your Assitance and Patience.

    Thanks
    Kalyan


Back to Top
DevCraft banner