Package com.google.gwt.media.client

Examples of com.google.gwt.media.client.Video


        return clone;
    }

    @Override
    public Widget cloneDisplay(Map<String, Object> formData) {
        Video v = Video.createIfSupported();
        if (v == null) {
            return new Label(notSupported.getText());
        }
        populate(v);
        Object input = getInputValue(formData);
        if (v != null && input != null) {
            String url = input.toString();
            v.setSrc(url);
            if (url.endsWith(".ogv")) {
                v.getElement().setPropertyString("type", "video/ogg");
            } else if (url.endsWith(".mpeg") || url.endsWith(".mpg")) {
                v.getElement().setPropertyString("type", "video/mpeg");
            } else if (url.endsWith(".avi")) {
                v.getElement().setPropertyString("type", "video/avi");
            }
        }
        super.populateActions(v.getElement());
        return v;
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.media.client.Video

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.