watermark/overlay on media player

3 posts, 0 answers
  1. jjferreira
    jjferreira avatar
    2 posts
    Member since:
    Jul 2007

    Posted 17 Oct 2011 Link to this post

    Afternoon all, I wanted to add a watermark to the media player, I achieved this using the code below, it works quite nicely, the problem that I have is if a user double clicks into full mode I lose the watermark, any ideas suggestions how to keep this on top of the full screen, also any ideas how to disable full screen.

    Tks

    Jack

    <UserControl x:Class="Sitefinity.Samples.Silverlight.MediaPlayer"
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikMediaPlayer="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.MediaPlayer"
    mc:Ignorable="d" d:DesignHeight="402" d:DesignWidth="705" Name="MyParentControl">
      
        <Canvas Name="MyCanvas">
      
            <telerikMediaPlayer:RadMediaPlayer  
                  CanSeek="False"         
                x:Name="mediaPlayer"                                            
                IsPlaylistVisible="False"
                IsAutoReverse="True"
                IsAutoPlaylistAdvance="False"
                 
                >
                <telerikMediaPlayer:RadMediaPlayer.Background >
                    <LinearGradientBrush EndPoint="0.5,1"
                                        StartPoint="0.5,0">
                        <GradientStop Color="#FF152865"    />
                        <GradientStop Color="#FFB4C2F0" 
                                    Offset="1" />
                    </LinearGradientBrush>
                </telerikMediaPlayer:RadMediaPlayer.Background>
            </telerikMediaPlayer:RadMediaPlayer>
      
      
            <Image Opacity="0.5" RenderTransformOrigin="0.5,0.5" x:Name="image" Width="145" Height="63" Canvas.Top="5" Source=" http://www.xkudos.com/images/logo.gif " Stretch="Fill" Canvas.Left="7">
                <Image.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                        <SkewTransform AngleX="0" AngleY="0"/>
                        <RotateTransform Angle="0"/>
                        <TranslateTransform X="0" Y="0"/>
                    </TransformGroup>
                </Image.RenderTransform>
            </Image>
      
        </Canvas>
      
      
      
    </UserControl>
  2. Radoslav Georgiev
    Admin
    Radoslav Georgiev avatar
    19 posts

    Posted 18 Oct 2011 Link to this post

    Hi Jack Ferreira,

    We have prepared a sample video control which shows how you can achieve this requirement.

    Regards,
    Radoslav Georgiev
    the Telerik team

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

  3. DevCraft banner
  4. jjferreira
    jjferreira avatar
    2 posts
    Member since:
    Jul 2007

    Posted 18 Oct 2011 Link to this post

    Many tks it works quite nicelly

    Works as a treat.
Back to Top