mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
fix bug when video is download from server (#1661)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user