Wowza Community

How to use PushPublishHTTPCupertinoAkamaiHandler

Hi, i want to push dynamic streams do Akamai, i’m trying to use PushPublishHTTPCupertinoAkamaiHandler, but i’m getting the error:

Exception in thread "PushPublishHTTPCupertinoAkamaiHandler-efgh" java.lang.NullPointerException 
	at com.wowza.wms.pushpublish.protocol.cupertino.PushPublishHTTPCupertino.createOutputItem(PushPublishHTTPCupertino.java:888)
	at com.wowza.wms.pushpublish.model.PushPublishHTTPPusher$HTTPPoller.run(PushPublishHTTPPusher.java:284)

And here is the module that i’m trying to implement:

public void onPublish(IMediaStream stream, String streamName, boolean isRecord, boolean isAppend) {
	String publishStreamName = EventialsTools.clearStreamName(streamName);
	try {
		String playbackStreamName = resolveStreamName.resolveOrGetAlias(publishStreamName);

		IApplicationInstance appInstance = stream.getStreams().getAppInstance();

		synchronized (publishers) {
			logger.Info("PushAkamai", "Start push to akamai.");

			PushPublishHTTPCupertinoAkamaiHandler publisher = new PushPublishHTTPCupertinoAkamaiHandler();
			publisher.setAppInstance(appInstance);
			publisher.setSrcStream(stream);
			publisher.setSrcStreamName(publishStreamName);

			HashMap<String, String> dataMap = new HashMap<String, String>();

			dataMap.put("streamName", String.format("%s", playbackStreamName));
			dataMap.put("akamai.streamId", "000000");
			dataMap.put("akamai.hostId", "xxxxx-i");

			publisher.load(dataMap);

			publisher.
			publisher.setDebugLog(true);

			publisher.connect();
			publishers.put(stream, publisher);
		}
	} catch (Exception e) {
		logger.Error("PushAkamai", "Failed to push to akamai.", e);
	}
}

I fixed the NullPointerException with:

PushPublishHTTPCupertinoAkamaiHandler publisher = new PushPublishHTTPCupertinoAkamaiHandler();

publisher.init(appInstance, streamName, stream, profileMap, entryMap, null, false);

But the chunklist.m3u8 returned from Akami returns http 404 code.

Any ideas of what happening here?