player

package
v0.0.0-...-aec44c9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FBSPlayListener

type FBSPlayListener struct {
	Conn *server.ServerConn
	Fbs  VncStreamFileReader
	// contains filtered or unexported fields
}

func NewFBSPlayListener

func NewFBSPlayListener(conn *server.ServerConn, r *FbsReader) *FBSPlayListener

func (*FBSPlayListener) Consume

func (handler *FBSPlayListener) Consume(seg *common.RfbSegment) error

type FbsReader

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

func ConnectFbsFile

func ConnectFbsFile(filename string, conn *server.ServerConn) (*FbsReader, error)

func NewFbsReader

func NewFbsReader(fbsFile string) (*FbsReader, error)

func (*FbsReader) CurrentPixelFormat

func (fbs *FbsReader) CurrentPixelFormat() *common.PixelFormat

func (*FbsReader) CurrentTimestamp

func (fbs *FbsReader) CurrentTimestamp() int

func (*FbsReader) Encodings

func (fbs *FbsReader) Encodings() []common.IEncoding

func (fbs *FbsReader) CurrentColorMap() *common.ColorMap { return &common.ColorMap{} }

func (*FbsReader) Read

func (fbs *FbsReader) Read(p []byte) (n int, err error)

func (*FbsReader) ReadSegment

func (fbs *FbsReader) ReadSegment() (*FbsSegment, error)

func (*FbsReader) ReadStartSession

func (fbs *FbsReader) ReadStartSession() (*common.ServerInit, error)

type FbsSegment

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

type VncStreamFileReader

type VncStreamFileReader interface {
	io.Reader
	CurrentTimestamp() int
	ReadStartSession() (*common.ServerInit, error)
	CurrentPixelFormat() *common.PixelFormat
	Encodings() []common.IEncoding
}

Jump to

Keyboard shortcuts

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