New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@livepeer/core-web

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@livepeer/core-web - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

16

dist/cjs/broadcast.d.ts

@@ -79,8 +79,2 @@ import { MediaControllerStore } from '@livepeer/core/media';

/**
* The ingest URL for the WHIP WebRTC broadcast.
*
* Defaults to Livepeer Studio (`https://playback.livepeer.studio/webrtc`).
*/
ingestUrl: string;
/**
* Whether the WebRTC stream should attempt to initialize immediately after the user grants

@@ -127,5 +121,5 @@ * permission to their video/audio input.

/**
* The stream key to use for the broadcast.
* The WHIP ingest URL to use for the broadcast.
*/
streamKey: string | null;
ingestUrl: string | null;
/** If the broadcast video track is turned on. */

@@ -147,6 +141,6 @@ video: boolean;

rotateVideoSource: () => void;
setIngestUrl: (ingestUrl: string) => void;
setInitialState: (ids: MediaDeviceIds, audio: boolean, video: boolean) => void;
setPeerConnection: (peerConnection: RTCPeerConnection) => void;
setMediaDeviceIds: (mediaDevices: Partial<MediaDeviceIds>) => void;
setStreamKey: (streamKey: string) => void;
toggleAudio: () => void;

@@ -172,4 +166,4 @@ toggleDisplayMedia: () => void;

};
declare const createBroadcastStore: ({ streamKey, device, storage, initialProps, }: {
streamKey: string;
declare const createBroadcastStore: ({ ingestUrl, device, storage, initialProps, }: {
ingestUrl: string | null | undefined;
device: BroadcastDeviceInformation;

@@ -176,0 +170,0 @@ storage: ClientStorage;

@@ -395,3 +395,2 @@ Object.defineProperty(exports, '__esModule', { value: true });

const defaultIngestUrl = "https://playback.livepeer.studio/webrtc";
const delay = (ms)=>{

@@ -406,3 +405,3 @@ return new Promise((resolve)=>setTimeout(resolve, ms));

});
const createBroadcastStore = ({ streamKey, device, storage, initialProps })=>{
const createBroadcastStore = ({ ingestUrl, device, storage, initialProps })=>{
const initialControls = {

@@ -425,3 +424,3 @@ requestedUpdateDeviceListLastTime: 0,

peerConnection: null,
streamKey: streamKey ?? null,
ingestUrl: ingestUrl ?? null,
mediaDeviceIds: {

@@ -443,3 +442,3 @@ audioinput: "default",

hotkeys: initialProps.hotkeys ?? true,
ingestUrl: initialProps?.ingestUrl ?? defaultIngestUrl,
ingestUrl: ingestUrl ?? null,
video: initialProps?.video ?? true

@@ -457,4 +456,4 @@ },

})),
setStreamKey: (streamKey)=>set(()=>({
streamKey
setIngestUrl: (ingestUrl)=>set(()=>({
ingestUrl
})),

@@ -713,8 +712,7 @@ requestForceRenegotiate: ()=>set(({ __controls })=>({

/** STORE LISTENERS - handle broadcast state */ // Subscribe to request user media
const destroyWhip = store.subscribe(({ enabled, streamKey, __controls, __initialProps })=>({
const destroyWhip = store.subscribe(({ enabled, ingestUrl, __controls, __initialProps })=>({
enabled,
ingestUrl: __initialProps.ingestUrl,
streamKey,
ingestUrl,
requestedForceRenegotiateLastTime: __controls.requestedForceRenegotiateLastTime
}), async ({ enabled, streamKey, ingestUrl })=>{
}), async ({ enabled, ingestUrl })=>{
await cleanupWhip?.();

@@ -724,2 +722,6 @@ if (!enabled) {

}
if (!ingestUrl) {
utils.warn("No ingest URL provided, cannot start stream. Please check the configuration passed to the Broadcast component.");
return;
}
let unmounted = false;

@@ -733,3 +735,3 @@ const onErrorComposed = (err)=>{

const { destroy } = createNewWHIP({
ingestUrl: `${ingestUrl}/${streamKey}`,
ingestUrl,
element,

@@ -753,3 +755,3 @@ callbacks: {

}, {
equalityFn: (a, b)=>a.requestedForceRenegotiateLastTime === b.requestedForceRenegotiateLastTime && a.streamKey === b.streamKey && a.enabled === b.enabled
equalityFn: (a, b)=>a.requestedForceRenegotiateLastTime === b.requestedForceRenegotiateLastTime && a.ingestUrl === b.ingestUrl && a.enabled === b.enabled
});

@@ -756,0 +758,0 @@ // Subscribe to request user media

@@ -1,1 +0,1 @@

export { Attestation, AttestationIpfs, AttestationStorage, Attestations, Domain, Message, Meta, Name, Phase, PlaybackInfo, PlaybackInfoType, PlaybackPolicy, PrimaryType, SignatureType, Source, StorageStatus, Tasks, TypeT, Version, getSrc } from '@livepeer/core/external';
export { CloudflareStreamData, CloudflareUrlData, LivepeerAttestation, LivepeerAttestationIpfs, LivepeerAttestationStorage, LivepeerAttestations, LivepeerDomain, LivepeerMessage, LivepeerMeta, LivepeerName, LivepeerPhase, LivepeerPlaybackInfo, LivepeerPlaybackInfoType, LivepeerPlaybackPolicy, LivepeerPrimaryType, LivepeerSignatureType, LivepeerSource, LivepeerStorageStatus, LivepeerStream, LivepeerTasks, LivepeerTypeT, LivepeerVersion, getIngest, getSrc } from '@livepeer/core/external';

@@ -7,2 +7,6 @@ Object.defineProperty(exports, '__esModule', { value: true });

Object.defineProperty(exports, "getIngest", {
enumerable: true,
get: function () { return external.getIngest; }
});
Object.defineProperty(exports, "getSrc", {

@@ -9,0 +13,0 @@ enumerable: true,

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

"license": "MIT",
"version": "4.0.0",
"version": "4.0.1",
"repository": {

@@ -113,3 +113,3 @@ "type": "git",

"zustand": "^4.5.0",
"@livepeer/core": "3.0.0"
"@livepeer/core": "3.0.1"
},

@@ -116,0 +116,0 @@ "keywords": [

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