Merge pull request #649 from waltercruz/master
Adding title to the player html template
This commit is contained in:
commit
a06a8150ef
@ -37,6 +37,7 @@ You need to add several placeholders to your html template that are replaced whe
|
||||
|
||||
- `{id}` - the dynamically generated ID for the player (for form controls)
|
||||
- `{seektime}` - the seek time specified in options for fast forward and rewind
|
||||
- `{title}` - the title of your media, if specified
|
||||
|
||||
You can include only the controls you need when specifying custom html.
|
||||
|
||||
|
2
demo/dist/demo.css
vendored
2
demo/dist/demo.css
vendored
File diff suppressed because one or more lines are too long
2
dist/plyr.css
vendored
2
dist/plyr.css
vendored
File diff suppressed because one or more lines are too long
3
dist/plyr.js
vendored
3
dist/plyr.js
vendored
File diff suppressed because one or more lines are too long
@ -1389,6 +1389,11 @@
|
||||
// Replace all id references with random numbers
|
||||
html = _replaceAll(html, "{id}", Math.floor(Math.random() * 10000));
|
||||
|
||||
// Replace Title, if it exists
|
||||
if (config.title){
|
||||
html = _replaceAll(html, '{title}', config.title);
|
||||
}
|
||||
|
||||
// Controls container
|
||||
var target;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user