Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@livepeer/core

Package Overview
Dependencies
Maintainers
6
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livepeer/core - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

22

dist/cjs/media.d.ts

@@ -242,4 +242,2 @@ import { StoreApi } from 'zustand/vanilla';

declare const DEFAULT_VOLUME_LEVEL = 1;
declare const DEFAULT_AUTOHIDE_TIME = 3000;
type InitialProps = {

@@ -333,8 +331,2 @@ /**

};
type ControlsOptions = {
/** Auto-hide controls after a set amount of time (in milliseconds). Defaults to 3000. Set to 0 for no hiding. */
autohide?: number;
/** Sets the default volume. Must be between 0 and 1. */
defaultVolume?: number;
};
type DeviceInformation = {

@@ -395,2 +387,12 @@ version: string;

sessionToken: string;
/**
* Configures the HLS options, for advanced usage of the Player.
*/
hlsConfig: any | null;
/**
* Auto-hide controls after a set amount of time (in milliseconds).
*
* Defaults to 3000. Set to 0 for no hiding.
*/
autohide: number;
};

@@ -505,3 +507,5 @@ type ObjectFit = "cover" | "contain";

requestVolume: (volume: number) => void;
setAutohide: (autohide: number) => void;
setFullscreen: (fullscreen: boolean) => void;
setHlsConfig: (hlsConfig: any) => void;
setLive: (live: boolean) => void;

@@ -646,2 +650,2 @@ setMounted: () => void;

export { type AccessControlParams, type AriaText, type AudioSrc, type AudioTrackSelector, type Base64Src, type ClipLength, type ClipParams, type ControlsOptions, type ControlsState, DEFAULT_AUTOHIDE_TIME, DEFAULT_VOLUME_LEVEL, type DeviceInformation, type ElementSize, type HlsSrc, type InitialProps, type MediaControllerState, type MediaControllerStore, type MediaMetrics, type MediaSizing, type Metadata, MetricsStatus, type ObjectFit, type PlaybackError, PlaybackMonitor, type PlaybackRate, type SingleAudioTrackSelector, type SingleTrackSelector, type SingleVideoTrackSelector, type Src, type VideoQuality, type VideoSrc, type VideoTrackSelector, type WebRTCSrc, addMediaMetricsToStore, calculateVideoQualityDimensions, createControllerStore, getBoundedVolume, getMediaSourceType };
export { type AccessControlParams, type AriaText, type AudioSrc, type AudioTrackSelector, type Base64Src, type ClipLength, type ClipParams, type ControlsState, type DeviceInformation, type ElementSize, type HlsSrc, type InitialProps, type MediaControllerState, type MediaControllerStore, type MediaMetrics, type MediaSizing, type Metadata, MetricsStatus, type ObjectFit, type PlaybackError, PlaybackMonitor, type PlaybackRate, type SingleAudioTrackSelector, type SingleTrackSelector, type SingleVideoTrackSelector, type Src, type VideoQuality, type VideoSrc, type VideoTrackSelector, type WebRTCSrc, addMediaMetricsToStore, calculateVideoQualityDimensions, createControllerStore, getBoundedVolume, getMediaSourceType };

@@ -667,5 +667,5 @@ Object.defineProperty(exports, '__esModule', { value: true });

const DEFAULT_AUTOHIDE_TIME = 3000; // milliseconds to wait before hiding controls
const DEFAULT_SEEK_TIME = 5000; // milliseconds which the media will skip when seeking with arrows/buttons
const DEFAULT_VOLUME_LEVEL = 1; // 0-1 for how loud the audio is
const DEFAULT_AUTOHIDE_TIME = 3000; // milliseconds to wait before hiding controls
const createControllerStore = ({ device, storage, src, initialProps })=>{

@@ -697,2 +697,4 @@ const resolvedStorage = initialProps?.storage === null ? createStorage({

const initialControls = {
hlsConfig: null,
autohide: DEFAULT_AUTOHIDE_TIME,
lastError: 0,

@@ -777,2 +779,14 @@ lastInteraction: Date.now(),

})),
setAutohide: (autohide)=>set(({ __controls })=>({
__controls: {
...__controls,
autohide
}
})),
setHlsConfig: (hlsConfig)=>set(({ __controls })=>({
__controls: {
...__controls,
hlsConfig
}
})),
setHidden: (hidden)=>set(({ playing })=>({

@@ -1545,4 +1559,2 @@ hidden: playing ? hidden : false

exports.DEFAULT_AUTOHIDE_TIME = DEFAULT_AUTOHIDE_TIME;
exports.DEFAULT_VOLUME_LEVEL = DEFAULT_VOLUME_LEVEL;
exports.addMediaMetricsToStore = addMediaMetricsToStore;

@@ -1549,0 +1561,0 @@ exports.calculateVideoQualityDimensions = calculateVideoQualityDimensions;

declare const version: {
readonly core: "@livepeer/core@3.0.1";
readonly react: "@livepeer/react@4.0.1";
readonly core: "@livepeer/core@3.0.2";
readonly react: "@livepeer/react@4.0.2";
};
export { version };
Object.defineProperty(exports, '__esModule', { value: true });
const core = "@livepeer/core@3.0.1";
const react = "@livepeer/react@4.0.1";
const core = "@livepeer/core@3.0.2";
const react = "@livepeer/react@4.0.2";
const version = {

@@ -6,0 +6,0 @@ core,

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "3.0.1",
"version": "3.0.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc