remoteplayback

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: 4 Imported by: 1

Documentation

Overview

Package remoteplayback is controlling playback devices such as connected TVs, projectors or audio-only speakers, wired (HDMI, DVI, or similar) or wireless technologies (Miracast, Chromecast, DLNA, AirPlay, or similar).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemotePlayback

type RemotePlayback struct {
	domcore.EventTarget
}

class: RemotePlayback

func RemotePlaybackFromJS

func RemotePlaybackFromJS(value js.Value) *RemotePlayback

RemotePlaybackFromJS is casting a js.Value into RemotePlayback.

func RemotePlaybackFromWrapper

func RemotePlaybackFromWrapper(input core.Wrapper) *RemotePlayback

RemotePlaybackFromJS is casting from something that holds a js.Value into RemotePlayback.

func (*RemotePlayback) AddEventConnect

func (_this *RemotePlayback) AddEventConnect(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) AddEventConnecting

func (_this *RemotePlayback) AddEventConnecting(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) AddEventDisconnect

func (_this *RemotePlayback) AddEventDisconnect(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) CancelWatchAvailability

func (_this *RemotePlayback) CancelWatchAvailability(id *int) (_result *javascript.PromiseVoid)

func (*RemotePlayback) OnConnect

func (_this *RemotePlayback) OnConnect() domcore.EventHandlerFunc

OnConnect returning attribute 'onconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*RemotePlayback) OnConnecting

func (_this *RemotePlayback) OnConnecting() domcore.EventHandlerFunc

OnConnecting returning attribute 'onconnecting' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*RemotePlayback) OnDisconnect

func (_this *RemotePlayback) OnDisconnect() domcore.EventHandlerFunc

OnDisconnect returning attribute 'ondisconnect' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*RemotePlayback) Prompt

func (_this *RemotePlayback) Prompt() (_result *javascript.PromiseVoid)

func (*RemotePlayback) SetOnConnect

func (_this *RemotePlayback) SetOnConnect(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) SetOnConnecting

func (_this *RemotePlayback) SetOnConnecting(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) SetOnDisconnect

func (_this *RemotePlayback) SetOnDisconnect(listener func(event *domcore.Event, currentTarget *RemotePlayback)) js.Func

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

func (*RemotePlayback) State

func (_this *RemotePlayback) State() RemotePlaybackState

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

func (*RemotePlayback) WatchAvailability

func (_this *RemotePlayback) WatchAvailability(callback *RemotePlaybackAvailabilityCallback) (_result *javascript.PromiseInt)

type RemotePlaybackAvailabilityCallback

type RemotePlaybackAvailabilityCallback js.Func

RemotePlaybackAvailabilityCallback is a javascript function type.

Call Release() when done to release resouces allocated to this type.

type RemotePlaybackAvailabilityCallbackFunc

type RemotePlaybackAvailabilityCallbackFunc func(available bool)

callback: RemotePlaybackAvailabilityCallback

func RemotePlaybackAvailabilityCallbackFromJS

func RemotePlaybackAvailabilityCallbackFromJS(_value js.Value) RemotePlaybackAvailabilityCallbackFunc

type RemotePlaybackState

type RemotePlaybackState int

enum: RemotePlaybackState

const (
	ConnectingRemotePlaybackState RemotePlaybackState = iota
	ConnectedRemotePlaybackState
	DisconnectedRemotePlaybackState
)

func RemotePlaybackStateFromJS

func RemotePlaybackStateFromJS(value js.Value) RemotePlaybackState

RemotePlaybackStateFromJS is converting a javascript value into a RemotePlaybackState enum value.

func (*RemotePlaybackState) JSValue

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

JSValue is converting this enum into a javascript object

func (RemotePlaybackState) Value

func (this RemotePlaybackState) 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