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

RadMediaPlayer AutoPlay feature and themes Problems

1 Answer 158 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Bader
Top achievements
Rank 1
Bader asked on 29 Nov 2010, 10:24 AM
Hello,

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"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer"
    mc:Ignorable="d" d:DesignHeight="260" d:DesignWidth="260" Loaded="UserControl_Loaded">
    <Grid x:Name="LayoutRoot">
        <StackPanel>
            <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" />
            </telerik:RadMediaPlayer>
  
        </StackPanel>
    </Grid>
</UserControl>

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

Regards,
Bader

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 02 Dec 2010, 02:02 PM
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();
 
       InitializeComponent();
   }

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.

Greetings,
Tina Stancheva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
MediaPlayer
Asked by
Bader
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or