Browse Source

update to media section

adding html as a string to the media key of an asset allows you to use your own hosted media.
pull/686/head
tom kiefhaber 10 years ago
parent
commit
7d524b2466
  1. 7
      README.markdown

7
README.markdown

@ -436,6 +436,13 @@ Just copy and paste the address of the media from the browser bar
into the media parameter. TimelineJS will auto-magically pull in the media via their api and into the media parameter. TimelineJS will auto-magically pull in the media via their api and
format it. format it.
Alternatively, you can add your own video tag html if you wish to use your own media.
```javascript
"asset": {
"media":"<video autobuffer='autobuffer' controls='controls' src='path/to/video'></video>"
}
```
## Best practices ## Best practices
Tips and tricks to best utilize TimelineJS Tips and tricks to best utilize TimelineJS

Loading…
Cancel
Save