当前位置: 首页 > news >正文

行业网站推广外包天翼云主机 网站服务器

行业网站推广外包,天翼云主机 网站服务器,如何建设好网站,国外做测评的网站EglBase是什么#xff1f; 它提供了一个接口#xff0c;用于在Android平台上创建和管理EGL#xff08;嵌入式系统图形库#xff09;上下文#xff0c;以便在WebRTC中进行图像和视频的处理和渲染。 Capturer, Source, Track, Sink分别是什么#xff1f; Capturer#xff…EglBase是什么 它提供了一个接口用于在Android平台上创建和管理EGL嵌入式系统图形库上下文以便在WebRTC中进行图像和视频的处理和渲染。 Capturer, Source, Track, Sink分别是什么 Capturer采集器是指用于采集音频或视频数据的设备或软件。它可以是麦克风、摄像头或其他采集设备。Source源是指从采集器获取的原始音频或视频数据。它是数据的起点并可能包含噪音、干扰或其他不必要的信息。Track跟踪器是指对源数据进行处理和分析的组件。它可以包括音频或视频的编码、滤波、分割、特征提取等算法和技术。Sink接收器是指从跟踪器输出的经过处理的音频或视频数据的目标或目的地。它可以是扬声器、显示器或其他接收设备。 activity_rtc.xml ?xml version1.0 encodingutf-8? androidx.constraintlayout.widget.ConstraintLayout xmlns:androidhttp://schemas.android.com/apk/res/androidxmlns:apphttp://schemas.android.com/apk/res-autoxmlns:toolshttp://schemas.android.com/toolsandroid:layout_widthmatch_parentandroid:layout_heightmatch_parentandroid:paddingdimen/dp_20org.webrtc.SurfaceViewRendererandroid:idid/localViewandroid:layout_widthmatch_parentandroid:layout_height0dpapp:layout_constraintHeight_percent0.5app:layout_constraintLeft_toLeftOfparentapp:layout_constraintTop_toTopOfparent //androidx.constraintlayout.widget.ConstraintLayoutRtcActivity.java import android.app.Activity; import android.os.Bundle; import android.util.Log;import androidx.annotation.Nullable;import org.webrtc.Camera1Enumerator; import org.webrtc.EglBase; import org.webrtc.PeerConnectionFactory; import org.webrtc.SurfaceTextureHelper; import org.webrtc.SurfaceViewRenderer; import org.webrtc.VideoCapturer; import org.webrtc.VideoSource; import org.webrtc.VideoTrack;public class RtcActivity extends Activity {private static final String TAG RtcRemoteActivity;Overrideprotected void onCreate(Nullable Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_rtc);// factory static initPeerConnectionFactory.initialize(PeerConnectionFactory.InitializationOptions.builder(this).createInitializationOptions());PeerConnectionFactory.Options options new PeerConnectionFactory.Options();// factory createPeerConnectionFactory peerConnectionFactory PeerConnectionFactory.builder().setOptions(options).createPeerConnectionFactory();// create videoCapturerCamera1Enumerator camera1Enumerator new Camera1Enumerator(false);// false输出到surfaceString[] deviceNames camera1Enumerator.getDeviceNames();VideoCapturer videoCapturer null;for (String deviceName : deviceNames) {if (camera1Enumerator.isFrontFacing(deviceName)) {VideoCapturer capturer camera1Enumerator.createCapturer(deviceName, null);if (capturer ! null) {videoCapturer capturer;break;}Log.e(TAG, onCreate: create capturer fail);return;}}if (videoCapturer null) {return;}// create videoSourceVideoSource videoSource peerConnectionFactory.createVideoSource(videoCapturer.isScreencast());// init videoCapturerEglBase.Context eglBaseContext EglBase.create().getEglBaseContext();SurfaceTextureHelper surfaceTextureHelper SurfaceTextureHelper.create(surfaceTexture, eglBaseContext);videoCapturer.initialize(surfaceTextureHelper, this, videoSource.getCapturerObserver());videoCapturer.startCapture(480, 640, 30);// width, height, frame// create videoTrackVideoTrack videoTrack peerConnectionFactory.createVideoTrack(videoTrack-1, videoSource);// get show viewSurfaceViewRenderer localView findViewById(R.id.localView);localView.setMirror(true);// 镜像localView.init(eglBaseContext, null);// link track to view so that data show in viewvideoTrack.addSink(localView);} }
http://www.pierceye.com/news/93131/

相关文章:

  • 访问国外的网站很慢wordpress 电商主题
  • 免费收录网站推广wordpress打开速度分析
  • 成都网站运营wordpress后台
  • 班级建设网站wordpress获取分类的文章
  • 北京建设官方网站常州做网站那家快
  • 网站建设源码包射阳网页设计
  • 做企业网站备案都需要什么织梦 安装网站
  • 查询网站收录命令用wordPress搭建图片库
  • 网站开发的验收标准给几个网址谢谢
  • 手表网站大全网络推广竞价
  • 中创高科官方网站wordpress 页面添加js
  • 平台网站怎么做专业网站设计公司排名
  • 网站开发公司 重庆百度seo标题优化软件
  • wordpress 导入主题网站建设优化广告流量
  • 网店装修网站房屋装修设计费一般多少
  • 微信公众平台制作网站设计网站页面要怎么切图
  • 个人网站 备案 类型小红书笔记推广
  • 门户网站怎么创建网页制作步骤php
  • 六师五家渠市建设局网站wordpress 定时发布插件
  • 深圳外贸网站外贸网站建设安阳网站建设服务
  • wdcp 网站建设做民宿推广都有哪些网站
  • 常见的网站开发环境网站建设的结构
  • 贵阳网站推广优化公司做网站的公司搞什么活动
  • 安徽平台网站建设制作坪山网站设计的公司
  • 如何做挂qq的网站2017网站建设
  • wordpress语言切换网站保定广告设计公司
  • 做网站需要走公司吗运行一个网站要多少钱
  • 怎样可以免费做网站wap网站软件
  • 织梦手机网站免费模板漳州城乡建设局网站
  • 厦门建设网站的公司php除了写网站吗