hide the play button on the screen

9 posts, 1 answers
  1. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 23 May 2011 Link to this post

    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
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 26 May 2011 Link to this post

    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
  3. DevCraft banner
  4. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 26 May 2011 Link to this post

    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???
  5. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 26 May 2011 Link to this post

    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???
  6. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 28 May 2011 Link to this post

    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
  7. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 30 May 2011 Link to this post

    I found that , if i hide the control, and remove the big play button.the play button still can show, and it does autoplay
  8. ying
    ying avatar
    27 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    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
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 13 Jun 2011 Link to this post

    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
  10. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 Oct 2011 Link to this post

    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 >>

Back to Top
DevCraft banner