mikuru 1.0.36 → 1.0.37
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/CHANGELOG.md +4 -0
- package/components/MikuruVideoPlayer.mikuru +15 -15
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.37 - 2026-05-17
|
|
4
|
+
|
|
5
|
+
- Fixed `MikuruVideoPlayer` speed and skip settings so option records avoid `.value` template access, preventing crashes in consuming apps when selecting playback rate or keyboard skip seconds.
|
|
6
|
+
|
|
3
7
|
## 1.0.36 - 2026-05-17
|
|
4
8
|
|
|
5
9
|
- Stabilized `MikuruVideoPlayer` settings interactions so playback speed and keyboard skip selections defer UI updates out of the click stack, matching the other media controls and avoiding recursive update freezes.
|
|
@@ -108,11 +108,11 @@
|
|
|
108
108
|
<span class="settings-label">Speed</span>
|
|
109
109
|
<button
|
|
110
110
|
m-for="rate in rateOptions"
|
|
111
|
-
:key="rate.
|
|
111
|
+
:key="rate.rate"
|
|
112
112
|
type="button"
|
|
113
113
|
class="settings-option"
|
|
114
|
-
:class="{ active: rate.
|
|
115
|
-
@click="setPlaybackRate(rate.
|
|
114
|
+
:class="{ active: rate.rate === playbackRateValue }"
|
|
115
|
+
@click="setPlaybackRate(rate.rate)"
|
|
116
116
|
>
|
|
117
117
|
{{ rate.label }}
|
|
118
118
|
</button>
|
|
@@ -122,11 +122,11 @@
|
|
|
122
122
|
<span class="settings-label">Skip</span>
|
|
123
123
|
<button
|
|
124
124
|
m-for="option in skipOptions"
|
|
125
|
-
:key="option.
|
|
125
|
+
:key="option.seconds"
|
|
126
126
|
type="button"
|
|
127
127
|
class="settings-option"
|
|
128
|
-
:class="{ active: option.
|
|
129
|
-
@click="setSkipSeconds(option.
|
|
128
|
+
:class="{ active: option.seconds === skipSeconds }"
|
|
129
|
+
@click="setSkipSeconds(option.seconds)"
|
|
130
130
|
>
|
|
131
131
|
{{ option.label }}
|
|
132
132
|
</button>
|
|
@@ -268,17 +268,17 @@ const playIconClass = computed(() => isPlaying.value ? "icon-pause" : "icon-play
|
|
|
268
268
|
const fullscreenIconClass = computed(() => isFullscreen.value ? "icon-minimize" : "icon-maximize");
|
|
269
269
|
const statusText = computed(() => isLive.value ? "LIVE" : subtitle.value);
|
|
270
270
|
const rateOptions = [
|
|
271
|
-
{
|
|
272
|
-
{
|
|
273
|
-
{
|
|
274
|
-
{
|
|
275
|
-
{
|
|
271
|
+
{ rate: 0.75, label: "0.75x" },
|
|
272
|
+
{ rate: 1, label: "1x" },
|
|
273
|
+
{ rate: 1.25, label: "1.25x" },
|
|
274
|
+
{ rate: 1.5, label: "1.5x" },
|
|
275
|
+
{ rate: 2, label: "2x" }
|
|
276
276
|
];
|
|
277
277
|
const skipOptions = [
|
|
278
|
-
{
|
|
279
|
-
{
|
|
280
|
-
{
|
|
281
|
-
{
|
|
278
|
+
{ seconds: 5, label: "5s" },
|
|
279
|
+
{ seconds: 10, label: "10s" },
|
|
280
|
+
{ seconds: 15, label: "15s" },
|
|
281
|
+
{ seconds: 30, label: "30s" }
|
|
282
282
|
];
|
|
283
283
|
const showPlayControl = computed(() => hasControl("play"));
|
|
284
284
|
const showSeekControl = computed(() => hasControl("seek"));
|