Get source width/height

4 posts, 0 answers
  1. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 21 May 2010 Link to this post

    How can i get RadMediaItem (video source) width and height?
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 27 May 2010 Link to this post

    Hello Edo Cof,

    You can use the ActualWidth and ActualHeight properties of the RadMediaPlayer MediaElement: RadMediaPlayer.MediaElement.ActualWidth

    Give this a try and let us know if it works for you.

    Kind regards,
    Tina Stancheva
    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. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 29 May 2010 Link to this post

    I stretch RadPlayer to entire possible place, so the ActualWidth/Height will not help me.
  5. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 02 Jun 2010 Link to this post

    Hello Edo Cof,

    You try using player.MediaElement.NaturalVideoHeight/Widht. This information is provided by the framework.


    Best wishes,
    Miro Miroslavov
    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.
Back to Top