Package mpjp.client

Class MPJPResources.MPJPAudioResource

java.lang.Object
mpjp.client.MPJPResources.MPJPAudioResource
Enclosing class:
MPJPResources

public static class MPJPResources.MPJPAudioResource
extends java.lang.Object
An audio resource implemented as a native JavaScript Audio element GWT doesn't have audio support and needs to be implemented as native (JavaScript) method calls. Audio resources are played by invoking their play() method
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) com.google.gwt.core.client.JavaScriptObject audio  
  • Constructor Summary

    Constructors 
    Constructor Description
    MPJPAudioResource​(java.lang.String name)  
  • Method Summary

    Modifier and Type Method Description
    void play()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • audio

      com.google.gwt.core.client.JavaScriptObject audio
  • Constructor Details

  • Method Details

    • play

      public void play()