fix bug when video is download from server (#1661)

This commit is contained in:
吴智明
2019-01-14 16:27:04 +08:00
committed by leda
parent 2f6b44a2fc
commit 3ba70ea84c
2 changed files with 2 additions and 2 deletions
@@ -197,7 +197,7 @@ public class Cocos2dxVideoView extends SurfaceView implements MediaPlayerControl
private boolean mIsAssetRouse = false;
private String mVideoFilePath = null;
private static final String AssetResourceRoot = "assets/";
private static final String AssetResourceRoot = "@assets/";
public void setVideoFileName(String path) {
if (path.startsWith(AssetResourceRoot)) {
@@ -91,7 +91,7 @@ void VideoPlayer::setURL(const std::string& videoUrl)
{
if (videoUrl.find("://") == std::string::npos)
{
_videoURL = videoUrl; //FileUtils::getInstance()->fullPathForFilename(videoUrl);
_videoURL = FileUtils::getInstance()->fullPathForFilename(videoUrl);
_videoSource = VideoPlayer::Source::FILENAME;
}
else