-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(svg-icons): handle custom svg icons
Replace the player's default icons with custom icons. The `experimentalSvgIcons` option accepts a `boolean` or a `string`. If the string represents a valid svg, it will replace the default icons. **Usage** ```javascript import playerIcons from './asset/vjs-sprite-icons.svg'; const player = videojs('my-player', { experimentalSvgIcons: playerIcons, // ... }); ``` Or: ```javascript const player = videojs('my-player', { experimentalSvgIcons: ` <svg> ... </svg> `, // ... }); ``` - extract a `initSvgIcons_` function to activate svg icons - add test cases
- Loading branch information
Showing
2 changed files
with
67 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters