Code example for EventBus

Methods: post

0
    public void onEncoderReleased(int trackIndex){
    } 
 
    public void release(){ 
        if(mEventBus != null)
            mEventBus.post(new MuxerFinishedEvent());
    } 
 
    public boolean isStarted(){ 
        return false; 
    } 
 
    /** 
     * Write the MediaCodec output buffer. This method <b>must</b> 
     * be overridden by subclasses to release encodedData, transferring 
     * ownership back to encoder, by calling encoder.releaseOutputBuffer(bufferIndex, false); 
     * 
     * @param trackIndex 
     * @param encodedData 
     * @param bufferInfo