Skip to main content

You are viewing Agora Docs forBetaproducts and features. Switch to Docs

Media Gateway features

Media Gateway enables users to push content to Agora SD-RTN™ using standard streaming protocols such as RTMP and SRT. The channel host automatically publishes this streamed content to the correct channel. With Media Gateway, you can employ advanced transcoding capabilities on media streams for enhanced distribution.

The following figure shows the overall architecture of Media Gateway:

Product Architecture

Product features

Media Gateway supports the following features:

FeatureDescription
Media inputSupports generating a streaming key through RESTful API or a local encryption algorithm, and pushes the source stream directly to Agora's gateway service. After a successful push, the media stream is automatically played in the channel for remote users.
Multiple media streaming formats/protocols
  • Video codec format: H.264, H.265
  • Audio codec format: AAC
  • Push protocol: RTMP, SRT
  • Media formats: FLV, MPEG-TS
Custom transcoding parametersSupports enabling transcoding for media streams input into the channel. If you enable transcoding, you can set parameters such as resolution, frame rate, bitrate, and whether to enable large and small streams.
Restricted access areaWhen activating Media Gateway, you specify the access area to ensure the transmission quality of the media stream.
Server event notification callbackAgora provides message notification services. After activating Media Gateway, you will receive event notifications.

Applicable scenarios

In ultra-high-definition scenarios, the main signal is generally processed by the content provider and then pushed to Agora through the RTMP protocol (suitable for low bitrates) or the SRT protocol (suitable for high bitrates). Media Gateway enables you to add source streams to SD-RTN™ with low latency while ensuring high stability. Some sample scenarios for the use of Media Gateway include:

ScenarioDescription
Commentary from influencers/celebritiesInject high-definition video streams into interactive channels. Multiple hosts can watch and interact in real time in different places.
Low-latency distributionDistribute content to viewers faster and more reliably than with a CDN.
Recording and live broadcastingThe teacher records the content in advance and injects it into a live classroom. All students and teaching assistants can watch the teacher's content, and students can communicate and interact in real time with each other and and with teaching assistants.
24-hour chat roomBackground music is played 24 hours a day and is not interrupted when switching hosts.
vundefined