If you don't find an answer, please click here to post your question.
Reply
Occasional Visitor
Posts: 2
Registered: ‎07-10-2018

Ooyala Player SDK OoyalaPlayerLayoutController Android

hello,

I´m trying to get the height of the OoyalaPlayerLayoutController after I build my Ooyala player and attached the controller. I´ve tried with:

getLayout().getHeight()
and:

oyalaPlayer.getLayout().getLayoutParams().height
and:

playerLayout.getHeight()
Every time I get a value of 0. Thanks in advance!

Highlighted
Ooyalan
Posts: 44
Registered: ‎10-06-2014

Re: Ooyala Player SDK OoyalaPlayerLayoutController Android

Hello,

 

I think you should be rather using the Ooyala Skin SDK, and getting the width and height from the OoyalaSkinLayout.

There's also an API call that gives you the width and height of the videos, look here: http://help.ooyala.com/video-platform/api/asset_video.html, the API call is the following:

 

[GET] /v2/assets/asset_id/streams

 

Hope this helps.

Ana