Specifying a stream name when creating a MediaLive Input with the PHP SDK?

0

I tried creating a MediaLive Input using the PHP SDK and it all works fine but when I went to check my newly created Input on the console, the stream name is looking a little weird. On the application name field, it's showing the IP MediaLive auto-generated for me and on the application instance field is the random string I specified and the url ended up looking like this: rtmp://some_ip/MnFiYLkqYRFw1gamkJb64Z4hEAXTtWEr, what I was hoping to see was something similar to when I create an Input with the console like this: rtmp://some_ip/application_name/application_instance

So, I guess my question is how do I properly specify the application name and instance when using the PHP SDK? Because when I checked the docs the only parameter it accepts is a StreamName, I'd really appreciate the help

alexyap
gefragt vor 4 Jahren275 Aufrufe
1 Antwort
0
Akzeptierte Antwort

I just figured it out, all you really need to do is specify it like so:
'StreamName' => 'application_name/application_instance'

alexyap
beantwortet vor 4 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen