vlc

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Overview

Package vlc contains local Tast tests that exercise vlc.

Index

Constants

View Source
const (
	// AppName is the name of ARC app.
	AppName = "VLC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Vlc

type Vlc struct {
	// contains filtered or unexported fields
}

Vlc holds resources of ARC app VLC player.

func NewVLCPlayer

func NewVLCPlayer(ctx context.Context, cr *chrome.Chrome, kb *input.KeyboardEventWriter, tconn *chrome.TestConn, a *arc.ARC) (*Vlc, error)

NewVLCPlayer returns VLC instance.

func (*Vlc) Close

func (vlc *Vlc) Close(ctx context.Context, cr *chrome.Chrome, hasError func() bool, outDir string) error

Close closes ARC app VLC player and cleanup resources.

func (*Vlc) EnterAudioFolder

func (vlc *Vlc) EnterAudioFolder(ctx context.Context) error

EnterAudioFolder enters into audio folder.

func (*Vlc) Install

func (vlc *Vlc) Install(ctx context.Context, cr *chrome.Chrome) error

Install installs Vlc app through Apk downloaded from "https://get.videolan.org/vlc-android", because the version installed from the play store will be inconsistent under different accounts. If the wrong version is installed, it will reinstall.

func (*Vlc) IsPaused

func (vlc *Vlc) IsPaused(ctx context.Context) error

IsPaused check if the player paused.

func (*Vlc) IsPlaying

func (vlc *Vlc) IsPlaying(ctx context.Context) error

IsPlaying check if the player is playing.

func (*Vlc) Launch

func (vlc *Vlc) Launch(ctx context.Context) error

Launch launches ARC app VLC.

func (*Vlc) Play

func (vlc *Vlc) Play(ctx context.Context) error

Play plays audio.

func (*Vlc) PlayAudio

func (vlc *Vlc) PlayAudio(ctx context.Context, filetype string) error

PlayAudio plays audio.

Jump to

Keyboard shortcuts

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