android.view.SurfaceView.setZOrderMediaOverlay()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(519)

本文整理了Java中android.view.SurfaceView.setZOrderMediaOverlay()方法的一些代码示例,展示了SurfaceView.setZOrderMediaOverlay()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SurfaceView.setZOrderMediaOverlay()方法的具体详情如下:
包路径:android.view.SurfaceView
类名称:SurfaceView
方法名:setZOrderMediaOverlay

SurfaceView.setZOrderMediaOverlay介绍

暂无

代码示例

代码示例来源:origin: stackoverflow.com

if (VERSION.SDK_INT < VERSION_CODES.HONEYCOMB) {
  final SurfaceView fakeView = new SurfaceView(this);
  fakeView.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
  fakeView.setZOrderMediaOverlay(false);

  final CameraView cameraView = (CameraView) this.findViewById(R.id.cameraview); 
  cameraView.setZOrderMediaOverlay(true); 
  cameraView.fakeView = fakeView;
}

代码示例来源:origin: Shirlman/YiPlayer

private void setSubtitlesSurfaceView(SurfaceView surfaceView) {
  mSubtitlesView = surfaceView;
  mSubtitlesView.setZOrderMediaOverlay(true);
  mSubtitlesView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
  mSubtitlesView.invalidate();
}

代码示例来源:origin: amahi/android

private void setUpViews() {
  final ViewStub stub = findViewById(R.id.subtitles_stub);
  mSubtitlesSurface = (SurfaceView) stub.inflate();
  mSubtitlesSurface.setZOrderMediaOverlay(true);
  mSubtitlesSurface.getHolder().setFormat(PixelFormat.TRANSLUCENT);
}

代码示例来源:origin: sealtalk/sealtalk-android

@Override
  public void onClick(View v) {
    try {
      SurfaceView fromView = (SurfaceView) mSPreviewContainer.getChildAt(0);
      SurfaceView toView = (SurfaceView) mLPreviewContainer.getChildAt(0);
      mLPreviewContainer.removeAllViews();
      mSPreviewContainer.removeAllViews();
      fromView.setZOrderOnTop(false);
      fromView.setZOrderMediaOverlay(false);
      mLPreviewContainer.addView(fromView);
      toView.setZOrderOnTop(true);
      toView.setZOrderMediaOverlay(true);
      mSPreviewContainer.addView(toView);
      if(null!= fromView.getTag() && !TextUtils.isEmpty(fromView.getTag().toString())){
        UserInfo userInfo = RongContext.getInstance().getUserInfoFromCache(fromView.getTag().toString());
        TextView userName = (TextView) mUserInfoContainer.findViewById(R.id.rc_voip_user_name);
        userName.setText(userInfo.getName());
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
});

代码示例来源:origin: sealtalk/sealtalk-android

fromView.setZOrderMediaOverlay(false);
toSurfaceView.setZOrderMediaOverlay(true);
toSurfaceView.setTag(CallKitUtils.getStitchedContent(to, REMOTE_FURFACEVIEW_TAG));
((BlinkVideoView) toSurfaceView).setScalingType(RendererCommon.ScalingType.SCALE_ASPECT_FILL);

代码示例来源:origin: sealtalk/sealtalk-android

localView.setZOrderMediaOverlay(false);
localViewContainer.addView(localView);
observerLayout = (RelativeLayout) inflater.inflate(R.layout.rc_voip_observer_hint, null);

代码示例来源:origin: sealtalk/sealtalk-android

FinLog.i(TAG,"onRemoteUserJoined mLocalVideo != null="+(mLocalVideo != null));
if (mLocalVideo != null) {
  mLocalVideo.setZOrderMediaOverlay(true);
  mLocalVideo.setZOrderOnTop(true);
  mSPreviewContainer.addView(mLocalVideo);

代码示例来源:origin: Affectiva/affdexme-android

cameraView.setZOrderMediaOverlay(false);

相关文章