开发者

find out fullscreen button in youtube embedded player programatically

I wanted to know that is there any way to find out programatically the fullscreen button that is added on the youtube embedded player so that开发者_如何学编程 I can call an action on its touchupInsideEvent.

Please help. Thanks in advance. Shruti


In general, it's not possible to intercept events like that into the flash player, unless the SWF has some sort of an API for that purpose.

A different way to approach the problem is to use the YouTube "chromeless" player. It's basically an embedded player with no user interface elements. You provide the controls, which can command the player via the Javascript interface. You can intercept a user request for maximize that way.

There's even a question on Stack Overflow that concerns with fullscreen functionality for Chromeless players.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜