media

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Media

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

func NewMedia

func NewMedia() *Media

func (*Media) AddAsset

func (m *Media) AddAsset(file multipart.File) (string, error)

func (*Media) AddAudio

func (m *Media) AddAudio(file multipart.File) (string, error)

func (*Media) AddFrame

func (m *Media) AddFrame(file []byte) (string, error)

func (*Media) AddImage

func (m *Media) AddImage(file multipart.File) (string, error)

func (*Media) AddPlugin

func (m *Media) AddPlugin(file multipart.File) (string, error)

func (*Media) AddTube

func (m *Media) AddTube(file []byte) (string, error)

func (*Media) AddVideo

func (m *Media) AddVideo(file multipart.File) (string, error)

func (*Media) DeleteAudio

func (m *Media) DeleteAudio(filename string) error

func (*Media) GetAsset

func (m *Media) GetAsset(filename string) (*fileTypes.Type, string, error)

func (*Media) GetAudio

func (m *Media) GetAudio(filename string) (*fileTypes.Type, string, error)

func (*Media) GetImage

func (m *Media) GetImage(filename string) (*types.MetaDef, *string, error)

func (*Media) GetPluginManifest

func (m *Media) GetPluginManifest(pluginHash string) (*processor.Manifest, error)

func (*Media) GetTexture

func (m *Media) GetTexture(rsize string, filename string) (*types.MetaDef, *string, error)

func (*Media) GetVideo

func (m *Media) GetVideo(filename string) (*os.File, os.FileInfo, string, error)

func (*Media) Initialize

func (m *Media) Initialize(ctx types.NodeContext) error

Directories

Path Synopsis
Part of this code is borrowed from/inspired by https://github.com/iqhater/get-youtube-thumbnail, which is licensed by MIT license
Part of this code is borrowed from/inspired by https://github.com/iqhater/get-youtube-thumbnail, which is licensed by MIT license

Jump to

Keyboard shortcuts

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