SlideShare a Scribd company logo
Brooks Bennett, City of Round Rock, TX YouTube for Developers Developers
Necessary YouTube Caveat YouTube has the power to make time melt away. It is possible to watch years of: Kittens Slam dunks Car crashes Kids dancing
What we will cover Uploading to YouTube Proper moderation settings Video embedding basics Custom video embed parameters YouTube Player API YouTube Data API
Why YouTube World’s largest video sharing community Video quality has greatly improved over past two years Actively adding new features HTML5 Closed captions Robust APIs
YouTube for Government YouTube has a government partner program, but it takes a  LONG  time to get accepted and there is no feedback during the process Removes any video duration limitations Gives you a little bit more control over the branding of the page
YouTube for Government The name of your government, government department, or agency Your .gov website URL The account name you've registered on YouTube (i.e., your YouTube username) The email address you are using to manage the account
YouTube for Government Any other information about your plans to launch the channel, and what types of content you plan to post Send this information to:  [email_address]
Uploading to YouTube http://www.youtube.com
Video embedding
Video embedding Uncheck “Show suggested videos when video finishes,” unless you are comfortable with random suggested videos showing up Check HTTPS if you are embedding on a secure site to avoid “mixed content” warnings
Video embedding Check “Enable privacy-enhanced mode” to disallow YouTube from setting a cookie when the player is loaded Cookie will only be set when user clicks to play the video and that information will not be personally identifiable
Video embedding Uncheck “Use old embed code” <iFrame> embed detects if device can use HTML5 video You can detect what your browser supports at:  http://www.youtube.com/html5 Only use <Object> if the site you are using won’t allow iFrame
Video embedding Select predefined size Or set a custom height or width YouTube will automatically constrain proportions, which is a nice feature Nice to know size of content area where you are embedding and size accordingly
Video embedding What you might be thinking: “ Give me more control...”
Video embedding <iframe width=&quot;420&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/f9MtttXI2q8?autohide=0&autoplay=0&cc_load_policy=1 &controls=1&enablejsapi=1&fs=1 &iv_load_policy=1&loop=0&modestbranding=1&playerapiid=test&playlist=QtQKgNWH7IU,AuwxGuLSgUo&rel=1&showinfo=0&theme=light&color=red&start=10&quot; frameborder=&quot;0&quot; allowfullscreen></iframe>
Embed parameters autohide (0,1, 2 )- 0: don’t hide controls; 1:progress bar and controls fade out; 2: progress bar fades out autoplay ( 0 ,1)- Should video play on load cc_load_policy(1, user pref )- Will force closed captions to load color ( red ,white)- Color of progress bar
Embed parameters controls (0, 1 )- Show player controls disablekb ( 0 ,1)- Disable keyboard controls enablejsapi ( 0 ,1)- Enable JavaScript API fs (0, 1 )- Enables fullscreen button iv_load_policy ( 1 ,3)- 1:Show video annotations by default; 3: Don’t show video annotations
Embed parameters loop ( 0 ,1)- Play single video over and over or play playlist over and over modestbranding ( 0 ,1)- Hide YouTube logo origin - Supply your domain for extra security measure when using JavaScript API playerapiid - String used for control via JavaScript API
Embed parameters playlist - Comma separated list of YouTube IDs rel (0, 1 )- Show related videos showinfo (0, 1 )- Show title text on video before playing start - Value in seconds to start playing video theme ( dark ,light) - Theme color
Embed parameters HUH? Let's tinker a bit...
Google APIs As we all know, Google loves APIs (and so do we) All Google APIs are listed at: http://code.google.com/apis/
Player APIs Give you control over YouTube video playback on your website Configure basic settings Drive the player interface Build your own player controls
Chromeless vs. Embedded player Chromeless http://www.youtube.com/apiplayer? enablejsapi=1 &version=3 Embedded http://www.youtube.com/e/VIDEO_ID?version=3& enablejsapi=1 Note:  enablejsapi  is necessary to control the players via JavaScript
Player APIs Player API demo: http://code.google.com/apis/youtube/youtube_player_demo.html
Player APIs Player API documentation: http://code.google.com/apis/youtube/js_api_reference.html
Player APIs Shall we make some junk? Yes, we shall
Player APIs Garbage into an idea... We could take long form videos, like Board and Commission meetings, and add links to jump to each agenda item. This would take some effort, but you suddenly have a “poor man’s” video playback system for meetings. Cost: $0 .
Data API Lets you incorporate YouTube functionality into your own application or website. You can perform searches, upload videos, create playlists, and more.
Data API Data API Overview
Data API Google recommends you use  JSON-C  instead of JSON for working with the Data API via JavaScript More compact, logical responses Doesn’t mimic XML tags and attributes YouTube says JSON will be deprecated, so do it for future proofing
Data API Important  Query Parameters alt  (atom, rss, json, json-in-script, jsonc) callback  (API wraps response in a call to the function you name) start-index  (Number of the first result to return) max-results  (Maximum number results) v (Version of the API, current is 2)
Example Request https://gdata.youtube.com/feeds/api/playlists/1D96B84306CAFDE0?v=2&alt=jsonc JSONC interactive demo
Partial Response (experimental) API returns lots of stuff.  Partial response  only sends what you want using an XPATH-like syntax ?fields=entry(title,link[@rel='self' or @rel='edit'],media:group(media:thumbnail)) Note:  jsonc  is not yet enabled for returning partial responses
Mumbo Jumbo? So what do you do with this stuff?
Ways Round Rock puts it together Video box on  city homepage City Focus video player City of Round Rock  video widget
Thanks! Brooks Bennett City of Round Rock, TX [email_address] @brooksbennett Circle me on Google+

More Related Content

PDF
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
PDF
Building Video Applications with YouTube APIs
PDF
YouTube APIs Workshop
PPTX
Youtube api at Glance
PDF
The unconventional devices for the Android video streaming
PDF
StoryCode Immersion #5 - Popcorn.JS Deep Dive
PPTX
YouTube API: Dive In
PDF
Introduction to Jetpack- WordCamp Chicago 2014
YouTube APIs presentation at Facultad de Ciencias, Universidad Nacional Autón...
Building Video Applications with YouTube APIs
YouTube APIs Workshop
Youtube api at Glance
The unconventional devices for the Android video streaming
StoryCode Immersion #5 - Popcorn.JS Deep Dive
YouTube API: Dive In
Introduction to Jetpack- WordCamp Chicago 2014

What's hot (20)

PDF
JS Days Mobile Meow
PDF
Web DU Mobile Meow
PDF
HTML5, Flash, and the Battle For Faster Cat Videos
PDF
JS Days HTML5 Flash and the Battle for Faster Cat Videos
PPTX
WordCamp Raleigh WordPress & Social Media Integration
PPT
WordPress Plugin Development- Rich Media Institute Workshop
PPTX
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
PDF
Video Streaming: from the native Android player to uncoventional devices
PPT
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
PDF
How to Webpack your Django!
PDF
PPTX
Eclipse Overview
PDF
Mobile Meow at Mobilism
PDF
The Role of Python in SPAs (Single-Page Applications)
PPT
Os Johnson
PDF
Mobile Development with Ionic, React Native, and JHipster - ACGNJ Java Users ...
PPT
WordPress basic fundamental of plugin development and creating shortcode
PDF
Mobile Development with Ionic, React Native, and JHipster - AllTheTalks 2020
PDF
So, you want to be a plugin developer?
JS Days Mobile Meow
Web DU Mobile Meow
HTML5, Flash, and the Battle For Faster Cat Videos
JS Days HTML5 Flash and the Battle for Faster Cat Videos
WordCamp Raleigh WordPress & Social Media Integration
WordPress Plugin Development- Rich Media Institute Workshop
The Open-source Eclipse Plugin for Force.com Development, Summer ‘14
Video Streaming: from the native Android player to uncoventional devices
SF JUG - GWT Can Help You Create Amazing Apps - 2009-10-13
How to Webpack your Django!
Eclipse Overview
Mobile Meow at Mobilism
The Role of Python in SPAs (Single-Page Applications)
Os Johnson
Mobile Development with Ionic, React Native, and JHipster - ACGNJ Java Users ...
WordPress basic fundamental of plugin development and creating shortcode
Mobile Development with Ionic, React Native, and JHipster - AllTheTalks 2020
So, you want to be a plugin developer?
Ad

Viewers also liked (7)

PDF
Arts and Culture Strategic Master Plan - Community Coffee Presentation
PDF
Simple mobile Websites
PPTX
Social Media: When Will Case Law Catch Up to the
PDF
Tech Trends
PPT
Social Media For Municipalities
PDF
America's Health Plans Response to President Obama
PDF
Women In The Ministry Summary
Arts and Culture Strategic Master Plan - Community Coffee Presentation
Simple mobile Websites
Social Media: When Will Case Law Catch Up to the
Tech Trends
Social Media For Municipalities
America's Health Plans Response to President Obama
Women In The Ministry Summary
Ad

Similar to YouTube for Developers (20)

PPTX
Case study of youtube
PPTX
You tube ppt
PPT
maximise your web marketing WEB VIDEO & YOUTUBE
PPT
2 Webvideo & YouTube - maximise your web marketing 03.02.11
PPSX
YOUTUBE
PDF
HTML Media: Where We Are & Where We Need To Go
PDF
Developer Training for 23 Video
PPTX
Youtube Basics
PPT
August 10th, 2009 Tom Rogers YouTube
PDF
Multimedia on the web - HTML5 video and audio
PPT
YOUTUBE
PDF
How to Optimize YouTube Videos - YouTube SEO - ReelSEO Presentation
PPT
Building an HTML5 Video Player
PDF
Google Video Advertising
PDF
Not Just Video—VideoSEO
KEY
HTML5 Video Player - HTML5 Dev Conf 2012
PPTX
Youtube - Broadcast Yourself
PPTX
Youtube Powerpoint Presentation
PPTX
Tips And Tools For YouTube
PDF
Video Advertising by Google from Digital Marketing Paathshala
Case study of youtube
You tube ppt
maximise your web marketing WEB VIDEO & YOUTUBE
2 Webvideo & YouTube - maximise your web marketing 03.02.11
YOUTUBE
HTML Media: Where We Are & Where We Need To Go
Developer Training for 23 Video
Youtube Basics
August 10th, 2009 Tom Rogers YouTube
Multimedia on the web - HTML5 video and audio
YOUTUBE
How to Optimize YouTube Videos - YouTube SEO - ReelSEO Presentation
Building an HTML5 Video Player
Google Video Advertising
Not Just Video—VideoSEO
HTML5 Video Player - HTML5 Dev Conf 2012
Youtube - Broadcast Yourself
Youtube Powerpoint Presentation
Tips And Tools For YouTube
Video Advertising by Google from Digital Marketing Paathshala

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Encapsulation theory and applications.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
KodekX | Application Modernization Development
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
MYSQL Presentation for SQL database connectivity
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Per capita expenditure prediction using model stacking based on satellite ima...
Understanding_Digital_Forensics_Presentation.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
sap open course for s4hana steps from ECC to s4
Encapsulation theory and applications.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
KodekX | Application Modernization Development
Programs and apps: productivity, graphics, security and other tools
MYSQL Presentation for SQL database connectivity
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
The AUB Centre for AI in Media Proposal.docx
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.

YouTube for Developers

  • 1. Brooks Bennett, City of Round Rock, TX YouTube for Developers Developers
  • 2. Necessary YouTube Caveat YouTube has the power to make time melt away. It is possible to watch years of: Kittens Slam dunks Car crashes Kids dancing
  • 3. What we will cover Uploading to YouTube Proper moderation settings Video embedding basics Custom video embed parameters YouTube Player API YouTube Data API
  • 4. Why YouTube World’s largest video sharing community Video quality has greatly improved over past two years Actively adding new features HTML5 Closed captions Robust APIs
  • 5. YouTube for Government YouTube has a government partner program, but it takes a LONG time to get accepted and there is no feedback during the process Removes any video duration limitations Gives you a little bit more control over the branding of the page
  • 6. YouTube for Government The name of your government, government department, or agency Your .gov website URL The account name you've registered on YouTube (i.e., your YouTube username) The email address you are using to manage the account
  • 7. YouTube for Government Any other information about your plans to launch the channel, and what types of content you plan to post Send this information to: [email_address]
  • 8. Uploading to YouTube http://www.youtube.com
  • 10. Video embedding Uncheck “Show suggested videos when video finishes,” unless you are comfortable with random suggested videos showing up Check HTTPS if you are embedding on a secure site to avoid “mixed content” warnings
  • 11. Video embedding Check “Enable privacy-enhanced mode” to disallow YouTube from setting a cookie when the player is loaded Cookie will only be set when user clicks to play the video and that information will not be personally identifiable
  • 12. Video embedding Uncheck “Use old embed code” <iFrame> embed detects if device can use HTML5 video You can detect what your browser supports at: http://www.youtube.com/html5 Only use <Object> if the site you are using won’t allow iFrame
  • 13. Video embedding Select predefined size Or set a custom height or width YouTube will automatically constrain proportions, which is a nice feature Nice to know size of content area where you are embedding and size accordingly
  • 14. Video embedding What you might be thinking: “ Give me more control...”
  • 15. Video embedding <iframe width=&quot;420&quot; height=&quot;345&quot; src=&quot;http://www.youtube.com/embed/f9MtttXI2q8?autohide=0&autoplay=0&cc_load_policy=1 &controls=1&enablejsapi=1&fs=1 &iv_load_policy=1&loop=0&modestbranding=1&playerapiid=test&playlist=QtQKgNWH7IU,AuwxGuLSgUo&rel=1&showinfo=0&theme=light&color=red&start=10&quot; frameborder=&quot;0&quot; allowfullscreen></iframe>
  • 16. Embed parameters autohide (0,1, 2 )- 0: don’t hide controls; 1:progress bar and controls fade out; 2: progress bar fades out autoplay ( 0 ,1)- Should video play on load cc_load_policy(1, user pref )- Will force closed captions to load color ( red ,white)- Color of progress bar
  • 17. Embed parameters controls (0, 1 )- Show player controls disablekb ( 0 ,1)- Disable keyboard controls enablejsapi ( 0 ,1)- Enable JavaScript API fs (0, 1 )- Enables fullscreen button iv_load_policy ( 1 ,3)- 1:Show video annotations by default; 3: Don’t show video annotations
  • 18. Embed parameters loop ( 0 ,1)- Play single video over and over or play playlist over and over modestbranding ( 0 ,1)- Hide YouTube logo origin - Supply your domain for extra security measure when using JavaScript API playerapiid - String used for control via JavaScript API
  • 19. Embed parameters playlist - Comma separated list of YouTube IDs rel (0, 1 )- Show related videos showinfo (0, 1 )- Show title text on video before playing start - Value in seconds to start playing video theme ( dark ,light) - Theme color
  • 20. Embed parameters HUH? Let's tinker a bit...
  • 21. Google APIs As we all know, Google loves APIs (and so do we) All Google APIs are listed at: http://code.google.com/apis/
  • 22. Player APIs Give you control over YouTube video playback on your website Configure basic settings Drive the player interface Build your own player controls
  • 23. Chromeless vs. Embedded player Chromeless http://www.youtube.com/apiplayer? enablejsapi=1 &version=3 Embedded http://www.youtube.com/e/VIDEO_ID?version=3& enablejsapi=1 Note: enablejsapi is necessary to control the players via JavaScript
  • 24. Player APIs Player API demo: http://code.google.com/apis/youtube/youtube_player_demo.html
  • 25. Player APIs Player API documentation: http://code.google.com/apis/youtube/js_api_reference.html
  • 26. Player APIs Shall we make some junk? Yes, we shall
  • 27. Player APIs Garbage into an idea... We could take long form videos, like Board and Commission meetings, and add links to jump to each agenda item. This would take some effort, but you suddenly have a “poor man’s” video playback system for meetings. Cost: $0 .
  • 28. Data API Lets you incorporate YouTube functionality into your own application or website. You can perform searches, upload videos, create playlists, and more.
  • 29. Data API Data API Overview
  • 30. Data API Google recommends you use JSON-C instead of JSON for working with the Data API via JavaScript More compact, logical responses Doesn’t mimic XML tags and attributes YouTube says JSON will be deprecated, so do it for future proofing
  • 31. Data API Important Query Parameters alt (atom, rss, json, json-in-script, jsonc) callback (API wraps response in a call to the function you name) start-index (Number of the first result to return) max-results (Maximum number results) v (Version of the API, current is 2)
  • 33. Partial Response (experimental) API returns lots of stuff. Partial response only sends what you want using an XPATH-like syntax ?fields=entry(title,link[@rel='self' or @rel='edit'],media:group(media:thumbnail)) Note: jsonc is not yet enabled for returning partial responses
  • 34. Mumbo Jumbo? So what do you do with this stuff?
  • 35. Ways Round Rock puts it together Video box on city homepage City Focus video player City of Round Rock video widget
  • 36. Thanks! Brooks Bennett City of Round Rock, TX [email_address] @brooksbennett Circle me on Google+