(self)
| 250 | self.recorder.truncate_stream_buffer(self.est_switch_action_end_idx) |
| 251 | return NextControl(action="perform_action", data=action_switch) |
| 252 | |
| 253 | def pub_livestream(self, images: torch.Tensor, audios: torch.Tensor, gen_video: torch.Tensor, valid_duration=1e9): |
| 254 | if self.recorder.realtime: |
| 255 | self.recorder.buffer_stream(images, audios, gen_video, valid_duration=valid_duration) |
| 256 | else: |