当前位置: 首页 > news >正文

查询企业信息的网站网站未备案怎么访问

查询企业信息的网站,网站未备案怎么访问,刚刚刚刚刚刚刚刚刚刚刚刚刚刚刚,建设旅游网站的功能定位前言 由于html中的video现在不支持rtmp协议(需要重写播放器框架#xff0c;flash被一刀切#xff0c;360浏览器还在支持flash),遂用rtmp作为桥梁,实际是hls协议在html中起作用. 在此推荐一款前端播放器,.ckplayer 简直了,写点页面,一直循环#xff0c;洗脑神曲 dream it po…前言 由于html中的video现在不支持rtmp协议(需要重写播放器框架flash被一刀切360浏览器还在支持flash),遂用rtmp作为桥梁,实际是hls协议在html中起作用. 在此推荐一款前端播放器,.ckplayer 简直了,写点页面,一直循环洗脑神曲 dream it possible. 搭建nginx服务器 环境准备 1.下载环境 nginx包: nginx包 RTMP模块包:nginx-http-flv-module 模块包 2.依赖项 yum -y install unzip yum -y install gcc-c yum -y install pcre pcre-devel yum -y install zlib zlib-devel yum -y install openssl openssl-devel 3.安装 新建nginx路径 mkdir /usr/local/nginx 将下载的模块包复制到nginx目录下并解压 cp /opt/toos/nginx-http-flv-module-1.2.6.zip /usr/local/nginx/nginx-http-flv-module cd /usr/local/nginx unzip nginx-http-flv-module 安装nginx服务器 tar -zxvf nginx-1.8.1.tar.gz cd nginx-1.8.1 ./configure --prefix/usr/local/nginx --add-module/usr/local/nginx/nginx-http-flv-module make make install 【免费分享】音视频学习资料包、大厂面试题、技术视频和学习路线图资料包括C/CLinuxFFmpeg webRTC rtmp hls rtsp ffplay srs 等等有需要的可以点击788280672加群免费领取~ nginx服务器配置文件 #user nobody; worker_processes 1;#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }rtmp {server {allow publish all;listen 1935;ping 30s;notify_method get;application myapp {live on;# sample play/publish handlers#on_play http://localhost:8080/on_play;#on_publish http://localhost:8080/on_publish;# sample recorder#recorder rec1 {# record all;# record_interval 30s;# record_path /tmp;# record_unique on;#}# sample HLShls on;hls_path /tmp/hls;# hls_sync 100ms;hls_fragment 5s; hls_cleanup off;record all;record_path /tmp/record;record_unique on;}# Video on demandapplication vod {# play /var/Videos;play /usr/local/video;}# Video on demand over HTTP#application vod_http {# play http://localhost:8080/vod/;#}} } http {include mime.types;default_type application/octet-stream;#log_format main $remote_addr - $remote_user [$time_local] $request # $status $body_bytes_sent $http_referer # $http_user_agent $http_x_forwarded_for;#access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;server {listen 80;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;# location / {# root /tmp/hls;# #}#HLS配置开始,这个配置为了客户端能够以http协议获取HLS的拉流location / {add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Methods GET, POST, OPTIONS;add_header Access-Control-Allow-Headers DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization;index index.html index.htm;# Serve HLS fragmentstypes {application/vnd.apple.mpegurl m3u8;video/mp2t ts;}root /tmp/hls;add_header Cache-Control no-cache;}#HLS配置结束# rtmp statlocation /stat {rtmp_stat all;rtmp_stat_stylesheet stat.xsl;}location /stat.xsl {# you can move stat.xsl to a different location# root /usr/build/nginx-rtmp-module;root /usr/local/src/nginx-rtmp-module-1.2.1;}# rtmp controllocation /control {rtmp_control all;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location /50x.html {root html;}}# another virtual host using mix of IP-, name-, and port-based configuration##server {# listen 8000;# listen somename:8080;# server_name somename alias another.alias;# location / {# root html;# index index.html index.htm;# }#}# HTTPS server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;# }#} 4.ffmpeg推码 下载ffmpeg模块包 ffmpeg模块包:ffmpeg 查询设备 ffmpeg -list_devices true -f dshow -i dummy 测试录像设备可用 ffplay -f dshow -i videoBisonCam, NB Pro ffmpeg -f dshow -i videoBisonCam, NB Pro -vcodec libx264 -vf scale320:240 -preset:v ultrafast -tune:v zerolatency -f flv rtmp://[ip地址]/[你的application,我上面的application写的[myapp]]myapp/[文件名称]wechat 跨域问题(在nginx中添加跨域) add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Methods GET, POST, OPTIONS;add_header Access-Control-Allow-Headers DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization; 5. 在html中访问。 !DOCTYPE html html langzh-CNheadmeta charsetUTF-8title前端播放m3u8格式视频/titlelink hrefhttps://vjs.zencdn.net/7.4.1/video-js.css relstylesheetscript srchttps://vjs.zencdn.net/7.4.1/video.js/scriptscript srchttps://cdnjs.cloudflare.com/ajax/libs/videojs-contrib-hls/5.15.0/videojs-contrib-hls.min.jstypetext/javascript/script!-- videojs-contrib-hls 用于在电脑端播放 如果只需手机播放可以不引入 -- /headbodystyle.video-js .vjs-tech {position: relative !important;}/styledivvideo idmyVideo classvideo-js vjs-default-skin vjs-big-play-centered controls preloadautodata-setup{} stylewidth: 100%;height: autosource idsourcesrchttp://[你的ip地址]/[你的文件名称]wechat.m3u8typeapplication/x-mpegURL/source/video/divdiv classqiehuanstylewidth:100px;height: 100px;background: red;margin:0 auto;line-height: 100px;color:#fff;text-align: center切换视频/div /bodyscript// videojs 简单使用var myVideo videojs(myVideo, {bigPlayButton: true,textTrackDisplay: false,posterImage: false,errorDisplay: false,})myVideo.play()var changeVideo function (vdoSrc) {if (/\.m3u8$/.test(vdoSrc)) { //判断视频源是否是m3u8的格式myVideo.src({src: vdoSrc,type: application/x-mpegURL //在重新添加视频源的时候需要给新的type的值})} else {myVideo.src(vdoSrc)}myVideo.load();myVideo.play();}var src http://[你的ip地址]/[你的文件名称].m3u8;document.querySelector(.qiehuan).addEventListener(click, function () {changeVideo(src);}) /script 原文链接 摄像设备nginxrtmp服务器 - 掘金
http://www.pierceye.com/news/416012/

相关文章:

  • 怎么样做钓鱼网站怎么建网站app
  • 高校财务网站建设国外网站ip地址
  • 重要的龙岗网站建设影视公司网站模板
  • 品牌网站 响应式网站wordpress oss静态
  • 免费网站制作中小型企业查询网址
  • 企业网站的seo广州市企业网站建设平台
  • 备案网站名称与实际网站名称不一致企业门户网站平台建设招标采购文件
  • 张掖网站制作wordpress 主题安装教程
  • 企业网站建设合作合同网页做成app
  • 郑州建网站价格医院网页
  • 南京设计网站网站速度的重要性
  • 河南智能网站建设平台简易网站建设
  • 成都鱼羊环保网站制作设计网站 关键字 标签
  • 邓修明调研成都网站建设鞍山建一个网站大概要多少钱
  • 聊城网站开发公司专业开发小程序公司
  • 三门峡网站建设推广用个人电脑做服务器建网站
  • 黄冈论坛交友网站首页seo怎么做
  • 网站注册域名 免费网站建设进度及实施过程
  • 如何购买一个网站的域名小程序开发公司网
  • 产品包装设计素材网站均安建网站
  • 甘肃建设网站找别人做网站需要注意什么
  • php做电子商城网站创业找项目
  • 网站建设建设公司有哪些帝国手机网站cms系统
  • 网站设计包括什么软件房产交易网上预约平台
  • 企业做网站有什么好处坏处四川住房城乡和城乡建设厅网站首页
  • 小学学校网站建设计划广州seo顾问服务
  • 做淘宝素材网站哪个好用网站制作网站建设需要多少钱
  • 住房建设部官方网站设计费计取wordpress仿百度搜索主题
  • 云建站平台哪家好沈阳百度seo关键词排名优化软件
  • 响应式网站设计的优点国内优秀设计网站