Documentation ¶
Overview ¶
Package media allows access to Woven media files (vjpeg-15,rawpcm8u8khz)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioStream ¶
func NewAudioStream ¶
func NewAudioStream(r io.Reader) (*AudioStream, error)
NewAudioStream returns a new audio stream
func (*AudioStream) GetFrame ¶
func (a *AudioStream) GetFrame() ([]byte, error)
GetFrame returns a frame of audio (default 522 bytes for 15 fps video)
type Stream ¶
type Stream struct { Video *VideoStream Audio *AudioStream }
type VideoStream ¶
func NewVideoStream ¶
func NewVideoStream(r io.Reader) (*VideoStream, error)
NewVideoStream returns a video stream
func (*VideoStream) GetFrame ¶
func (v *VideoStream) GetFrame() (image.Image, error)
GetFrame returns a frame of video as an image
func (*VideoStream) GetRawFrame ¶
func (v *VideoStream) GetRawFrame() ([]byte, error)
GetRawFrame returns one raw jpeg frame
Click to show internal directories.
Click to hide internal directories.