Commit Graph

12 Commits

Author SHA1 Message Date
Joey Parrish bdb58294b0 Fix accessibility issues
Found by WAVE Chrome extension:
 - Add lang to html elements
 - Do not use label for non-inputs
 - Add invisible labels on video inputs, just for screen readers

Closes #552

Change-Id: I68f96fd92d33b2927da5ec52fd6c22527635c795
2016-10-17 16:47:12 -07:00
Jacob Trimble 5102f54120 Make Player.support synchronous and add support plugin system.
Now there is a new synchronous method Player.isBrowserSupported.  This
will detect basic support and return a boolean.  The support() method
has been renamed to probeSupport() and should only be used for
diagnostics.

Also added a plugin system to Player support testing.  Now a plugin
(e.g. offline) can add extra info to the output of probeSupport().

Closes #388
Closes #389

Change-Id: I313a41d9f123871272f1395aeb99c980df1f4bae
2016-06-02 21:57:38 +00:00
Jacob Trimble e105db3be9 Improve JSON stringify in support.html.
This improves the code in support.html that stringifies a JavaScript
object.  Before, it assumed a specific layout. This adds a more
general stringify method that will support nested objects correctly.

Change-Id: Ie59747d0ce634ef028c4819b92fc2fd61552f724
2016-05-23 17:00:28 +00:00
Joey Parrish 833113e535 Add charset meta tag to support test page
Change-Id: If233d667caa92477540ca83c918990c531fd1e41
2016-03-21 22:16:29 +00:00
Jacob Trimble 19973d63f4 Changed copyright headers from 2015 to 2016.
Change-Id: I429ff27e4794c03b7ea392e38415075077f9bfb1
2016-03-15 16:32:13 -07:00
Joey Parrish 185e8f6706 Fix HTML5 spec-compliance for support.html
This page was failing HTML5 validation and producing warnings on IE11
due to the script tag being outside of the head tag.

Change-Id: I22a951ed0923561c4f25a4e8df501437bb685220
2016-03-02 17:57:58 +00:00
Joey Parrish 3339ab6ede Add library version to support test page
Change-Id: I99809bdc48b92e522b6b65b3ee6309d4d1285183
2016-02-26 03:37:51 +00:00
Jacob Trimble 2caded0e31 Update support page to new output location.
Change-Id: I633dba69474c7b61a804a355140965ffcf26e4f0
2016-02-18 14:54:16 -08:00
Joey Parrish c9235f859c Add support-testing framework.
Support testing is hierarchical.  Player.support returns an object
mapping out the support present in various parts of the system.

This creates a shell for Player and DrmEngine, and introduces support
tests for MediaSourceEngine, ManifestParser, and DrmEngine.

This also adjusts the way support checks are done for text types, to
allow for expansion into MP4-embedded text types and other segmented
subtitle types.

Text changes related to #150 and #146

Change-Id: I707f01ba52cba6262ee89bee2c1f28d24aca4655
2015-12-10 20:00:22 +00:00
Joey Parrish 03df140fb8 https://goo.gl/RvMyq4 2015-11-25 12:14:04 -08:00
Joey Parrish 34c4a7b4cd Refactor and update support test page.
Change-Id: I8230577229e61aa7d54ba4dd799451ab2a6b70dc
2015-04-21 17:49:37 +00:00
Joey Parrish b3d035be9f Shaka Player release v1.0 2014-12-19 14:26:19 -08:00