Your SlideShare is downloading. ×
0
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Developing HTML5 apps for TV
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Developing HTML5 apps for TV

3,283

Published on

Published in: Technology, Business
1 Comment
6 Likes
Statistics
Notes
  • This is awesome. I was trying to find info on responsive design for tv. All I could find was responsive design for mobile devices.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
3,283
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
65
Comments
1
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • low interaction, you sit away from the screen...\n
  • Everything that has to do with typing with a remote: it has a delay, it’s annoying, it needs autocomplete, avoid typing and have people choose from menues\n
  • As is the case on desktop, the Opera browser uses spatial navigation. While on the desktop this mode requires the use of SHIFT+cursor keys, on TV spatial navigation is mapped directly to the directional keys on the remote.\nThe most common interaction method is functionally equivalent to keyboard access on desktop/notebook devices. Therefore, designers should ensure that their content is keyboard accessible.\nTraditionally, only certain types of element — links, form elements, image map areas, etc. — are keyboard focusable. It is good practice (from an accessibility point of view) to use these elements for controls, rather than simply attaching JavaScript behaviours to other/generic elements, as these are then usually not focusable and usable via the keyboard alone.\nIn addition, Opera's spatial navigation mode features built-in heuristics that allow the focus to also be placed on any element that has a click or mouseover JavaScript handler, either in an onclick or onmouseoverattribute, or hooked into the element via the addEventListener method. In addition, spatial navigation also allows elements with a tabindex attribute (with a value of 0 or above) to receive focus.\nNote that for these non-traditional elements, spatial navigation mimics mouse behaviour, meaning that onlymouseover and mouseout events are automatically fired when moving to/from these elements. focus and blur events are still only fired on elements that can receive traditional keyboard focus.\n\n
  • Developers using specific styles for :hover should — as with generic keyboard accessibility considerations — also consider doubling-up these style rules for the more generic :focus state (note that this still requires the elements to be focusable in the first place).\nInstead of just using something like\na:hover { /* styles applied when hovering over a link */ }\nthe style selector should be modified to also cover :focus, like so:\na:focus, a:hover { /* styles apply to hovering AND keyboard/spatial navigation focus */ }\n
  • \n
  • \n
  • \n
  • \n
  • Whether or not a web-enabled device identifies itself as a TV depends on how its browser has been set up and integrated by the manufacturer, so developers should only use this method if they're sure their target platform has this setting enabled. For reasons of compatibility with the majority of web content "in the wild" which assumes a media="screen" device, practically all current-generation devices ignoremedia="tv".\n
  • Most modern web-enabled TVs support 1280×720 as a minimum resolution. On TVs capable of displaying the full HD resolution of 1920×1080, 720p content is usually upscaled (although this depends on the individual device). Set-top boxes and similar web-enabled devices may be connected to standard-definition or enhanced-definition TV sets — in these situations they will usually downscale and letterbox their virtual resolution to fit the physical resolution of the TV screen.\nlas mas chicas que hd-ready: 720×480 (NTSC) and 720×576 (PAL)\n\nenable or disable Media Queries using JavaScript.\n
  • overscan: Traditionally, TV sets were not able to display the full width and height of their nominal resolution, resulting in content positioned in the edges of the screen to be cut off or not displayed at all. Although this problem has been mitigated or – on some high end devices – resolved on modern digital TV sets, developers are still advised to only place important content and controls in the "safe area", leaving a margin of approximately 5% along each edge of the viewport.\n
  • \n
  • \n
  • \n
  • Although some devices will include the ability for browsers to open separate tabs, together with an interface for end users to switch between them, the large majority of web-enabled TVs will only run in single-window mode. Any calls to open a new window (be it through JavaScript, or simpler techniques such as providing a targetattribute on links) will only affect the current window. Developers need to be particularly aware of this if their sites and applications currently use separate windows to provide contextual help or in more complex situations (such as web-based email clients) where child windows use JavaScript to communicate back to their parent windows in order to keep state or provide the bulk of commonly-used functions. In these cases, web applications will need to be reworked to only use a single window.\n\n
  • To increase the readability of text on a TV screen, developers should:\nchoose an appropriately large font size. The exact dimensions will vary depending on the specific typeface used, the physical size of the screen and the virtual resolution the device runs under, but a general minimum size of around 22px is advised\nKeep overall line length to around 10 words or less\nUse generous leading/line-spacing\nThe number of fonts available on devices is usually limited — much more so than on desktop computers. Typically, only widely available Linux fonts such as Bitstream Vera (serif, sans-serif and monospaced) are present. End users are not able to install any fonts beyond those that came pre-installed with their device. However, the Opera SDK browser offers support for CSS3 web fonts (including fonts served through third-party services like Typekit or the Google Font API).\n\n
  • Certain colour combinations can be problematic when displayed on a TV screen. Even on high-end devices pure white, orange and red, as well as extreme contrasts, can lead to distortion and interference of the image and should be avoided.\nIn addition, the dynamic range of TV screens may not be the same as traditional computer monitors. Subtle gradients and low contrast colours may result in colour bands or indistinguishable combinations.\n\n
  • end users can't easily update their browser, unless it's part of a firmware update provided by the device manufacturers, it is safe to assume that most current of these devices will be running an older browser version, and many of the latest features will not be present. Developers can find which Presto version is present in a particular Opera browser by checking the user agent identification string in the internal opera:about information page. In the case of the Opera SDK, the string is currently\n
  • Due to limitations in how multimedia content is handled on certain current devices, there are situations in which the type of audio/video content being used is not automatically inferred by file extensions or MIME types. For this reason, we suggest to use the more explicit, though slightly more wordy, variant:\n\nOpera comes with built-in support for the HTML5 <audio> and <video> elements, allowing developers to include multimedia content in their web sites without plugins. However, the specifics of which codecs are supported on devices can vary considerably, as this depends on the underlying platform and integration work carried out by device manufacturers. Current devices are often optimised for hardware-accelerated playback of MP4/H.264 content in the <video> element. Other codecs (such as MPEG2 for video or MP3 for audio) may be available, but this cannot be guaranteed on all web-enabled TVs.\nCertain TVs allow for the use of Adobe Flash or Adobe Flash Lite content — for instance the latter is available to the Opera browser on the Nintendo Wii. Others may come with integrated support for displaying audio/video files delivered through an <object> element. Once again though, this cannot be relied on as it's an integration feature. Consumers cannot install plugin technologies and codecs themselves, and such plugins are updated regularly, meaning potential compatibility issues with future content that relies on new features.\n\n
  • Typical web-enabled TV sets have modest hardware specifications compared to desktop computers. The main processor power of a TV comes somewhere between high-end smart phones and low end laptops. in general developers should not rely on any particular feature being hardware-accelerated, and instead be mindful of the processing power on web-enabled TVs being comparatively modest.\n\n\n
  • Because of the comparatively low spec processors found on most common TVs, developers should avoid overly heavy and complex JavaScript. For general visual/GUI effects such as carousels, slideshows and expanding/contracting boxes, custom-written and optimised scripts are usually preferable to large multi-purpose frameworks. Also, in light of cache restrictions and content optimisation, it is recommended to use "lazy loading" techniques to only call scripts when needed.\n\nThe act of displaying images on a webpage (blitting images onto the viewport) is generally hardware-accelerated on most devices. However, complex layouts — for example with overlapping, semi-transparent graphics and layered blocks with reduced opacity that blend together — require large amounts of additional processing power to calculate the actual value of each pixel that needs to be displayed on screen. These can adversely impact overall performance of pages — particularly scrolling and animations — and should be used sparingly.\n\nuse of new CSS3 capabilities such as transitions and transforms. As these are executed by the Vega graphics library, they should generally perform better than generic solutions using JavaScript, which typically use intervals and timers to explicitly change certain values — like colour, position, dimension — in discrete steps.\nGenerally however, such effects should be kept to a minimum, as any form of animation can be expensive in terms of performance, potentially rendering sites and applications slow and unresponsive.\n\n
  • Most web-enabled TVs don't have a hard drive or solid state drive to cache web content. In these circumstances the browser will run in diskless mode, using only the available RAM to cache any downloaded web content. The amount of memory available for caching can vary from device to device, but is generally in the region of 5-10MB. \n\nIn addition to this regular cache, browsers on devices will also have a fairly limited amount of memory available to store the decoded pages — the browser's internal representation of a web page, which includes assets such as the DOM, JavaScript objects, and all uncompressed images. Once the limit for the decoded pages' memory has been reached, the browser will generally stop rendering and loading the current page until the cache is freed again. How this happens is up to individual manufacturers — for instance, users may be alerted through a pop-up that loading has stopped and that the browser is unable to continue rendering the page. After confirmation, the page and its associated cache can then be purged. For this reason, developers should be careful when using large numbers of images and JavaScript resources, as this can potentially cause out-of-memory issues on lower-end devices.\n
  • \n
  • the emulator comes as a VirtualBox image which runs on Windows, Linux and Mac OS X. It allows for a more accurate test environment that matches the capabilities of the SDK. In addition, the Opera TV Emulator allows for remote debugging with Opera Dragonfly — a feature that is normally turned off on end-user TVs and device. It's worth noting that, even though the emulator can facilitate testing and debugging, developers should — if possible — still test their content on actual devices, as certain features and specific constraints (such as the speed of the device's processor and available memory) can vary from device to device.\n\nThe Opera TV Emulator allows any web developer to develop and test content for TVs and other appliances running the Opera Devices SDK. It comes packaged as a VirtualBox image and can be run on Windows, Mac and Linux hosts. The Opera TV Emulator supports all features of the Opera Devices SDK:\nHTML/CSS/JavaScript/DOM\nSVG, Canvas\nHTML5 <video> and <audio>\nSimulate limited RAM availability\nDebug with Opera Dragonfly\n\n
  • The Opera TV Store is a moderated, hosted catalogue of TV-specific web applications. Developers can submit and share their apps through this portal. It presents end users with a storefront (itself a web-based application) which allows them quick and easy access to the applications.\nApplications in the Opera TV Store will be presented as static thumbnail images in a dashboard. Users are able to browse the TV Store catalogue and "install" applications, adding them to their dashboard. Selecting an application launches it in full-screen mode.\nThe full-screen web applications themselves are not hosted directly on Opera's servers. The Opera TV Store only acts as a directory, with references to the actual URLs of the applications.\n
  • The Opera TV Store is a moderated, hosted catalogue of TV-specific web applications. Developers can submit and share their apps through this portal. It presents end users with a storefront (itself a web-based application) which allows them quick and easy access to the applications.\nApplications in the Opera TV Store will be presented as static thumbnail images in a dashboard. Users are able to browse the TV Store catalogue and "install" applications, adding them to their dashboard. Selecting an application launches it in full-screen mode.\nThe full-screen web applications themselves are not hosted directly on Opera's servers. The Opera TV Store only acts as a directory, with references to the actual URLs of the applications.\n
  • \n
  • \n
  • \n
  • Transcript

    • 1. Developing HTML5 apps for TV Luz Caballero @gerbille
    • 2. • user interaction• standards support• hardware/network performance
    • 3. • user interaction
    • 4. button { position:absolute }button#b1 {    top:0; left:50%;    nav-index:1;    nav-right:#b2; nav-left:#b4;    nav-down:#b2; nav-up:#b4;}button#b2 { b1    top:50%; left:100%;    nav-index:2;    nav-right:#b3; nav-left:#b1;    nav-down:#b3; nav-up:#b1; b4 b2}button#b3 {    top:100%; left:50%; b3    nav-index:3;    nav-right:#b2; nav-left:#b4;    nav-down:#b4; nav-up:#b2;}    button#b4 {    top:50%; left:0;    nav-index:4;    nav-right:#b1; nav-left:#b3;    nav-down:#b3; nav-up:#b1;}
    • 5. a:hover { /*styles*/ } a:focus, a:hover { /*styles*/ }
    • 6. :focus { background: #0f0; outline: 0 solid; }
    • 7. get creative ;)
    • 8. navigator.userAgentmakes me a sad panda
    • 9. media="tv" is not ready yet
    • 10. Full-HD:<link rel="stylesheet" media="screen and (min-width: 1920px)"href="...">HD-ready:<link rel="stylesheet" media="screen and (min-width: 1280px)and (max-width: 1920px)" href="...">smaller than HD-ready:<link rel="stylesheet" media="screen and (max-width: 1280px)"href="...">
    • 11. single window browsing
    • 12. text and fonts
    • 13. color considerations
    • 14. • standards support
    • 15. <video src="/path/to/video.mp4"></video><audio src="/path/to/audio.mp3"></audio><video>    <source src="/path/to/video.mp4" type="video/mp4"></video><audio>    <source src="/path/to/audio.mp3" type="audio/mp3"></audio>
    • 16. • hardware/network performance
    • 17. large JS frameworks < custom optimized scripts < CSS animations
    • 18. • Dragonfly, Opera’s debugger: http://www.opera.com/dragonfly/• Opera TV emulator: http://www.opera.com/business/tv/emulator/ & http://dev.opera.com/articles/view/opera-tv-emulator-user-guide/
    • 19. http://www.opera.com/business/tv/store/
    • 20. http://dev.opera.com/tv Luz Caballero @gerbille
    • 21. Image Credits• Worship me http://www.flickr.com/photos/bdunnette/2072709902• TV http://www.flickr.com/photos/41836833@N06/4935804220/• Watching TV and joking around... http://www.flickr.com/photos/wonderlane/5351266905/• Yellow wall! http://www.flickr.com/photos/maheshkhanna/5876399305/• an evening playing http://www.flickr.com/photos/wonderlane/5351266905/•Old TV - Time Tunnel - Cameron Highland http://www.flickr.com/photos/liewcf/2427204350/• Screen shot 2011-08-12 at 4.54.52 PM http://www.flickr.com/photos/kylemcdonald/6035127581/• Brainless http://www.flickr.com/photos/blogography/5468835030/

    ×