这是一个自娱自乐用的简易弹幕站,没有用户机制,仅用于搭建者自己展示视频。 前身是几年前做的"个人弹幕站",现在我又把它翻出来重构了一下,改成了和之前完全不同的结构,并且这次写了后台UI,不再麻烦用户靠敲命令管理视频和弹幕了。
本程序包含的浏览用页面仅有
- 播放器页面
- 视频合集页面
- 视频信息页面
没有视频列表,因为设计之初就是为了把播放器插入其它网站的页面使用的。
简易弹幕站
License: MIT License
这里是一小段测试视频http://121.42.41.17/dm/player/?id=22,
在chrome下完美播放,F12中的手机端也可播放,但是真机测试页面空白无任何内容。
手头没有安卓设备,模拟器中也是无法加载。
默认视频源与备用视频源
#已解决
自己在360浏览器(chrome内核模式)下可以播放(视频采用flv)
但是我让另一个人用他电脑的360浏览器(也是Chrome内核模式)就无法播放
(加载弹幕框架
创建播放器
获取视频地址
获取弹幕
弹幕已载入
加载视频
视频错误)
(和网络问题没关系,可以直接下载flv文件)
于是自己用firefox,以及Chrome访问,也是无法加载,
firefox控制台里提示(
load player NyaP es2016 inline-cloudflare-rocketloader-executed-1.js:18:1
Language:zh-CN NyaP.es2016.min.js:1:58547
rendererMode: 1 NyaP.es2016.min.js:1:16187
Mod Inited:TextDanmaku NyaP.es2016.min.js:1:5429
HTTP "Content-Type" 中的 "video/x-flv" 不支持。媒体资源加载失败。 player
error { target: <video#main_video>, isTrusted: true, currentTarget: <video#main_video>, eventPhase: 2, bubbles: false, cancelable: false, defaultPrevented: false, composed: false, timeStamp: 2507.8491548603365, cancelBubble: false, originalTarget: <video#main_video> } playPage.js:13:92
无法播放媒体。没有相应格式的解码器:video/x-flv player
)
chrome://media-internals/ 信息:
(
render_id: 5
player_id: 0
frame_title: 麻枝准 x やなぎなぎ - 终わりの世界から
total_bytes: 20072549
streaming: false
single_origin: true
passed_cors_access_check: false
range_header_supported: true
pipeline_state: kStopped
error: FFmpegDemuxer: open context failed
pipeline_error: DEMUXER_ERROR_COULD_NOT_OPEN
)
log
(
Timestamp | Property | Value |
---|---|---|
00:00:00 00 | frame_title | 麻枝准 x やなぎなぎ - 终わりの世界から |
00:00:00 752 | total_bytes | 20072549 |
00:00:00 752 | streaming | false |
00:00:00 752 | single_origin | true |
00:00:00 752 | passed_cors_access_check | false |
00:00:00 752 | range_header_supported | true |
00:00:00 775 | pipeline_state | kStarting |
00:00:14 27 | error | FFmpegDemuxer: open context failed |
00:00:14 28 | pipeline_error | DEMUXER_ERROR_COULD_NOT_OPEN |
00:00:14 28 | pipeline_state | kStopping |
00:00:14 28 | pipeline_state | kStopped |
) | ||
因该是解码器的原因,但是浏览器访问其他视频网站都没有任何问题。。。(比如B站) | ||
目前能正常加载的只有我电脑上的360浏览器,这台电脑上的ie,firefox,chrome还有同学电脑上的360浏览器都不行。。。 | ||
请问您有什么解决办法吗? | ||
谢谢 Orz |
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.