Wowza Community

Is there way to use wowza transcoder via server-side api?

Hello,

Is there way to use wowza transcoder via server-side api?

Thanks.

There are hooks into the API but there is no direct way to use it outside of Wowza.

Charlie

I’m going to use use it with Wowza only.

Please, advice about code.

class MyStream extends MediaStreamLive{
   private ILiveStreamTranscoder t = LiveStreamTranscoderFactory.createInstance(this,new LiveStreamTranscoderItem("myitem",null));
   public void addVideoData(byte[] data, int offset, int size) {
           t.handlePacket(this,getLastPacket());     
           ...
           byte[] transcodedPacket = ...
   }
}