{"id":2935,"date":"2010-06-30T00:13:56","date_gmt":"2010-06-30T06:13:56","guid":{"rendered":"http:\/\/www.josuepalma.com\/blog\/?p=2935"},"modified":"2010-07-01T11:47:02","modified_gmt":"2010-07-01T17:47:02","slug":"flash-vs","status":"publish","type":"post","link":"https:\/\/www.josuepalma.com\/blog\/flash-vs\/","title":{"rendered":"Flash VS < video >"},"content":{"rendered":"<p>Pens\u00e9 en escribir los siguientes post aprovechando que los blogstars ya agotaron la parte sensacionalista del tema HTML5 vs Flash, ahora ya veo mas objetividad en los articulos, mostrando c\u00f3digo y ejemplos, por supuesto casi todos hechos por desarrolladores<\/p>\n<p>Para el tema de video pensaba poner cada una de las cosas por las que Flash supera a esta etiqueta pero afortunadamente Youtube hoy lo ha hecho y creo que no hay alguien con mas derecho y experiencia para hablar de video que ellos:<\/p>\n<blockquote>\n<div>There&#8217;s been a lot of discussion lately about whether or not the  HTML5 &lt;video&gt; tag is going to replace Flash Player for video  distribution on the web.  We\u2019ve been excited about the HTML5 effort and  &lt;video&gt; tag for quite a while now, and most YouTube videos can now  be played via <a href=\"http:\/\/www.youtube.com\/html5\">our HTML5 player<\/a>.   This work has shown us that, while the &lt;video&gt; tag is a big step  forward for open standards, the Adobe Flash Platform will continue to  play a critical role in video distribution.<\/div>\n<div>It&#8217;s  important to understand what a site like YouTube needs from the browser  in order to provide a good experience for viewers as well as content  creators.  We need to do more than just point the browser at a video  file like the image tag does &#8211; there\u2019s a lot more to it than just  retrieving and displaying a video.  The &lt;video&gt; tag certainly  addresses the basic requirements and is making good progress on meeting  others, but the &lt;video&gt; tag does not currently meet all the needs  of a site like YouTube:<\/div>\n<div><strong>Standard Video  Format<\/strong><\/div>\n<div>First and foremost, we need all browsers to support  a standard video format.  Users <a href=\"http:\/\/youtube-global.blogspot.com\/2010\/03\/oops-pow-surprise24-hours-of-video-all.html\">upload  24 hours of video every minute to YouTube<\/a>, so it&#8217;s important to  minimize the number of video formats we support.  Especially when you  consider that for each format, we also provide a variety of sizes (360p,  480p, 720p, 1080p).  We have been encoding YouTube videos with the  H.264 codec since early 2007, which we use for both Flash Player and  mobile devices like the iPhone and Android phones.  This let us quickly  and easily launch HTML5 playback for most videos on browsers that  support H.264, such as Chrome and Safari.<\/div>\n<div>Concerns  about patents and licensing have prevented some browsers from  supporting H.264; this in turn has prevented the HTML5 spec from  requiring support for a standard format.  We believe the web needs an  open video format option. One that not only helps address the licensing  concerns, but is also optimized for the unique attributes of serving  video on the web. To that end, we\u2019re excited about the new <a href=\"http:\/\/www.webmproject.org\/\">WebM project<\/a>. Google is open  sourcing and contributing the VP8 codec to the WebM effort.  Google,  Mozilla, and Opera have all committed to support WebM, and we have  already started making YouTube videos available in the WebM format.  Adobe has also committed to support VP8, the video codec for WebM, in an  upcoming Flash Player release.<\/div>\n<div><\/div>\n<div><strong>Robust video  streaming<\/strong><\/div>\n<div>Closely related to the need for a standard  format is the need for an effective and reliable means of delivering the  video to the browser.  Simply pointing the browser at a URL is not good  enough, as that doesn&#8217;t allow users to easily get to the <a href=\"http:\/\/www.youtube.com\/watch?v=u7TwqpWiY5s#t=21m0s\">part of the  video they want<\/a>.  As we\u2019ve been expanding into serving full-length  movies and <a href=\"http:\/\/youtube-global.blogspot.com\/2010\/04\/youtube-to-stream-ipl-semi-finals-and.html\">live  events<\/a>, it also becomes important to have fine control over  buffering and dynamic quality control.  Flash Player addresses these  needs by letting applications manage the downloading and playback of  video via Actionscript in conjunction with either HTTP or the RTMP video  streaming protocol.  The HTML5 standard itself does not address video  streaming protocols, but a number of vendors and organizations are  working to improve the experience of delivering video over HTTP.  We are  beginning to contribute to these efforts and hope to see a single  standard emerge.<\/div>\n<div><strong>Content Protection<\/strong><\/div>\n<div>YouTube  doesn&#8217;t own the videos that you watch &#8211; they&#8217;re owned by their  respective creators, who control how those videos are distributed  through YouTube.  For <a href=\"http:\/\/www.youtube.com\/store\">YouTube  Rentals<\/a>, video owners require us to use secure streaming technology,  such as the Flash Platform&#8217;s RTMPE protocol, to ensure their videos are  not redistributed.  Without content protection, we would not be able to  offer videos like <a href=\"http:\/\/www.youtube.com\/watch?v=rW_i0vR_dQc\">this<\/a>.<\/div>\n<div><strong>Encapsulation  + Embedding<\/strong><\/div>\n<div>Flash Player&#8217;s ability to combine application  code and resources into a secure, efficient package has been  instrumental in allowing YouTube videos to be embedded in other web  sites.  Web site owners need to ensure that embedded content is not able  to access private user information on the containing page, and we need  to ensure that our video player logic travels with the video (for  features like captions, annotations, and advertising).  While HTML5 adds  sandboxing and message-passing functionality, Flash is the only  mechanism most web sites allow for embedded content from other sites.<\/div>\n<div><strong>Fullscreen  Video<\/strong><\/div>\n<div>HD video begs to be watched in full screen, but  that has not historically been possible with pure HTML.  While most  browsers have a fullscreen mode, they do not allow javascript to  initiate it, nor do they allow a small part of the page (such as a video  player) to fill the screen.  Flash Player provides robust, secure  controls for enabling hardware-accelerated fullscreen displays.  While  WebKit has recently taken some steps forward on fullscreen support, it&#8217;s  not yet sufficient for video usage (particularly the ability to  continue displaying content on top of the video).<\/div>\n<div><strong>Camera  and Microphone access<\/strong><\/div>\n<div>Video is not just a one-way medium.   Every day, thousands of users <a href=\"http:\/\/www.youtube.com\/my_webcam\">record videos directly to  YouTube<\/a> from within their browser using webcams, which would not be  possible without Flash technology.  Camera access is also needed for  features like video chat and live broadcasting &#8211; extremely important on  mobile phones which practically all have a built-in camera.  Flash  Player has provided rich camera and microphone access for several years  now, while HTML5 is just <a href=\"http:\/\/www.whatwg.org\/specs\/web-apps\/current-work\/#devices\">getting<\/a> <a href=\"http:\/\/www.w3.org\/2009\/dap\/\">started<\/a>.<\/div>\n<div>We\u2019re  very happy to see such active and enthusiastic discussion about  evolving web standards &#8211; YouTube is dependent on browser enhancement in  order for us to improve the video experience for our users.  While  HTML5\u2019s video support enables us to bring most of the content and  features of YouTube to computers and other devices that don\u2019t support  Flash Player, it does not yet meet all of our needs.  Today, Adobe Flash  provides the best platform for YouTube\u2019s video distribution  requirements, which is why our primary video player is built with it.<\/div>\n<\/blockquote>\n<p>El post original aqu\u00ed:<\/p>\n<p><a href=\"http:\/\/apiblog.youtube.com\/2010\/06\/flash-and-html5-tag.html\" target=\"_blank\">http:\/\/apiblog.youtube.com\/2010\/06\/flash-and-html5-tag.html<\/a><\/p>\n<p>Me agrada que Youtube haya hecho esto, porque de verdad, hay muchos aferrados en destruir a Flash sin entender las capacidades reales que tiene, muchos Flashers conocemos estas caracteristicas pero aah que dificil es hacer entender a los fanboys, creo que con esto Youtube lo lograr\u00e1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pens\u00e9 en escribir los siguientes post aprovechando que los blogstars ya agotaron la parte sensacionalista del tema HTML5 vs Flash, ahora ya veo mas objetividad\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[30,103],"class_list":["post-2935","post","type-post","status-publish","format-standard","hentry","category-desarrollo","tag-flash","tag-html5"],"_links":{"self":[{"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/posts\/2935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/comments?post=2935"}],"version-history":[{"count":6,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/posts\/2935\/revisions"}],"predecessor-version":[{"id":2938,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/posts\/2935\/revisions\/2938"}],"wp:attachment":[{"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/media?parent=2935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/categories?post=2935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.josuepalma.com\/blog\/wp-json\/wp\/v2\/tags?post=2935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}