diff --git a/README.md b/README.md
index 7c14cdf..5fafa71 100644
--- a/README.md
+++ b/README.md
@@ -7,20 +7,20 @@ Creates a video player and attaches analytics. Also supports pre roll ads.
Create an element of the format e.g.
```html
-
+
```
In JS
```js
- const OVideo = require('o-video');
- const opts = {
- id: 4165329773001,
- optimumwidth: 710,
- placeholder: true,
- classes: ['video']
- };
- const video = new OVideo(document.body, opts);
+const OVideo = require('o-video');
+const opts = {
+ id: 4165329773001,
+ optimumwidth: 710,
+ placeholder: true,
+ classes: ['video']
+};
+const video = new OVideo(document.body, opts);
```
### Config
@@ -33,16 +33,17 @@ Where `opts` is an optional object with properties
* `optimumvideowidth` [`Number`] The optimum width of the video itself, used when there are multiple video renditions available to
decide which to display (the smallest one that's at least as large as this width, if it exists)
* `placeholder` [`Boolean`] Show just the poster image, load (and play) video on click
- * `placeholderInfo` [`Array`] A list of extra information to display on the placeholder (Available: title, description, brand, duration)
+ * `placeholderInfo` [`Array`] A list of extra information to display on the placeholder (Available: title, description, brand)
* `playsinline` [`Boolean`] Whether to play the [video inline](https://webkit.org/blog/6784/new-video-policies-for-ios/) on iOS smallscreen (defaults to fullscreen)
* `classes` [`Array`] Classes to add to the video (and placeholder) element
The config options can also be set as data attribute to instantiate the module declaratively:
```html
-
+
+
```
### With a playlist
@@ -53,9 +54,9 @@ Playlists may take a queue of videos and play them one after another.
const Video = require('o-video');
const queue = [
- '4165329773001',
- '4907997821001',
- '4165329773001'
+ '4165329773001',
+ '4907997821001',
+ '4165329773001'
];
const player = new Video(document.body, { autorender: false });
@@ -68,9 +69,9 @@ document.querySelector('.prev-btn').onclick = () => playlist.prev();
The queue is an `array` containing Brightcove video ID strings.
## Testing
-
- $ npm test
-
+```
+$ npm test
+```
(Requires Firefox)
@@ -81,19 +82,19 @@ Migrating from 1.0 to 2.0
### Configuration
-The `placeholdertitle` property no longer exists, it has been replaced by `placeholder-info` which accepts an array containing one or more of `'title'`, `'description'`, `'brand'`, `'duration'`.
+The `placeholdertitle` property no longer exists, it has been replaced by `placeholder-info` which accepts an array containing one or more of `'title'`, `'description'`, `'brand'`.
```diff
-
+
```
@@ -102,16 +103,16 @@ The `optimumwidth` property is no longer used for the video width, it is now onl
```diff