mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
fix: enhance judge has audio track or video track
This commit is contained in:
@@ -485,11 +485,11 @@ func (p *Publisher) GetVideoTrack(dataType reflect.Type) (t *AVTrack) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *Publisher) HasAudioTrack() bool {
|
func (p *Publisher) HasAudioTrack() bool {
|
||||||
return p.AudioTrack.Length > 0
|
return p.PubAudio && p.AudioTrack.Length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Publisher) HasVideoTrack() bool {
|
func (p *Publisher) HasVideoTrack() bool {
|
||||||
return p.VideoTrack.Length > 0
|
return p.PubVideo && p.VideoTrack.Length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *Publisher) Dispose() {
|
func (p *Publisher) Dispose() {
|
||||||
|
|||||||
Reference in New Issue
Block a user