In order to build an online game viewing system, we are thinking of uploading our own binary with keystrokes recorded in real time and distributing it live to many and unspecified spectators.
Tried HLS distribution in video.js -Qiita
With this in mind, CentOS 7.5 successfully tested using ffmpeg to distribute mp4 video files in HLS format.
I would like to apply this mechanism to distribute my own binary, but ffmpeg doesn't seem to be able to encode my own binary.
Could you advise me if I should do something to disguise my own binary as mp4 format, or if I should use a different method instead of using HLS in the first place?
The point is that when the game started, the game was not over, so I would like to upload keystrokes during the game and distribute them to the spectators in almost real time.
ffmpeg
When I first looked into this question, I heard that there is a technology called WebRTC, which is very complicated, but there are people who put it together in a service package that can be used for free on a small scale, and it is offered under the name SkyWay.
There was a slide like this.
The ultimate gaming communication protocol "WebRTC"
How and How Online Games Work
None of the detailed and unreachable WebRTC (such as API)
Other WebRTC SFU Sora manufacturers have compiled the WebRTC documentation as follows:
WebRTC Kotohajime
Detailed WebRTC
The Future of WebRTC
Among the above, the techniques associated with the keywords "data channel" and "signaling" are likely to be the ones you are looking for.
"By the way, on the game distribution platform ""Steam,"" a service called ""Steam Broadcast,"" which watches friends play, is beta-testing."This also seems to be using WebRTC technology.
Steam broadcast
There seems to be another approach like this.
Enjoy the e-sports craze in HTML5 games. Add watching API and demo games to Liberapp
582 PHP ssh2_scp_send fails to send files as intended
620 Uncaught (inpromise) Error on Electron: An object could not be cloned
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.