| 486 | } |
| 487 | |
| 488 | void VideoBackendAndroid::Player_Play(VideoBackendPlayer& player) |
| 489 | { |
| 490 | PROFILE_CPU(); |
| 491 | auto& playerAndroid = player.GetBackendState<VideoPlayerAndroid>(); |
| 492 | playerAndroid.Playing = 1; |
| 493 | playerAndroid.InputEnded = playerAndroid.OutputEnded = 0; |
| 494 | if (playerAndroid.VideoCodec) |
| 495 | AMediaCodec_start(playerAndroid.VideoCodec); |
| 496 | if (playerAndroid.AudioCodec) |
| 497 | AMediaCodec_start(playerAndroid.AudioCodec); |
| 498 | player.PlayAudio(); |
| 499 | } |
| 500 | |
| 501 | void VideoBackendAndroid::Player_Pause(VideoBackendPlayer& player) |
| 502 | { |