}
private void readPresentationMode( Widget widget ) {
if( wasEventSent( getId( widget ), EVENT_PRESENTATION ) ) {
String presentationMode = readEventPropertyValueAsString( getId( widget ), EVENT_PRESENTATION, PROPERTY_PRESENTATION );
Presentation newMode = Presentation.valueOf( presentationMode.toUpperCase() );
Video video = ( Video )widget;
video.getAdapter( PlaybackAdapter.class ).getOptions().put( PlaybackOptions.PRESENTATION, newMode );
notifyListenersAboutPresentationModeChange( newMode, video );
}
}