diff --git a/readme.md b/readme.md index 4c6695c8..60191e30 100644 --- a/readme.md +++ b/readme.md @@ -389,7 +389,7 @@ A `plyr` object is added to any element that Plyr is initialized on. You can the There are two ways to access the instance, firstly you re-query the element container you used for setup (e.g. `.js-plyr`) like so: ```javascript -var player = document.querySelector('.js-plyr'); +var player = document.querySelector('.js-plyr').plyr; ``` Or you can use the returned object from your call to the setup method: @@ -488,20 +488,8 @@ Here's a list of the methods supported:
.source([
- {
- src: "/path/to/video.webm",
- type: "video/webm",
- ...more attributes...
- },
- {
- src: "/path/to/video.mp4",
- type: "video/mp4",
- ...more attributes...
- }
- ])`