public void onHTTPRequest(IVHost vhost, IHTTPRequest req, IHTTPResponse resp) {
String app = “live”;
String streamName = “test1.stream”;//test.stream is active
if (params.containsKey(“app”))
app = params.get(“app”).get(0);
if (params.containsKey(“stream”))
streamName = params.get(“stream”).get(0);
IApplicationInstance appInstance = vhost.getApplication(app).getAppInstance(“definst”);
Stream stream = (Stream)appInstance.getProperties().getProperty(streamName);
java.util.List itemList=stream.getPlaylist();
///////
i want to get playlist, but stream is null forever.how to get live stream ?
please help me. thanks.