Comments (7)
请参考“安装与使用”一节
https://github.com/goldvideo/h265player#%E5%AE%89%E8%A3%85%E4%B8%8E%E4%BD%BF%E7%94%A8
测试页面是 http://localhost:8000/demo/demo.html
from h265player.
跑不起来呢,有跑起来的同学吗
from h265player.
安装与使用
-
mkdir goldvideo
-
cd goldvideo
-
git clone https://github.com/goldvideo/demuxer.git
-
cd demuxer
-
npm install
-
npm run production
-
cd ..
-
cd h265player
-
npm install
-
npm install ../demuxer
-
以下命令根据需要四选一
-
npm run dev # 运行开发环境
-
npm run test # 运行测试环境
-
npm run build # 打包正式环境
-
rollup -c # 打包csj与esm版本
Nginx配置:
server {
listen 8000;
location / {
root /h265player;
index index.html index.htm;
autoindex on;
}
}
测试页面:
http://localhost:8000/demo/demo.html
是哪一步出的问题?有报错信息吗?
from h265player.
打开页面,控制台报错
ThrowError.js?80b6:64 Error: [GOLDPLAY ERROR:default-1001]m3u8 file is not text.
at ThrowError.throws (ThrowError.js?80b6:61)
at M3U8Parser.parse (M3U8Parser.js?411e:208)
at new M3U8Parser (M3U8Parser.js?411e:70)
at HLSLoader.parsePlaylist (HLSLoader.js?816b:70)
at Worker.httpWorker.onmessage (HLSLoader.js?816b:64) "[message]:" "m3u8 file is not text." "[args]:" [Blob]0: Blob {size: 6817491, type: "video/mp4"}length: 1__proto__: Array(0)
throws @ ThrowError.js?80b6:64
parse @ M3U8Parser.js?411e:208
M3U8Parser @ M3U8Parser.js?411e:70
parsePlaylist @ HLSLoader.js?816b:70
httpWorker.onmessage @ HLSLoader.js?816b:64
ThrowError.js?80b6:64 Error: [GOLDPLAY ERROR:default-1001]0
at ThrowError.throws (ThrowError.js?80b6:61)
at HLSLoader.eval (Player.js?66d6:304)
at eval (Events.js?a0fd:81)
at Array.forEach ()
at Events.emit (Events.js?a0fd:80)
at HLSLoader.parsePlaylist (HLSLoader.js?816b:75)
at Worker.httpWorker.onmessage (HLSLoader.js?816b:64) "[message]:" "0" "[args]:" (3) ["Parse playlist error.", "data:", M3U8Parser]0: "Parse playlist error."1: "data:"2: M3U8Parser {source: Blob, segments: Array(0), currentSegment: null, discontinuous: null, tags: {…}, …}length: 3__proto_: Array(0)
throws @ ThrowError.js?80b6:64
eval @ Player.js?66d6:304
eval @ Events.js?a0fd:81
emit @ Events.js?a0fd:80
parsePlaylist @ HLSLoader.js?816b:75
httpWorker.onmessage @ HLSLoader.js?816b:64
from h265player.
看错误是解析m3u8出错了,m3u8返回内容是什么
from h265player.
[email protected] dev C:\Users\m&m\Desktop\goldvideo\h265player
webpack --config build/webpack.dev.conf.js --watch --display-error-details
'm\Desktop\goldvideo\h265player\node_modules.bin' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'C:\Users\webpack\bin\webpack.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: webpack --config build/webpack.dev.conf.js --watch --display-error-details
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
from h265player.
from h265player.
Related Issues (20)
- 多路全屏问题 HOT 1
- 现在h264编码的视频格式有哪些?按照例子试了下,好像只有m3u8的才可以,MP4格式的还不行 HOT 3
- mp4 还会支持吗?
- 运行自己的m3u8视频地址时, 报异常Cannot set property 'partEnd' of null HOT 3
- 本项目开源协议是什么? HOT 1
- 有构建好的,支持mp4播放的SDK吗 HOT 2
- H.265 Player 在线播放器 MP4 示例无法正常播放 HOT 10
- h265的.m3u8直播流只加载一次m3u8,只拿到一次分片ts HOT 1
- npm run dev 一直跑不起来 HOT 3
- 如何集成SIMD指令集
- player.destroy()
- Please update ffmpeg (maybe with ffmpeg.wasm)
- ProgressBar update wrong timer when first decoded frame's pts is not 0 HOT 2
- 无法播放h.263编码的mp4格式的视频 HOT 1
- npm run dev:卡在编译过程中 HOT 2
- 目前支持 HLS 直播流么?
- 可以支持硬解码吗?
- Get the m3u8 file error
- 请问支持直播了么?
- 你好,请问支持直播吗,hls、flv HOT 1
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 h265player.