| 1075 | } |
| 1076 | |
| 1077 | void MediaPlayer::setFileName(std::string_view fileName) |
| 1078 | { |
| 1079 | auto fullPath = FileUtils::getInstance()->fullPathForFilename(fileName); |
| 1080 | if (ax::utils::filePathToUrl(std::forward<std::string>(fullPath)) != _videoURL) |
| 1081 | { |
| 1082 | reinterpret_cast<PrivateVideoDescriptor*>(_videoContext)->closePlayer(); |
| 1083 | _videoURL = std::move(fullPath); |
| 1084 | } |
| 1085 | _videoSource = MediaPlayer::Source::FILENAME; |
| 1086 | } |
| 1087 | |
| 1088 | void MediaPlayer::setURL(std::string_view videoUrl) |
| 1089 | { |
nothing calls this directly
no test coverage detected