| 1086 | } |
| 1087 | |
| 1088 | void 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 | |
| 1098 | void MediaPlayer::setLooping(bool looping) |
| 1099 | { |