Engineering and Developers Blog
What's happening with engineering and developers at YouTube
A New Way To Embed YouTube Videos
четвер, 22 липня 2010 р.
An enhancement to our video embed capability is now available through a new embed code style. This new style uses
<iframe>
and looks like this:
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/
VIDEO_ID
"
allowfullscreen
frameborder="0">
</iframe>
Example:
<br />
If you use the new embed code style, your viewers will be able to view your embedded video in one of our Flash or HTML5 players, depending on their viewing environment and preferences. Environments that support the HTML5 video player are
listed here on our HTML5 settings page.
In instances where HTML5 isn't supported (e.g. our HTML5 player can't play videos with ads), we use Flash.
An additional benefit of the new embed style is that it will eventually allow embeds to work on mobile devices, which typically use a built-in player instead of Flash or HTML5.
Before we make this new embed code the standard for our general users, we wanted to give our developer community a preview. While there may be some limitations, please try it out and
let us know how it went.
Toliver Jue, Software Engineer
recently learned some dance moves from “
黄帝心仙人
".
Мітки
.net
360
acceleration
access control
accessibility
actionscript
activities
activity
android
announcements
apis
app engine
appengine
apps script
as2
as3
atom
authentication
authorization
authsub
best practices
blackops
blur faces
bootcamp
captions
categories
channels
charts
chrome
chromeless
client library
clientlibraries
clientlogin
code
color
comments
compositing
create
curation
custom player
decommission
default
deprecation
devs
direct
discovery
docs
Documentation RSS
dotnet
education
embed
embedding
events
extension
feeds
flash
format
friendactivity
friends
fun
gears
google developers live
google group
googlegamedev
googleio
html5
https
iframe
insight
io12
io2011
ios
iphone
irc
issue tracker
java
javascript
json
json-c
jsonc
knight
legacy
Live Streaming API
LiveBroadcasts API
logo
machine learning
mashups
media:keywords keywords tags metadata
metadata
mobile
mozilla
NAB 2016
news
oauth
oauth2
office hours
open source
partial
partial response
partial update
partners
patch
php
player
playlists
policy
previews
pubsubhubbub
push
python
quota
rails
releases
rendering
reports
responses
resumable
ruby
samples
sandbox
shortform
ssl https certificate staging stage
stack overflow
stage video
staging
standard feeds
storify
storyful
subscription
sup
Super Chat API
survey
tdd
theme
tos
tutorials
updates
uploads
v2
v3
video
video files
video transcoding
virtual reality
voting
VR
watch history
watchlater
webvtt
youtube
youtube api
YouTube Data API
youtube developers live
youtube direct
YouTube Engineering & Developers Blog
YouTube IFrame Player API
YouTube live
YouTube Reporting API
ytd
Archive
2020
лист.
2019
серп.
квіт.
2018
груд.
серп.
квіт.
2017
лист.
вер.
серп.
бер.
січ.
2016
лист.
жовт.
серп.
трав.
квіт.
2015
груд.
лист.
жовт.
трав.
квіт.
бер.
січ.
2014
жовт.
вер.
серп.
трав.
бер.
2013
груд.
жовт.
вер.
серп.
лип.
черв.
трав.
квіт.
бер.
лют.
2012
груд.
лист.
вер.
серп.
лип.
черв.
трав.
квіт.
бер.
лют.
січ.
2011
груд.
жовт.
вер.
серп.
лип.
черв.
трав.
квіт.
бер.
лют.
січ.
2010
груд.
лист.
жовт.
вер.
лип.
черв.
трав.
квіт.
бер.
лют.
січ.
2009
лист.
жовт.
вер.
серп.
лип.
черв.
трав.
квіт.
бер.
лют.
січ.
2008
груд.
лист.
жовт.
вер.
серп.
лип.
черв.
трав.
квіт.
бер.
лют.
2007
груд.
лист.
серп.
черв.
трав.
Feed
Follow @youtubedev