utils

package
v0.0.0-...-8800be3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToPipeline

func AddToPipeline(pipeline *gst.Pipeline, elements map[string]*gst.Element) error

AddToPipeline is a convenience function to add all elements to the pipeline from a map built with the mustCreateElement function.

func GetWindowForElement

func GetWindowForElement(o fyne.CanvasObject) fyne.Window

GetWindowForElement returns the window that contains the given element.

func GstreamerInit

func GstreamerInit()

GstreamerInit initializes gstreamer if it is not already initialized.

func MustCreateElement

func MustCreateElement(elementname string, properties map[string]interface{}) *gst.Element

MustCreateElement creates a new element with the given name and properties. The properties can be nil.

func NewPipelineFromString

func NewPipelineFromString(pipeline string) (*gst.Pipeline, error)

NewPipelineFromString creates a new pipeline from the given string.

func RemoveComments

func RemoveComments(s string) string

RemoveComments removes all comments from the given string.

Types

type MediaControl

type MediaControl interface {
	Play() error
	Pause() error
}

type MediaDuration

type MediaDuration interface {
	Duration() (time.Duration, error)
}

type MediaOpener

type MediaOpener interface {
	Open(uri fyne.URI) error
}

type MediaSeeker

type MediaSeeker interface {
	Seek(time.Duration) error
}

Jump to

Keyboard shortcuts

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