当前位置: 首页>>代码示例>>Java>>正文


Java VideoRendererGui.update方法代码示例

本文整理汇总了Java中org.webrtc.VideoRendererGui.update方法的典型用法代码示例。如果您正苦于以下问题:Java VideoRendererGui.update方法的具体用法?Java VideoRendererGui.update怎么用?Java VideoRendererGui.update使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.webrtc.VideoRendererGui的用法示例。


在下文中一共展示了VideoRendererGui.update方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onLocalStream

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
@Override
public void onLocalStream(MediaStream localStream) {
    localStream.videoTracks.get(0).addRenderer(new VideoRenderer(localRender));
    VideoRendererGui.update(localRender,
            LOCAL_X_CONNECTING, LOCAL_Y_CONNECTING,
            LOCAL_WIDTH_CONNECTING, LOCAL_HEIGHT_CONNECTING,
            scalingType, true);
}
 
开发者ID:ardnezar,项目名称:webrtc-android,代码行数:9,代码来源:RtcActivity.java

示例2: onAddRemoteStream

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
@Override
public void onAddRemoteStream(MediaStream remoteStream, int endPoint) {
    remoteStream.videoTracks.get(0).addRenderer(new VideoRenderer(remoteRender));
    VideoRendererGui.update(remoteRender,
            REMOTE_X, REMOTE_Y,
            REMOTE_WIDTH, REMOTE_HEIGHT, scalingType, true);
    VideoRendererGui.update(localRender,
            LOCAL_X_CONNECTED, LOCAL_Y_CONNECTED,
            LOCAL_WIDTH_CONNECTED, LOCAL_HEIGHT_CONNECTED,
            scalingType, true);
}
 
开发者ID:ardnezar,项目名称:webrtc-android,代码行数:12,代码来源:RtcActivity.java

示例3: onRemoveRemoteStream

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
@Override
public void onRemoveRemoteStream(int endPoint) {
    VideoRendererGui.update(localRender,
            LOCAL_X_CONNECTING, LOCAL_Y_CONNECTING,
            LOCAL_WIDTH_CONNECTING, LOCAL_HEIGHT_CONNECTING,
            scalingType, true);
}
 
开发者ID:ardnezar,项目名称:webrtc-android,代码行数:8,代码来源:RtcActivity.java

示例4: onRemoteStream

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
@Override
public void onRemoteStream(MediaStream stream) {
    stream.videoTracks.get(0).setEnabled(true);
    if(stream.videoTracks.get(0).enabled())
        Log.d("JANUSCLIENT", "video tracks enabled");
    stream.videoTracks.get(0).addRenderer(new VideoRenderer(remoteRender));
    VideoRendererGui.update(remoteRender, 0, 0, 25, 25, VideoRendererGui.ScalingType.SCALE_ASPECT_FILL, true);
    VideoRendererGui.update(localRender, 72, 72, 25, 25, VideoRendererGui.ScalingType.SCALE_ASPECT_FILL, false);
}
 
开发者ID:Computician,项目名称:janus-gateway-android,代码行数:10,代码来源:EchoTest.java

示例5: updateRenderer

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
public void updateRenderer(RendererSurface rendererSurface, RendererConfig config){
    boolean mainRenderer = RendererSurface.MAIN.equals(rendererSurface);
    VideoRenderer.Callbacks callbacks = mainRenderer ? mainRendererCallback
            :localRendererCallback;

    if (config.coordinates != null) {
        setViewCoordinates((mainRenderer ? remoteCoords : localCoords),
                config.coordinates);
    }
    setRendererMirror(config.mirror, rendererSurface);
    int[] viewCoordinates = mainRenderer ? remoteCoords : localCoords;
    VideoRendererGui.update(callbacks, viewCoordinates[0], viewCoordinates[1], viewCoordinates[2],
            viewCoordinates[3], RendererCommon.ScalingType.SCALE_ASPECT_FILL,
            (mainRenderer ? mainMirror : secondMirror));
}
 
开发者ID:QuickBlox,项目名称:q-municate-android,代码行数:16,代码来源:RTCGLVideoView.java

示例6: onLocalStream

import org.webrtc.VideoRendererGui; //导入方法依赖的package包/类
@Override
public void onLocalStream(MediaStream stream) {
    stream.videoTracks.get(0).addRenderer(new VideoRenderer(localRender));
    VideoRendererGui.update(localRender, 0, 0, 25, 25, VideoRendererGui.ScalingType.SCALE_ASPECT_FILL, false);
}
 
开发者ID:Computician,项目名称:janus-gateway-android,代码行数:6,代码来源:EchoTest.java


注:本文中的org.webrtc.VideoRendererGui.update方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。