webapi: github.com/gowebapi/webapi/media/remoteplayback Index | Files

package remoteplayback

import "github.com/gowebapi/webapi/media/remoteplayback"

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

Package Files

doc.go remoteplayback.go

type RemotePlayback Uses

type RemotePlayback struct {
    domcore.EventTarget
}

class: RemotePlayback

func RemotePlaybackFromJS Uses

func RemotePlaybackFromJS(value js.Wrapper) *RemotePlayback

RemotePlaybackFromJS is casting a js.Wrapper into RemotePlayback.

func (*RemotePlayback) AddEventConnect Uses

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 Uses

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 Uses

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 Uses

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

func (*RemotePlayback) OnConnect Uses

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

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

func (*RemotePlayback) OnConnecting Uses

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

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

func (*RemotePlayback) OnDisconnect Uses

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

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

func (*RemotePlayback) Prompt Uses

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

func (*RemotePlayback) SetOnConnect Uses

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 Uses

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 Uses

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 Uses

func (_this *RemotePlayback) State() RemotePlaybackState

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

func (*RemotePlayback) WatchAvailability Uses

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

type RemotePlaybackAvailabilityCallback Uses

type RemotePlaybackAvailabilityCallback js.Func

RemotePlaybackAvailabilityCallback is a javascript function type.

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

func RemotePlaybackAvailabilityCallbackToJS Uses

func RemotePlaybackAvailabilityCallbackToJS(callback RemotePlaybackAvailabilityCallbackFunc) *RemotePlaybackAvailabilityCallback

type RemotePlaybackAvailabilityCallbackFunc Uses

type RemotePlaybackAvailabilityCallbackFunc func(available bool)

callback: RemotePlaybackAvailabilityCallback

func RemotePlaybackAvailabilityCallbackFromJS Uses

func RemotePlaybackAvailabilityCallbackFromJS(_value js.Value) RemotePlaybackAvailabilityCallbackFunc

type RemotePlaybackState Uses

type RemotePlaybackState int

enum: RemotePlaybackState

const (
    ConnectingRemotePlaybackState RemotePlaybackState = iota
    ConnectedRemotePlaybackState
    DisconnectedRemotePlaybackState
)

func RemotePlaybackStateFromJS Uses

func RemotePlaybackStateFromJS(value js.Value) RemotePlaybackState

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

func (*RemotePlaybackState) JSValue Uses

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

JSValue is converting this enum into a javascript object

func (RemotePlaybackState) Value Uses

func (this RemotePlaybackState) 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 remoteplayback imports 3 packages (graph) and is imported by 1 packages. Updated 2019-09-16. Refresh now. Tools for package owners.