Skip to content

Commit

Permalink
chore: release v1.30.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Sep 16, 2023
1 parent c131b5d commit 2816479
Show file tree
Hide file tree
Showing 13 changed files with 37 additions and 12 deletions.
4 changes: 2 additions & 2 deletions dist/DPlayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/DPlayer.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/d.ts/comment.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/d.ts/options.d.ts.map

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

7 changes: 7 additions & 0 deletions dist/d.ts/player.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ declare class DPlayer {
initMSE(video: HTMLVideoElement, type: DPlayerType.VideoType | string): void;
initVideo(video: HTMLVideoElement, type: DPlayerType.VideoType | string): void;
switchQuality(index: number): void;
/**
* Show notice
* @param text Notice text
* @param time Time to show (ms, if -1 then notice will not hide)
* @param opacity Notice opacity
* @param color Notice color
*/
notice(text: string, time?: number, opacity?: number, color?: string): void;
resize(): void;
speed(rate: number): void;
Expand Down
2 changes: 1 addition & 1 deletion dist/d.ts/player.d.ts.map

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

3 changes: 3 additions & 0 deletions dist/d.ts/setting.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ declare class Setting {
loop: boolean;
showDanmaku: boolean;
unlimitDanmaku: boolean;
currentAudio: 'primary' | 'secondary';
resizeObserver: ResizeObserver;
constructor(player: DPlayer);
hide(): void;
show(): void;
destroy(): void;
}
export default Setting;
//# sourceMappingURL=setting.d.ts.map
2 changes: 1 addition & 1 deletion dist/d.ts/setting.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/d.ts/subtitle.d.ts.map

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

2 changes: 1 addition & 1 deletion dist/d.ts/template.d.ts.map

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

17 changes: 16 additions & 1 deletion dist/d.ts/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import * as aribb24js from 'aribb24.js';
import DPlayer from './player';
export type Lang = 'en' | 'zh-cn' | 'zh-tw' | 'ja' | 'ja-jp';
export type Preload = 'none' | 'metadata' | 'auto';
export type CrossOrigin = 'anonymous' | 'use-credentials' | null;
export type VideoType = 'auto' | 'hls' | 'live-llhls-for-KonomiTV' | 'mpegts' | 'flv' | 'dash' | 'webtorrent' | 'normal';
export type SubtitleType = 'webvtt' | 'aribb24';
export type Events = VideoEvents | PlayerEvents;
Expand Down Expand Up @@ -81,6 +82,11 @@ export interface Options {
* @default 'metadata'
*/
preload?: Preload;
/**
* @description video crossOrigin attribute (disable CORS by specifying null)
* @default null
*/
crossOrigin?: CrossOrigin;
/**
* @description default volume, notice that player will remember user setting, default volume will not work after user set volume themselves
* @default 1.0
Expand Down Expand Up @@ -264,6 +270,11 @@ export interface Danmaku {
* @default 35
*/
fontSize?: number;
/**
* @description close comment form after send danmaku
* @default true
*/
closeCommentFormAfterSend?: boolean;
}
export interface ContextMenuItem {
text: string;
Expand All @@ -286,7 +297,9 @@ export interface PluginOptions {
};
dash?: dashjs.MediaPlayerSettingClass;
webtorrent?: WebTorrent.Options;
aribb24?: aribb24js.CanvasRendererOption;
aribb24?: aribb24js.CanvasRendererOption & {
disableSuperimposeRenderer?: boolean;
};
}
export interface WindowExtend extends Window {
dashjs?: typeof dashjs;
Expand All @@ -309,6 +322,7 @@ export interface OptionsInternal {
airplay: boolean;
hotkey: boolean;
preload: Preload;
crossOrigin: CrossOrigin;
volume: number;
playbackSpeed: number[];
logo?: string;
Expand Down Expand Up @@ -355,6 +369,7 @@ export interface DanmakuInternal {
unlimited?: boolean;
speedRate: number;
fontSize: number;
closeCommentFormAfterSend: boolean;
}
export interface Plugins {
hls?: Hls;
Expand Down
Loading

0 comments on commit 2816479

Please sign in to comment.