@Override
public void onStateChanged(StateChangeEvent event) {
super.onStateChanged(event);
final VMediaBase widget = getWidget();
final AbstractMediaState state = getState();
setAltText(state.altText); // must do before loading sources
widget.setAutoplay(state.autoplay);
widget.setMuted(state.muted);
widget.setControls(state.showControls);