icpc / live-v3

Overlay for competitive programming competitions broadcasts
MIT License
45 stars 15 forks source link

Add support for M2tsVideo in ClicsModel #155

Closed cubercsl closed 5 months ago

cubercsl commented 6 months ago

This is our patch used in The 2023 ICPC Asia East Continent Final Contest playing teams' webcam and workstation.

But it is based on v3.1.1. Maybe should rebase to the latest version.

Live Stream

The m2ts videos are provided by vlc running on the teams' workstations. But using mpegts playing mt2s video on browser directly needs CORS, while we can not set this header directly by vlc.

CDS can provide a mode that proxy the request but it may require basic auth. So in practice, we are running another proxy server that uses URLQuery parameters to authenticate and adds CORS header. Maybe we should add basic auth header in mpegts's config.


Update: it has been rebased to the latest version now.

cubercsl commented 6 months ago

advanced.schema.json need be updated

cubercsl commented 6 months ago

Maybe this change is similar to #148 except for the video type. AFAIK, the latest cds support both video type.

kunyavskiy commented 6 months ago

advanced.schema.json need be updated

You can do it with ./gradlew gen and committing corresponding changes.