@vkontakte/videoplayer 1.1.100-dev.2cfd41de6.0 → 1.1.100-dev.adb464b3a.0
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/es2015.cjs +9 -9
- package/es2015.esm.js +9 -9
- package/esnext.cjs +9 -9
- package/esnext.esm.js +10 -10
- package/evergreen.esm.js +10 -10
- package/package.json +5 -5
- package/types/store/composition.d.ts +2 -1
- package/types/store/modules/audioVideoStreamsStore/audioVideoStreamsStore.module.d.ts +3 -0
- package/types/store/modules/audioVideoStreamsStore/audioVideoStreamsStore.store.d.ts +43 -0
- package/types/store/modules/audioVideoStreamsStore/audioVideoStreamsStore.token.d.ts +3 -0
- package/types/store/modules/audioVideoStreamsStore/index.d.ts +3 -0
- package/types/store/modules/index.d.ts +2 -0
- package/types/store/types.d.ts +1 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.100-dev.
|
|
3
|
+
"version": "1.1.100-dev.adb464b3a.0",
|
|
4
4
|
"author": "vk.ru",
|
|
5
5
|
"description": "Videoplayer based on the vk.ru platform",
|
|
6
6
|
"homepage": "https://vk.ru",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adtech/rbadman": "2.2.57",
|
|
46
|
-
"@vkontakte/videoplayer-core": "2.0.169-dev.
|
|
47
|
-
"@vkontakte/videoplayer-interactive": "1.0.75-dev.
|
|
48
|
-
"@vkontakte/videoplayer-shared": "1.0.98-dev.
|
|
49
|
-
"@vkontakte/videoplayer-statistics": "1.0.115-dev.
|
|
46
|
+
"@vkontakte/videoplayer-core": "2.0.169-dev.adb464b3a.0",
|
|
47
|
+
"@vkontakte/videoplayer-interactive": "1.0.75-dev.adb464b3a.0",
|
|
48
|
+
"@vkontakte/videoplayer-shared": "1.0.98-dev.adb464b3a.0",
|
|
49
|
+
"@vkontakte/videoplayer-statistics": "1.0.115-dev.adb464b3a.0"
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -2,7 +2,7 @@ import type { IUIConfig } from "../config";
|
|
|
2
2
|
import type { IVKVideoPlayerConfig } from "../types";
|
|
3
3
|
import type { IUIStatistics } from "../services/statistics";
|
|
4
4
|
import type { IStore } from "./index";
|
|
5
|
-
import type { FakeIsPlayingStore, GraphIsOpenedStore, HighlightedMenuItemsStore, InteractiveControlsOpacityStore, LanguageStore, NotificationsStore, PictureInPictureStore, IQoeStore, SeekToInteractiveDisabledTooltipStore, ShowInteractiveTimeIndicatorTooltipStore, SubtitlesStore, QualityStore, PlaybackRateStore } from "./modules";
|
|
5
|
+
import type { FakeIsPlayingStore, GraphIsOpenedStore, HighlightedMenuItemsStore, InteractiveControlsOpacityStore, LanguageStore, NotificationsStore, PictureInPictureStore, IQoeStore, SeekToInteractiveDisabledTooltipStore, ShowInteractiveTimeIndicatorTooltipStore, SubtitlesStore, QualityStore, PlaybackRateStore, AudioVideoStreamsStore } from "./modules";
|
|
6
6
|
import type { AppTracer, ITracer } from "@vkontakte/videoplayer-shared";
|
|
7
7
|
import type { Interactives } from "@vkontakte/videoplayer-interactive";
|
|
8
8
|
export interface ICompositionParams {
|
|
@@ -29,6 +29,7 @@ export interface ICompositionResult {
|
|
|
29
29
|
subtitlesStore: SubtitlesStore;
|
|
30
30
|
qualityStore: QualityStore;
|
|
31
31
|
playbackRateStore: PlaybackRateStore;
|
|
32
|
+
audioVideoStreamsStore: AudioVideoStreamsStore;
|
|
32
33
|
};
|
|
33
34
|
/** Очистка ресурсов */
|
|
34
35
|
destroy(): void;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Readable } from "svelte/store";
|
|
2
|
+
import type { IAudioStream, IPlayer, IVideoStream } from "@vkontakte/videoplayer-core";
|
|
3
|
+
import type { ISubscription, ITracer } from "@vkontakte/videoplayer-shared";
|
|
4
|
+
import type { IVKVideoPlayerCallbacks } from "../../../types";
|
|
5
|
+
export interface AudioVideoStreamsStoreDeps {
|
|
6
|
+
/** Плеер */
|
|
7
|
+
player: IPlayer;
|
|
8
|
+
/** Трассировщик */
|
|
9
|
+
tracer: ITracer;
|
|
10
|
+
/** Общий subscription для rxjs-подписок */
|
|
11
|
+
subscription: ISubscription;
|
|
12
|
+
/** ID текущего видео */
|
|
13
|
+
videoId$: Readable<number | undefined>;
|
|
14
|
+
/** Коллбэки плеера */
|
|
15
|
+
callbacks?: IVKVideoPlayerCallbacks;
|
|
16
|
+
/** Включены ли аудио-языки */
|
|
17
|
+
audioLanguagesEnabled: boolean;
|
|
18
|
+
chooseFirstAudioStreamFromAdaptationSet: boolean;
|
|
19
|
+
/** Включено ли сохранение пользовательских предпочтений для видео */
|
|
20
|
+
userVideoPrefsEnabled: boolean;
|
|
21
|
+
/** Соль для пользовательских предпочтений */
|
|
22
|
+
userSalt: string;
|
|
23
|
+
canSavePreferredState: (external: boolean) => boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface AudioVideoStreamsStoreState {
|
|
26
|
+
availableVideoStreams$: Readable<IVideoStream[]>;
|
|
27
|
+
availableAudioStreams$: Readable<IAudioStream[]>;
|
|
28
|
+
videoStream$: Readable<IVideoStream | undefined>;
|
|
29
|
+
audioStream$: Readable<IAudioStream | undefined>;
|
|
30
|
+
}
|
|
31
|
+
export interface AudioVideoStreamsStoreActions {
|
|
32
|
+
setVideoStream: (stream: IVideoStream) => void;
|
|
33
|
+
setAudioStream: (stream: IAudioStream) => void;
|
|
34
|
+
}
|
|
35
|
+
export interface AudioVideoStreamsStoreExternalActions {
|
|
36
|
+
changeAudioStream: (id: string) => void;
|
|
37
|
+
}
|
|
38
|
+
export interface AudioVideoStreamsStore {
|
|
39
|
+
state: AudioVideoStreamsStoreState;
|
|
40
|
+
actions: AudioVideoStreamsStoreActions;
|
|
41
|
+
externalActions: AudioVideoStreamsStoreExternalActions;
|
|
42
|
+
}
|
|
43
|
+
export declare const createAudioVideoStreamsStore: (deps: AudioVideoStreamsStoreDeps) => AudioVideoStreamsStore;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { createAudioVideoStreamsStore, type AudioVideoStreamsStoreDeps, type AudioVideoStreamsStoreState, type AudioVideoStreamsStoreActions, type AudioVideoStreamsStoreExternalActions, type AudioVideoStreamsStore } from "./audioVideoStreamsStore.store";
|
|
2
|
+
export { audioVideoStreamsModule } from "./audioVideoStreamsStore.module";
|
|
3
|
+
export { AUDIO_VIDEO_STREAMS_STORE_TOKEN } from "./audioVideoStreamsStore.token";
|
|
@@ -27,3 +27,5 @@ export type { QualityStoreDeps, QualityStoreState, QualityStore } from "./qualit
|
|
|
27
27
|
export { qualityModule, QUALITY_STORE_TOKEN } from "./qualityStore";
|
|
28
28
|
export type { PlaybackRateStoreDeps, PlaybackRateStoreState, PlaybackRateStoreActions, PlaybackRateStore } from "./playbackRateStore";
|
|
29
29
|
export { playbackRateModule, PLAYBACK_RATE_STORE_TOKEN } from "./playbackRateStore";
|
|
30
|
+
export type { AudioVideoStreamsStoreDeps, AudioVideoStreamsStoreState, AudioVideoStreamsStoreActions, AudioVideoStreamsStoreExternalActions, AudioVideoStreamsStore } from "./audioVideoStreamsStore";
|
|
31
|
+
export { audioVideoStreamsModule, AUDIO_VIDEO_STREAMS_STORE_TOKEN } from "./audioVideoStreamsStore";
|
package/types/store/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChromecastState,
|
|
1
|
+
import type { ChromecastState, IConfig as ICoreInitVideoConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, PlaybackState, VideoFormat } from "@vkontakte/videoplayer-core";
|
|
2
2
|
import type { InteractiveRange } from "@vkontakte/videoplayer-interactive";
|
|
3
3
|
import type { AppTracer, IError, ILogger, InternalsExposure, IRectangle, IRootTracer, ISubject, ITracer, IValueObservable, IValueSubject } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import type { SeekAction, ThinOneStat } from "@vkontakte/videoplayer-statistics";
|
|
@@ -153,10 +153,6 @@ export interface IPlayerState {
|
|
|
153
153
|
isEnded$: Readable<boolean>;
|
|
154
154
|
volume$: Readable<number>;
|
|
155
155
|
muted$: Readable<boolean>;
|
|
156
|
-
availableVideoStreams$: Readable<IVideoStream[]>;
|
|
157
|
-
availableAudioStreams$: Readable<IAudioStream[]>;
|
|
158
|
-
videoStream$: Readable<IVideoStream | undefined>;
|
|
159
|
-
audioStream$: Readable<IAudioStream | undefined>;
|
|
160
156
|
currentPlaybackRate$: Readable<number>;
|
|
161
157
|
previewThumbsData$: Writable<ITimelinePreviewThumbsData | undefined>;
|
|
162
158
|
chromecastState$: Readable<ChromecastState>;
|
|
@@ -198,8 +194,6 @@ export interface IStoreInternalActions {
|
|
|
198
194
|
closeSettingsMenu: (fromSubMenu?: boolean) => void;
|
|
199
195
|
openSettingsSubMenu: (name: string, ref: HTMLElement) => void;
|
|
200
196
|
closeSettingsSubMenu: (ref: HTMLElement, isClosing?: boolean) => void;
|
|
201
|
-
setAudioStream: (stream: IAudioStream) => void;
|
|
202
|
-
setVideoStream: (stream: IVideoStream) => void;
|
|
203
197
|
setVolume: (volume: number) => void;
|
|
204
198
|
setMuted: (muted: boolean) => void;
|
|
205
199
|
startVolumeChanging: () => void;
|
|
@@ -274,7 +268,6 @@ export interface IStoreExternalActions {
|
|
|
274
268
|
setLiveLowLatency: (isLowLatency: boolean) => void;
|
|
275
269
|
hideControls: () => void;
|
|
276
270
|
showControls: () => void;
|
|
277
|
-
changeAudioStream: (id: string) => void;
|
|
278
271
|
setMinimalView: (enabled: boolean) => void;
|
|
279
272
|
toggleFullscreen: () => void;
|
|
280
273
|
}
|