mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 22:54:50 -04:00
@@ -239,7 +239,10 @@ void VideoElement::PreparePlayer()
|
||||
LOGE("Player Reset failed");
|
||||
return;
|
||||
}
|
||||
const std::string filePath = AceEngine::Get().GetAssetAbsolutePath(src_);
|
||||
std::string filePath = src_;
|
||||
if (!StringUtils::StartWith(filePath, "file://")) {
|
||||
filePath = AceEngine::Get().GetAssetAbsolutePath(src_);
|
||||
}
|
||||
LOGI("filePath : %{private}s", filePath.c_str());
|
||||
if (mediaPlayer_->SetSource(filePath) != 0) {
|
||||
LOGE("Player SetSource failed");
|
||||
|
||||
Reference in New Issue
Block a user