开发者

keep Ratio in full screen - Extract Ratio from a movie (mp4) flash player

开发者 https://www.devze.com 2023-01-14 07:07 出处:网络
This is what i\'m trying to do , 开发者_运维知识库get the Ratio 4:3 9:16 etc from an mp4 movie (h264) so when ill open it in fullscreen using a flash player / action script 3 it will still keep the ra

This is what i'm trying to do , 开发者_运维知识库get the Ratio 4:3 9:16 etc from an mp4 movie (h264) so when ill open it in fullscreen using a flash player / action script 3 it will still keep the ratio.

regards


there is height and width varibles in the metadata recieved from loaded movies, divide one by the other to get the ratio of the video.

livedocs example


Or, if you are using flex: http://livedocs.adobe.com/flex/3/langref/flash/net/NetConnection.html

(see example at bottom of page)

0

精彩评论

暂无评论...
验证码 换一张
取 消