How to distribute your own binary other than video and audio live

Asked 2 years ago, Updated 2 years ago, 108 views

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

2022-09-30 14:53

1 Answers

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


2022-09-30 14:53

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.