Class MediaPlayer

  • All Implemented Interfaces:
    Container

    public class MediaPlayer
    extends Widget
    Media player Widget, embedding a MediaButton and its controls.
    See Also:
    #MediaPlayer(int, Scene, GLMediaPlayer, Uri, int, float, boolean, float, List)
    • Field Detail

      • FixedSymSize

        public static final com.jogamp.math.Vec2f FixedSymSize
      • SymSpacing

        public static final com.jogamp.math.Vec2f SymSpacing
      • CtrlCellCol

        public static final com.jogamp.math.Vec4f CtrlCellCol
    • Constructor Detail

      • MediaPlayer

        public MediaPlayer​(int renderModes,
                           Scene scene,
                           GLMediaPlayer mPlayer,
                           Uri medium,
                           float aratio,
                           boolean letterBox,
                           float zoomSize,
                           boolean enableStills,
                           List<Shape> customCtrls)
        Constructs a MediaPlayer, i.e. its shapes and controls.
        Parameters:
        renderModes - Graph's Region render modes, see create(..).
        scene - the used Scene to query parameter and access rendering loop
        mPlayer - fresh GLMediaPlayer instance owned by this MediaPlayer, may be customized via e.g. GLMediaPlayer.setTextureMinMagFilter(int[]).
        medium - Uri stream source, either a file or network source
        aratio - aspect ratio of the resulting Shape, usually 16.0f/9.0f or 4.0f/3.0f, which also denotes the width of this shape while using height 1.0.
        letterBox - toggles GLMediaPlayer.setARatioLetterbox(boolean, Vec4f) on or off
        zoomSize - zoom-size (0..1] for zoom-out control
        enableStills - pass true to enable still images on the time slider on mouse-over, involves a 2nd internal GLMediaPlayer instance
        customCtrls - optional custom controls, maybe an empty list