com.supermap.ar.areffect

Class ARVideoElement

    • Constructor Detail

      • ARVideoElement

        public ARVideoElement(android.content.Context context)
        The constructor.
        Parameters:
        context -
    • Method Detail

      • isLoopFlag

        public boolean isLoopFlag()
        Gets the loop status
        Returns:
      • setLoopFlag

        public void setLoopFlag(boolean loopFlag)
        Sets whether to loop the animation
        Parameters:
        loopFlag -
      • loadModel

        public void loadModel(int resourceId)
        Loads videos by their ids.
        Parameters:
        resourceId -
      • loadModel

        public void loadModel(java.lang.String resourceUri)
        by videos' uri Loads AR videos' elements
        Parameters:
        resourceUri -
      • loadModel

        public void loadModel(android.media.MediaPlayer mediaPlayer)
        Loads AR videos' elements
        Parameters:
        mediaPlayer -
      • setBackGroundView

        public void setBackGroundView(int resourceId)
        Loads the background view in combination with setMediaPlayer() For example: MediaPlayer mediaPlayer = MediaPlayer.create(this,R.raw.huawei3); videoElement = new ARVideoElement(this); videoElement.setBackGroundView(R.layout.ar_video_key_1920x1080); videoElement.loadModel(mediaPlayer); videoElement.setParentNode(parentElement);
        Parameters:
        resourceId -
      • getBackGroundView

        public int getBackGroundView()
        Gets the background view
        Returns:
      • getMediaPlayer

        public android.media.MediaPlayer getMediaPlayer()
        Gets the player
        Returns:
      • start

        public void start()
        Play the video
      • pause

        public void pause()
        Pauses
      • stop

        public void stop()
        Stops