Socket
Socket
Sign inDemoInstall

webm-muxer

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webm-muxer - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

package.json
{
"name": "webm-muxer",
"version": "1.1.3",
"version": "1.1.4",
"description": "WebM multiplexer in pure TypeScript for use with WebCodecs API, video & audio.",

@@ -5,0 +5,0 @@ "main": "./build/webm-muxer.js",

@@ -44,7 +44,7 @@ # webm-muxer - JavaScript WebM multiplexer

interface WebMMuxerOptions {
// When 'buffer' is used, the muxed file is written to a buffer in memory.
// When a FileSystemWritableFileStream acquired through the File System
// Access API (see example below) is used, the muxed file is written
// directly to disk, allowing for files way larger than what would fit
// in RAM.
// When 'buffer' is used, the muxed file is written to a buffer in
// memory. When a FileSystemWritableFileStream acquired through
// the File System Access API (see example below) is used, the
// muxed file is written directly to disk, allowing for files way
// larger than what would fit in RAM.
target: 'buffer' | FileSystemWritableFileStream,

@@ -69,4 +69,4 @@ video?: {

```js
// Create a muxer with a video track running the VP9 codec, and no audio track.
// The muxed file is written to a buffer in memory.
// Create a muxer with a video track running the VP9 codec, and no
// audio track. The muxed file is written to a buffer in memory.
let muxer1 = new WebMMuxer({

@@ -81,5 +81,5 @@ target: 'buffer',

// Create a muxer with a video track running the VP9 codec, and an audio track
// running the Opus codec. The muxed file is written directly to a file on disk,
// using the File System Access API.
// Create a muxer with a video track running the VP9 codec, and an
// audio track running the Opus codec. The muxed file is written
// directly to a file on disk, using the File System Access API.
let fileHandle = await window.showSaveFilePicker({

@@ -108,4 +108,4 @@ suggestedName: `video.webm`,

// Create a muxer running only an Opus-coded audio track, and no video. Writes
// to a buffer in memory.
// Create a muxer running only an Opus-coded audio track, and
// no video. Writes to a buffer in memory.
let muxer3 = new WebMMuxer({

@@ -140,4 +140,4 @@ target: 'buffer',

Should you have obtained your encoded media data from a source other than the WebCodecs API, you can use these following methods
to directly send your raw data to the muxer:
Should you have obtained your encoded media data from a source other than the WebCodecs API, you can use these following
methods to directly send your raw data to the muxer:
```ts

@@ -144,0 +144,0 @@ addVideoChunkRaw(

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