MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Player_Play

Method Player_Play

Source/Engine/Video/Android/VideoBackendAndroid.cpp:488–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void 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
501void VideoBackendAndroid::Player_Pause(VideoBackendPlayer& player)
502{

Callers

nothing calls this directly

Calls 1

PlayAudioMethod · 0.80

Tested by

no test coverage detected