package com.tencent.mm.plugin.appbrand.jsapi.u.b;

import android.media.MediaPlayer;
import android.media.MediaPlayer.OnVideoSizeChangedListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class c$10 implements OnVideoSizeChangedListener {
    final /* synthetic */ c iet;

    c$10(c cVar) {
        this.iet = cVar;
    }

    public final void onVideoSizeChanged(MediaPlayer mediaPlayer, int i, int i2) {
        AppMethodBeat.i(117396);
        ab.i("MicroMsg.AppBrand.SameLayer.AppBrandVideoPluginHandler", "handler onVideoSizeChanged, width:%d, height:%d", new Object[]{Integer.valueOf(i), Integer.valueOf(i2)});
        this.iet.aGH();
        if (this.iet.aGN() && this.iet.iea && this.iet.idR != null) {
            int duration = this.iet.idR.getDuration();
            if (!((this.iet.idS == null || i == this.iet.mVideoWidth) && i2 == this.iet.mVideoHeight && duration == this.iet.iel)) {
                this.iet.idS.L(i, i2, duration);
            }
        }
        this.iet.mVideoWidth = i;
        this.iet.mVideoHeight = i2;
        if (this.iet.idR != null) {
            this.iet.iel = this.iet.idR.getDuration();
        }
        AppMethodBeat.o(117396);
    }
}
