add video and audio

This commit is contained in:
2026-09-10 12:06:54 +07:00
parent 9e842a467e
commit 883e0bc3b1
5 changed files with 60 additions and 25 deletions
+8
View File
@@ -307,6 +307,14 @@ func (s *server) enrichScreenState(ctx context.Context, session *screen_sessions
if game.Scenario != nil && game.Scenario.Image != nil {
state.CoverImage = *game.Scenario.Image
}
if game.Scenario != nil && game.Scenario.Story != nil {
if game.Scenario.Story.Introduction != nil {
state.IntroAudio = game.Scenario.Story.Introduction.Audio
}
if game.Scenario.Story.Conclusion != nil {
state.ConclusionVideo = game.Scenario.Story.Conclusion.Video
}
}
}
func (s *server) SetScreenMode(ctx context.Context, req *proto.SetScreenModeReq) (*proto.SetScreenModeRsp, error) {