Facing issue while playing new live streaming url in azure media player after stopping and starting the live stream event

Rutuja Mestri 61 Reputation points
2021-09-21T16:30:26.04+00:00

Hi @Xavier Pouyat ,

I wanted to create a new live streaming url for the same event after stopping it and starting it again via code.

So for this, once the event is stopped and started again I am creating a new asset as well as locator such that new streaming urls can be generated via code. But the newly generated urls is not working in azure media player.

I also wanted to persist old urls such that user can view it after live event is stopped via urls as it is recorded in assets.
So I was not deleting the existing live output, assets and locators via client.LiveOutputs.DeleteAsync, etc calls

Code to create new asset with new name
Asset asset = await _client.Assets.GetAsync(_config.ResourceGroup, _config.MediaServiceAccountName, assetName);
if (asset == null)
{
asset = await _client.Assets.CreateOrUpdateAsync(_config.ResourceGroup, _config.MediaServiceAccountName, assetName, new Asset());
}

Code to create new locator with new name
locator = await _client.StreamingLocators.CreateAsync(_config.ResourceGroup,
_config.MediaServiceAccountName,
drvStreamingLocatorName,
new StreamingLocator
{
AssetName = assetName,
StreamingPolicyName = PredefinedStreamingPolicy.ClearStreamingOnly,
Filters = filters // Associate the dvr filter with StreamingLocator.
});

fetch live streaming urls
List<string> manifests = BuildManifestPaths(scheme, hostname, locator.StreamingLocatorId.ToString(), manifestName);

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,568 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,506 Reputation points
    2021-09-22T09:14:37.02+00:00

    Hello @Rutuja Mestri ,

    As an administrator, you might need to set up a VPN to connect your corporate network for these apps to work seamlessly. Once that's complete, people in your organization can schedule and attend live events.

    Microsoft Stream requires connectivity to the internet. All endpoints listed on Office 365 endpoints for Microsoft Stream need to be reachable by users of Microsoft Stream within your organization's network.

    To get a video feed for an External app or device produced live event sent to Microsoft Stream from your encoder, you'll need the following IP ranges and ports open in your network's firewall:

    Domains: *.channel.media.azure.net
    Ports: 1935/2935/1936/2936 (for RTMP and RTMPS)

    In order to troubleshoot errors in live events in Microsoft Stream, do follow the below link.

    https://learn.microsoft.com/en-us/stream/live-event-troubleshooting#common-error-codes

    Hope this answers all your queries, if not please do repost back.
    If an Answer is helpful, please click "Accept Answer" and upvote it : )

    0 comments No comments