@gcorevideo/player 2.30.1 → 2.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/audio-tracks/template.ejs +1 -1
- package/dist/core.js +1 -1
- package/dist/index.css +890 -890
- package/dist/index.embed.js +35 -12
- package/dist/index.js +61 -31
- package/lib/plugins/audio-selector/AudioTracks.d.ts +4 -0
- package/lib/plugins/audio-selector/AudioTracks.d.ts.map +1 -1
- package/lib/plugins/audio-selector/AudioTracks.js +42 -12
- package/package.json +1 -1
- package/src/plugins/audio-selector/AudioTracks.ts +51 -16
- package/src/plugins/audio-selector/__tests__/__snapshots__/AudioTracks.test.ts.snap +9 -9
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`AudioTracks > when audio tracks are available > should render menu 1`] = `
|
|
4
4
|
"<button class="gcore-skin-button-color media-control-dd" id="gplayer-audiotracks-button" aria-haspopup="menu" aria-expanded="false">
|
|
5
|
-
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text"
|
|
5
|
+
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text">English</span>
|
|
6
6
|
<span class="media-control-dd__arrow">/assets/icons/old/quality-arrow.svg</span>
|
|
7
7
|
</button>
|
|
8
8
|
<ul class="gcore-skin-bg-color menu media-control-dd__popup" id="gplayer-audiotracks-menu" role="menu" style="display: none;">
|
|
9
9
|
|
|
10
|
-
<li class="">
|
|
11
|
-
<a href="#" class="gcore-skin-text-color" data-item="1" role="menuitemradio" aria-checked="
|
|
10
|
+
<li class="current">
|
|
11
|
+
<a href="#" class="gcore-skin-text-color gcore-skin-active" data-item="1" role="menuitemradio" aria-checked="true">
|
|
12
12
|
English
|
|
13
13
|
</a>
|
|
14
14
|
</li>
|
|
@@ -25,13 +25,13 @@ exports[`AudioTracks > when audio tracks are available > should render menu 1`]
|
|
|
25
25
|
|
|
26
26
|
exports[`AudioTracks > when audio tracks are available > when button is clicked > should show menu 1`] = `
|
|
27
27
|
"<button class="gcore-skin-button-color media-control-dd" id="gplayer-audiotracks-button" aria-haspopup="menu" aria-expanded="true">
|
|
28
|
-
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text"
|
|
28
|
+
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text">English</span>
|
|
29
29
|
<span class="media-control-dd__arrow">/assets/icons/old/quality-arrow.svg</span>
|
|
30
30
|
</button>
|
|
31
31
|
<ul class="gcore-skin-bg-color menu media-control-dd__popup" id="gplayer-audiotracks-menu" role="menu">
|
|
32
32
|
|
|
33
|
-
<li class="">
|
|
34
|
-
<a href="#" class="gcore-skin-text-color" data-item="1" role="menuitemradio" aria-checked="
|
|
33
|
+
<li class="current">
|
|
34
|
+
<a href="#" class="gcore-skin-text-color gcore-skin-active" data-item="1" role="menuitemradio" aria-checked="true">
|
|
35
35
|
English
|
|
36
36
|
</a>
|
|
37
37
|
</li>
|
|
@@ -48,13 +48,13 @@ exports[`AudioTracks > when audio tracks are available > when button is clicked
|
|
|
48
48
|
|
|
49
49
|
exports[`AudioTracks > when audio tracks are available > when button is clicked > when audio track is selected > should hide the menu 1`] = `
|
|
50
50
|
"<button class="gcore-skin-button-color media-control-dd changing" id="gplayer-audiotracks-button" aria-haspopup="menu" aria-expanded="false">
|
|
51
|
-
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text"
|
|
51
|
+
<span class="media-control-dd__text" id="gplayer-audiotracks-button-text">English</span>
|
|
52
52
|
<span class="media-control-dd__arrow">/assets/icons/old/quality-arrow.svg</span>
|
|
53
53
|
</button>
|
|
54
54
|
<ul class="gcore-skin-bg-color menu media-control-dd__popup" id="gplayer-audiotracks-menu" role="menu" style="display: none;">
|
|
55
55
|
|
|
56
|
-
<li class="">
|
|
57
|
-
<a href="#" class="gcore-skin-text-color" data-item="1" role="menuitemradio" aria-checked="
|
|
56
|
+
<li class="current">
|
|
57
|
+
<a href="#" class="gcore-skin-text-color gcore-skin-active" data-item="1" role="menuitemradio" aria-checked="true">
|
|
58
58
|
English
|
|
59
59
|
</a>
|
|
60
60
|
</li>
|