Skip to content

Commit

Permalink
chore: upgrade videojs-font to 4.0.0 (videojs#8117)
Browse files Browse the repository at this point in the history
* upgrade videojs-font to 4.0 & update icons example

* update css content to use font 4.0 unicodes
  • Loading branch information
usmanonazim authored and edirub committed Jun 8, 2023
1 parent db2bbd7 commit ab43923
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 39 deletions.
11 changes: 8 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"mux.js": "^6.2.0",
"safe-json-parse": "4.0.0",
"videojs-contrib-quality-levels": "3.0.0",
"videojs-font": "3.2.0",
"videojs-font": "4.0.0",
"videojs-vtt.js": "0.15.4"
},
"devDependencies": {
Expand Down
65 changes: 32 additions & 33 deletions sandbox/icons.html.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,55 +16,54 @@

<ul class="icon-list">
<li><span class="vjs-icon-play"></span> <code>.vjs-icon-play</code></li>
<li><span class="vjs-icon-play-circle"></span> <code>.vjs-icon-play-circle</code></li>
<li><span class="vjs-icon-pause"></span> <code>.vjs-icon-pause</code></li>
<li><span class="vjs-icon-volume-mute"></span> <code>.vjs-icon-volume-mute</code></li>
<li><span class="vjs-icon-volume-low"></span> <code>.vjs-icon-volume-low</code></li>
<li><span class="vjs-icon-volume-mid"></span> <code>.vjs-icon-volume-mid</code></li>
<li><span class="vjs-icon-volume-high"></span> <code>.vjs-icon-volume-high</code></li>
<li><span class="vjs-icon-fullscreen-enter"></span> <code>.vjs-icon-fullscreen-enter</code></li>
<li><span class="vjs-icon-fullscreen-exit"></span> <code>.vjs-icon-fullscreen-exit</code></li>
<li><span class="vjs-icon-square"></span> <code>.vjs-icon-square</code></li>
<li><span class="vjs-icon-spinner"></span> <code>.vjs-icon-spinner</code></li>
<li><span class="vjs-icon-subtitles"></span> <code>.vjs-icon-subtitles</code></li>
<li><span class="vjs-icon-captions"></span> <code>.vjs-icon-captions</code></li>
<li><span class="vjs-icon-hd"></span> <code>.vjs-icon-hd</code></li>
<li><span class="vjs-icon-chapters"></span> <code>.vjs-icon-chapters</code></li>
<li><span class="vjs-icon-downloading"></span> <code>.vjs-icon-downloading</code></li>
<li><span class="vjs-icon-file-download"></span> <code>.vjs-icon-file-download</code></li>
<li><span class="vjs-icon-file-download-done"></span> <code>.vjs-icon-file-download-download</code></li>
<li><span class="vjs-icon-file-download-off"></span> <code>.vjs-icon-file-download-off</code></li>
<li><span class="vjs-icon-share"></span> <code>.vjs-icon-share</code></li>
<li><span class="vjs-icon-cog"></span> <code>.vjs-icon-cog</code></li>
<li><span class="vjs-icon-square"></span> <code>.vjs-icon-square</code></li>
<li><span class="vjs-icon-circle"></span> <code>.vjs-icon-circle</code></li>
<li><span class="vjs-icon-circle-outline"></span> <code>.vjs-icon-circle-outline</code></li>
<li><span class="vjs-icon-circle-inner-circle"></span> <code>.vjs-icon-circle-inner-circle</code></li>

<li><span class="play"></span> <code>.vjs-icon-play</code></li>
<li><span class="play-circle"></span> <code>.vjs-icon-play</code></li>
<li><span class="pause"></span> <code>.vjs-icon-play</code></li>
<li><span class="volume-mute"></span> <code>.vjs-icon-play</code></li>
<li><span class="volume-low"></span> <code>.vjs-icon-play</code></li>
<li><span class="volume-mid"></span> <code>.vjs-icon-play</code></li>
<li><span class="volume-high"></span> <code>.vjs-icon-play</code></li>
<li><span class="fullscreen-enter"></span> <code>.vjs-icon-play</code></li>
<li><span class="fullscreen-exit"></span> <code>.vjs-icon-play</code></li>
<li><span class="square"></span> <code>.vjs-icon-play</code></li>
<li><span class="spinner"></span> <code>.vjs-icon-play</code></li>
<li><span class="subtitles"></span> <code>.vjs-icon-play</code></li>
<li><span class="captions"></span> <code>.vjs-icon-play</code></li>
<li><span class="chapters"></span> <code>.vjs-icon-play</code></li>
<li><span class="share"></span> <code>.vjs-icon-play</code></li>
<li><span class="cog"></span> <code>.vjs-icon-play</code></li>
<li><span class="circle"></span> <code>.vjs-icon-play</code></li>
<li><span class="circle-outline"></span> <code>.vjs-icon-play</code></li>
<li><span class="circle-inner-circle"></span> <code>.vjs-icon-play</code></li>
<li><span class="hd"></span> <code>.vjs-icon-play</code></li>
<li><span class="cancel"></span> <code>.vjs-icon-play</code></li>
<li><span class="replay"></span> <code>.vjs-icon-play</code></li>
<li><span class="facebook"></span> <code>.vjs-icon-play</code></li>
<li><span class="gplus"></span> <code>.vjs-icon-play</code></li>
<li><span class="linkedin"></span> <code>.vjs-icon-play</code></li>
<li><span class="twitter"></span> <code>.vjs-icon-play</code></li>
<li><span class="tumblr"></span> <code>.vjs-icon-play</code></li>
<li><span class="pinterest"></span> <code>.vjs-icon-play</code></li>
<li><span class="audio-description"></span> <code>.vjs-icon-play</code></li>
<li><span class="audio"></span> <code>.vjs-icon-play</code></li>

<li><span class="vjs-icon-cancel"></span> <code>.vjs-icon-cancel</code></li>
<li><span class="vjs-icon-repeat"></span> <code>.vjs-icon-repeat</code></li>
<li><span class="vjs-icon-replay"></span> <code>.vjs-icon-replay</code></li>
<li><span class="vjs-icon-replay-5"></span> <code>.vjs-icon-replay-5</code></li>
<li><span class="vjs-icon-replay-10"></span> <code>.vjs-icon-replay-10</code></li>
<li><span class="vjs-icon-replay-30"></span> <code>.vjs-icon-replay-30</code></li>
<li><span class="vjs-icon-forward-5"></span> <code>.vjs-icon-forward-5</code></li>
<li><span class="vjs-icon-forward-10"></span> <code>.vjs-icon-forward-10</code></li>
<li><span class="vjs-icon-forward-30"></span> <code>.vjs-icon-forward-30</code></li>
<li><span class="vjs-icon-forward-30"></span> <code>.vjs-icon-forward-30</code></li>
<li><span class="vjs-icon-forward-30"></span> <code>.vjs-icon-forward-30</code></li>
<li><span class="vjs-icon-forward-30"></span> <code>.vjs-icon-forward-30</code></li>
<li><span class="vjs-icon-audio"></span> <code>.vjs-icon-audio</code></li>
<li><span class="vjs-icon-next-item"></span> <code>.vjs-next-item</code></li>
<li><span class="vjs-icon-previous-item"></span> <code>.vjs-icon-previous-item</code></li>
<li><span class="vjs-icon-shuffle"></span> <code>.vjs-icon-shuffle</code></li>
<li><span class="vjs-icon-cast"></span> <code>.vjs-icon-cast</code></li>
<li><span class="vjs-icon-picture-in-picture-enter"></span> <code>.vjs-icon-picture-in-picture-enter</code></li>
<li><span class="vjs-icon-picture-in-picture-exit"></span> <code>.vjs-icon-picture-in-picture-exit</code></li>
<li><span class="vjs-icon-facebook"></span> <code>.vjs-icon-facebook</code></li>
<li><span class="vjs-icon-linkedin"></span> <code>.vjs-icon-linkedin</code></li>
<li><span class="vjs-icon-twitter"></span> <code>.vjs-icon-twitter</code></li>
<li><span class="vjs-icon-tumblr"></span> <code>.vjs-icon-tumblr</code></li>
<li><span class="vjs-icon-pinterest"></span> <code>.vjs-icon-pinterest</code></li>
<li><span class="vjs-icon-audio-description"></span> <code>.vjs-icon-audio-description</code></li>
</ul>
</body>
</html>
2 changes: 1 addition & 1 deletion src/css/components/_audio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// Mark a main-desc-menu-item (main + description) item with a trailing Audio Description icon
.video-js .vjs-audio-button + .vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
font-family: VideoJS;
content: " \f11d";
content: " \f12e";
font-size: 1.5em;
line-height: inherit;
}
2 changes: 1 addition & 1 deletion src/css/components/_subs-caps.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}
.video-js .vjs-subs-caps-button + .vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before {
font-family: VideoJS;
content: "\f10d";
content: "\f10c";
font-size: 1.5em;
line-height: inherit;
}
Expand Down

0 comments on commit ab43923

Please sign in to comment.