mirror of
https://github.com/Monibuca/engine.git
synced 2025-11-03 10:51:03 +08:00
支持多语言日志,增加心跳事件广播,兼容一开始缺少 vps 的流
This commit is contained in:
@@ -165,7 +165,7 @@ func (s *Subscriber) IsPlaying() bool {
|
||||
}
|
||||
|
||||
func (s *Subscriber) SubPulse() {
|
||||
s.Stream.Receive(SubPulse{s})
|
||||
s.Stream.Receive(SubPulse{s.Spesific.(ISubscriber)})
|
||||
}
|
||||
|
||||
func (s *Subscriber) PlayRaw() {
|
||||
@@ -210,10 +210,11 @@ func (s *Subscriber) PlayBlock(subType byte) {
|
||||
switch subType {
|
||||
case SUBTYPE_RAW:
|
||||
sendVideoFrame = func(frame *AVFrame) {
|
||||
// fmt.Println("v", frame.Sequence, s.VideoReader.AbsTime, frame.IFrame)
|
||||
// fmt.Println("v", s.VideoReader.Delay)
|
||||
spesic.OnEvent(VideoFrame{frame, s.Video, s.VideoReader.AbsTime, s.VideoReader.GetPTS32(), s.VideoReader.GetDTS32()})
|
||||
}
|
||||
sendAudioFrame = func(frame *AVFrame) {
|
||||
// fmt.Println("a", s.AudioReader.Delay)
|
||||
// fmt.Println("a", frame.Sequence, s.AudioReader.AbsTime)
|
||||
spesic.OnEvent(AudioFrame{frame, s.Audio, s.AudioReader.AbsTime, s.AudioReader.GetPTS32(), s.AudioReader.GetDTS32()})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user