- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我试过用video.js在网页中播放一个m3u8文件流,但是我做不到,我不知道错误在哪里
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Video</title>
<link href="http://vjs.zencdn.net/4.12/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/4.12/video.js"></script>
<script src="https://github.com/videojs/videojs-contrib-media-sources/releases/download/v0.1.0/videojs-media-sources.js"></script>
<script src="https://github.com/videojs/videojs-contrib-hls/releases/download/v0.11.2/videojs.hls.min.js"></script>
</head>
<body>
<h1>Video</h1>
<video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="640" height="268"
data-setup='{}'>
<source src="http://iphone-streaming.ustream.tv/uhls/3064708/streams/live/iphone/playlist.m3u8" type='video/mp4'>
</video>
<script>
</script>
</body>
</html>
最佳答案
您需要 type='application/x-mpegURL'
而不是 type='video/mp4'
。
还要检查是否允许跨域请求 (CORS)。
Hosting Considerations
Unlike a native HLS implementation, the HLS tech has to comply with the browser's security policies. That means that all the files that make up the stream must be served from the same domain as the page hosting the video player or from a server that has appropriate CORS headers configured. Easy instructions are available for popular webservers and most CDNs should have no trouble turning CORS on for your account.
来源:https://github.com/videojs/videojs-contrib-hls
CORS 操作指南:http://enable-cors.org/server.html
关于javascript - 播放 video.js ustream m3u8 文件流,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29351225/
我想让我的程序输出希腊字母。我已经安装并连接了 ICU,但我不知道如何将我的 Unicode 字符串打印到标准输出。这是一些简单的代码: #include #include #include #
我打算建立一个类似 ustream.tv 的网站。主要用例是用户将创建一个直播 channel ,任何其他用户都可以查看该 channel 。在做了一些谷歌搜索后,我发现这是使用闪存媒体服务器完成的。
有没有人找到在 iphone 或 ipad 应用程序中轻松嵌入 ustream 视频的方法?我已向 ustream 支持发送电子邮件,但没有回复。我真的不想运行 ffmpeg 或任何东西。 最佳答案
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
有没有人找到一种方法可以轻松地将 ustream 实时视频嵌入到 Android 应用程序中?我已向 ustream 支持发送电子邮件,但没有回复。我尝试使用 webview 和 playerview
从他们的网站上并不能立即清楚地看出,但是可以使用 TokBox web/iOS API 构建像 Ustream 这样的一对多流媒体应用程序吗?是否仅限于聊天。 我想制作一些东西来从桌面或 iOS 设备
我试过用video.js在网页中播放一个m3u8文件流,但是我做不到,我不知道错误在哪里 Video Video 最佳答案
如何将 iPhone 中的视频直播到 Ustream 或 Qik 等服务器?我知道 Apple 有一种叫做 Http Live Streaming 的东西,但我发现的大多数资源都只讨论将视频从服务器流
我正在开发一个应用程序,用于从 ustream 的分水岭流式传输实时视频。 (分水岭.ustream.tv) 嵌入式播放器一直有效,直到我将其置于 ssl 之后。 Chrome 将 ssl 显示为已损
如何将视频从 iPhone 直播到 Ustream 或 Qik 等服务器?我知道 Apple 有一种叫做 Http Live Streaming 的东西,但我发现的大多数资源都只讨论从服务器到 iPh
我是直播新手,很难为初学者找到好的信息。除了Apple的文档,还有谁能推荐给HLS的资源吗? 我正在尝试制作一个类似于 LiveStream 的应用程序,可以将视频实时广播给多个用户。 我遇到过一些服
我是一名优秀的程序员,十分优秀!