本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}