首页 > 系统相关 >Nginx+Jwplayer播放流媒体视频

Nginx+Jwplayer播放流媒体视频

时间:2023-06-11 18:36:16浏览次数:44  
标签:流媒体 Jwplayer nginx Nginx jwplayer video JWPlayer your

Nginx+Jwplayer播放流媒体视频

JWPlayer is one of the most popular video players on the Internet. It is used by most modern “tube” websites for video hosting, publishing and advertising. It can be used as standalone in your HTML and Flash code, or integrated into any popular CMS like WordPress, Joomla, and others.


Today I’m going to show you how to setup Nginx Video Streaming with Jwplayer. In order to start you will need root access to your VPS or Dedicated server, if you need a reliable and good Nginx hosting, you can try this two companies:


A Small Orange

A2 Hosting

If you already have your Hosting purchased, then let’s continue:


Install Nginx on CentOS



wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
rpm -i nginx-release-centos-6-0.el6.ngx.noarch.rpm
yum install nginx -y
service nginx start
chkconfig nginx on

Download JWPlayer at Nginx documentroot

Get the latest version from http://www.jwplayer.com/, example:


cd /usr/share/nginx/html
wget https://account.jwplayer.com/static/download/jwplayer-6.8.zip
unzip jwplayer-6.8.zip

Now you have JWPlayer installed in your Nginx web server. So, it’s time to create a HTML to include our beloved JWPlayer to make all the magic:


Download a FLV video file



cd /usr/share/nginx/html
wget http://developer.longtailvideo.com/trac/export/944/trunk/html5/test/files/bunny.flv
Create a HTML file to include JWPlayer and the FLV video



nano -w /usr/share/nginx/html/jwplayer.html

Then place this code inside:


Loading JWPlayer…

Testing Nginx Streaming with JWPlayer


Try to browse http://your.ip.address/jwplayer.html and you should see your Nginx webserver streaming a perfectly FLV video usign JWPlayer. Replace “your.ip.address” with your real IP address (public or private) and you should see something like this:



标签:流媒体,Jwplayer,nginx,Nginx,jwplayer,video,JWPlayer,your
From: https://blog.51cto.com/u_6186189/6458468

相关文章

  • nginx流量带宽等请求状态统计( ngx_req_status)
    介绍ngx_req_status用来展示nginx请求状态信息,类似于apache的status,nginx自带的模块只能显示连接数等等信息,我们并不能知道到底有哪些请求、以及各url域名所消耗的带宽是多少。ngx_req_status提供了这些功能.功能特性按域名、url、ip等等统计信息统计总流量统计当前带宽\峰值带宽统......
  • 通过ngx-lua来统计nginx上的虚拟主机性能数据
    介绍以前我们为nginx做统计,都是通过对日志的分析来完成.比较麻烦,现在基于ngx_lua插件,开发了实时统计站点状态的脚本,解放生产力.项目主页:https://github.com/skyeydemon/ngx-lua-stats功能支持分不同虚拟主机统计,同一个虚拟主机下可以分不同的location统计.可以统计与query-......
  • nginx+tomcat+memcached (msm)实现 session同步复制
    这里重点强调如何实现linux服务器上服务器session共享,软件安装不再赘述。 首先我们需要对cookie和session的工作机制非常了解,如果不了解其中的原理,就算配置成功,也毫无意义。换了工作换了环境,重新配置起来 仍然需要重头来过,事倍功半。    cookie是怎样工作的? 例如,我们创......
  • Nginx流量复制/AB测试/协程
    在实际开发中经常涉及到项目的升级,而该升级不能简单的上线就完事了,需要验证该升级是否兼容老的上线,因此可能需要并行运行两个项目一段时间进行数据比对和校验,待没问题后再进行上线。这其实就需要进行流量复制,把流量复制到其他服务器上,一种方式是使用如tcpcopy引流;另外我们还可以使......
  • nginx-gridfs Benchmarking Raw Results
    RawDataSpreadsheetwithtestresults(ODFformat)Thesefollowinglinksshowtherawoutputfromthebenchmarkingutilities.GridFSOverNetworkThistestscenarioshowsperformanceforHTTPrequestsoveragigabitEthernetLANconnection.MongoDBand......
  • nginx-ssl
    阿里云sslhttps://cloud.tencent.com/developer/article/1444888?from=15425&areaSource=102001.1&traceId=hr6wuqWG00xJ9twXuLoOAapkaddopenssl-devopensslmkdir/usr/local/nginx/conf/sslcd/usr/local/nginx/conf/sslopensslgenrsa-outmy.key-des31024......
  • k8s 1.26.5 Ingress-nginx 的高可用部署
    1.安装部署ingress-nginx本次部署使用了高可用的形式,会在每个node节点做亲和性(master不部署),让每一个pod都部署上去,然后加入NGINX去过负载,这样我们之后用NGINX的80端口访问域名就可以了。主机地址端口k8s-node01192.168.80.48nginx启动端口:3080,负载均衡端口:根据ingre......
  • Nginx用作反向代理服务器使用!
        Nginx("enginex")是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP代理服务器。Nginx是由IgorSysoev为俄罗斯访问量第二的Rambler.ru站点开发的,它已经在该站点运行超过三年了。Igor将源代码以类BSD许可证的形式发布。Nginx超越Apache的高性......
  • Linux系统下配置Nginx服务器
    Nginx是一个高性能的开源HTTP和反向代理服务器,也可以作为电子邮件(SMTP/POP3/IMAP)代理服务器、负载均衡器和HTTP缓存服务器,使用在安装Nginx之前,需要安装一些其他软件依赖,如gcc、pcre、zlib和openssl。1、yum installgcc-ygcc是GNUCompilerCollection的简称,包含编译器和其他编......
  • nginx-clojure-0.6.0 集成nginx 1.25.0 构建的解决方法
    今天也说过关于nginx-clojure-0.6.0集成nginx1.2.50构建是有问题的,以下是解决方法实际问题staticdeclarationof‘ngx_http_close_request’followsnon-staticdeclaration原因nginx-clojure复制了nginx源码中对于nginx的处理函数(ngx_http_clojure_mem.c文件)......