Permalink
Browse files

[t1073] fixed code sections & pipe instead of 'or'

  • Loading branch information...
1 parent 014ea36 commit 56533712dbcacd315c71ea400fb4faea5e70750d @secretrobotron secretrobotron committed Jul 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 players/_posts/2012-12-12-smart.md
@@ -7,7 +7,7 @@ title: smart
The Smart player allows the use of any existing player without specifying which player.
-The idea is that Smart will try to find an acceptable player, given the id and url. Smart requires players to implement a _canPlayType( containerType, url )_ function, along side _setup_. This function returns true or false if the player can play this, given the container and url. A player that does not implement a _canPlayType_ will return undefined, which is inconclusive if the player can play it or not. Each player also exposes a _canPlayType( container, url )_ function that developer can use to query if their data can be played or not.
+The idea is that Smart will try to find an acceptable player, given the id and url. Smart requires players to implement a `_canPlayType( containerType, url )` function, along side `_setup`. This function returns true or false if the player can play this, given the container and url. A player that does not implement a `_canPlayType` will return undefined, which is inconclusive if the player can play it or not. Each player also exposes a `_canPlayType( container, url )` function that developer can use to query if their data can be played or not.
Smart will also work with video elements, and attempt to create an HTML5 video experience if possible. In this case, the container can be a video element or a div. If it is a div, a video element will be created and appended to the supplied div.
@@ -16,7 +16,7 @@ The _url_ paramter can be a string representing the media url, or an array of st
## Options ##
* **id** \[String\] - the id of the HTML element that the appropriate player will populate
-* **url** \[String or Array\] - the url of the media you wish to use. If this parameter is an array, each entry will be analyzed to see if Popcorn has the ability to play it through standard HTML5 video/audio, or through a registered Popcorn player (using _canPlayType as mentioned above).
+* **url** \[String | Array\] - the url of the media you wish to use. If this parameter is an array, each entry will be analyzed to see if Popcorn has the ability to play it through standard HTML5 video/audio, or through a registered Popcorn player (using `_canPlayType` as mentioned above).
## Examples ##

0 comments on commit 5653371

Please sign in to comment.