0 rating
  • 1
  • 2
  • 3
  • 4
  • 5
Compatible with
  • Android

Azure Live Streaming 1.0.1

Xpand IT

Deliver content to virtually any device at scale with Live streaming from Microsoft Azure Media Services.

Deliver content to virtually any device at scale with Live streaming from Microsoft Azure Media Services.

Features

  • Easy one click setup of Azure Media Services;
  • RTMP or Fragmented MP4 (Smooth Streaming) as ingest protocol;
  • Encoder included with live stream in H.264, AAC using RTMP;
  • Configurable resolutions, framerates and bitrates;
  • Stream is dynamically packaged into all supported protocols:
    • MPEG-DASH
    • HLS version 3
    • HLS version 4
    • HDS
    • Smooth Streaming
  • Instant transmission of stream from live to on-demand.

Usage

You can setup the Azure Media Services very easily

// Initiate a Live Streaming instance with your credentials
var liveStreaming = new LiveStreaming(AccountName, AccountKey);

// Azure requires an Akamai authentication key for CDN
var result = await liveStreaming.ChannelMain(key);

// Or you can use our random key
var result = await liveStreaming.ChannelMain(VideoData.GenerateRandomBytes(16));

var ingestUrl = result.Item1;
var streamUrl = result.Item2; //to use, i.e. http://amsplayer.azurewebsites.net/
var dashUrl = result.Item2 + "(format=mpd-time-csf)"; //package stream into MPEG-DASH
var hlsUrl = result.Item2 + "(format=m3u8-aapl-v3)"; //package stream into HLS version 3

You can use our live encoder to start streaming right away

// Default values - Back camera, 320x240, 30fps, 400kbps
var videoData = new VideoData();
var camera = Camera.Open();
var cameraView = new CameraView(this, camera, videoData);
// Add camera view
topLayout.AddView(cameraView, layoutParams);
videoData.StartRecording(ingestUrl + "myStream1");

When you are done streaming

videoData.StopRecording();
//This will delete ALL used resources
await liveStreaming.CleanupAll();

Requirements

  • Android API 16+
  • Azure account

Release Notes

Version 1.0.0

  • Component created
Be the first to write a review