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

hide the play button on the screen

8 Answers 137 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
ying
Top achievements
Rank 1
ying asked on 23 May 2011, 07:08 AM
I want to remove the play button on the center of the screen, is there have anywhere i can remove or hide the Big Play button.
Besides that, when i am set the default visibility for the rad player to "Collapsed",
after i set it back to "visible"
 it cannot autoplay it. and I also have set the radmediaplayer.play() at the server side??
I have set to the autoplay="true"

what is the problem that can not play it automatically.

I am using 2011.1.419.1040 version

8 Answers, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 26 May 2011, 09:01 AM
Hello ying,

To remove the big play button in the middle, you need to edit RadMediaPlayer's style. As for autoplaying, you need to set the AutoPlayer property to True and once you visualize RadMediaPlayer you can set its SelectedIndex to  0. For further reference, please take a look at the attached project and let me know if it helps.
 
Regards,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
ying
Top achievements
Rank 1
answered on 26 May 2011, 09:08 AM
Beside that , i always cause the following error message,

do you know how to solve

"Could not load file or assembly 'Microsoft.Silverlight.Testing, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified."

is it cause by the telerik media player???
0
ying
Top achievements
Rank 1
answered on 26 May 2011, 09:12 AM
I open the file that u attach.it cannot load the page due to following the code, and similar code, cause the same problem
<!--<telerik:RadToggleButton x:Name="MuteToggle"
                                            CommandParameter="{Binding IsChecked, RelativeSource={RelativeSource Self}}"
                                            Command="player:MediaCommands.ToggleMuteOnOff"
                                            HorizontalAlignment="Left" Height="12"
                                            IsChecked="{Binding Player.IsMute, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
                                            Margin="0 0 5 0"
                                            Template="{StaticResource MuteButtonTemplate}"
                                            VerticalAlignment="Center" Width="15.5" />-->


Error   1   Type 'player:MediaCommands' was not found. 

what is that???
0
Accepted
Kiril Stanoev
Telerik team
answered on 28 May 2011, 03:03 PM
Hello ying,

You need to add the following namespace to the top of your page:

xmlns:player="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer"

Kind regards,
Kiril Stanoev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
ying
Top achievements
Rank 1
answered on 30 May 2011, 10:06 AM
I found that , if i hide the control, and remove the big play button.the play button still can show, and it does autoplay
0
ying
Top achievements
Rank 1
answered on 08 Jun 2011, 05:27 AM
xmlns:Telerik_Windows_Controls_Chromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"

i add the above command to the silverlight page, but said Assembly :Telerik.Window.Control" was not found?

can you tell me where can i add it
0
Petar Mladenov
Telerik team
answered on 13 Jun 2011, 08:37 AM
Hi ying,

Where do you need this namespace exactly ?  I think you can use only the Telerik.Windows.Controls and Telerik.Windows.Controls.MediaPlayer assemblies with the following namespace:
Please give this a try and let us know how it goes. Furthermore, if you still have some issues with this, you can send us more code so that we could advice you better. Thank you for your cooperation.

All the best,
Petar Mladenov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tina Stancheva
Telerik team
answered on 14 Oct 2011, 12:47 PM
Hi guys,

We recently re-factored the RadSlider control and improved its implementation. However, we had to also change its default ControlTemplate and simplify it as much as possible.

The RadSlider ControlTemplate changes affected the RadMediaPlayer default ControlTemplate since the latter contains a customized RadSlider control. This is why we updated the solution previously attached in this thread, to use the latest ControlTemplate of the RadMediaPlayer.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
MediaPlayer
Asked by
ying
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
ying
Top achievements
Rank 1
Petar Mladenov
Telerik team
Tina Stancheva
Telerik team
Share this question
or