'PLAY - Channel
If (FFMpegVideoView1.IsPlaying = False) Then
FFMpegVideoView1.SetVideoPath(Value)
End If
If (FullScreen = False) Then
'SET - FullScreen
Dim view As JavaObject = Xml.GetView("videoView")
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("setFullScreen", Array(view, 100%x, 100%y))
FullScreen = True
Log("Full...")
Else
'SET - SmallScreen
Dim view As JavaObject = Xml.GetView("videoView")
Dim jo As JavaObject
jo.InitializeContext
jo.RunMethod("setSmallScreen", Array(view, 658, 438))
FullScreen = False
Log("Small...")
End If
#If Java
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.util.Log;
public void setFullScreen(View view, int width, int height){
android.view.ViewGroup.LayoutParams params = view.getLayoutParams();
params.width = width;
params.height = height;
view.setLayoutParams(params);
view.setPadding(0, 0, 0, 0);
}
public void setSmallScreen(View view, int width, int height){
android.view.ViewGroup.LayoutParams params = view.getLayoutParams();
params.width = width;
params.height = height;
view.setLayoutParams(params);
view.setPadding(0, 102, 73, 0);
}
#End if