mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
commit
cb4cdcbf74
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user