Video Alignment

2 posts, 1 answers
  1. Scott Laughton
    Scott Laughton avatar
    12 posts
    Member since:
    May 2006

    Posted 11 Mar 2009 Link to this post

    Hi there,
            I have a video that is tall and narrow, lets say around 150w x 350h.  What I want to do is have the RadMediaPlayer display at 400w but display the video in it at 150w and aligned to the left.  I am then going to overlay a grid with a black bg and bring in dot points and images as the speaker in the video speaks.

    I thought I would be able to achieve this with the following properties:

    VideoWidth="150"

    HorizontalContentAlignment="Left"


    However when I apply these properties the video plays at the correct dimensions, but it is always centered.
    I could make the player 150w I know, but then the player buttons do not show correctly.
    Is it possible to play it the video at 150w, left aligned in the RadMediaPlayer that is 400w?

    BTW:
    Here is my setup:
     - RadControls for Silverlight 2008 3 1217
     - Microsoft Visual Studio 2008 Version 9.0.30729.1 SP
     - Microsoft .NET Framework Version 3.5 SP1
     - Windows XP Pro x64

    Regards,

        Scott.

     

  2. Answer
    Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 17 Mar 2009 Link to this post

    Hi Scott,

    Sorry for the delayed reply!

    Currently the ContentAlignment property only alters the visual look of the media item in the playlist and not the video itself.

    This is not the first request for such property, so we will add it for the SP1 release of the controls, that will come roughly a month after the official release.

    Regards,
    Miroslav
    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. DevCraft banner
Back to Top