This is a migrated thread and some comments may be shown as answers.

Get source width/height

3 Answers 45 Views
MediaPlayer
This is a migrated thread and some comments may be shown as answers.
Edo Cof
Top achievements
Rank 1
Edo Cof asked on 21 May 2010, 07:39 PM
How can i get RadMediaItem (video source) width and height?

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 27 May 2010, 07:41 AM
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.
0
Edo Cof
Top achievements
Rank 1
answered on 29 May 2010, 05:11 PM
I stretch RadPlayer to entire possible place, so the ActualWidth/Height will not help me.
0
Miro Miroslavov
Telerik team
answered on 02 Jun 2010, 03:47 PM
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.
Tags
MediaPlayer
Asked by
Edo Cof
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Edo Cof
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or