构建Myntra的视频平台:第4部分

There were other elements like comments etc too which we are not covering in this article in order to simplify it.

还有其他一些元素,比如评论等,我们在本文中没有涉及,以便简化内容。

Host App

主机应用程序

We created an app for the Hosts / Influencers to use and do the livestream. Hosts can run, manage, request to host livestream in slots, practise in mock livestreams etc.

我们为主持人/影响者创建了一个应用程序,供其使用和进行直播。主持人可以运行、管理、请求在时间段内进行直播,还可以在模拟直播中进行练习等。

One challenge with livestream is the host dropping off because of bad internet connection, device issues. We have handled this gracefully and show a message to our live audience about the same and don’t break the livestream. So we are decoupled from the host ‘s internet connection, issues on that side don’t break our livestreams.

直播的一个挑战是主持人因为网络连接不好、设备问题而掉线。我们已经优雅地处理了这个问题,并向我们的直播观众显示了一条消息,告知他们这个问题,并且不会中断直播。所以我们与主持人的网络连接是解耦的,那边的问题不会影响我们的直播。

We monitor and proactively let our hosts know if battery level is low, device has heated etc so that they are well aware of the issues and can respond accordingly.

我们会监控并主动通知主持人电池电量低、设备发热等问题,以便他们充分了解问题并做出相应的回应。

Ingestion

摄入

Imagine ingestion as the entry point for your livestream. It’s the software or hardware that captures your raw video and audio feed, often from a camera, microphone, or gameplay capture software. This feed is then sent to the next stage in the pipeline.

想象一下摄入是你的直播的入口点。它是从相机、麦克风或游戏录制软件等设备中捕获原始视频和音频信号的软件或硬件。然后将这个信号发送到管道中的下一个阶段。

The primary requirement of this component is to give the ability to a host to join a video call and start the live stream.

此组件的主要要求是使主机能够加入视频通话并开始直播。

  • This component would expose hooks to start or stop recording of a video call.
  • 该组件将公开钩子,用于启动或停止视频通话的录制。
  • It will break the continuous video stream into small segments.
  • 它会将连续的视频流分成小段。
  • These segments will be stored for permanent storage.
  • 这些片段将被永久存储。
  • It will inform the Transcoder responsible for transcoding the same and generating the live stream as when the segments are generated.
  • 当生成片段时,它将通知负责转码并生成直播流的转码器。

We use WebRTC for ingestion as it allows for low latency ingestion and allows multiple hosts to b...

开通本站会员,查看完整译文。

ホーム - Wiki
Copyright © 2011-2024 iteam. Current version is 2.139.0. UTC+08:00, 2024-12-27 15:56
浙ICP备14020137号-1 $お客様$