Engineering and Developers Blog
What's happening with engineering and developers at YouTube
No WebView required, with native YouTube Player API for Android
Friday, December 21, 2012
Adding a high-quality video experience to your Android application just got a whole lot easier. Starting today, you can embed and play YouTube videos in your app using the new
YouTube Android Player API
.
The API, which was
pre-announced
at Google I/O 2012, offers these benefits:
High-quality video playback supported on Android 2.2 (Froyo) or newer
Easy integration
with your Android application (no
WebView
required)
Fullscreen
and orientation change support
Closed captions
display
Support for YouTube ads
Programmatic access, similar to existing
Player APIs
, to most aspects of the
YouTube video playback experience
Integration with the Android YouTube app using a standard set of YouTube
Intents
We are launching the API as
experimental
, though we do not expect major interface changes going forward.
The Only Limit Now is Your Imagination
(and
ToS
)
These
instructions
explain how to include the
YouTubeAndroidPlayerApi.jar
client library in your Android application. The library is supported on Android devices running version
4.2.16
or newer of the Android YouTube app.
You can use the
YouTubeApiServiceUtil
class'
isYouTubeApiServiceAvailable
method to confirm that a device is compatible.
For a simple embed, use the
YouTubeStandalonePlayer
. To build a more sophisticated user interface, try the
YouTubePlayerView
or the
YouTubePlayerFragment
.
Fragments
can help create an engaging experience as shown in the Video Wall app
example
.
Play With These Apps
Here are a few interesting apps available for you to explore:
See everything on
Flipboard
, all your news and life’s great moments in one place. Now you can watch YouTube videos from wherever you are in Flipboard without leaving the application, providing a more integrated and seamless experience.
BuzzFeed
delivers original reporting, scoops, and the hottest social content on the web. Android users can now view their favorite BuzzFeed content featuring YouTube videos in the BuzzFeed app and share with their friends.
9x9.tv
enables users to discover and watch curated, topical videos that are organized into TV-like channels. Their
blog
describes their experience developing with the API.
SoundTracking
lets people use their mobile phone or tablet to share their music moments and favorite jams with friends and family. Users can now discover and play YouTube music videos of the songs within their music timeline.
Fitness Flow by
Skimble
helps you get in shape with high-quality exercise videos led by professional trainers. Skimble uses YouTube to stream workout content on your Android phone and tablets.
Check out a few screen shots below or download the apps from
Google Play
today!
Flipboard
BuzzFeed
Fitness Flow by Skimble
Learn More
If you would like to learn more about the YouTube Android Player API, the
documentation
is a great place to start. In addition, we have curated useful videos in this
playlist
. Please subscribe to the
YouTube for Developers'
channel to keep up on the latest.
Check Out The Sample Code
We’ve prepared several code examples to make it easy for you to get started with the new API. You will find them on
code.google.com
. The description of the examples is available in our
documentation
. If you need additional help with the API feel free to use our
support resources
.
Cheers,
-- Ross McIlroy, Anton Hansson, and Horia Ciurdar, YouTube Mobile Team
No comments :
Post a Comment
Labels
.net
acceleration
access control
accessibility
actionscript
activities
activity
android
announcements
apis
app engine
appengine
apps script
as2
as3
atom
authentication
authorization
authsub
best practices
blackops
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
mashups
media:keywords keywords tags metadata
metadata
mobile
mozilla
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
survey
tdd
theme
tos
tutorials
updates
uploads
v2
v3
video
voting
watch history
watchlater
webvtt
youtube
youtube api
youtube developers live
youtube direct
ytd
Archive
2015
December
November
October
May
April
March
January
2014
October
September
August
May
March
2013
December
October
September
August
July
June
May
April
March
February
2012
December
No WebView required, with native YouTube Player AP...
The Simpler, Yet More Powerful New YouTube Data API
ClientLogin using Google Accounts
November
September
August
July
June
May
April
March
February
January
2011
December
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
July
June
May
April
March
February
January
2009
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
2007
December
November
August
June
May
Feed
YouTube
on
Follow @youtubedev
No comments :
Post a Comment