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

Annotation in RadMediaPlayer

4 Answers 100 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
kalyan
Top achievements
Rank 2
kalyan asked on 24 Dec 2008, 05:53 AM
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

4 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 28 Dec 2008, 11:05 AM
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.
0
kalyan
Top achievements
Rank 2
answered on 29 Dec 2008, 11:25 AM
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
0
Accepted
Kiril Stanoev
Telerik team
answered on 29 Dec 2008, 12:40 PM
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.
0
kalyan
Top achievements
Rank 2
answered on 29 Dec 2008, 12:44 PM
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


Tags
MediaPlayer
Asked by
kalyan
Top achievements
Rank 2
Answers by
Kiril Stanoev
Telerik team
kalyan
Top achievements
Rank 2
Share this question
or