In Wowza3.5, we have set the following to apply CORS, but this is not applicable.
- make httpHeader.jar and add /lib folder
[httpHeader.java sorce]
package com.vermontinternetdesign.module;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerSession;
import com.wowza.wms.application.*;
import com.wowza.wms.module.*;
import com.wowza.wms.client.*;
import com.wowza.wms.amf.*;
import com.wowza.wms.request.*;
public class httpHeader extends ModuleBase {
public void onAppStart(IApplicationInstance appInstance) { }
public void onHTTPSessionCreate(IHTTPStreamerSession httpSession){ getLogger().info("ModuleHTTPTestPlayStart.onHTTPSessionCreate: "+httpSession.getSessionId()); httpSession.setUserHTTPHeader(“Access-Control-Allow-Origin”, “*”); }
public void doSomething(IClient client, RequestFunction function, AMFDataList params) { }
}
- add a property in /conf/vod/Application.xml
cupertinoUserHTTPHeaders
Access-Control-Allow-Origin: *
I wonder if the setting is wrong or if I can not use CORS in Wowza3.5.
please answer about my question.