recording

package
v0.0.0-...-41cedfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package recording is recording for use with MediaStreams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTypeSupported

func IsTypeSupported(_type string) (_result bool)

Types

type BlobEvent

type BlobEvent struct {
	domcore.Event
}

class: BlobEvent

func BlobEventFromJS

func BlobEventFromJS(value js.Value) *BlobEvent

BlobEventFromJS is casting a js.Value into BlobEvent.

func BlobEventFromWrapper

func BlobEventFromWrapper(input core.Wrapper) *BlobEvent

BlobEventFromJS is casting from something that holds a js.Value into BlobEvent.

func NewBlobEvent

func NewBlobEvent(_type string, eventInitDict *BlobEventInit) (_result *BlobEvent)

func (*BlobEvent) Data

func (_this *BlobEvent) Data() *file.Blob

Data returning attribute 'data' with type file.Blob (idl: Blob).

func (*BlobEvent) Timecode

func (_this *BlobEvent) Timecode() float64

Timecode returning attribute 'timecode' with type float64 (idl: double).

type BlobEventInit

type BlobEventInit struct {
	Data     *file.Blob
	Timecode float64
}

dictionary: BlobEventInit

func BlobEventInitFromJS

func BlobEventInitFromJS(value js.Value) *BlobEventInit

BlobEventInitFromJS is allocating a new BlobEventInit object and copy all values in the value javascript object.

func (*BlobEventInit) JSValue

func (_this *BlobEventInit) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type MediaRecorder

type MediaRecorder struct {
	domcore.EventTarget
}

class: MediaRecorder

func MediaRecorderFromJS

func MediaRecorderFromJS(value js.Value) *MediaRecorder

MediaRecorderFromJS is casting a js.Value into MediaRecorder.

func MediaRecorderFromWrapper

func MediaRecorderFromWrapper(input core.Wrapper) *MediaRecorder

MediaRecorderFromJS is casting from something that holds a js.Value into MediaRecorder.

func NewMediaRecorder

func NewMediaRecorder(stream *local.MediaStream, options *MediaRecorderOptions) (_result *MediaRecorder)

func (*MediaRecorder) AddEventDataAvailable

func (_this *MediaRecorder) AddEventDataAvailable(listener func(event *BlobEvent, currentTarget *MediaRecorder)) js.Func

AddDataAvailable is adding doing AddEventListener for 'DataAvailable' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AddEventError

func (_this *MediaRecorder) AddEventError(listener func(event *MediaRecorderErrorEvent, currentTarget *MediaRecorder)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AddEventPause

func (_this *MediaRecorder) AddEventPause(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

AddPause is adding doing AddEventListener for 'Pause' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AddEventResume

func (_this *MediaRecorder) AddEventResume(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

AddResume is adding doing AddEventListener for 'Resume' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AddEventStart

func (_this *MediaRecorder) AddEventStart(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

AddStart is adding doing AddEventListener for 'Start' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AddEventStop

func (_this *MediaRecorder) AddEventStop(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

AddStop is adding doing AddEventListener for 'Stop' on target. This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) AudioBitsPerSecond

func (_this *MediaRecorder) AudioBitsPerSecond() uint

AudioBitsPerSecond returning attribute 'audioBitsPerSecond' with type uint (idl: unsigned long).

func (*MediaRecorder) MimeType

func (_this *MediaRecorder) MimeType() string

MimeType returning attribute 'mimeType' with type string (idl: DOMString).

func (*MediaRecorder) OnDataAvailable

func (_this *MediaRecorder) OnDataAvailable() domcore.EventHandlerFunc

OnDataAvailable returning attribute 'ondataavailable' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) OnError

func (_this *MediaRecorder) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) OnPause

func (_this *MediaRecorder) OnPause() domcore.EventHandlerFunc

OnPause returning attribute 'onpause' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) OnResume

func (_this *MediaRecorder) OnResume() domcore.EventHandlerFunc

OnResume returning attribute 'onresume' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) OnStart

func (_this *MediaRecorder) OnStart() domcore.EventHandlerFunc

OnStart returning attribute 'onstart' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) OnStop

func (_this *MediaRecorder) OnStop() domcore.EventHandlerFunc

OnStop returning attribute 'onstop' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*MediaRecorder) Pause

func (_this *MediaRecorder) Pause()

func (*MediaRecorder) RequestData

func (_this *MediaRecorder) RequestData()

func (*MediaRecorder) Resume

func (_this *MediaRecorder) Resume()

func (*MediaRecorder) SetOnDataAvailable

func (_this *MediaRecorder) SetOnDataAvailable(listener func(event *BlobEvent, currentTarget *MediaRecorder)) js.Func

SetOnDataAvailable is assigning a function to 'ondataavailable'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) SetOnError

func (_this *MediaRecorder) SetOnError(listener func(event *MediaRecorderErrorEvent, currentTarget *MediaRecorder)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) SetOnPause

func (_this *MediaRecorder) SetOnPause(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

SetOnPause is assigning a function to 'onpause'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) SetOnResume

func (_this *MediaRecorder) SetOnResume(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

SetOnResume is assigning a function to 'onresume'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) SetOnStart

func (_this *MediaRecorder) SetOnStart(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

SetOnStart is assigning a function to 'onstart'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) SetOnStop

func (_this *MediaRecorder) SetOnStop(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func

SetOnStop is assigning a function to 'onstop'. This This method is returning allocated javascript function that need to be released.

func (*MediaRecorder) Start

func (_this *MediaRecorder) Start(timeslice *uint)

func (*MediaRecorder) State

func (_this *MediaRecorder) State() RecordingState

State returning attribute 'state' with type RecordingState (idl: RecordingState).

func (*MediaRecorder) Stop

func (_this *MediaRecorder) Stop()

func (*MediaRecorder) Stream

func (_this *MediaRecorder) Stream() *local.MediaStream

Stream returning attribute 'stream' with type local.MediaStream (idl: MediaStream).

func (*MediaRecorder) VideoBitsPerSecond

func (_this *MediaRecorder) VideoBitsPerSecond() uint

VideoBitsPerSecond returning attribute 'videoBitsPerSecond' with type uint (idl: unsigned long).

type MediaRecorderErrorEvent

type MediaRecorderErrorEvent struct {
	domcore.Event
}

class: MediaRecorderErrorEvent

func MediaRecorderErrorEventFromJS

func MediaRecorderErrorEventFromJS(value js.Value) *MediaRecorderErrorEvent

MediaRecorderErrorEventFromJS is casting a js.Value into MediaRecorderErrorEvent.

func MediaRecorderErrorEventFromWrapper

func MediaRecorderErrorEventFromWrapper(input core.Wrapper) *MediaRecorderErrorEvent

MediaRecorderErrorEventFromJS is casting from something that holds a js.Value into MediaRecorderErrorEvent.

func NewMediaRecorderErrorEvent

func NewMediaRecorderErrorEvent(_type string, eventInitDict *MediaRecorderErrorEventInit) (_result *MediaRecorderErrorEvent)

func (*MediaRecorderErrorEvent) Error

Error returning attribute 'error' with type domcore.DOMException (idl: DOMException).

type MediaRecorderErrorEventInit

type MediaRecorderErrorEventInit struct {
	Bubbles    bool
	Cancelable bool
	Composed   bool
	Error      *domcore.DOMException
}

dictionary: MediaRecorderErrorEventInit

func MediaRecorderErrorEventInitFromJS

func MediaRecorderErrorEventInitFromJS(value js.Value) *MediaRecorderErrorEventInit

MediaRecorderErrorEventInitFromJS is allocating a new MediaRecorderErrorEventInit object and copy all values in the value javascript object.

func (*MediaRecorderErrorEventInit) JSValue

func (_this *MediaRecorderErrorEventInit) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type MediaRecorderOptions

type MediaRecorderOptions struct {
	MimeType           string
	AudioBitsPerSecond uint
	VideoBitsPerSecond uint
	BitsPerSecond      uint
}

dictionary: MediaRecorderOptions

func MediaRecorderOptionsFromJS

func MediaRecorderOptionsFromJS(value js.Value) *MediaRecorderOptions

MediaRecorderOptionsFromJS is allocating a new MediaRecorderOptions object and copy all values in the value javascript object.

func (*MediaRecorderOptions) JSValue

func (_this *MediaRecorderOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type RecordingState

type RecordingState int

enum: RecordingState

const (
	InactiveRecordingState RecordingState = iota
	RecordingRecordingState
	PausedRecordingState
)

func RecordingStateFromJS

func RecordingStateFromJS(value js.Value) RecordingState

RecordingStateFromJS is converting a javascript value into a RecordingState enum value.

func (*RecordingState) JSValue

func (this *RecordingState) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (RecordingState) Value

func (this RecordingState) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL