hi,
I am adding or deleting startup stream using rest API or WSE Manager.
This action is actually applied, so it is not visible or visible in the list on the Manager.
But when I use the getStartupStream function on the module I customized, the code seems to only get a list of StartupStream when the server starts. If I add or delete a new StartupStream and restart the server, it will actually be imported well.
In fact, is it normal for Vhost’s getStartupStreams to only get a list of StartupStreams when the server starts? Is there a way to get a list of StartupStream reflected in other real-time? Or is the code I use wrong?
I use getStartupStreams of the Vhost factor of the onHTTPRequest function that extends HttProvider2Base in javaAPI and override.
@Override
public void onHTTPRequest(IVHost Vhost, IHTTPRequest req, IHTTPResponse resp) {
// TODO Auto-generated method stub
//this.liveStreamRecordManager = Vhost.getLiveStreamRecordManager();
//this.appInstance = Vhost.getApplicationInstance("live", "_definst_");
List<StartupStream> startupStreams = Vhost.getStartupStreams();
for (StartupStream startupStream : startupStreams) {
System.out.println("★startupStream Name: "+startupStream.getStreamName());
}
}