golanggohlsrtmpwebrtcmedia-serverobs-studiortcprtmp-proxyrtmp-serverrtprtsprtsp-proxyrtsp-relayrtsp-serversrtstreamingwebrtc-proxy
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
415 B
24 lines
415 B
package rtmp |
|
|
|
import ( |
|
"time" |
|
|
|
"github.com/notedit/rtmp/av" |
|
) |
|
|
|
// WriteAACConfig writes an AAC config. |
|
func (c *Conn) WriteAACConfig(config []byte) error { |
|
return c.WritePacket(av.Packet{ |
|
Type: av.AACDecoderConfig, |
|
Data: config, |
|
}) |
|
} |
|
|
|
// WriteAAC writes an AAC AU. |
|
func (c *Conn) WriteAAC(au []byte, dts time.Duration) error { |
|
return c.WritePacket(av.Packet{ |
|
Type: av.AAC, |
|
Data: au, |
|
Time: dts, |
|
}) |
|
}
|
|
|