Funliday-旅遊規劃 身處武漢肺炎疫情最慘重的觀光業中心,雖然大家都不出去旅遊,但我們也趁著這個時間增強自己的核心功能,小編今天來聊一下其中一個功能的技術議題。
Funliday 有個功能是把外部文章直接顯示在 Funliday 的 App 跟 Web 上,但遇到了一些技術性及著作權的問題,相信應該也有朋友遇到過類似的狀況,今天就來分享一下吧。
在 Funliday App 上的顯示還算好處理,直接用 WebView 呈現就好,但在 Funliday Web 上就很難處理,這邊整理一下技術上可以實作的幾種方式。
1. iframe + original url:最暴力的方式,直接用 iframe 嵌入對方網址,但會有一些問題。像是無法讓 Google 大神爬內容、HTTP 網址無法嵌入、如果有設定 x-frame-options 為 SAMEORIGIN 的話就無法嵌入、CSP 的設定也有可能造成無法嵌入
2. iframe + proxy + funliday url:改善了第 1 種方式,直接在 Funliday server 這裡做 proxy,但還是會有無法讓 Google 大神爬內容以及內容網址如果是相對路徑時的導頁問題 (這應該好解決)
3. 寫爬蟲抓內容:比如 A 站就固定抓
4. remote render:類似 2+3 的方式,就是把要顯示的網頁用 headless chrome render 完之後,再跟原本的內容一起顯示,但畫面應該是會亂掉。
技術面可以的解法都確認了之後,再來就是適法性的問題了,因為 234 會把對方的資料落地到 Funliday 上,所以可能會有著作權的問題。對科技及法律這塊當然要問有研究的 Ant Yi-Feng Tzeng 啦,請教了 ant 之後也得到了一些結論。
234 都會有著作權法的問題,所以基本上是不可行的,但只要著作權人有同意的話,則不在此限。
---
最後 Funliday Web 的實作方式跟 1234 都無關,而是改用類似預覽頁的方式在 Funliday Web 顯示原連結的 og:title 及 og:image,應該會再加上簡單如「以上內容未經重製與改作,來源均援引來源網頁內容」的聲明。
對於技術這部分也不複雜,在後台上稿時先取得原網頁的 og 資料,跟原本的 234 相比簡單太多了 XD
---
有經過 ant 同意,認為這個問題應該蠻多人都會遇到,所以分享給大家看看啦!
#著作權 #iframe #funliday
chrome iframe 在 Eric Fan 范健文 Facebook 的最佳貼文
在ChromeBrowser 有安裝AdBlocker 既人要注意啦!
【駭侵事件】研究發現,超過2000萬個Chrome用戶安裝了惡意偽冒廣告攔截器(ad blocker)
瀏覽器外掛中,廣告攔截程式(Ad blocker)在幫助用戶安全瀏覽網路發揮重要的作用,同時不會因為在關閉彈出式廣告而被重導向到用垃圾郵件轟炸用戶的詐騙網站。
目前在桌上型電腦和移動設備上有超過10億人正在使用的Chrome瀏覽器,在資安公司研究報告中揭露,Chrome瀏覽器就像是大量偽冒外掛程式的集散地,尤其是惡意的廣告攔截器,根據說法,由於Chrome網路商店的安全性管控不佳,目前有超過2000萬的Chrome用戶在其瀏覽器上安裝了偽造的廣告攔截器外掛程式。
這些偽冒外掛程式的主要例子之一就是擁有超過1000萬用戶的Google Chrome瀏覽器外掛「AdRemover」。在進一步的檢查中,Adguard研究人員發現了兩個包含混淆腳本的.txt檔案,可以追蹤由受害者瀏覽器發出的每個request。
研究人員將其標記為一個由數百萬個受感染瀏覽器所組成的「natural botnet」,它可以或已經被用來竊取Chrome用戶的個人資料,並將其發送到疑似命令與控制伺服器(C&C)。
這個隱藏的腳本除監聽瀏覽器發出的請求外,並以MD5(url +"%Ujy%BNY0O")比較從coupons.txt加載的簽名列表。當所述簽名被命中時,便從domaing.qyz.sx加載一個iframe,傳遞被訪問頁面的相關資訊,然後重新初始化該外掛。例如,其中一個簽名與https://www.google.com/相對應
此外,Chrome網路商店上還有其他四款假廣告攔截器遵循與AdRemover外掛程式相同的模式。偽冒的惡意Adblockers列表如下:
Webutation(目前由超過30,000名用戶安裝)
HD for YouTube(目前由超過40萬用戶安裝)
Adblock Pro(目前由超過200萬用戶安裝)
uBlock Plus(目前由超過800萬用戶安裝)
Google Chrome的AdRemover(目前由超過1000萬用戶安裝)
●該資安公司已經向Google通知Chrome網路商店上存在惡意Adblockers的情況,但是在發佈時,所有上述外掛程式仍可安裝使用。因此,如果用戶正在使用這些Adblocker中的任何之一,建議立即移除以免遭駭客利用。
參考連結:
[1]https://www.hackread.com/20-million-chrome-users-have-inst…/
[2]https://blog.adguard.com/…/over-20-000-000-of-chrome-users…/
更多【駭侵事件】請參考 https://www.twcert.org.tw/subpa…/securityInfo/hackevent.aspx
chrome iframe 在 請問google是否不支援iframe了 - Mobile01 的推薦與評價
之前有作個網站,其中有將一些外部網頁利用iframe嵌入,之前都可以正常瀏覽,但是最近發現其中一頁的框架變成顯示=====此內容無法在框架中顯示為了協助保護您在此 ... ... <看更多>
chrome iframe 在 YouTube Embedded Players and Player Parameters - Google ... 的推薦與評價
Overview
This document explains how to embed a YouTube player in your application and also defines the parameters that are available in the YouTube embedded player.
By appending parameters to the IFrame URL, you can customize the playback experience in your application. For example, you can automatically play videos using the
autoplay
parameter or cause a video to play repeatedly using theloop
parameter. You can also use theenablejsapi
parameter to enable the player to be controlled via the IFrame Player API.This page currently defines all parameters supported in any YouTube embedded player. Each parameter definition identifies the players that support the corresponding parameter.
Note: Embedded players must have a viewport that is at least 200px by 200px. If the player displays controls, it must be large enough to fully display the controls without shrinking the viewport below the minimum size. We recommend 16:9 players be at least 480 pixels wide and 270 pixels tall.
Embed a YouTube playerYou can use any of the following methods to embed a YouTube player in your application and specify player parameters. Note that the instructions below demonstrate how to embed a player that loads a single video. The following section explains how to configure your player to load a playlist or a user's uploaded videos.
Embed a player using an<iframe>
tagDefine an
<iframe>
tag in your application in which thesrc
URL specifies the content that the player will load as well as any other player parameters you want to set. The<iframe>
tag'sheight
andwidth
parameters specify the dimensions of the player.If you create the
<iframe>
element yourself (rather than using the IFrame Player API to create it), you can append player parameters directly to the end of the URL. The URL has the following format:The
<iframe>
tag below would load a 640x360px player that would play the YouTube videoM7lc1UVf-VE
. Since the URL sets theautoplay
parameter to1
, the video would play automatically once the player has loaded.Embed a player using the IFrame Player API
Follow the IFrame Player API instructions to insert a video player in your web page or application after the Player API's JavaScript code has loaded. The second parameter in the constructor for the video player is an object that specifies player options. Within that object, the
playerVars
property identifies player parameters.The HTML and JavaScript code below shows a simple example that inserts a YouTube player into the page element that has an
Select content to playid
value ofytplayer
. TheonYouTubePlayerAPIReady()
function specified here is called automatically when the IFrame Player API code has loaded. This code does not define any player parameters and also does not define other event handlers.You can configure your embedded player to load a video, a playlist, or a user's uploaded videos.
The following list explains these options:
Loading a video
For an IFrame embed, the YouTube video ID for the video that you want to load is specified in the IFrame's
src
URL.If you are using the YouTube Data API (v3), you can programmatically construct these URLs by retrieving video IDs from search results, playlist item resources, video resources, or other resources. After obtaining a video ID, replace the
VIDEO_ID
text in the URLs above with that value to create the player URL.Loading a playlist
Set the
listType
player parameter toplaylist
. In addition, set thelist
player parameter to the YouTube playlist ID that you want to load.Note that you need to prepend the playlist ID with the letters
PL
as shown in the following example:If you are using the YouTube Data API (v3), you can programmatically construct these URLs by retrieving playlist IDs from search results, channel resources, or activity resources. After obtaining a playlist ID, replace the
PLAYLIST_ID
text in the URL above with that value.Loading a user's uploaded videos
Set the
listType
player parameter touser_uploads
. In addition, set thelist
player parameter to the YouTube username whose uploaded videos you want to load.Supported parameters
All of the following parameters are optional.
Parameters
autoplay
This parameter specifies whether the initial video will automatically start to play when the player loads. Supported values are
0
or1
. The default value is0
.If you enable Autoplay, playback will occur without any user interaction with the player;
playback data collection and sharing will therefore occur upon page load.
cc_lang_pref
This parameter specifies the default language that the player will use to display captions. Set the parameter's value to an ISO 639-1 two-letter language code.
If you use this parameter and also set the
cc_load_policy
parameter to1
, then the player will show captions in the specified language when the player loads. If you do not also set thecc_load_policy
parameter, then captions will not display by default, but will display in the specified language if the user opts to turn captions on.cc_load_policy
Setting the parameter's value to
1
causes closed captions to be shown by default, even if the user has turned captions off. The default behavior is based on user preference.color
This parameter specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. Valid parameter values are
red
andwhite
, and, by default, the player uses the color red in the video progress bar. See the YouTube API blog for more information about color options.controls
This parameter indicates whether the video player controls are displayed:
controls=0
– Player controls do not display in the player.controls=1
(default) – Player controls display in the player.disablekb
Setting the parameter's value to
1
causes the player to not respond to keyboard controls. The default value is0
, which means that keyboard controls are enabled. Currently supported keyboard controls are:Spacebar or [k]: Play / Pause
Arrow Left: Jump back 5 seconds in the current video
Arrow Right: Jump ahead 5 seconds in the current video
Arrow Up: Volume up
Arrow Down: Volume Down
[f]: Toggle full-screen display
[j]: Jump back 10 seconds in the current video
[l]: Jump ahead 10 seconds in the current video
[m]: Mute or unmute the video
[0-9]: Jump to a point in the video.
0
jumps to the beginning of the video,1
jumps to the point 10% into the video,2
jumps to the point 20% into the video, and so forth.enablejsapi
Setting the parameter's value to
1
enables the player to be controlled via IFrame Player API calls. The default value is0
, which means that the player cannot be controlled using that API.For more information on the IFrame API and how to use it, see the IFrame API documentation.
end
This parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing the video. The parameter value is a positive integer.
Note that the time is measured from the beginning of the video and not from either the value of the
start
player parameter or thestartSeconds
parameter, which is used in YouTube Player API functions for loading or queueing a video.fs
Setting this parameter to
0
prevents the fullscreen button from displaying in the player. The default value is1
, which causes the fullscreen button to display.hl
Sets the player's interface language. The parameter value is an ISO 639-1 two-letter language code or a fully specified locale. For example,
fr
andfr-ca
are both valid values. Other language input codes, such as IETF language tags (BCP 47) might also be handled properly.The interface language is used for tooltips in the player and also affects the default caption track. Note that YouTube might select a different caption track language for a particular user based on the user's individual language preferences and the availability of caption tracks.
iv_load_policy
Setting the parameter's value to
1
causes video annotations to be shown by default, whereas setting to3
causes video annotations to not be shown by default. The default value is1
.list
The
list
parameter, in conjunction with thelistType
parameter, identifies the content that will load in the player.If the
listType
parameter value isuser_uploads
, then thelist
parameter value identifies the YouTube channel whose uploaded videos will be loaded.If the
listType
parameter value isplaylist
, then thelist
parameter value specifies a YouTube playlist ID. In the parameter value, you need to prepend the playlist ID with the lettersPL
as shown in the example below.If the
listType
parameter value issearch
, then thelist
parameter value specifies the search query. Note: This functionality is deprecated and will no longer be supported as of 15 November 2020.Note: If you specify values for the
list
andlistType
parameters, the IFrame embed URL does not need to specify a video ID.listType
The
listType
parameter, in conjunction with thelist
parameter, identifies the content that will load in the player. Valid parameter values areplaylist
anduser_uploads
.If you specify values for the
list
andlistType
parameters, the IFrame embed URL does not need to specify a video ID.Note: A third parameter value,
search
, has been deprecated and will no longer be supported as of 15 November 2020.loop
In the case of a single video player, a setting of
1
causes the player to play the initial video again and again. In the case of a playlist
player (or custom player), the player plays the entire playlist and then starts again at the
first video.
Supported values are
0
and1
, and the default value is0
.Note: This parameter has limited
support in IFrame embeds. To loop a single video, set the
loop
parameter value to1
and set the
playlist
parametervalue to the same video ID already specified in the Player API URL:
modestbranding
Note: This parameter is deprecated and has no effect. See the deprecation announcement for more information.
origin
This parameter provides an extra security measure for the IFrame API and is only supported for IFrame embeds. If you are using the IFrame API, which means you are setting the
enablejsapi
parameter value to1
, you should always specify your domain as theorigin
parameter value.playlist
This parameter specifies a comma-separated list of video IDs to play. If you specify a value, the first video that plays will be the
VIDEO_ID
specified in the URL path, and the videos specified in theplaylist
parameter will play thereafter.playsinline
This parameter controls whether videos play inline or fullscreen on iOS. Valid values are:
0
: Results in fullscreen playback. This is currently the default value, though the default is subject to change.1
: Results in inline playback for mobile browsers and forWebViews
created with theallowsInlineMediaPlayback
property set toYES
.rel
Note: This parameter is changing on or after September 25, 2018.
Prior to the change, this parameter indicates whether the player should show related videos when playback of the initial video ends.
If the parameter's value is set to
1
, which is the default value, then the player does show related videos.If the parameter's value is set to
0
, then the player does not show related videos.After the change, you will not be able to disable related videos. Instead, if the
rel
parameter is set to0
, related videos will come from the same channel as the video that was just played.start
This parameter causes the player to begin playing the video at the given number of seconds from the start of the video. The parameter value is a positive integer. Note that similar to the
seekTo
function, the player will look for the closest keyframe to the time you specify. This means that sometimes the play head may seek to just before the requested time, usually no more than around two seconds.widget_referrer
This parameter identifies the URL where the player is embedded. This value is used in YouTube Analytics reporting when the YouTube player is embedded in a widget, and that widget is then embedded in a web page or application. In that scenario, the
origin
parameter identifies the widget provider's domain, but YouTube Analytics should not identify the widget provider as the actual traffic source. Instead, YouTube Analytics uses thewidget_referrer
parameter value to identify the domain associated with the traffic source.Revision history
August 15, 2023
Note: This is a deprecation announcement for the
modestbranding
parameter.The
modestbranding
parameter is deprecated and willhave no effect. To align with YouTube's branding requirements, the player now determines the
appropriate branding treatment based on a combination of factors, including player size, other API
parameters (e.g.
controls
), and additional signals.April 27, 2021
The
playsinline
parameter definition has been updatedslightly to explain that the parameter pertains to both mobile browsers on iOS and iOS
WebViews.
October 15, 2020
The
autoplay
parameter definition has been updated toexplain that if you enable Autoplay, playback will occur without any user interaction with the
player; playback data collection and sharing will therefore occur upon page load.
October 13, 2020
Note: This is a deprecation announcement for the embedded player
functionality that lets you configure the player to load search results. This announcement affects
the player's
list
andlistType
parameters.This change will become effective on or after 15 November 2020. After that time,
setting the
listType
parameter value tosearch
will generate a4xx
response code, such as404
(Not Found
) or410
(Gone
).As an alternative, you can use the YouTube Data API's
search.list
method to retrieve searchresults and then load selected videos in the player.
In addition to the change described above, the
showinfo
parameter, which wasdeprecated in 2018, has been removed from this document.
August 23, 2018
Note: This is a deprecation announcement for the
showinfo
parameter. In addition, the behavior for therel
parameter is changing. Titles, channel information, and related videos are an important part of YouTube’s core user experience, and these changes help to make the YouTube viewing experience consistent across different platforms.The behavior for the
rel
parameter is changing on or after September 25, 2018. The effect of the change is that you will not be able to disable related videos. However, you will have the option of specifying that the related videos shown in the player should be from the same channel as the video that was just played.To be more specific:
Prior to the change, if the parameter's value is set to
0
, then the player does not show related videos.After the change, if the
rel
parameter is set to0
, the player will show related videos that are from the same channel as the video that was just played.The
showinfo
parameter, which indicates whether the player should display information like the video title and uploader before the video starts playing, is also being deprecated. Following the change, the channel avatar and video title will always display before playback begins, when playback is paused, and when playback ends. The avatar being displayed is new behavior that will be consistent across all embedded players.These changes will become effective on or after September 25, 2018. After that time, the
showinfo
parameter will be ignored. The behavior following the changes is consistent with the current default behavior for embedded players with the exception of the channel avatar changes mentioned above.August 16, 2018
The
cc_lang_pref
parameter can be used to specify the default language that the player will use to display captions. This parameter can be used in conjunction with thecc_load_policy
parameter to automatically show captions in the specified language during playback.September 15, 2017
The
controls
parameter's definition has been updated to remove references to the deprecated Flash (AS3) player. The value2
has been deprecated as it was originally designed to provide a performance improvement for embeds that loaded a Flash player.June 12, 2017
The new
widget_referrer
parameter helps to enable more accurate YouTube Analytics reporting when the YouTube player is embedded in a widget, and that widget is then embedded in a web page or application.November 1, 2016
This document has been updated to remove references to the deprecated Flash (AS3) player as well as to parameters only supported by that player. The YouTube Flash player was deprecated in January 2015.
October 20, 2016
This update contains the following changes:
The
disablekb
parameter definition has been corrected to note that the default value is0
, which means that keyboard controls are enabled. A value of1
indicates that keyboard controls should be disabled.The list of keyboard controls that the player supports has also been updated to include the following:
[f]: Toggle full-screen display
[j]: Jump back 10 seconds in the current video
[k]: Play / Pause
[l]: Jump ahead 10 seconds in the current video
[m]: Mute or unmute the video
[0-9]: Jump to a point in the video.
0
jumps to the beginning of the video,1
jumps to the time 10% into the video,2
jumps to the point 20% into the video, and so forth.In addition, the effect of pressing the [arrow left] or [arrow right] keys has changed. These keys now jump 5 seconds back (arrow left) or ahead (arrow right) in the current video.
August 11, 2016
This update contains the following changes:
The newly published YouTube API Services Terms of Service ("the Updated Terms"), discussed in detail on the YouTube Engineering and Developers Blog, provides a rich set of updates to the current Terms of Service. In addition to the Updated Terms, which will go into effect as of February 10, 2017, this update includes several supporting documents to help explain the policies that developers must follow.
The full set of new documents is described in the revision history for the Updated Terms. In addition, future changes to the Updated Terms or to those supporting documents will also be explained in that revision history. You can subscribe to an RSS feed listing changes in that revision history from a link in that document.
December 18, 2015
European Union (EU) laws require that certain disclosures must be given to and consents obtained from end users in the EU. Therefore, for end users in the European Union, you must comply with the EU User Consent Policy. We have added a notice of this requirement in our YouTube API Terms of Service.
August 19, 2015
The
autohide
parameter has been deprecated for the HTML5 player. In HTML5 players, the video progress bar and player controls display or hide automatically. That behavior corresponds to anautohide
setting of1
.The
theme
parameter has been deprecated for the HTML5 player. HTML5 players now always use the dark theme.March 9, 2015
The document has been updated to reflect the fact that YouTube
<object>
embeds, the YouTube Flash Player API and the YouTube JavaScript Player API have all been deprecated as of January 27, 2015. A deprecation warning appears in several sections of this document to help point readers to the IFrame Player API as an alternative.The definition of the
autohide
parameter has been updated to clarify the meaning of the parameter's values. The default behavior (autohide=2
) is that if the player has a 16:9 or 4:3 aspect ratio, the player's video progress bar and player controls display or hide automatically. Otherwise, those controls are visible throughout the video.The definition of the
hl
parameter has been updated to note that the parameter value could be an ISO 639-1 two-letter language code or a fully specified locale. For example,fr
andfr-ca
are both valid parameter values.The definition of the
enablejsapi
parameter has been reworded to clarify that the parameter enables a player to be controlled via API calls. The API could be either the IFrame Player API or the JavaScript Player API.October 14, 2014
The HTML5 player now supports the
cc_load_policy
,disablekb
,end
,fs
,list
, andlistType
parameters. The parameter descriptions have been updated accordingly.July 18, 2014
The new
hl
parameter can be used to set the player's interface language. The interface language is used for tooltips in the player and also affects the default caption track. The selected caption track may also depend on the availability of caption tracks and user's individual language preferences.The parameter's value is an ISO 639-1 two-letter language code, though other language input codes, such as IETF language tags (BCP 47) may also be handled properly.
The definition of the
playsinline
parameter, which only affects HTML5 players on iOS, has been modified slightly. The definition now notes that setting the parameter value to1
causes inline playback only forUIWebViews
created with theallowsInlineMediaPlayback
property set toTRUE
.January 28, 2014
The
playsinline
parameter controls whether videos play inline or fullscreen in an HTML5 player on iOS. Setting the value to1
causes inline playback.The Selecting content to play section has been updated to explain how to find YouTube video IDs and playlist IDs using the YouTube Data API (v3) rather than the older API version.
The
controls
parameter's definition has been updated to reflect the fact that the parameter value only affects the time that the Flash player actually loads in IFrame embeds. In addition, for IFrame embeds, the parameter value also determines when the controls display in the player. If you set the parameter's value to2
, then the controls display and the Flash player loads after the user initiates the video playback.May 10, 2013
This update contains the following changes:
YouTube no longer identifies experimental API features and services. Instead, we now provide a list of YouTube APIs that are subject to the deprecation policy.
July 20, 2012
This update contains the following changes:
The definition of the
controls
parameter has been updated to reflect support for a parameter value of2
and to explain that, for AS3 players, the parameter value determines the time when the Flash player actually loads. If thecontrols
parameter is set to0
or1
, the Flash player loads immediately. If the parameter value is2
, the Flash player does not load until the video playback is initiated.June 5, 2012
This update contains the following changes:
The HTML5 player now supports the
color
,modestbranding
, andrel
parameters, and the definitions for these parameters have been updated accordingly.The definition of the
showinfo
parameter has been updated to explain how that if the player is loading a playlist, and you explicitly set the parameter value to1
, then, upon loading, the player will also display thumbnail images for the videos in the playlist. Note that this functionality is only supported for the AS3 player since that is the only player that can load a playlist.May 4, 2012
This update contains the following changes:
The
showinfo
parameter's definition has been updated to reflect the fact that the HTML5 player supports this parameter.May 3, 2012
This update contains the following changes:
The new
end
parameter specifies the time, measured in seconds from the start of the video, when the player should stop playing a video. Note that the time when playback is stopped is measured from the beginning of the video and not from the value of either thestart
player parameter or thestartSeconds
parameter, which is used in YouTube Player API functions for loading or queueing a video.March 29, 2012
This update contains the following changes:
The new Embedding a YouTube player section explains different ways to embed a YouTube player in your application. This section covers manual IFrame embeds, IFrame embeds that use the IFrame Player API, and AS3 and AS2 object embeds. This section incorporates information from the old Example usage section, which has been removed.
The new Selecting content to play section explains how to configure the player to load a video, a playlist, search results for a specified query, or uploaded videos for a specified user.
The new
list
andlistType
parameters let you specify the content that the player should load. You can specify a playlist, a search query, or a particular user's uploaded videos.The definitions of the
fs
andrel
parameters have been updated to more clearly explain the default parameter values for the AS3 player.The
border
,color1
,egm
,hd
, andshowsearch
parameters, which are all only supported for the deprecated AS2 Player API, have been moved to a new section named deprecated parameters only used in the AS2 Player API.The document no longer provides a way to filter the parameter list to only display parameters supported in either the AS3, AS2, or HTML5 player. Instead, each parameter definition has been updated to identify the players that support that parameter.
August 11, 2011
This update contains the following changes:
The new
theme
andcolor
parameters let you customize the appearance of the embedded player's player controls. See the YouTube API blog for more information.June 8, 2011
This update contains the following changes:
The new
modestbranding
parameter lets you use a YouTube player that does not show a YouTube logo. As of this release, the parameter was only supported for the AS3 embedded player and for IFrame embeds that loaded the AS3 player. As of June 5, 2012, the HTML5 player also supported this parameter.February 14, 2011
This update contains the following changes:
The documentation has been updated to note that the AS2 Player API has been deprecated. The deprecation of the AS2 Player API was actually announced on October 14, 2009.
February 3, 2011
This update contains the following changes:
The documentation has been updated to identify parameters supported in the HTML5 (IFrame) embedded player.
The document now displays all of the parameters supported in any of YouTube's embedded players (HTML5, AS3, AS2).
The following parameters are supported in the AS2 player but have been deprecated for the newer AS3 and HTML5 players:
border
,color1
,color2
,egm
,hd
, andshowsearch
.In addition, the
loop
parameter has limited support in the AS3 player and in IFrame embeds, which could load either an AS3 or HTML player. Currently, theloop
parameter only works in the AS3 player when used in conjunction with theplaylist
parameter. To loop a single video, set theloop
parameter to1
and set theplaylist
parameter value to the same video ID already specified in the Player API URL:Similarly, the
controls
andplaylist
parameters are supported in the AS3 and HTML5 players but are not and will not be supported in the AS2 player.As noted above, IFrame embeds can load either an AS3 or HTML5 player. Though some parameters are not supported in both players, an IFrame embed that loads the AS3 player will support all parameters that work with that player and ignore all other parameters. Similarly, an IFrame embed that loads the HTML5 player will support all parameters that work with that player while ignoring all other parameters.
The parameter list has been updated to include the
autohide
parameter, which indicates whether the player's video controls will automatically hide after a video begins playing.The parameter list has been updated to include the
controls
parameter, which indicates whether the player's video controls will display at all. (Player controls do display by default.)The parameter list has been updated to include the
playlist
parameter, which specifies a comma-separated list of video IDs to play.The definition of the
fs
has been updated to note that the fullscreen option will not work if you load the YouTube player into another SWF.The example at the end of the document has been updated to use the embedded AS3 player instead of the embedded AS2 player. The parameters used in the example have also been updated to only include parameters that the AS3 player supports.
In addition, the instructions for constructing the URLs that contain player parameters have been updated to reflect the URL formats used by the AS3 and AS2 embedded and chromeless players as well as by the HTML5 player.
... <看更多>