From e9ea90f52735c038a09aa6cd1913f26ce7f7fdd7 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Tue, 21 Jul 2015 10:38:48 +1000 Subject: [PATCH] Update readme.md --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 8fbe064e..c18555de 100644 --- a/readme.md +++ b/readme.md @@ -360,6 +360,9 @@ Here's a list of the methods supported: 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. +

+ YouTube
+ Currently this API method only accepts a YouTube ID when used with a YouTube player. I will add URL support soon, along with being able to swap between types (e.g. YouTube to Audio or Video and vice versa.)