generated from VLADIMIR/template
add video and audio
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user