Formatting
This commit is contained in:
parent
aeecf40191
commit
80d6d806c4
@ -301,11 +301,11 @@ Here's a list of the methods supported:
|
|||||||
Set the media source.
|
Set the media source.
|
||||||
<br><br>
|
<br><br>
|
||||||
<strong>string</strong><br>
|
<strong>string</strong><br>
|
||||||
<em>.source("/path/to/video.mp4")</em><br>
|
`.source("/path/to/video.mp4")`<br>
|
||||||
This will set the "src" attribute on the `video` or `audio` element.
|
This will set the "src" attribute on the `video` or `audio` element.
|
||||||
<br><br>
|
<br><br>
|
||||||
<strong>array</strong><br>
|
<strong>array</strong><br>
|
||||||
<em>.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])</em><br>
|
`.source([{ src: "/path/to/video.webm", type: "video/webm", ...more attributes... }, { src: "/path/to/video.mp4", type: "video/mp4", ...more attributes... }])`<br>
|
||||||
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.
|
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.
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user