More in this section

Forums / Developing with Sitefinity / Advanced Silverlight MediaPlayer Usage

Advanced Silverlight MediaPlayer Usage

7 posts, 0 answered
  1. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    13 Jul 2009
    Link to this post
    Hi all, I was wondering where I can find information about working with the Silverlight MediaPlayer control that is included with sitefinity. I remember reading on the features page that user-defined chapters were part of it. On top of that, is there a way to only show a certain timespan of the video? The video management I used before (FlowPlayer) allowed me to do so like this:

    <script type="text/javascript"
        var stopTime = <%= vidObj.Vclass.EndPlayback %>; 
        var dispTeaser = Boolean(<%= showTeaser %>); 
        var theClip = { 
                baseUrl: '<%= "../../" & vidObj.Cclass.BaseDir %>'
                url: '<%= vidObj.Vclass.Path %>'
                autoBuffering: true
                autoPlay: false
                onLastSecond: function() { 
                    this.getPlugin("screen").fadeOut(1000); 
                }, 
                onFinish: function() { 
                    if(dispTeaser){ 
                        window.location = 'inc/fp/vdo-teaser.htm'
                    } 
                    this.stop(); 
                } 
            }; 
        if(dispTeaser){ 
            theClip.duration = stopTime; 
        } 
        $f("fplayer""inc/fp/flowplayer-3.0.5.swf", { 
            clip: theClip, 
            plugins: { 
                controls: { 
                    url: 'flowplayer.controls-3.0.3.swf'
                    all: false
                    play: true, volume: true, mute: true, fullscreen: true, time:true, scrubber:true
                    timeColor: '#182E7A'
                    autoHide: 'always' 
                } 
            } 
        }); 
    </script> 

    As you can see, FlowPlayer was very customizable and I was able to easily configure showing the video's teaser instead of the full video.

    Regards,
    anders
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    15 Jul 2009
    Link to this post
    Hi andersleet,

    We are using the following player control
    Please take a look at the documentation and API pages there. These pages should provide you with everything that is possible to be done with this control.
    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    16 Jul 2009
    Link to this post
    Hello Georgi,

    I am slightly confused, on my layout page this is the code that I am using to show the media player:

    <asp:Silverlight ID="playerHost" InitParameters="videoUrl={0},title={1},description={2}" 
                runat="server" Source="~/Sitefinity/TelerikSilverlight/Telerik.Silverlight.xap" 
                MinimumVersion="2.0.31005.0" Windowless="true" Width="475" Height="356" /> 

    Which is different from the documentation, which has it like this:

    <telerikMediaPlayer:RadMediaPlayer Width="600" Height="400" Margin="20"
       <telerikMediaPlayer:RadMediaItem 
           Source="http://mschnlnine.vo.llnwd.net/d1/ch9/7/1/5/1/2/4/DynamicsDuoCRMSilverlight_ch9.wmv" 
           ImageSource="http://mschnlnine.vo.llnwd.net/d1/ch9/7/1/5/1/2/4/DynamicsDuoCRMSilverlight_small_ch9.jpg" 
           Title="The Dynamics Duo talk about CRM and Silverlight"
           <telerikMediaPlayer:RadMediaChapter Position="00:05:00" Title="5 min. has elapsed" /> 
           <telerikMediaPlayer:RadMediaChapter Position="00:10:00" Title="10 min. has elapsed" /> 
           <telerikMediaPlayer:RadMediaChapter Position="00:15:00" Title="15 min. has elapsed" /> 
       </telerikMediaPlayer:RadMediaItem> 
    </telerikMediaPlayer:RadMediaPlayer> 

    What assembly and/or other things do I need to load/do in order to use the media player like the documentation shows?

    Regards,
    anders
  4. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    20 Jul 2009
    Link to this post
    Hi andersleet,

    The Silverlight MediaPlayer control that Sitefinity uses is already configured and compiled into a xaml .xap file. In order to use the full benefit of Telerik's Silverlight MediaPlayer control you must download and install RadControls for Silverlight then replace the current version of the control.

    Best wishes,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    21 Jul 2009
    Link to this post
    I assume, then, that I would have to purchase a copy of your Silverlight RadControls package?

    Regards,
    anders
  6. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    01 Jun 2017
    22 Jul 2009
    Link to this post
    Hello andersleet,

    You are correct. For now the Silverlight controls are not shipped with Sitefinity. We will consider the possibility to include some Silveright controls or the bundle in Sitefinity 4.0.

    Sincerely yours,
    Nikolai
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. andersleet
    andersleet avatar
    155 posts
    Registered:
    03 Jun 2009
    22 Jul 2009
    Link to this post
    OK thanks for the info.

    Regards,
    anders
Register for webinar
7 posts, 0 answered