com.bramosystems.oss.player.core.client.impl.WinMediaPlayerImplBase.java Source code

Java tutorial

Introduction

Here is the source code for com.bramosystems.oss.player.core.client.impl.WinMediaPlayerImplBase.java

Source

/*
 * Copyright 2009 Sikirulai Braheem
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.bramosystems.oss.player.core.client.impl;

import com.google.gwt.core.client.JavaScriptObject;

/**
 * Native implementation of the WinMediaPlayer class. It is not recommended to
 * interact with this class directly.
 *
 * @author Sikirulai Braheem
 */
public class WinMediaPlayerImplBase extends JavaScriptObject {

    protected WinMediaPlayerImplBase() {
    }

    public static native WinMediaPlayerImplBase getPlayer(String playerId) /*-{
                                                                           return $doc.getElementById(playerId);
                                                                           }-*/;

    public final native String getPlayerVersion() /*-{
                                                  try {
                                                  return this.versionInfo;
                                                  } catch(e) {return null;}
                                                  }-*/;

    public final native void close() /*-{
                                     try {
                                     this.close();
                                     } catch(e){} // suppress exp...
                                     }-*/;
}