Part of this is easy, but if you don't have control of the client you are going to have some issues with the seek bar. Most clients use the duration returned in the metadata to set the length of the seek bar length.
Code:
package com.wowza.wms.example.module;
import com.wowza.wms.module.*;
import com.wowza.wms.amf.*;
import com.wowza.wms.client.*;
import com.wowza.wms.request.*;
public class ModuleOverridePlayExample extends ModuleBase {
public void play(IClient client, RequestFunction function,
AMFDataList params) {
AMFDataList customDataList = new AMFDataList();
customDataList.add("play");
customDataList.add(0.0);
customDataList.add("null");
customDataList.add(params.getString(PARAM1));
customDataList.add(new AMFDataItem(5000)); //start 5 seconds from the beginning
customDataList.add(new AMFDataItem(10000)); // play for 10 seconds
customDataList.add(new AMFDataItem(true));
ModuleCore.play(client, function, customDataList);
}
}
Richard