s5projects / csgo-broadcast Goto Github PK
View Code? Open in Web Editor NEWThis project forked from theikkila/csgo-broadcast
DEPRECATED. Use https://github.com/FlowingSPDG/gotv-plus-go insted.
Home Page: https://flowing.tokyo
This project forked from theikkila/csgo-broadcast
DEPRECATED. Use https://github.com/FlowingSPDG/gotv-plus-go insted.
Home Page: https://flowing.tokyo
rcvage,rtdelay thing(which is stable with value "2")
According to https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Broadcast ,it says :
rtdelay - the number of seconds since the select FULL fragment has been received
rcvage - the number of seconds since the server received the latest FULL fragment
rtdelay は"選択された"fragmentが受信されてからの秒数(選択とは...??)
rcvage は最後のFULL fragmentを受信してからの秒数(恐らく重要じゃない)
rtdelayの方が重要そうだが、「選択された」の意味がわからない
何が正常な値か不明、GO言語版確認
恐らくrcvageと同じ?
存在しないfragを取得しようとしているのが原因?
バイナリデータとして保持してすぐ返せるようにする
Frag jumping for replay and demo-purposes
maybe hidden option or use fake-frag?
e.g. e.g. use "100" frag when client requested "51" fragment after "50" frag
so client jumps 50f to 100f
save/load機能の追加、syncの調整
装飾を付ける
サーバーレスにしたい
フロントエンドJSでやった方が楽か?
/publicを設置してフロントエンドJSでa hrefを書き換える
rtdelay: 1, rcvage: 1, を解決する
rtdelayは選択されたFullフラグの受信からの秒数
rcvageは最後のfullフラグからの秒数
c, b, f, a
f = req.query.fragment
playcast http://URLURL.example.com/match/s1n1 f1000
will make request against http://URLURL.example.com/match/s1n1/sync?fragment=1000
Ignore empty fragments,which is POSTed while rebooting server
ゲーム開始と同時にsyncを保存してそこから読み出せるようにする(DEMO感覚で再生出来るようにする)
指定した場所から再生できるようにする
?endtick= などなど
2つ以上のmatchがあった時にURLgaokasikunaru
When client connects GOTV+ server directly,its fine
but If connect with cdn,it starts buffering. probably /sync issue
あわよくばクラス化して使いまわしたい
// res.header('Cache-Control', 'max-age=0');
// res.header('Cache-Control', 'no-cache');
/{token}/{fragment_number}/start
/{token}/{fragment_number}/full?tick=1882
/{token}/{fragment_number}/delta?endtick=2144
?以降の文字列を処理できるようにする
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.