Azure Media Services Live Streaming code samples
Warning
Azure Media Services will be retired June 30th, 2024. For more information, see the AMS Retirement Guide.
This article is a listing of code samples for Live Streaming.
Live stream without encoding
Live stream with basic passthrough
This sample shows you how to set up the basic passthrough live event if you only need to broadcast a low-cost UGC channel.
.NET not yet available | Node.JS | Python |
Live stream with standard passthrough
This sample shows you how to use standard passthrough live streaming.
.NET not yet available | Node.JS | Python |
Live stream with encoding
Live stream with 720P standard encoding
This sample shows you how to use live encoding in the cloud with the 720P HD adaptive bitrate encoding preset.
.NET not yet available | Node.JS | Python |
Live stream with 1080P encoding
This sample shows you how to use live encoding in the cloud with the 1080P HD adaptive bitrate encoding preset.
.NET not yet available | Node.JS | Python |
Live stream with low latency and encoding
Live stream with low Latency (LL-HLS) with 720P standard encoding
This sample shows you how to enable low latency live streaming with Apple's LL-HLS protocol and encode with the new 3-layer 720P HD adaptive bitrate encoding preset.
.NET not yet available | Node.JS | Python |
Special scenarios
FFmpeg command line samples for RTMP and Smooth
This sample shows you how to use FFmpeg command lines locally to stream over RTMP or Smooth streaming. It demonstrates various scenarios including audio only, multi-audio, and screen recording.
.NET not yet available | Node.JS | not yet available |
Create a live event with DVR with .NET
This sample demonstrates how to create and use live events and live outputs with DVR.
.NET | Node.JS not yet available | Python not yet available |
Combine with other Azure services
Live stream with standard passthrough with Event Hubs
This sample demonstrates how to use Event Hubs to subscribe to events on the live streaming channel. Events include encoder connections, disconnections, heartbeat, latency, discontinuity, and drift issues.
.NET not yet available | Node.JS | Python |
Get help and support
You can contact Media Services with questions or follow our updates by one of the following methods:
- Q & A
- Stack Overflow. Tag questions with
azure-media-services
. - @MSFTAzureMedia or use @AzureSupport to request support.
- Open a support ticket through the Azure portal.