开发者

Is it possible to create a Flash video player that plays videos hosted on youtube

开发者 https://www.devze.com 2023-02-22 07:16 出处:网络
I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.

I want to create a custom video player to modify the skin of the play controls etc but still host the videos on youtube.

T开发者_开发百科he youtube api allows for minor colour adjustments but not full customisation.

I know it would be possible if I download the FLVs but i want the video to remain hosted on youtube.

Is this possible?

Or is there a way of using the 'chromeless player' and creating custom controls around it?


Have you tried using chromeless player with the official AS3 API?

In player parameters you can just set controls to 0:

controls

Values: 0 or 1. Default is 1. This parameter indicates whether the video player controls will display. If this parameter is set to 0, then the player controls will not display, causing the player to look like the chromeless player.


it is possible ... you can check this to see how to get the url to the video


I've concluded that the only way to create custom controls for the youtube player that plays videos hosted on youtube (rather than playing FLVs) is to use the chromeless player without controls and then juse html/css/jquery to create the controls, for example:

http://tutorialzine.com/2010/07/youtube-api-custom-player-jquery-css/

http://code.google.com/apis/youtube/youtube_player_demo.html?playerType=chromeless&playerVersion=as3

0

精彩评论

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

关注公众号