class MediaDepartureEvent extends MediaEvent {
    public MediaDepartureEvent(Object source) {
        super(source);
    }

    public static MediaDepartureEvent getInstance(Object source, OnStreamChangedHookParam hookParam, MediaServer mediaServer){<FILL_FUNCTION_BODY>}
}

        MediaDepartureEvent mediaDepartureEven = new MediaDepartureEvent(source);
        mediaDepartureEven.setApp(hookParam.getApp());
        mediaDepartureEven.setStream(hookParam.getStream());
        mediaDepartureEven.setSchema(hookParam.getSchema());
        mediaDepartureEven.setMediaServer(mediaServer);
        return mediaDepartureEven;
    
<methods>public void <init>(java.lang.Object) ,public java.lang.String getApp() ,public com.genersoft.iot.vmp.media.bean.MediaServer getMediaServer() ,public java.lang.String getSchema() ,public java.lang.String getStream() ,public void setApp(java.lang.String) ,public void setMediaServer(com.genersoft.iot.vmp.media.bean.MediaServer) ,public void setSchema(java.lang.String) ,public void setStream(java.lang.String) <variables>private java.lang.String app,private com.genersoft.iot.vmp.media.bean.MediaServer mediaServer,private java.lang.String schema,private java.lang.String stream