通知播放结束事件携带sink id

This commit is contained in:
yangjiechina
2024-11-05 19:46:15 +08:00
parent d66c724e0d
commit 4e809f9c26
3 changed files with 19 additions and 6 deletions

View File

@@ -2,6 +2,7 @@ package stream
import (
"encoding/binary"
"fmt"
"net"
"strconv"
)
@@ -48,3 +49,7 @@ func SinkId2String(id SinkID) string {
return id.(string)
}
func CreateSinkDisconnectionMessage(sink Sink) string {
return fmt.Sprintf("%s sink断开连接. id: %s", sink.GetProtocol(), sink.GetID())
}