com.supermap.ar.areffect.utils

Class VideoEffectViewHelper

  • java.lang.Object
    • com.supermap.ar.areffect.utils.VideoEffectViewHelper


  • public class VideoEffectViewHelper
    extends java.lang.Object
    Video effects View Assistant

    Used during initialization to set the view size

    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      static void moveToXY(android.view.MotionEvent event, BubbleView bubbleView, EffectView efView)
      Move the bubble window near the XY value of the event
      static void setSize(android.content.Context context, VideoEffectView videoEffectView, float ratio)
      Deprecated. 
      static void setSize(android.view.View view, float ratio)
      Sets the width and height of the effect view based on the width and height ratio Ensure that video is maximized in the interface
      static void setSize(android.view.View view, float ratio, int width, int height)
      Sets the width and height of the effect view based on the width and height ratio Ensure that video is maximized in the interface
      static void setSizeByMediaPlayer(android.view.View view, MediaPlayer mediaPlayer)
      Sets Size By MediaPlayer
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VideoEffectViewHelper

        public VideoEffectViewHelper()
    • Method Detail

      • setSize

        @Deprecated
        public static void setSize(android.content.Context context,
                                                VideoEffectView videoEffectView,
                                                float ratio)
        Deprecated. 
        根据宽高比例设置特效视图的宽高值

        确保video能在界面中最大化显示

        Parameters:
        context - Context
        videoEffectView - 特效视图
        ratio - 宽高比例
      • setSize

        public static void setSize(android.view.View view,
                                   float ratio)
        Sets the width and height of the effect view based on the width and height ratio

        Ensure that video is maximized in the interface

        Parameters:
        view -
        ratio -
      • setSize

        public static void setSize(android.view.View view,
                                   float ratio,
                                   int width,
                                   int height)
        Sets the width and height of the effect view based on the width and height ratio

        Ensure that video is maximized in the interface

        Parameters:
        view -
        ratio -
      • moveToXY

        public static void moveToXY(android.view.MotionEvent event,
                                    BubbleView bubbleView,
                                    EffectView efView)
        Move the bubble window near the XY value of the event
        Parameters:
        event - Gesture event
        bubbleView - BubbleViewbubble window
        efView - Effect view
      • setSizeByMediaPlayer

        public static void setSizeByMediaPlayer(android.view.View view,
                                                MediaPlayer mediaPlayer)
        Sets Size By MediaPlayer
        Parameters:
        view -
        mediaPlayer -