er = null;

    // Video renderer ----

    // Video player ctx
    let videoPlayerCtx = null;

    const currentVideoSize = {
        width: -1,
        height: -1
    }

    // Used to paint video frames
    let animFrame = null;
   
    // Last render time
    let wcLastRender = 0;
    const RENDER_VIDEO_EVERY_MS = 10;

    let videoRendererBuffer = null;

    // Jitter buffers
    let wtVideoJitterBuffer = null;
    let wtAudioJitterBuffer = null;

    // Used to check latency
    let latencyAudioChecke