webapi: github.com/gowebapi/webapi/media/stream/recording Index | Files

package recording

import "github.com/gowebapi/webapi/media/stream/recording"

Package recording is recording for use with MediaStreams.

Index

Package Files

doc.go recording.go

func IsTypeSupported Uses

func IsTypeSupported(_type string) (_result bool)

type BlobEvent Uses

type BlobEvent struct {
    domcore.Event
}

class: BlobEvent

func BlobEventFromJS Uses

func BlobEventFromJS(value js.Wrapper) *BlobEvent

BlobEventFromJS is casting a js.Wrapper into BlobEvent.

func NewBlobEvent Uses

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

func (*BlobEvent) Data Uses

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

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

func (*BlobEvent) Timecode Uses

func (_this *BlobEvent) Timecode() float64

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

type BlobEventInit Uses

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

dictionary: BlobEventInit

func BlobEventInitFromJS Uses

func BlobEventInitFromJS(value js.Wrapper) *BlobEventInit

BlobEventInitFromJS is allocating a new BlobEventInit object and copy all values from input javascript object

func (*BlobEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaRecorder Uses

type MediaRecorder struct {
    domcore.EventTarget
}

class: MediaRecorder

func MediaRecorderFromJS Uses

func MediaRecorderFromJS(value js.Wrapper) *MediaRecorder

MediaRecorderFromJS is casting a js.Wrapper into MediaRecorder.

func NewMediaRecorder Uses

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

func (*MediaRecorder) AddEventDataAvailable Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (_this *MediaRecorder) AudioBitsPerSecond() uint

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

func (*MediaRecorder) MimeType Uses

func (_this *MediaRecorder) MimeType() string

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

func (*MediaRecorder) OnDataAvailable Uses

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

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

func (*MediaRecorder) OnError Uses

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

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

func (*MediaRecorder) OnPause Uses

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

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

func (*MediaRecorder) OnResume Uses

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

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

func (*MediaRecorder) OnStart Uses

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

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

func (*MediaRecorder) OnStop Uses

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

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

func (*MediaRecorder) Pause Uses

func (_this *MediaRecorder) Pause()

func (*MediaRecorder) RequestData Uses

func (_this *MediaRecorder) RequestData()

func (*MediaRecorder) Resume Uses

func (_this *MediaRecorder) Resume()

func (*MediaRecorder) SetOnDataAvailable Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

func (*MediaRecorder) State Uses

func (_this *MediaRecorder) State() RecordingState

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

func (*MediaRecorder) Stop Uses

func (_this *MediaRecorder) Stop()

func (*MediaRecorder) Stream Uses

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

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

func (*MediaRecorder) VideoBitsPerSecond Uses

func (_this *MediaRecorder) VideoBitsPerSecond() uint

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

type MediaRecorderErrorEvent Uses

type MediaRecorderErrorEvent struct {
    domcore.Event
}

class: MediaRecorderErrorEvent

func MediaRecorderErrorEventFromJS Uses

func MediaRecorderErrorEventFromJS(value js.Wrapper) *MediaRecorderErrorEvent

MediaRecorderErrorEventFromJS is casting a js.Wrapper into MediaRecorderErrorEvent.

func NewMediaRecorderErrorEvent Uses

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

func (*MediaRecorderErrorEvent) Error Uses

func (_this *MediaRecorderErrorEvent) Error() *domcore.DOMException

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

type MediaRecorderErrorEventInit Uses

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

dictionary: MediaRecorderErrorEventInit

func MediaRecorderErrorEventInitFromJS Uses

func MediaRecorderErrorEventInitFromJS(value js.Wrapper) *MediaRecorderErrorEventInit

MediaRecorderErrorEventInitFromJS is allocating a new MediaRecorderErrorEventInit object and copy all values from input javascript object

func (*MediaRecorderErrorEventInit) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type MediaRecorderOptions Uses

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

dictionary: MediaRecorderOptions

func MediaRecorderOptionsFromJS Uses

func MediaRecorderOptionsFromJS(value js.Wrapper) *MediaRecorderOptions

MediaRecorderOptionsFromJS is allocating a new MediaRecorderOptions object and copy all values from input javascript object

func (*MediaRecorderOptions) JSValue Uses

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

JSValue is allocating a new javasript object and copy all values

type RecordingState Uses

type RecordingState int

enum: RecordingState

const (
    InactiveRecordingState RecordingState = iota
    RecordingRecordingState
    PausedRecordingState
)

func RecordingStateFromJS Uses

func RecordingStateFromJS(value js.Value) RecordingState

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

func (*RecordingState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (RecordingState) Value Uses

func (this RecordingState) Value() string

Value is converting this into javascript defined string value

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

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

Package recording imports 4 packages (graph). Updated 2019-09-16. Refresh now. Tools for package owners.