Documentation ¶
Overview ¶
Package recording is recording for use with MediaStreams.
Index ¶
- func IsTypeSupported(_type string) (_result bool)
- type BlobEvent
- type BlobEventInit
- type MediaRecorder
- func (_this *MediaRecorder) AddEventDataAvailable(listener func(event *BlobEvent, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AddEventError(listener func(event *MediaRecorderErrorEvent, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AddEventPause(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AddEventResume(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AddEventStart(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AddEventStop(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) AudioBitsPerSecond() uint
- func (_this *MediaRecorder) MimeType() string
- func (_this *MediaRecorder) OnDataAvailable() domcore.EventHandlerFunc
- func (_this *MediaRecorder) OnError() domcore.EventHandlerFunc
- func (_this *MediaRecorder) OnPause() domcore.EventHandlerFunc
- func (_this *MediaRecorder) OnResume() domcore.EventHandlerFunc
- func (_this *MediaRecorder) OnStart() domcore.EventHandlerFunc
- func (_this *MediaRecorder) OnStop() domcore.EventHandlerFunc
- func (_this *MediaRecorder) Pause()
- func (_this *MediaRecorder) RequestData()
- func (_this *MediaRecorder) Resume()
- func (_this *MediaRecorder) SetOnDataAvailable(listener func(event *BlobEvent, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) SetOnError(listener func(event *MediaRecorderErrorEvent, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) SetOnPause(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) SetOnResume(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) SetOnStart(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) SetOnStop(listener func(event *domcore.Event, currentTarget *MediaRecorder)) js.Func
- func (_this *MediaRecorder) Start(timeslice *uint)
- func (_this *MediaRecorder) State() RecordingState
- func (_this *MediaRecorder) Stop()
- func (_this *MediaRecorder) Stream() *local.MediaStream
- func (_this *MediaRecorder) VideoBitsPerSecond() uint
- type MediaRecorderErrorEvent
- type MediaRecorderErrorEventInit
- type MediaRecorderOptions
- type RecordingState
- type Union
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTypeSupported ¶
Types ¶
type BlobEvent ¶
class: BlobEvent
func BlobEventFromJS ¶
BlobEventFromJS is casting a js.Value into BlobEvent.
func BlobEventFromWrapper ¶
BlobEventFromJS is casting from something that holds a js.Value into BlobEvent.
func NewBlobEvent ¶
func NewBlobEvent(_type string, eventInitDict *BlobEventInit) (_result *BlobEvent)
type BlobEventInit ¶
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 ¶
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 ¶
func (_this *MediaRecorderErrorEvent) Error() *domcore.DOMException
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