Git Product home page Git Product logo

Comments (7)

snxly avatar snxly commented on August 24, 2024

请参考“安装与使用”一节
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.

kongqueyu avatar kongqueyu commented on August 24, 2024

跑不起来呢,有跑起来的同学吗

from h265player.

snxly avatar snxly commented on August 24, 2024

安装与使用

Nginx配置:
server {
listen 8000;
location / {
root /h265player;
index index.html index.htm;
autoindex on;
}
}

测试页面:
http://localhost:8000/demo/demo.html

是哪一步出的问题?有报错信息吗?

from h265player.

spiderT avatar spiderT commented on August 24, 2024

打开页面,控制台报错
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.

yiwen03 avatar yiwen03 commented on August 24, 2024

看错误是解析m3u8出错了,m3u8返回内容是什么

from h265player.

lccx-shall avatar lccx-shall commented on August 24, 2024

[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.

Tobee4Lin avatar Tobee4Lin commented on August 24, 2024

解决方案

from h265player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.