Start the media clock. Called when streaming begins.
(self)
| 441 | self._audio_sample_count = 0 |
| 442 | |
| 443 | def start(self): |
| 444 | """Start the media clock. Called when streaming begins.""" |
| 445 | with self._lock: |
| 446 | if self._started: |
| 447 | return |
| 448 | self._epoch = time.perf_counter() |
| 449 | self._epoch_ntp = time.time() |
| 450 | self._started = True |
| 451 | self._video_frame_count = 0 |
| 452 | self._audio_sample_count = 0 |
| 453 | |
| 454 | def reset(self): |
| 455 | """Reset the clock (for reconnection scenarios).""" |
no outgoing calls
no test coverage detected