FMLiveSwitchLayoutUtility Class Reference

Utility to assist with managing the layout of a combined video feed. More...

Instance Methods

(instancetype) - init
 

Class Methods

(bool) + floatLocalPreviewWithLayout:videoLayout:localConnectionId:
 Floats the local preview over the combined video feed. More...
 
(bool) + floatLocalPreviewWithLayout:videoLayout:localConnectionId:viewId:
 Floats the local preview over the combined video feed. More...
 
(bool) + floatLocalPreviewWithLayout:videoLayout:localConnectionId:viewId:localViewSink:
 Floats the local preview over the combined video feed. More...
 
(bool) + floatLocalPreviewWithLocalFrame:remoteFrame:videoLayout:localConnectionId:
 Floats the local preview over the combined video feed. More...
 
(FMLiveSwitchLayoutUtility *) + layoutUtility
 

Detailed Description

Utility to assist with managing the layout of a combined video feed.

Method Documentation

◆ floatLocalPreviewWithLayout:videoLayout:localConnectionId:

+ (bool) floatLocalPreviewWithLayout: (FMLiveSwitchLayout *)  layout
videoLayout: (FMLiveSwitchVideoLayout *)  videoLayout
localConnectionId: (NSString *)  localConnectionId 

Floats the local preview over the combined video feed.

Parameters
layoutThe layout.
videoLayoutThe video layout.
localConnectionIdThe local connection identifier.

◆ floatLocalPreviewWithLayout:videoLayout:localConnectionId:viewId:

+ (bool) floatLocalPreviewWithLayout: (FMLiveSwitchLayout *)  layout
videoLayout: (FMLiveSwitchVideoLayout *)  videoLayout
localConnectionId: (NSString *)  localConnectionId
viewId: (NSString *)  viewId 

Floats the local preview over the combined video feed.

Parameters
layoutThe layout.
videoLayoutThe video layout.
localConnectionIdThe local connection identifier.
viewIdThe view id to compare with.

◆ floatLocalPreviewWithLayout:videoLayout:localConnectionId:viewId:localViewSink:

+ (bool) floatLocalPreviewWithLayout: (FMLiveSwitchLayout *)  layout
videoLayout: (FMLiveSwitchVideoLayout *)  videoLayout
localConnectionId: (NSString *)  localConnectionId
viewId: (NSString *)  viewId
localViewSink: (NSObject< FMLiveSwitchIViewSink > *)  localViewSink 

Floats the local preview over the combined video feed.

Parameters
layoutThe layout.
videoLayoutThe video layout.
localConnectionIdThe local connection identifier.
viewIdThe view id to compare with.
localViewSinkThe local view sink.

◆ floatLocalPreviewWithLocalFrame:remoteFrame:videoLayout:localConnectionId:

+ (bool) floatLocalPreviewWithLocalFrame: (FMLiveSwitchLayoutFrame *)  localFrame
remoteFrame: (FMLiveSwitchLayoutFrame *)  remoteFrame
videoLayout: (FMLiveSwitchVideoLayout *)  videoLayout
localConnectionId: (NSString *)  localConnectionId 

Floats the local preview over the combined video feed.

Parameters
localFrameThe local frame.
remoteFrameThe remote frame.
videoLayoutThe video layout.
localConnectionIdThe local connection identifier.

◆ init

- (instancetype) init

◆ layoutUtility

+ (FMLiveSwitchLayoutUtility*) layoutUtility