@mux/mux-player
Advanced tools
Comparing version 2.9.1 to 3.0.0-canary.0-0f9d0fb
@@ -1,6 +0,6 @@ | ||
import { MediaError } from '@mux/mux-video'; | ||
import { DialogOptions, DevlogOptions } from './types'; | ||
export declare function getErrorLogs(error: MediaError, offline?: boolean, playbackId?: string, playbackToken?: string, translate?: boolean): { | ||
import { MediaError } from '@mux/playback-core'; | ||
export declare function getErrorLogs(error: MediaError, translate?: boolean): { | ||
dialog: DialogOptions; | ||
devlog: DevlogOptions; | ||
}; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="mux-embed/dist/types/mux-embed" /> | ||
import { MediaController } from 'media-chrome'; | ||
@@ -6,3 +5,3 @@ import 'media-chrome/dist/experimental/index.js'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue } from '@mux/playback-core'; | ||
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
import VideoApiElement from './video-api'; | ||
@@ -12,9 +11,4 @@ import { AttributeTokenList } from './helpers'; | ||
import { HlsConfig } from 'hls.js'; | ||
export { Tokens }; | ||
export { MediaError }; | ||
export type Tokens = { | ||
playback?: string; | ||
drm?: string; | ||
thumbnail?: string; | ||
storyboard?: string; | ||
}; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -286,6 +280,3 @@ cuepointchange: CustomEvent<{ | ||
_hlsConfig: Readonly<Partial<HlsConfig>> | undefined; | ||
addCuePoints<T = any>(cuePoints: { | ||
time: number; | ||
value: T; | ||
}[]): Promise<TextTrack | undefined>; | ||
addCuePoints<T = any>(cuePoints: CuePoint<T>[]): Promise<TextTrack | undefined>; | ||
readonly activeCuePoint: { | ||
@@ -299,7 +290,3 @@ time: number; | ||
}[]; | ||
addChapters(chapters: { | ||
startTime: number; | ||
endTime: number; | ||
value: string; | ||
}[]): Promise<TextTrack> | undefined; | ||
addChapters(chapters: Chapter[]): Promise<TextTrack> | undefined; | ||
readonly activeChapter: { | ||
@@ -355,4 +342,7 @@ startTime: number; | ||
readonly textTracks: TextTrackList | undefined; | ||
castReceiver: string | undefined; | ||
castCustomData: Record<string, any> | undefined; | ||
noTooltips: boolean; | ||
} | ||
export declare function getVideoAttribute(el: MuxPlayerElement, name: string): string | null; | ||
export default MuxPlayerElement; |
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
import 'media-chrome/menu'; | ||
declare class MediaThemeClassic extends MediaThemeElement { | ||
static template: Element; | ||
static template: HTMLTemplateElement; | ||
} | ||
export default MediaThemeClassic; |
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
import 'media-chrome/menu'; | ||
declare class MediaThemeGerwig extends MediaThemeElement { | ||
static template: Element; | ||
static template: HTMLTemplateElement; | ||
} | ||
export default MediaThemeGerwig; |
@@ -1,1 +0,1 @@ | ||
export * from 'media-chrome/dist/themes/microvideo.js'; | ||
export * from 'player.style/microvideo'; |
@@ -1,1 +0,1 @@ | ||
export * from 'media-chrome/dist/themes/minimal.js'; | ||
export * from 'player.style/minimal'; |
@@ -1,2 +0,1 @@ | ||
export declare function i18n(str: string, translate?: boolean): any; | ||
export declare function stylePropsToString(props: any): string | undefined; | ||
@@ -9,3 +8,2 @@ export declare function kebabCase(name: string): string; | ||
export declare function toParams(obj: Record<string, any>): URLSearchParams; | ||
export declare function parseJwt(token: string | undefined): any; | ||
export declare const containsComposedNode: (rootNode: Node, childNode?: Node | Element | null) => boolean; |
@@ -63,4 +63,4 @@ import { globalThis } from './polyfills'; | ||
playsInline: boolean; | ||
preload: "" | "metadata" | "none" | "auto"; | ||
preload: HTMLVideoElement["preload"]; | ||
} | ||
export default VideoApiElement; |
@@ -1,6 +0,6 @@ | ||
import { MediaError } from '@mux/mux-video'; | ||
import type { DialogOptions, DevlogOptions } from './types'; | ||
export declare function getErrorLogs(error: MediaError, offline?: boolean, playbackId?: string, playbackToken?: string, translate?: boolean): { | ||
import { MediaError } from '@mux/playback-core'; | ||
export declare function getErrorLogs(error: MediaError, translate?: boolean): { | ||
dialog: DialogOptions; | ||
devlog: DevlogOptions; | ||
}; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="mux-embed/dist/types/mux-embed" /> | ||
import { MediaController } from 'media-chrome'; | ||
@@ -6,3 +5,3 @@ import 'media-chrome/dist/experimental/index.js'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue } from '@mux/playback-core'; | ||
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
import VideoApiElement from './video-api'; | ||
@@ -12,9 +11,4 @@ import { AttributeTokenList } from './helpers'; | ||
import { HlsConfig } from 'hls.js'; | ||
export type { Tokens }; | ||
export { MediaError }; | ||
export type Tokens = { | ||
playback?: string; | ||
drm?: string; | ||
thumbnail?: string; | ||
storyboard?: string; | ||
}; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -327,6 +321,3 @@ cuepointchange: CustomEvent<{ | ||
set _hlsConfig(val: Readonly<Partial<HlsConfig>> | undefined); | ||
addCuePoints<T = any>(cuePoints: { | ||
time: number; | ||
value: T; | ||
}[]): Promise<TextTrack | undefined>; | ||
addCuePoints<T = any>(cuePoints: CuePoint<T>[]): Promise<TextTrack | undefined>; | ||
get activeCuePoint(): { | ||
@@ -340,7 +331,3 @@ time: number; | ||
}[]; | ||
addChapters(chapters: { | ||
startTime: number; | ||
endTime: number; | ||
value: string; | ||
}[]): Promise<TextTrack> | undefined; | ||
addChapters(chapters: Chapter[]): Promise<TextTrack> | undefined; | ||
get activeChapter(): { | ||
@@ -401,4 +388,10 @@ startTime: number; | ||
get textTracks(): TextTrackList | undefined; | ||
get castReceiver(): string | undefined; | ||
set castReceiver(val: string | undefined); | ||
get castCustomData(): Record<string, any> | undefined; | ||
set castCustomData(val: Record<string, any> | undefined); | ||
get noTooltips(): boolean; | ||
set noTooltips(val: boolean); | ||
} | ||
export declare function getVideoAttribute(el: MuxPlayerElement, name: string): string | null; | ||
export default MuxPlayerElement; |
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
import 'media-chrome/menu'; | ||
declare class MediaThemeClassic extends MediaThemeElement { | ||
static template: Element; | ||
static template: HTMLTemplateElement; | ||
} | ||
export default MediaThemeClassic; |
import { MediaThemeElement } from 'media-chrome/dist/media-theme-element.js'; | ||
import 'media-chrome/menu'; | ||
declare class MediaThemeGerwig extends MediaThemeElement { | ||
static template: Element; | ||
static template: HTMLTemplateElement; | ||
} | ||
export default MediaThemeGerwig; |
@@ -1,1 +0,1 @@ | ||
export * from 'media-chrome/dist/themes/microvideo.js'; | ||
export * from 'player.style/microvideo'; |
@@ -1,1 +0,1 @@ | ||
export * from 'media-chrome/dist/themes/minimal.js'; | ||
export * from 'player.style/minimal'; |
@@ -1,2 +0,1 @@ | ||
export declare function i18n(str: string, translate?: boolean): any; | ||
export declare function stylePropsToString(props: any): string | undefined; | ||
@@ -9,3 +8,2 @@ export declare function kebabCase(name: string): string; | ||
export declare function toParams(obj: Record<string, any>): URLSearchParams; | ||
export declare function parseJwt(token: string | undefined): any; | ||
export declare const containsComposedNode: (rootNode: Node, childNode?: Node | Element | null) => boolean; |
@@ -73,5 +73,5 @@ import { globalThis } from './polyfills'; | ||
set playsInline(val: boolean); | ||
get preload(): "" | "metadata" | "none" | "auto"; | ||
set preload(val: "" | "metadata" | "none" | "auto"); | ||
get preload(): HTMLVideoElement["preload"]; | ||
set preload(val: HTMLVideoElement["preload"]); | ||
} | ||
export default VideoApiElement; |
{ | ||
"name": "@mux/mux-player", | ||
"version": "2.9.1", | ||
"version": "3.0.0-canary.0-0f9d0fb", | ||
"description": "An open source Mux player web component that Just Works™", | ||
@@ -73,3 +73,3 @@ "homepage": "https://mux.com/player", | ||
"clean": "shx rm -rf dist/ && shx rm -rf src/polyfills", | ||
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx", | ||
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/ --ext .js,.jsx,.ts,.tsx", | ||
"test": "web-test-runner **/*test.js --port 8001 --coverage --config test/web-test-runner.config.mjs --root-dir ../..", | ||
@@ -98,5 +98,6 @@ "posttest": "replace 'SF:src/' 'SF:packages/mux-player/src/' coverage/lcov.info --silent", | ||
"dependencies": { | ||
"@mux/mux-video": "0.20.2", | ||
"@mux/playback-core": "0.25.2", | ||
"media-chrome": "~3.2.5" | ||
"@mux/mux-video": "0.21.0-canary.0-0f9d0fb", | ||
"@mux/playback-core": "0.26.0-canary.0-0f9d0fb", | ||
"media-chrome": "~4.1.1", | ||
"player.style": "^0.0.8" | ||
}, | ||
@@ -106,4 +107,4 @@ "devDependencies": { | ||
"@open-wc/testing": "^4.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.48.0", | ||
"@typescript-eslint/parser": "^5.48.0", | ||
"@typescript-eslint/eslint-plugin": "^8.3.0", | ||
"@typescript-eslint/parser": "^8.3.0", | ||
"@web/dev-server-esbuild": "^1.0.2", | ||
@@ -115,3 +116,3 @@ "@web/dev-server-import-maps": "^0.2.1", | ||
"esbuild": "^0.19.8", | ||
"eslint": "^8.24.0", | ||
"eslint": "^9.9.1", | ||
"hls.js": "~1.5.11", | ||
@@ -121,5 +122,4 @@ "npm-run-all": "^4.1.5", | ||
"shx": "^0.3.4", | ||
"typescript": "^4.9.4" | ||
}, | ||
"gitHead": "94210d8ddb22e9d15369329ced978781eebf3402" | ||
"typescript": "^5.5.4" | ||
} | ||
} |
@@ -8,6 +8,10 @@ <p align="center"> | ||
# New release: 2.0 | ||
# New release: 3.0 | ||
Mux Player has recently released 2.0. See the [[https://github.com/muxinc/elements/blob/packages/mux-player/UPGRADING_V1_to_V2.md](https://github.com/muxinc/elements/blob/main/packages/mux-player/UPGRADING_V1_to_V2.md) and the [blog post announcement](https://www.mux.com/blog/mux-player-2-0-for-web-and-coming-soon-for-ios-and-android). | ||
Mux Player recently released 3.0. The most visible change in this is new tooltips that are enabled by default, as well as [other fixes and changes](https://docs.mux.com/guides/player-releases-web#300). | ||
## Previous version: 2.0 | ||
For changes relating to the previous major release, 2.0, see the [V1 to V2 upgrade guide](https://github.com/muxinc/elements/blob/main/packages/mux-player/UPGRADING_V1_to_V2.md) and the [blog post announcement](https://www.mux.com/blog/mux-player-2-0-for-web-and-coming-soon-for-ios-and-android). | ||
# Introduction | ||
@@ -14,0 +18,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6086417
54
116261
49
4
2
28
+ Addedplayer.style@^0.0.8
+ Added@mux/mux-video@0.21.0-canary.0-0f9d0fb(transitive)
+ Added@mux/playback-core@0.26.0-canary.0-0f9d0fb(transitive)
+ Addedcastable-video@1.1.0(transitive)
+ Addedmedia-chrome@4.1.5(transitive)
+ Addedmux-embed@5.4.1(transitive)
+ Addedplayer.style@0.0.8(transitive)
- Removed@mux/mux-video@0.20.2(transitive)
- Removed@mux/playback-core@0.25.2(transitive)
- Removedcastable-video@1.0.10(transitive)
- Removedmedia-chrome@3.2.5(transitive)
- Removedmux-embed@5.2.1(transitive)
Updatedmedia-chrome@~4.1.1