I'm trying to use Azure Media Services to live stream an IP cam through OBS.
So I'll try to describe my setup. I added a new Media Service via the Azure Portal. It has it's own storage account. Still in the portal in that Media Service I choose 'Browse Channels'. Here I create a new channel, I tried Live Encoding and Pass Through. I get the same result with both. So the channel is created, I wait until it is started and I open that blade of the channel.
I copy the Primary Injest endpoint and copy that in the settings of OBS, as a stream key I use the name of the channel/account (I picked the same name for both) and start streaming from OBS.
I then click more in the top right of the blade and pick 'Watch preview'. A new blade opens with a player with an error in it.
When I copy the playback url and open it in VLC it plays correctly for roughly 30 seconds.
Now if I add a new Program back in the Channel Blade it adds it, and starts it up. When started I open the Program Blade and get a loading screen which doesn't end. Looking in the network tab of the developer tools, no errors are present and no open requests.
When I refresh the page I sometimes get the following:
I don't like the red icon but okay. I click the locator and get this:
Clicking the blue box opens a new Blade with a generic error:
With the following error in the dev console:
When trying to open the url from the Locator Blade or the Program Blade in VLC it doesn't open.
I once had the problems I'm having now, but a couple of days later they were resolved without action from my side.
Now I'm having the same problems again.
I tried recreating everything from scratch, but I get the same errors.
From the comment, it seems that all the problems were solved now.
Here is just my experience which may answer your question. I used to have the same issue, and finally I found that I need to start the stream endpoint. At least one stream endpoint needs to be started before we can provide a video streaming service.
If you want to preview the live stream, you need to start the stream endpoint too, as all the stream content will be delivered from stream endpoints.
Update:
You can start a stream endpoint on the portal: