binbat / live777

A very simple, high performance, edge WebRTC SFU
https://live777.pages.dev
Mozilla Public License 2.0
196 stars 22 forks source link

Add api audio and video codec #174

Open a-wing opened 2 months ago

a-wing commented 2 months ago

Stream need has audio and video codec

a-wing commented 2 months ago

Maybe have. codec: vp8 , av1.... and fmtp a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f a

a-wing commented 1 month ago

Before:

{
    "id": "push",
    "createdAt": 1719326206862,
    "publish": {
      "leaveAt": 0,
      "sessions": [
        {
          "id": "08c1f2a0a60b0deeb66ee572bd369f80",
          "createdAt": 1719326206947,
          "state": "connected"
        }
      ]
    },
    "subscribe": {
      "leaveAt": 1719326206862,
      "sessions": []
    }
  },

After:

{
    "id": "push",
    "audio": {
        "codec": "opus",
        "fmtp": "",
    },
    "video": {
        "codec": "h264",
        "fmtp": "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f",
    },
    "createdAt": 1719326206862,
    "publish": {
      "leaveAt": 0,
      "sessions": [
        {
          "id": "08c1f2a0a60b0deeb66ee572bd369f80",
          "createdAt": 1719326206947,
          "state": "connected"
        }
      ]
    },
    "subscribe": {
      "leaveAt": 1719326206862,
      "sessions": []
    }
  },