Hello, I am recording an MP4 with AMF metadata in Wowza from my incoming RTMP stream. I know wowza can restream this MP4 as an HLS stream, but how do I get the metadata out of this file for conversion to ID3?
Do I just use the standard IHTTPStreamerCupertinoLivePacketizerDataHandler2 and get the data in the onFillChunkDataPacket method?
I wound up extending IHTTPStreamerCupertinoVODActionNotify .
I started from the example here:
/*
* This code and all components (c) Copyright 2006 - 2018, Wowza Media Systems, LLC. All rights reserved.
* This code is licensed pursuant to the Wowza Public License version 1.0, available at www.wowza.com/legal.
*/
package com.wowza.wms.plugin;
import java.io.File;
import com.wowza.wms.application.IApplicationInstance;
import com.wowza.wms.httpstreamer.cupertinostreaming.file.IHTTPStreamerCupertinoIndex;
import com.wowza.wms.httpstreamer.cupertinostreaming.file.IHTTPStreamerCupertinoIndexItem;
import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.HTTPStreamerApplicationContextCupertinoStreamer;
import com.wowza.wms.httpstreamer.cupertinostreaming.httpstreamer.IHTTPStreamerCupertinoVODActionNotify;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerCupertino;
import com.wowza.wms.httpstreamer.cupertinostreaming.livestreampacketizer.LiveStreamPacketizerCupertinoChunk;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerApplicationContext;
import com.wowza.wms.httpstreamer.model.IHTTPStreamerSession;
import com.wowza.wms.logging.WMSLogger;
import com.wowza.wms.logging.WMSLoggerFactory;
import com.wowza.wms.logging.WMSLoggerIDs;
This file has been truncated. show original
And then wound up including an override for this method to do the injection of metadata as ID3 tags:
public void onFillChunkDataPacket(IHTTPStreamerCupertinoIndex index, IHTTPStreamerCupertinoIndexItem indexItem,
LiveStreamPacketizerCupertinoChunk chunk, boolean arg3, AMFPacket packet, ID3Frames id3Frames) {
...
}