mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-06-11 12:58:11 +02:00
Update App version to 0.1.1
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -131,7 +131,11 @@ func newSession(sessionConfig SessionConfig) (*Session, error) {
|
||||
}
|
||||
})
|
||||
|
||||
session.VideoTrack, err = webrtc.NewTrackLocalStaticSample(webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeH264}, "video", "kvm")
|
||||
if streamEncodecType == "hevc" {
|
||||
session.VideoTrack, err = webrtc.NewTrackLocalStaticSample(webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeH265}, "video", "kvm")
|
||||
} else {
|
||||
session.VideoTrack, err = webrtc.NewTrackLocalStaticSample(webrtc.RTPCodecCapability{MimeType: webrtc.MimeTypeH264}, "video", "kvm")
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -191,6 +195,7 @@ func newSession(sessionConfig SessionConfig) (*Session, error) {
|
||||
isConnected = true
|
||||
actionSessions++
|
||||
onActiveSessionsChanged()
|
||||
setNpuAppStatus()
|
||||
if actionSessions == 1 {
|
||||
onFirstSessionConnected()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user