MCPcopy Create free account
hub / github.com/axmolengine/axmol / setURL

Method setURL

core/ui/UIMediaPlayer.cpp:1088–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088void MediaPlayer::setURL(std::string_view videoUrl)
1089{
1090 if (_videoURL != videoUrl)
1091 {
1092 reinterpret_cast<PrivateVideoDescriptor*>(_videoContext)->closePlayer();
1093 _videoURL = videoUrl;
1094 }
1095 _videoSource = MediaPlayer::Source::URL;
1096}
1097
1098void MediaPlayer::setLooping(bool looping)
1099{

Callers 1

Calls 1

closePlayerMethod · 0.80

Tested by 1