Coder Social home page Coder Social logo

plugin-jessica's Introduction

JESSICA 插件

通过Websocket传输音视频数据,使用Jessibuca播放器进行播放。

插件地址

https://github.com/Monibuca/plugin-jessica

插件引入

import (
    _ "m7s.live/plugin/jessica/v4"
)

配置

可配置WS协议和WSS协议监听地址端口

jessica:
    http:
      listenaddr: :8080 # 网关地址,用于访问API
      listenaddrtls: ""  # 用于HTTPS方式访问API的端口配置
      certfile: ""
      keyfile: ""
      cors: true  # 是否自动添加cors头
      username: ""  # 用户名和密码,用于API访问时的基本身份认证
      password: ""
    subscribe:
        subaudio: true # 是否订阅音频流
        subvideo: true # 是否订阅视频流
        subaudioargname: ats # 订阅音频轨道参数名
        subvideoargname: vts # 订阅视频轨道参数名
        subdataargname: dts # 订阅数据轨道参数名
        subaudiotracks: [] # 订阅音频轨道名称列表
        subvideotracks: [] # 订阅视频轨道名称列表
        submode: 0 # 订阅模式,0为跳帧追赶模式,1为不追赶(多用于录制),2为时光回溯模式
        iframeonly: false # 只订阅关键帧
        waittimeout: 10s # 等待发布者的超时时间,用于订阅尚未发布的流

协议说明

该插件提供两种格式的协议供播放器播放。

WS-RAW

  • 地址格式:ws://[HOST]/jessica/[streamPath]

  • 该协议传输的是私有格式,第一个字节代表音视频,1为音频,2为视频,后面跟4个字节的时间戳,然后接上字节流(RTMP的VideoTag或AudioTag)

WS-FLV

  • 地址格式:ws://[HOST]/jessica/[streamPath].flv
  • 该协议传输的flv格式的文件流

plugin-jessica's People

Contributors

dependabot[bot] avatar langhuihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.