Home > Mobile >  WeChat development, public use h5 video tags, found that android can't play the video
WeChat development, public use h5 video tags, found that android can't play the video

Time:09-29

Purpose is to after the user to select video file, can can preview video in advance; Then you can click to upload,
Problem is now on ios devices WeChat browser to preview video, and in the android devices WeChat browsers can't preview video broadcast,

//return the url,
The function getObjectURL (file) {
Var url=null;
If (window createObjectURL!=undefined) {//basic
Url=window. CreateObjectURL (file);//type 1
} else if (window. The URL!=undefined) {//mozilla firefox)
Url=window. Url. CreateObjectURL (file);//type 2
} else if (window webkitURL!=undefined) {//its or chrome
Url=window. WebkitURL. CreateObjectURL (file);//type 3
}
Return the url;
}

The url is in ios WeChat type 2, android is type 3, the url in the video element android parse failure;

If is the problem that the url, can I have access to mobile phone local video files play solution?

CodePudding user response:

I also encountered similar problems, data on the server opens the Gzip compression, WeChat browser video data when not in accordance with the Gzip compressed data parsing, this kind of problem only appeared on the Android version of WeChat
In fact, the client sends a request to the server, the server has to get the client which compressed format support, server estimation is to recognize WeChat client support Gzip compression data, to the client the Gzip format of data transfers, behold WeChat client denies

CodePudding user response:

How to solve the problem, solving?

CodePudding user response:

WeChat true his pit, don't want to play with him

CodePudding user response:

?????
When I mentioned this problem???
String of number??????
  • Related