mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 15:16:49 +08:00
通知播放结束事件携带sink id
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user