Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.61 KB

File metadata and controls

31 lines (22 loc) · 1.61 KB

MediaStreamTrackProcessorOptions

Namespace: SpawnDev.SpawnJS.JSObjects
Source: JSObjects/MediaStreamTrackProcessorOptions.cs
MDN Reference: MediaStreamTrackProcessorOptions on MDN

MediaStreamTrackProcessor constructor options. https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/MediaStreamTrackProcessor#options

Properties

Property Type Access Description
MediaStreamTrackProcessorOptions class get MediaStreamTrackProcessor constructor options. https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackProcessor/MediaStreamTrackProcessor#options
MaxBufferSize int? get

Examples

SpawnDev.SpawnJS Mapping Note: The JavaScript examples below show the standard Web API usage. In SpawnDev.SpawnJS, the same API is available with C# conventions:

  • Properties and methods use PascalCase (e.g., readyState becomes ReadyState)
  • Events use ActionEvent with +=/-= (e.g., addEventListener("click", fn) becomes OnClick += handler)
  • Async methods return Task<T> instead of Promise<T>
  • Objects should be disposed with using statements
  • Access via JS.Get<MediaStreamTrackProcessorOptions>(...) or constructor new MediaStreamTrackProcessorOptions(...)
const trackProcessor = new MediaStreamTrackProcessor({ track: videoTrack });

See full example on MDN