RadMediaPlayer AutoPlay feature and themes Problems

2 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 29 Nov 2010 Link to this post


    I have a problems with the RadMediaPlayer control (I use the version 2010_1_0218).
    1) I can't play the video If the AutoPlay feature is not set to "True". In other words, If I remove this feature or I set the value of it to "False" then The video doesn't start (Play), Why?
    2) I try to set other themes to my RadMediaPlayer, how can I do that? The RadMediaPlayer in my code doesn't reconize the theme property.
    3) How can I set a fixed sentence within the video. I mean, I need to put the website name on the control in order to prevent other website to use the same video (requirements!!!)
    4) How can set the fullscreen property?

    My MainPage.xaml:
    <UserControl x:Class="SingleMediaPlayer.MainPage"
        mc:Ignorable="d" d:DesignHeight="260" d:DesignWidth="260" Loaded="UserControl_Loaded">
        <Grid x:Name="LayoutRoot">
                <telerik:RadMediaPlayer AutoPlay="True" x:Name="mediaPlayer" Width="260" Height="260">
                    <telerik:RadMediaItem x:Name="item0" Source ="http://localhost:1713/DynamicsDuoCRMSilverlight_ch92.wmv"
                            Title="Source added in XAML" />

    Plaese, I need an immediate help,
    It is apprecited to send me the modified code.

  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 02 Dec 2010 Link to this post

    Hello Bader,

    Please accept our apology for the delayed response.

    Indeed there were some issues with the AutoPlay feature in the 2010_1_0218 version of the RadMediaPlayer. However, they are now fixed, so it would be better if you can use the latest official release - 2010 Q3. Also, in that release the RadMediaPlayer supports built-in implementation of FullScreen scenarios.

    With the latest release of the RadMediaPlayer the AutoPlay property controls whether an item will be played automatically when selected or not. The SelectedIndex property, on the other hand, controls which item to be played when the RadMediaPlayer is initialized. If the SelectedIndex property isn't set, no items will be initially played.

    Also, there is a bug in the RadMediaPlayer and the themes cannot be applied, but I logged it in our PITS under the name MediaPlayer: Cannot apply a theme and you will be able to track it from tomorrow the latest. We will do our best to fix this issue as soon as possible and I would like to thank you for bringing it to our attention. Therefore I updated your Telerik points accordingly.

    In the meantime you can set an application theme, which will be applied to the RadMediaPlayer as well:
    public MainPage()
           StyleManager.ApplicationTheme = new VistaTheme();

    Also, the FullScreen functionality of the RadMediaPlayer can be controlled via the IsFullScreen property, but please keep in mind that the RadMediaPlayer can only go to a FullScreen state only on a user initiated action.Therfore you can either define a custom button to set the RadMediaPlayer IsFullScreen property, or use the FullScreen button in the RadMediaPlayer.

    Also, the RadMediaPlayer control is a wrapper around the Microsoft's MediaElement component. Therefore it only displays a video but cannot manipulate it. This is why the control doesn't support adding text inside the played video.

    I hope this info will help you. Please let us know if we can further assist you.

    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft R3 2016 release webinar banner
Back to Top