Code:
package com.wowza.wms.example.module;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.module.*;
import com.wowza.wms.request.*;
public class ModuleOverridePlayRemapStream extends ModuleBase {
public void play(IClient client, RequestFunction function,
AMFDataList params) {
getLogger().info("Overriding Play");
String streamName = getParamString(params, PARAM1);
if (streamName.equalsIgnoreCase("test"))
params.set(PARAM1, "sample.mp4");
invokePrevious(client, function, params);
}
}
- Click here, if you are having problems or would like to discuss this article.
- Leave a comment below, if there is some aspect of this article you would like to see changed or improved.


Article List
Categories
Wowza Media