http

package
v0.0.0-...-fdde478 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(parsedUrl *url.URL, getDemuxer stream.GetNetworkDemuxerFunc) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) CloseCh

func (c *Client) CloseCh() <-chan any

func (*Client) CodecData

func (c *Client) CodecData() ([]stream.Codec, error)

func (*Client) Dial

func (c *Client) Dial() error

func (*Client) PacketQueue

func (c *Client) PacketQueue() <-chan *stream.Packet

func (*Client) Secure

func (c *Client) Secure() (bool, bool, map[string]string)

type MP4Client

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

func NewMP4Client

func NewMP4Client(parsedUrl *url.URL) *MP4Client

func (*MP4Client) Close

func (c *MP4Client) Close()

func (*MP4Client) CloseCh

func (c *MP4Client) CloseCh() <-chan any

func (*MP4Client) CodecData

func (c *MP4Client) CodecData() ([]stream.Codec, error)

func (*MP4Client) Dial

func (c *MP4Client) Dial() error

func (*MP4Client) DialWithHTTPClient

func (c *MP4Client) DialWithHTTPClient(client *http.Client) error

func (*MP4Client) PacketQueue

func (c *MP4Client) PacketQueue() <-chan *stream.Packet

func (*MP4Client) Secure

func (c *MP4Client) Secure() (bool, bool, map[string]string)

type StreamingReadSeeker

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

func NewStreamingReadSeeker

func NewStreamingReadSeeker(url string, client *http.Client) (*StreamingReadSeeker, error)

func (*StreamingReadSeeker) Close

func (s *StreamingReadSeeker) Close() error

func (*StreamingReadSeeker) DownloadRange

func (s *StreamingReadSeeker) DownloadRange(start, end int64) error

func (*StreamingReadSeeker) Read

func (s *StreamingReadSeeker) Read(p []byte) (int, error)

func (*StreamingReadSeeker) Seek

func (s *StreamingReadSeeker) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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