@vkontakte/videoplayer 1.1.31 → 1.1.32-dev.c9a4f9d3.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.js +23 -41
- package/es2015.esm.js +23 -41
- package/es2018.cjs.js +23 -41
- package/es2018.esm.js +23 -41
- package/esnext.cjs.js +23 -41
- package/esnext.esm.js +23 -41
- package/evergreen.esm.js +23 -41
- package/index.d.ts +9 -1
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ interface IUIConfig {
|
|
|
91
91
|
interactiveLastFrame: boolean;
|
|
92
92
|
interactiveTextPermanent: boolean;
|
|
93
93
|
interactiveHideTime: boolean;
|
|
94
|
+
interactivePlayPrevChapter: boolean;
|
|
94
95
|
thumbTimer: boolean;
|
|
95
96
|
hotKeyMapModal: boolean;
|
|
96
97
|
hotKeyHelpers: boolean;
|
|
@@ -103,7 +104,7 @@ interface ISDKConfig {
|
|
|
103
104
|
statistics: IOptionalConfig;
|
|
104
105
|
}
|
|
105
106
|
|
|
106
|
-
type Key = 'auto_quality_invariant' | 'auto_quality' | 'menu_quality' | 'menu_playback_rate' | 'menu_traffic_saving' | 'menu_report' | 'menu_pip' | 'menu_copy_video_link' | 'menu_copy_video_link_with_timestamp' | 'menu_video_rotate' | 'menu_chromecast' | 'menu_copy_debug' | 'menu_save_debug' | 'menu_debug_overlay' | 'pip_dummy_title' | 'submenu_traffic_saving' | 'submenu_quality' | 'submenu_playback_rate' | 'submenu_settings' | 'auto_quality_option' | 'mobile_unmute' | 'playing_ads' | 'skip_ads_now' | 'skip_ads_after' | 'visit_advertiser' | 'aria_timeline' | 'aria_open_settings' | 'aria_timeline_value' | 'doubletap_seek_step' | 'playback_rate_1' | 'playback_rate' | 'video360' | 'subtitles_caption' | 'subtitles_auto' | 'subtitles_off' | 'subtitles_auto_caption' | 'subtitles_turn_on' | 'subtitles_turn_off' | 'traffic_saving_off' | 'traffic_saving_on' | 'traffic_saving_disable' | 'traffic_saving_enable' | 'traffic_saving_helper_text' | 'tooltip_previous' | 'tooltip_play' | 'tooltip_pause' | 'tooltip_next' | 'tooltip_button_disabled' | 'tooltip_interactive_seek' | 'tooltip_interactive_graph_off' | 'tooltip_interactive_graph_on' | 'tooltip_live' | 'tooltip_episodes' | 'tooltip_volume' | 'tooltip_volume_muted' | 'tooltip_settings_on' | 'tooltip_subtitles_off' | 'tooltip_settings_off' | 'tooltip_subtitles_on' | 'tooltip_fullscreen_off' | 'tooltip_fullscreen_on' | 'tooltip_chromecast_off' | 'tooltip_chromecast_on' | 'tooltip_episode_finished' | 'tooltip_episode_unfinished' | 'tooltip_disabled_when_interactive' | 'tooltip_disabled_when_graph_on' | '
|
|
107
|
+
type Key = 'auto_quality_invariant' | 'auto_quality' | 'menu_quality' | 'menu_playback_rate' | 'menu_traffic_saving' | 'menu_report' | 'menu_pip' | 'menu_copy_video_link' | 'menu_copy_video_link_with_timestamp' | 'menu_video_rotate' | 'menu_chromecast' | 'menu_copy_debug' | 'menu_save_debug' | 'menu_debug_overlay' | 'pip_dummy_title' | 'submenu_traffic_saving' | 'submenu_quality' | 'submenu_playback_rate' | 'submenu_settings' | 'auto_quality_option' | 'mobile_unmute' | 'playing_ads' | 'skip_ads_now' | 'skip_ads_after' | 'visit_advertiser' | 'aria_timeline' | 'aria_open_settings' | 'aria_timeline_value' | 'doubletap_seek_step' | 'playback_rate_1' | 'playback_rate' | 'video360' | 'subtitles_caption' | 'subtitles_auto' | 'subtitles_off' | 'subtitles_auto_caption' | 'subtitles_turn_on' | 'subtitles_turn_off' | 'traffic_saving_off' | 'traffic_saving_on' | 'traffic_saving_disable' | 'traffic_saving_enable' | 'traffic_saving_helper_text' | 'tooltip_previous' | 'tooltip_restart' | 'tooltip_play' | 'tooltip_pause' | 'tooltip_next' | 'tooltip_button_disabled' | 'tooltip_interactive_go_back' | 'tooltip_interactive_go_back_disabled' | 'tooltip_interactive_go_back_disabled_first' | 'tooltip_interactive_go_back_disabled_limit' | 'tooltip_interactive_seek' | 'tooltip_interactive_graph_off' | 'tooltip_interactive_graph_on' | 'tooltip_live' | 'tooltip_episodes' | 'tooltip_volume' | 'tooltip_volume_muted' | 'tooltip_settings_on' | 'tooltip_subtitles_off' | 'tooltip_settings_off' | 'tooltip_subtitles_on' | 'tooltip_fullscreen_off' | 'tooltip_fullscreen_on' | 'tooltip_chromecast_off' | 'tooltip_chromecast_on' | 'tooltip_episode_finished' | 'tooltip_episode_unfinished' | 'tooltip_disabled_when_interactive' | 'tooltip_disabled_when_graph_on' | 'tooltip_vk_logo' | 'tooltip_vk_video_logo' | 'download_video_caption' | 'hotkey_helper_current_volume' | 'hotkey_map_modal_title' | 'hotkey_map_modal_close_btn_text' | 'hotkey_map_group_title_common' | 'hotkey_map_group_title_playback' | 'hotkey_map_group_title_subtitles' | 'hotkey_map_group_title_episodes' | 'hotkey_map_item_mute_description' | 'hotkey_map_item_mute_value' | 'hotkey_map_item_volume_down_description' | 'hotkey_map_item_volume_down_value' | 'hotkey_map_item_volume_up_description' | 'hotkey_map_item_volume_up_value' | 'hotkey_map_item_pip_description' | 'hotkey_map_item_pip_value' | 'hotkey_map_item_full_screen_description' | 'hotkey_map_item_full_screen_value' | 'hotkey_map_item_show_hotkey_map_description' | 'hotkey_map_item_show_hotkey_map_value' | 'hotkey_map_item_play_toggle_description' | 'hotkey_map_item_play_toggle_value' | 'hotkey_map_item_seek_backward_description' | 'hotkey_map_item_seek_backward_value' | 'hotkey_map_item_seek_forward_description' | 'hotkey_map_item_seek_forward_value' | 'hotkey_map_item_fast_seek_backward_description' | 'hotkey_map_item_fast_seek_backward_value' | 'hotkey_map_item_fast_seek_forward_description' | 'hotkey_map_item_fast_seek_forward_value' | 'hotkey_map_item_rate_down_description' | 'hotkey_map_item_rate_down_value' | 'hotkey_map_item_rate_up_description' | 'hotkey_map_item_rate_up_value' | 'hotkey_map_item_prev_frame_description' | 'hotkey_map_item_prev_frame_value' | 'hotkey_map_item_next_frame_description' | 'hotkey_map_item_next_frame_value' | 'hotkey_map_item_jump_seek_description' | 'hotkey_map_item_jump_seek_value' | 'hotkey_map_item_subtitles_toggle_description' | 'hotkey_map_item_subtitles_toggle_value' | 'hotkey_map_item_prev_episode_description' | 'hotkey_map_item_prev_episode_pc_value' | 'hotkey_map_item_prev_episode_mac_value' | 'hotkey_map_item_next_episode_description' | 'hotkey_map_item_next_episode_pc_value' | 'hotkey_map_item_next_episode_mac_value' | 'waiting_live_day_value' | 'waiting_live_hour_value' | 'waiting_live_minute_value' | 'waiting_live_second_value' | 'waiting_live_colon' | 'waiting_live_upcoming_title' | 'waiting_live_timer_title' | 'waiting_record_title';
|
|
107
108
|
type LanguagePack = Record<Key, string>;
|
|
108
109
|
type LanguageConfig = {
|
|
109
110
|
language: string;
|
|
@@ -144,12 +145,17 @@ interface IVKVideoPlayerCallbacks {
|
|
|
144
145
|
onPiPEnter?: () => void;
|
|
145
146
|
onPiPExit?: () => void;
|
|
146
147
|
onLiveTime?: (liveTime: number | undefined) => void;
|
|
148
|
+
onReplayInteractiveVideo?: () => void;
|
|
149
|
+
onInteractiveHistoryChanged?: (chapterIds: string[]) => void;
|
|
150
|
+
onDisabledInteractiveClick?: () => void;
|
|
147
151
|
uiInfo?: {
|
|
148
152
|
onControlsVisibleChanged?: (value?: boolean) => void;
|
|
149
153
|
onIsMobileChanged?: (value?: boolean) => void;
|
|
150
154
|
onPrevButtonChanged?: (value?: IControlInfo) => void;
|
|
151
155
|
onPlayButtonChanged?: (value?: IControlInfo) => void;
|
|
156
|
+
onReplayButtonChanged?: (value?: IControlInfo) => void;
|
|
152
157
|
onNextButtonChanged?: (value?: IControlInfo) => void;
|
|
158
|
+
onPlayPrevChapterChanged?: (value?: IControlInfo) => void;
|
|
153
159
|
onSeekToInteractiveButtonChanged?: (value?: IControlInfo) => void;
|
|
154
160
|
onGraphButtonChanged?: (value?: IControlInfo) => void;
|
|
155
161
|
onLiveButtonChanged?: (value?: IControlInfo) => void;
|
|
@@ -344,6 +350,7 @@ declare class VKVideoPlayer extends HTMLElement {
|
|
|
344
350
|
private playPrevVideo;
|
|
345
351
|
private repeatPlaylist;
|
|
346
352
|
private createPlayerWithCurrentVideo;
|
|
353
|
+
private playPrevChapter;
|
|
347
354
|
private seekToInteractive;
|
|
348
355
|
private toggleGraph;
|
|
349
356
|
private initInteractives;
|
|
@@ -371,6 +378,7 @@ declare class VKVideoPlayer extends HTMLElement {
|
|
|
371
378
|
setWaitRecord(): void;
|
|
372
379
|
setLiveEnd(videoData: IVideoData): void;
|
|
373
380
|
getDeviceId(): string | undefined;
|
|
381
|
+
replayInteractiveVideo(): void;
|
|
374
382
|
}
|
|
375
383
|
|
|
376
384
|
declare const VERSION: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.32-dev.c9a4f9d3.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@vkontakte/videoplayer-core": "^2.0.98",
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "
|
|
54
|
-
"@vkontakte/videoplayer-shared": "
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.8-dev.e7c7fd6a.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.33-dev.18914815.0",
|
|
55
55
|
"@vkontakte/videoplayer-statistics": "^1.0.45"
|
|
56
56
|
}
|
|
57
57
|
}
|