@mux/mux-player
Advanced tools
Comparing version 3.1.0 to 3.1.1-canary.0
import { DialogOptions, DevlogOptions } from './types'; | ||
import { MediaError } from '@mux/playback-core'; | ||
export declare const muxMediaErrorToDialog: (mediaError: MediaError, translate?: boolean) => DialogOptions; | ||
export declare const muxMediaErrorToDevlog: (mediaError: MediaError, _translate?: boolean | undefined) => DevlogOptions; | ||
export declare function getErrorLogs(error: MediaError, translate?: boolean): { | ||
@@ -4,0 +6,0 @@ dialog: DialogOptions; |
import { MediaController } from 'media-chrome'; | ||
import 'media-chrome/dist/experimental/index.js'; | ||
import { MediaError } from '@mux/mux-video'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes, generatePlayerInitTime } from '@mux/playback-core'; | ||
import { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
@@ -11,3 +11,5 @@ import VideoApiElement from './video-api'; | ||
export { Tokens }; | ||
export { MediaError }; | ||
export { MediaError, generatePlayerInitTime }; | ||
export declare const playerSoftwareVersion: any; | ||
export declare const playerSoftwareName = "mux-player"; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -36,2 +38,4 @@ cuepointchange: CustomEvent<{ | ||
private "MuxPlayerElement.#private"; | ||
static readonly NAME: string; | ||
static readonly VERSION: any; | ||
static readonly observedAttributes: string[]; | ||
@@ -185,2 +189,3 @@ constructor(); | ||
defaultDuration: number | undefined; | ||
playerInitTime: number | undefined; | ||
/* | ||
@@ -187,0 +192,0 @@ * Get the player software name. Used by Mux Data. |
import 'media-chrome/dist/media-theme-element.js'; | ||
import './dialog'; | ||
import { MuxTemplateProps } from './types'; | ||
@@ -4,0 +3,0 @@ export declare const template: (props: MuxTemplateProps) => import("./html").TemplateResult; |
@@ -21,3 +21,2 @@ import { globalThis } from './polyfills'; | ||
declare class VideoApiElement extends globalThis.HTMLElement implements VideoApiElement { | ||
private "VideoApiElement.#private"; | ||
static readonly observedAttributes: string[]; | ||
@@ -35,3 +34,3 @@ /** | ||
init(): void; | ||
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void; | ||
attributeChangedCallback(attrName: string, _oldValue: string | null, newValue: string): void; | ||
play(): Promise<void>; | ||
@@ -38,0 +37,0 @@ pause(): void; |
import type { DialogOptions, DevlogOptions } from './types'; | ||
import { MediaError } from '@mux/playback-core'; | ||
export declare const muxMediaErrorToDialog: (mediaError: MediaError, translate?: boolean) => DialogOptions; | ||
export declare const muxMediaErrorToDevlog: (mediaError: MediaError, _translate?: boolean | undefined) => DevlogOptions; | ||
export declare function getErrorLogs(error: MediaError, translate?: boolean): { | ||
@@ -4,0 +6,0 @@ dialog: DialogOptions; |
import { MediaController } from 'media-chrome'; | ||
import 'media-chrome/dist/experimental/index.js'; | ||
import { MediaError } from '@mux/mux-video'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes } from '@mux/playback-core'; | ||
import { StreamTypes, PlaybackTypes, CmcdTypes, generatePlayerInitTime } from '@mux/playback-core'; | ||
import type { ValueOf, Metadata, PlaybackEngine, MaxResolutionValue, MinResolutionValue, RenditionOrderValue, Chapter, CuePoint, Tokens } from '@mux/playback-core'; | ||
@@ -11,3 +11,5 @@ import VideoApiElement from './video-api'; | ||
export type { Tokens }; | ||
export { MediaError }; | ||
export { MediaError, generatePlayerInitTime }; | ||
export declare const playerSoftwareVersion: any; | ||
export declare const playerSoftwareName = "mux-player"; | ||
export interface MuxPlayerElementEventMap extends HTMLVideoElementEventMap { | ||
@@ -36,2 +38,4 @@ cuepointchange: CustomEvent<{ | ||
#private; | ||
static get NAME(): string; | ||
static get VERSION(): any; | ||
static get observedAttributes(): string[]; | ||
@@ -206,2 +210,4 @@ constructor(); | ||
set defaultDuration(val: number | undefined); | ||
get playerInitTime(): number | undefined; | ||
set playerInitTime(val: number | undefined); | ||
/** | ||
@@ -208,0 +214,0 @@ * Get the player software name. Used by Mux Data. |
import 'media-chrome/dist/media-theme-element.js'; | ||
import './dialog'; | ||
import type { MuxTemplateProps } from './types'; | ||
@@ -4,0 +3,0 @@ export declare const template: (props: MuxTemplateProps) => import("./html").TemplateResult; |
@@ -21,3 +21,2 @@ import { globalThis } from './polyfills'; | ||
declare class VideoApiElement extends globalThis.HTMLElement implements VideoApiElement { | ||
#private; | ||
static get observedAttributes(): string[]; | ||
@@ -35,3 +34,3 @@ /** | ||
init(): void; | ||
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string): void; | ||
attributeChangedCallback(attrName: string, _oldValue: string | null, newValue: string): void; | ||
play(): Promise<void>; | ||
@@ -38,0 +37,0 @@ pause(): void; |
{ | ||
"name": "@mux/mux-player", | ||
"version": "3.1.0", | ||
"version": "3.1.1-canary.0", | ||
"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" | ||
}, | ||
@@ -67,3 +67,3 @@ "./themes/microvideo": { | ||
"type": "git", | ||
"url": "https://github.com/muxinc/elements", | ||
"url": "git+https://github.com/muxinc/elements.git", | ||
"directory": "packages/mux-player" | ||
@@ -95,5 +95,3 @@ }, | ||
"postbuild:types": "downlevel-dts ./dist/types ./dist/types-ts3.4", | ||
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify' 'build:themes'", | ||
"create-release-notes": "create-release-notes ./CHANGELOG.md", | ||
"publish-release": "../../scripts/publish.sh" | ||
"build": "npm-run-all --parallel 'build:esm --minify' 'build:iife --minify' 'build:cjs --minify' 'build:esm-module --minify' 'build:themes'" | ||
}, | ||
@@ -103,4 +101,4 @@ "dependencies": { | ||
"@mux/playback-core": "0.27.0", | ||
"media-chrome": "~4.2.1", | ||
"player.style": "^0.0.8" | ||
"media-chrome": "~4.3.0", | ||
"player.style": "^0.1.0" | ||
}, | ||
@@ -115,3 +113,3 @@ "devDependencies": { | ||
"@web/dev-server-legacy": "^2.1.1", | ||
"@web/test-runner": "^0.18.2", | ||
"@web/test-runner": "^0.19.0", | ||
"@web/test-runner-playwright": "^0.11.0", | ||
@@ -127,4 +125,3 @@ "@web/test-runner-saucelabs": "^0.11.2", | ||
"typescript": "^5.5.4" | ||
}, | ||
"gitHead": "e1d17f4ce383e95489fc778d3c5bda3b89a27b5b" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5892347
117621
45
2
+ Addedmedia-chrome@4.3.14.4.0(transitive)
+ Addedplayer.style@0.1.3(transitive)
- Removedmedia-chrome@4.2.3(transitive)
- Removedplayer.style@0.0.8(transitive)
Updatedmedia-chrome@~4.3.0
Updatedplayer.style@^0.1.0