As you know from the log above, other parameters are set normally, but you can see that the file path part contains null.
I thought nameStr was a unique name for streaming, but it wasn’t. I want to save files by setting different paths for each stream, but I don’t know how to get my name for each stream when I use an auto recorder!
So ultimately, what I’m curious about is finding out each name of the streaming when using an automatic recorder.
Before running the startRecoding function in the code above, is there a way to find out streamName?
I’d appreciate your help.
ps. When streaming starts, receiving stream names from the onPublish method in the StreamListener class works very well.
Before executing the startrecoding function of the onAppCreate function,
I wrote additional codes and tested them, and I was able to check the values.
appInstance.getApplication().getName(); // live
appInstance.getName(); // definst
appInstance.getStreams().getCount(); // 0
The result is that the onAppCreate function runs before the streams are published, so the number of streams published is zero?
If I only provide appInstance, recordParams as a factor for the entire recording, how do I get the information of the published streams before performing that action?
If I write the above code, the wowza server will recognize outputPath by streaming.
However, when creating a physical folder path, it is created as shown in the picture below because it is recognized as the text itself.
This is why I’m trying to get my own stream name (to create by streaming in the path).
Passes only two variables to the startRecoding function for recording automatically for all streaming. In this case, is there any way to get a stream name? Is there only a way to designate and fill it out myself?
Since I am using a translator, my intentions may not be accurately conveyed.
Thanks very much for your help.