Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type GetInFo
- type PackWriterCloser
- type RtmpStream
- type Server
- type StaticsBW
- type Stream
- func (s *Stream) AddReader(r av.ReadCloser)
- func (s *Stream) AddWriter(w av.WriteCloser)
- func (s *Stream) CheckAlive() (n int)
- func (s *Stream) Copy(dst *Stream)
- func (s *Stream) GetReader() av.ReadCloser
- func (s *Stream) GetWs() cmap.ConcurrentMap
- func (s *Stream) ID() string
- func (s *Stream) IsSendStaticPush() bool
- func (s *Stream) SendStaticPush(packet av.Packet)
- func (s *Stream) StartStaticPush()
- func (s *Stream) StopStaticPush()
- func (s *Stream) TransStart()
- func (s *Stream) TransStop()
- type StreamReadWriteCloser
- type VirReader
- type VirWriter
- func (v *VirWriter) Check()
- func (v *VirWriter) Close(err error)
- func (v *VirWriter) DropPacket(pktQue chan *av.Packet, info av.Info)
- func (v *VirWriter) Info() (ret av.Info)
- func (v *VirWriter) SaveStatics(streamid uint32, length uint64, isVideoFlag bool)
- func (v *VirWriter) SendPacket() error
- func (v *VirWriter) Write(p *av.Packet) (err error)
Constants ¶
View Source
const (
SAVE_STATICS_INTERVAL = 5000
)
Variables ¶
View Source
var (
EmptyID = ""
)
Functions ¶
This section is empty.
Types ¶
type PackWriterCloser ¶
type PackWriterCloser struct {
// contains filtered or unexported fields
}
func (*PackWriterCloser) GetWriter ¶
func (p *PackWriterCloser) GetWriter() av.WriteCloser
type RtmpStream ¶
type RtmpStream struct {
// contains filtered or unexported fields
}
func NewRtmpStream ¶
func NewRtmpStream() *RtmpStream
func (*RtmpStream) CheckAlive ¶
func (rs *RtmpStream) CheckAlive()
func (*RtmpStream) GetStreams ¶
func (rs *RtmpStream) GetStreams() cmap.ConcurrentMap
func (*RtmpStream) HandleReader ¶
func (rs *RtmpStream) HandleReader(r av.ReadCloser)
func (*RtmpStream) HandleWriter ¶
func (rs *RtmpStream) HandleWriter(w av.WriteCloser)
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) AddReader ¶
func (s *Stream) AddReader(r av.ReadCloser)
func (*Stream) AddWriter ¶
func (s *Stream) AddWriter(w av.WriteCloser)
func (*Stream) CheckAlive ¶
func (*Stream) GetReader ¶
func (s *Stream) GetReader() av.ReadCloser
func (*Stream) IsSendStaticPush ¶
func (*Stream) SendStaticPush ¶
func (*Stream) StartStaticPush ¶
func (s *Stream) StartStaticPush()
检测本application下是否配置static_push, 如果配置, 启动push远端的连接
func (*Stream) StopStaticPush ¶
func (s *Stream) StopStaticPush()
func (*Stream) TransStart ¶
func (s *Stream) TransStart()
type StreamReadWriteCloser ¶
type StreamReadWriteCloser interface { GetInFo Close(error) Write(core.ChunkStream) error Read(c *core.ChunkStream) error }
type VirReader ¶
type VirReader struct { Uid string av.RWBaser ReadBWInfo StaticsBW // contains filtered or unexported fields }
func NewVirReader ¶
func NewVirReader(conn StreamReadWriteCloser) *VirReader
type VirWriter ¶
type VirWriter struct { Uid string av.RWBaser WriteBWInfo StaticsBW // contains filtered or unexported fields }
func NewVirWriter ¶
func NewVirWriter(conn StreamReadWriteCloser) *VirWriter
func (*VirWriter) SaveStatics ¶
func (*VirWriter) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.