Skip to content

去掉websocket,去掉不必要的模块.外部一路websocket传输数据,使用wfs播放.添加帧率检测,使用worker

Notifications You must be signed in to change notification settings

sunkingsss/singleWfsjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

please use single file of wfs.js, DO NOT compile current git branch. bugs find.

================ wfs.js - html5 player for raw h.264 streams.

A javascript library which implements websocket client for watching and focusing on raw h.264 live streams in your browser that works directly on top of a standard HTML5 element and MediaSource Extensions.

It works by transmuxing H264 NAL unit into ISO BMFF (MP4) fragments.

Also,Implement a demo server to push video streams.

Build

git clone https://github.com/ChihChengYang/wfs.js.git

wfs.js

  1. setup node.js/npm dev environement

  2. cd wfs.js

  3. npm install

  4. npm run build

demo server

Setup go's dev environement

go get "github.com/gorilla/websocket"

go get "github.com/satori/go.uuid"

./server/build_lite.sh

Demo server serves with raw h.264 files, yet that can be easily transfered and connected to RTSP or other sources (h.264 streaming).

Demo

  1. run ./demo/wfs_server

  2. open a browser e.g. Chrome , 127.0.0.1:8888

Reference

hls.js

About

去掉websocket,去掉不必要的模块.外部一路websocket传输数据,使用wfs播放.添加帧率检测,使用worker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 97.5%
  • Go 2.3%
  • Other 0.2%