Comments (6)
I have test play with an external url by h265web successed.
Will be success with this external url:
https://findermp.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eezXKmVNfShJRUicJJMYPEroic00808a7aXgqxLficlB5eFicLcRadFRvLjb5tEsOhvukXSeW3Hh9gt9Ogc06BKaByGrNZht0VI0MYCob2zAV6NF9tnl2MEjq88qxxUVtbf6qibOibJWicURREOyNLiabYG1960ia3ymzrrWiaBf3VUOiaPNbwMGy3UgHzkQQO5&adaptivelytrans=0&bizid=1023&dotrans=937&hy=SH&idx=1&m=dfbe64968ef75c4dcadddaf38fb372dc&token=x5Y29zUxcibA8OUawCN97XjTILgaC1Nrib24vgIRVrSyajowopDZ5MiakoJYPVyibs8v&taskid=2021012781544
Example (Modify demo's index.html
):
code:
var token = "base64:QXV0aG9yOmNoYW5neWFubG9uZ3xudW1iZXJ3b2xmLEdpdGh1YjpodHRwczovL2dpdGh1Yi5jb20vbnVtYmVyd29sZixFbWFpbDpwb3JzY2hlZ3QyM0Bmb3htYWlsLmNvbSxRUTo1MzEzNjU4NzIsSG9tZVBhZ2U6aHR0cDovL3h2aWRlby52aWRlbyxEaXNjb3JkOm51bWJlcndvbGYjODY5NCx3ZWNoYXI6bnVtYmVyd29sZjExLEJlaWppbmcsV29ya0luOkJhaWR1";
var type = "mp4";
var url = "https://findermp.video.qq.com/251/20302/stodownload?encfilekey=Cvvj5Ix3eezXKmVNfShJRUicJJMYPEroic00808a7aXgqxLficlB5eFicLcRadFRvLjb5tEsOhvukXSeW3Hh9gt9Ogc06BKaByGrNZht0VI0MYCob2zAV6NF9tnl2MEjq88qxxUVtbf6qibOibJWicURREOyNLiabYG1960ia3ymzrrWiaBf3VUOiaPNbwMGy3UgHzkQQO5&adaptivelytrans=0&bizid=1023&dotrans=937&hy=SH&idx=1&m=dfbe64968ef75c4dcadddaf38fb372dc&token=x5Y29zUxcibA8OUawCN97XjTILgaC1Nrib24vgIRVrSyajowopDZ5MiakoJYPVyibs8v&taskid=2021012781544";
const PLAYER_CORE_TYPE_DEFAULT = 0; // 默认内核 recommand!!!!!!
const PLAYER_CORE_TYPE_CNATIVE = 1; // 测试内核
var config = {
type: type,
player: "glplayer",
width: 960,
height: 540,
accurateSeek : true,
token : token,
extInfo : {
core : PLAYER_CORE_TYPE_DEFAULT,
// core : PLAYER_CORE_TYPE_CNATIVE,
coreProbePart : 0.4,
moovStartFlag : true,
readyShow : true,
ignoreAudio : 0
}
};
makeH265webjs(url, config);
For others external urls, if you play failed, maybe cross-origin
error.
from h265web.js.
I tried the test link and I do not see any video, only audio. Is that intended?
from h265web.js.
I tried the test link and I do not see any video, only audio. Is that intended?
It's HEVC codec, can not play video by browers.
Try play it with h265web, and if you set option readyShow
to true
, you need to wait until you see the cover image, then you can start play.
from h265web.js.
here cover image
from h265web.js.
I will give that a try, thank you
from h265web.js.
I will give that a try, thank you
If you failed again, you can show me your code and suggest the console log with external url.
from h265web.js.
Related Issues (20)
- vue3 + vite, window.new265webjs is not a function HOT 2
- 编译ffmpeg的时候,提示ffmpeg_g这个文件找不到 HOT 1
- 播放h265流的时候,player.resize和player.snapshot方法报错
- 创建播放器 创建出来的就只有一个空的黑色的div是社么问题? HOT 2
- chrome 无法播放H265协议视频 HOT 4
- 未提供视频流地址,怎么展示播放按钮?
- 不能播放.h264格式的视频文件
- 这样操作不会有版权问题吗
- 国产统信操作系统播放异常 HOT 2
- 能否作为mse库整合入其他播放器
- 使用此款插件只能在联网环境下使用吗
- 切片报错: e.getContext is not a function
- websocket方式的H265的码流直流播放不出来的问题
- src/src-js/src/demuxer/flv-hevc/flv-hevc.js中,_skip_hrd_parameters方法定义缺少参数hvcc
- flv-hevc.js中_skip_hrd_parameters方法定义缺少参数hvcc,导致播放时报“hvcc is not defined”,播放黑屏 HOT 2
- 如何前端实现SEI增强数据 画框在视频上
- Uncaught (in promise) DOMException: Failed to read the 'buffered' property from 'SourceBuffer': This SourceBuffer has been removed from the parent media source (h265webjs-v20221106.js:85. HOT 1
- Invalid video packet type 81
- GetUriFormat中search参数识别为正则表达式导致类型识别非预期
- MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h265web.js.