@mux/mux-player
Advanced tools
Comparing version 3.0.0 to 3.1.0-canary.0-192aa79
@@ -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; | ||
}; |
@@ -24,3 +24,3 @@ import { StreamTypes } from '@mux/playback-core'; | ||
constructor(el?: HTMLElement, attr?: string); | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
readonly length: number; | ||
@@ -30,4 +30,4 @@ value: string | undefined; | ||
item(index: number): string; | ||
values(): IterableIterator<string>; | ||
keys(): IterableIterator<number>; | ||
values(): ArrayIterator<string>; | ||
keys(): ArrayIterator<number>; | ||
forEach(callback: (value: string, index: number, list: string[]) => void): void; | ||
@@ -34,0 +34,0 @@ add(...tokens: string[]): void; |
@@ -5,3 +5,3 @@ import { MediaController } from 'media-chrome'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint } from '@mux/playback-core'; | ||
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
import VideoApiElement from './video-api'; | ||
@@ -11,9 +11,6 @@ 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 declare const playerSoftwareVersion: any; | ||
export declare const playerSoftwareName = "mux-player"; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -42,2 +39,4 @@ cuepointchange: CustomEvent<{ | ||
private "MuxPlayerElement.#private"; | ||
static readonly NAME: string; | ||
static readonly VERSION: any; | ||
static readonly observedAttributes: string[]; | ||
@@ -211,2 +210,4 @@ constructor(); | ||
programEndTime: number | undefined; | ||
assetStartTime: number | undefined; | ||
assetEndTime: number | undefined; | ||
extraSourceParams: Record<string, any>; | ||
@@ -213,0 +214,0 @@ /* |
@@ -20,3 +20,3 @@ import 'media-chrome/dist/media-theme-element.js'; | ||
CONTROL_BAR: string; | ||
SELECTMENU: string; | ||
MENU_BUTTON: string; | ||
LISTBOX: string; | ||
@@ -23,0 +23,0 @@ OPTION: string; |
@@ -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; |
@@ -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; | ||
}; |
@@ -24,3 +24,3 @@ import { StreamTypes } from '@mux/playback-core'; | ||
constructor(el?: HTMLElement, attr?: string); | ||
[Symbol.iterator](): IterableIterator<string>; | ||
[Symbol.iterator](): ArrayIterator<string>; | ||
get length(): number; | ||
@@ -31,4 +31,4 @@ get value(): string | undefined; | ||
item(index: number): string; | ||
values(): IterableIterator<string>; | ||
keys(): IterableIterator<number>; | ||
values(): ArrayIterator<string>; | ||
keys(): ArrayIterator<number>; | ||
forEach(callback: (value: string, index: number, list: string[]) => void): void; | ||
@@ -35,0 +35,0 @@ add(...tokens: string[]): void; |
@@ -5,3 +5,3 @@ import { MediaController } from 'media-chrome'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint } from '@mux/playback-core'; | ||
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
import VideoApiElement from './video-api'; | ||
@@ -11,9 +11,6 @@ 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 declare const playerSoftwareVersion: any; | ||
export declare const playerSoftwareName = "mux-player"; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -42,2 +39,4 @@ cuepointchange: CustomEvent<{ | ||
#private; | ||
static get NAME(): string; | ||
static get VERSION(): any; | ||
static get observedAttributes(): string[]; | ||
@@ -238,2 +237,6 @@ constructor(); | ||
set programEndTime(val: number | undefined); | ||
get assetStartTime(): number | undefined; | ||
set assetStartTime(val: number | undefined); | ||
get assetEndTime(): number | undefined; | ||
set assetEndTime(val: number | undefined); | ||
get extraSourceParams(): Record<string, any>; | ||
@@ -240,0 +243,0 @@ set extraSourceParams(value: Record<string, any>); |
@@ -20,3 +20,3 @@ import 'media-chrome/dist/media-theme-element.js'; | ||
CONTROL_BAR: string; | ||
SELECTMENU: string; | ||
MENU_BUTTON: string; | ||
LISTBOX: string; | ||
@@ -23,0 +23,0 @@ OPTION: string; |
@@ -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; |
{ | ||
"name": "@mux/mux-player", | ||
"version": "3.0.0", | ||
"version": "3.1.0-canary.0-192aa79", | ||
"description": "An open source Mux player web component that Just Works™", | ||
@@ -34,5 +34,5 @@ "homepage": "https://mux.com/player", | ||
"require": "./dist/index.cjs.js", | ||
"default": "./dist/index.cjs.js", | ||
"types@<4.3.5": "./dist/types-ts3.4/index.d.ts", | ||
"types": "./dist/types/index.d.ts" | ||
"types": "./dist/types/index.d.ts", | ||
"default": "./dist/index.cjs.js" | ||
}, | ||
@@ -75,2 +75,3 @@ "./themes/microvideo": { | ||
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/ --ext .js,.jsx,.ts,.tsx", | ||
"test:saucelabs": "web-test-runner **/*test.js --port 8001 --coverage --config test/web-test-runner.saucelabs.config.mjs --root-dir ../..", | ||
"test": "web-test-runner **/*test.js --port 8001 --coverage --config test/web-test-runner.config.mjs --root-dir ../..", | ||
@@ -99,5 +100,5 @@ "posttest": "replace 'SF:src/' 'SF:packages/mux-player/src/' coverage/lcov.info --silent", | ||
"dependencies": { | ||
"@mux/mux-video": "0.21.0", | ||
"@mux/playback-core": "0.26.0", | ||
"media-chrome": "~4.1.1", | ||
"@mux/mux-video": "0.22.0-canary.0-192aa79", | ||
"@mux/playback-core": "0.27.0-canary.0-192aa79", | ||
"media-chrome": "~4.2.1", | ||
"player.style": "^0.0.8" | ||
@@ -112,4 +113,6 @@ }, | ||
"@web/dev-server-import-maps": "^0.2.1", | ||
"@web/dev-server-legacy": "^2.1.1", | ||
"@web/test-runner": "^0.18.2", | ||
"@web/test-runner-playwright": "^0.11.0", | ||
"@web/test-runner-saucelabs": "^0.11.2", | ||
"downlevel-dts": "^0.11.0", | ||
@@ -123,4 +126,3 @@ "esbuild": "^0.19.8", | ||
"typescript": "^5.5.4" | ||
}, | ||
"gitHead": "5ae58b9de16ae2dcd807276bb6539c1f8cfab800" | ||
} | ||
} |
@@ -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 not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6104967
54
116450
49
27
18
2
+ Added@mux/mux-video@0.22.0-canary.0-192aa79(transitive)
+ Added@mux/playback-core@0.27.0-canary.0-192aa79(transitive)
+ Addedmedia-chrome@4.2.3(transitive)
- Removed@mux/mux-video@0.21.0(transitive)
- Removed@mux/playback-core@0.26.0(transitive)
- Removedmedia-chrome@4.1.5(transitive)
Updatedmedia-chrome@~4.2.1