question

RutujaMestri-5056 avatar image
0 Votes"
RutujaMestri-5056 asked LimitlessTechnology-2700 answered

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

Hi @XavierPouyat-MSFT,

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @RutujaMestri-5056,

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://docs.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 : )

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.