mediaplayer2

package
v0.0.0-...-454a0ba Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Overview

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

SPDX-FileCopyrightText: 2018 - 2023 UnionTech Software Technology Co., Ltd.

SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaPlayer

type MediaPlayer interface {
	MediaPlayer2() mediaPlayer // interface org.mpris.MediaPlayer2
	Player() player            // interface org.mpris.MediaPlayer2.Player
	proxy.Object
}

func NewMediaPlayer

func NewMediaPlayer(conn *dbus.Conn, serviceName string) MediaPlayer

type MockInterfaceMediaPlayer

type MockInterfaceMediaPlayer struct {
	mock.Mock
}

func (*MockInterfaceMediaPlayer) CanQuit

func (*MockInterfaceMediaPlayer) CanRaise

func (v *MockInterfaceMediaPlayer) CanRaise() proxy.PropBool

func (*MockInterfaceMediaPlayer) DesktopEntry

func (v *MockInterfaceMediaPlayer) DesktopEntry() proxy.PropString

func (*MockInterfaceMediaPlayer) GoQuit

func (v *MockInterfaceMediaPlayer) GoQuit(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceMediaPlayer) GoRaise

func (v *MockInterfaceMediaPlayer) GoRaise(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfaceMediaPlayer) Identity

func (*MockInterfaceMediaPlayer) Quit

func (v *MockInterfaceMediaPlayer) Quit(flags dbus.Flags) error

func (*MockInterfaceMediaPlayer) Raise

func (v *MockInterfaceMediaPlayer) Raise(flags dbus.Flags) error

type MockInterfacePlayer

type MockInterfacePlayer struct {
	mock.Mock
}

func (*MockInterfacePlayer) CanControl

func (v *MockInterfacePlayer) CanControl() proxy.PropBool

func (*MockInterfacePlayer) CanGoNext

func (v *MockInterfacePlayer) CanGoNext() proxy.PropBool

func (*MockInterfacePlayer) CanGoPrevious

func (v *MockInterfacePlayer) CanGoPrevious() proxy.PropBool

func (*MockInterfacePlayer) CanPause

func (v *MockInterfacePlayer) CanPause() proxy.PropBool

func (*MockInterfacePlayer) CanPlay

func (v *MockInterfacePlayer) CanPlay() proxy.PropBool

func (*MockInterfacePlayer) CanSeek

func (v *MockInterfacePlayer) CanSeek() proxy.PropBool

func (*MockInterfacePlayer) ConnectSeeked

func (v *MockInterfacePlayer) ConnectSeeked(cb func(Position int64)) (dbusutil.SignalHandlerId, error)

func (*MockInterfacePlayer) GoNext

func (v *MockInterfacePlayer) GoNext(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) GoPause

func (v *MockInterfacePlayer) GoPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) GoPlay

func (v *MockInterfacePlayer) GoPlay(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) GoPlayPause

func (v *MockInterfacePlayer) GoPlayPause(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) GoPrevious

func (v *MockInterfacePlayer) GoPrevious(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) GoSeek

func (v *MockInterfacePlayer) GoSeek(flags dbus.Flags, ch chan *dbus.Call, Offset int64) *dbus.Call

func (*MockInterfacePlayer) GoSetPosition

func (v *MockInterfacePlayer) GoSetPosition(flags dbus.Flags, ch chan *dbus.Call, TrackId dbus.ObjectPath, Position int64) *dbus.Call

func (*MockInterfacePlayer) GoStop

func (v *MockInterfacePlayer) GoStop(flags dbus.Flags, ch chan *dbus.Call) *dbus.Call

func (*MockInterfacePlayer) Metadata

func (*MockInterfacePlayer) Next

func (v *MockInterfacePlayer) Next(flags dbus.Flags) error

func (*MockInterfacePlayer) Pause

func (v *MockInterfacePlayer) Pause(flags dbus.Flags) error

func (*MockInterfacePlayer) Play

func (v *MockInterfacePlayer) Play(flags dbus.Flags) error

func (*MockInterfacePlayer) PlayPause

func (v *MockInterfacePlayer) PlayPause(flags dbus.Flags) error

func (*MockInterfacePlayer) PlaybackStatus

func (v *MockInterfacePlayer) PlaybackStatus() proxy.PropString

func (*MockInterfacePlayer) Position

func (v *MockInterfacePlayer) Position() proxy.PropInt64

func (*MockInterfacePlayer) Previous

func (v *MockInterfacePlayer) Previous(flags dbus.Flags) error

func (*MockInterfacePlayer) Seek

func (v *MockInterfacePlayer) Seek(flags dbus.Flags, Offset int64) error

func (*MockInterfacePlayer) SetPosition

func (v *MockInterfacePlayer) SetPosition(flags dbus.Flags, TrackId dbus.ObjectPath, Position int64) error

func (*MockInterfacePlayer) Stop

func (v *MockInterfacePlayer) Stop(flags dbus.Flags) error

func (*MockInterfacePlayer) Volume

func (v *MockInterfacePlayer) Volume() proxy.PropDouble

type MockMediaPlayer

type MockMediaPlayer struct {
	MockInterfaceMediaPlayer // interface org.mpris.MediaPlayer2
	MockInterfacePlayer      // interface org.mpris.MediaPlayer2.Player
	proxy.MockObject
}

type MockPropPlayerMetadata

type MockPropPlayerMetadata struct {
	mock.Mock
}

func (MockPropPlayerMetadata) ConnectChanged

func (p MockPropPlayerMetadata) ConnectChanged(cb func(hasValue bool, value map[string]dbus.Variant)) error

func (MockPropPlayerMetadata) Get

func (p MockPropPlayerMetadata) Get(flags dbus.Flags) (value map[string]dbus.Variant, err error)

func (MockPropPlayerMetadata) Set

func (p MockPropPlayerMetadata) Set(flags dbus.Flags, value map[string]dbus.Variant) error

type PropPlayerMetadata

type PropPlayerMetadata interface {
	Get(flags dbus.Flags) (value map[string]dbus.Variant, err error)
	Set(flags dbus.Flags, value map[string]dbus.Variant) error
	ConnectChanged(cb func(hasValue bool, value map[string]dbus.Variant)) error
}

Jump to

Keyboard shortcuts

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