diff --git a/readme.md b/readme.md index 51bae507..2ed1aba2 100644 --- a/readme.md +++ b/readme.md @@ -467,10 +467,6 @@ Here's a list of the methods supported: Get/Set the media source.

- string
- .source("/path/to/video.mp4")
- This will set the src attribute on the video or audio element. -

array
.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])`
This will inject a child `source` element for every element in the array with the specified attributes. `src` is the only required attribute although adding `type` is recommended as it helps the browser decide which file to download and play.