(&self, _cx: &App)
| 408 | } |
| 409 | } |
| 410 | |
| 411 | impl Render for AudioPlayer { |
| 412 | fn render(&mut self, window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement { |
| 413 | self.sync_playback_state(); |
| 414 | if self.playback_state == PlaybackState::Playing { |
| 415 | window.request_animation_frame(); |