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 AssistantUsed during initialization to set the view size
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
VideoEffectViewHelper.Setting
Use thesetSize(View, float)
setting
-
Constructor Summary
Constructors Constructor and Description VideoEffectViewHelper()
-
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 eventstatic 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 interfacestatic 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 interfacestatic void
setSizeByMediaPlayer(android.view.View view, MediaPlayer mediaPlayer)
Sets Size By MediaPlayer
-
-
-
Method Detail
-
setSize
@Deprecated public static void setSize(android.content.Context context, VideoEffectView videoEffectView, float ratio)
Deprecated.根据宽高比例设置特效视图的宽高值确保video能在界面中最大化显示
- Parameters:
context
- ContextvideoEffectView
- 特效视图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 ratioEnsure 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 ratioEnsure 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 eventbubbleView
-BubbleView
bubble windowefView
- Effect view
-
setSizeByMediaPlayer
public static void setSizeByMediaPlayer(android.view.View view, MediaPlayer mediaPlayer)
Sets Size By MediaPlayer- Parameters:
view
-mediaPlayer
-
-
-