How can i get RadMediaItem (video source) width and height?
3 Answers, 1 is accepted
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.
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.