I have two Azure Media Streaming Endpoints defined: the default endpoint that was created before September 11 2014 and does not support https, and a new streaming endpoint that was created after September 11 2014 and does support https.
I have removed all streaming units from the default streaming endpoint and have turned the default streaming endpoint off. The new streaming endpoint is enabled and has a single streaming unit.
When I create a Locator for my asset I need the locator to return the base uri of the new streaming endpoint, however it returns the base uri of the default streaming endpoint. For example:
var locator = mediaContext.Locators.CreateLocator(LocatorType.OnDemandOrigin, asset, policy, DateTime.UtcNow.AddMinutes(-5)); // locator.BaseUri == http://example.origin.mediaservices.windows.net // This uri points to the default streaming endpoint
How do I specify which streaming endpoint to use when creating a new locator for my asset?