-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ConnectSDK/lgcast
Added LG Cast for iOS
- Loading branch information
Showing
14 changed files
with
761 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
RemoteCameraControl | ||
============= | ||
|
||
The RemoteCameraControl capability protocol serves to define the methods required for using | ||
the mobile camera for the LG TV. | ||
|
||
Methods | ||
------- | ||
|
||
\- (id<:doc:`RemoteCameraControl <ios-remotecameracontrol>`>) **remoteCameraControl** | ||
|
||
\- (:doc:`CapabilityPriorityLevel <ios-capabilityprioritylevel>`) **remoteCameraControlPriority** | ||
|
||
\- (UIView \*) **startRemoteCamera** | ||
Requests to start the remote camera. | ||
|
||
- Default Camera Settings: Front | ||
|
||
- Default Sound Settings: With Sound | ||
|
||
**Returns:** | ||
|
||
- UIView - Returns an object for the UIView created to show the camera preview. | ||
|
||
\- (UIView \*) **startRemoteCameraWithSettings**:(nullable NSDictionary<NSString \*, id> \*) *settings* | ||
Requests to start the remote camera after setting up the camera. | ||
|
||
- kRemoteCameraSettingsMicMute: Mute setting | ||
|
||
- kRemoteCameraSettingsLensFacing: Front/rear camera settings | ||
|
||
**Parameters:** | ||
|
||
- settings – Camera settings | ||
|
||
**Returns:** | ||
|
||
- UIView - Returns an object for the UIView created to show the camera preview. | ||
|
||
\- (void) **stopRemoteCamera** | ||
Requests to stop the remote camera | ||
|
||
\- (void) **setLensFacing**:(int)\ *lensFacing* | ||
Sets the front/rear camera lens use. | ||
|
||
- Front camera settings: RemoteCameraLensFacingFront (Default) | ||
|
||
- Rear camera settings: RemoteCameraLensFacingBack | ||
|
||
**Parameters:** | ||
|
||
- lensFacing – Camera lens direction | ||
|
||
\- (void) **setMicMute**:(BOOL)\ *micMute* | ||
Sets the mute function of the microphone. (Default: NO) | ||
|
||
**Parameters:** | ||
|
||
- micMute – Microphone mute settings | ||
|
||
\- (void) **setRemoteCameraDelegate**:(__weak id<RemoteCameraControlDelegate>)\ *delegate* | ||
Registers a delegate to receive events while running the remote camera. | ||
|
||
**Parameters:** | ||
|
||
- delegate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
RemoteCameraControlDelegate | ||
============= | ||
|
||
RemoteCameraControlDelegate allows your app to receive remote camera status information. | ||
|
||
Methods | ||
------- | ||
|
||
\- (void)remoteCameraDidPair | ||
Calls when the remote camera and TV are first connected (You have to guide the user to accept the connection on the TV.) | ||
|
||
\- (void)remoteCameraDidStart:(BOOL)\ *result* | ||
Calls to pass success or failure of connection with TV after starting remote camera function | ||
|
||
**Parameters:** | ||
|
||
- result – Connection result with TV | ||
|
||
\- (void) **remoteCameraDidStop**:(BOOL)\ *result* | ||
Calls to pass the result of a remote camera stop request. | ||
|
||
**Parameters:** | ||
|
||
- result – Remote camera stop result | ||
|
||
\- (void) **remoteCameraDidPlay** | ||
Calls when data transmission starts by requesting remote camera execution from TV. | ||
|
||
\- (void) **remoteCameraDidChange**:(RemoteCameraProperty)\ *property* | ||
Calls when a camera setting is changed by TV App request. | ||
For the property types, refer to :doc:`RemoteCameraProperty <ios-remotecameraproperty>`. | ||
|
||
**Parameters:** | ||
|
||
- property – Remote camera property | ||
|
||
\- (void) **remoteCameraErrorDidOccur**:(RemoteCameraError)\ *error* | ||
Calls when an error occurs after starting the remote camera. | ||
For error types, refer to :doc:`RemoteCameraError <ios-remotecameraerror>`. | ||
|
||
**Parameters:** | ||
|
||
- error – Remote camera error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
RemoteCameraError | ||
===================== | ||
|
||
Enumerates error type | ||
|
||
Properties | ||
---------- | ||
|
||
**RemoteCameraErrorGeneric** | ||
The general error | ||
|
||
**RemoteCameraErrorConnectionClosed** | ||
The error that occurs when the network is disconnected | ||
|
||
**RemoteCameraErrorDeviceShutdown** | ||
The error that occurs when the TV shuts down | ||
|
||
**RemoteCameraErrorRendererTerminated** | ||
The error that occurs when the TV app is closed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
RemoteCameraProperty | ||
===================== | ||
|
||
Enumerates property type | ||
|
||
Properties | ||
---------- | ||
|
||
**RemoteCameraLensFacingFront** | ||
The front camera | ||
|
||
**RemoteCameraLensFacingBack** | ||
The rear camera | ||
|
||
**RemoteCameraPropertyUnknown** | ||
The unregistered attribute | ||
|
||
**RemoteCameraPropertyBrightness** | ||
The brightness property | ||
|
||
**RemoteCameraPropertyWhitebalance** | ||
The white balance property | ||
|
||
**RemoteCameraPropertyRotation** | ||
The screen rotation properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
ScreenMirroringControl | ||
============= | ||
|
||
The ScreenMirroringControl capability protocol serves to define the methods required for displaying | ||
the mobile app screen to LG TV. | ||
|
||
Methods | ||
------- | ||
|
||
\- (id<:doc:`ScreenMirroringControl <ios-screenmirroringcontrol>`>) **ScreenMirroringControl** | ||
|
||
\- (:doc:`CapabilityPriorityLevel <ios-capabilityprioritylevel>`) **screenMirroringControlPriority** | ||
|
||
\- (void) **startScreenMirroring** | ||
Requests to start the screen mirroring | ||
|
||
\- (void) **startScreenMirroringWithSettings**:(nullable NSDictionary<NSString *, id> *) *settings* | ||
Requests to start the screen mirroring after setting up. | ||
|
||
**Parameters:** | ||
|
||
- settings – screen mirroring settings | ||
|
||
\- (void) **pushSampleBuffer**:(CMSampleBufferRef)\ *sampleBuffer* **with**:(RPSampleBufferType)\ *sampleBufferType* | ||
Delivers video/audio data captured by Upload Extension to screen mirroring. | ||
|
||
**Parameters:** | ||
|
||
- sampleBuffer – A reference to an immutable sample buffer object | ||
|
||
- **with**: sampleBufferType – The type of sample buffered | ||
|
||
\- (void) **stopScreenMirroring** | ||
Requests to stop the screen mirroring | ||
|
||
\- (void) **setScreenMirroringDelegate**:(__weak id<ScreenMirroringControlDelegate>)\ *delegate* | ||
Registers a delegate to receive events while running the screen mirroring. | ||
|
||
**Parameters:** | ||
|
||
- delegate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ScreenMirroringControlDelegate | ||
============= | ||
|
||
ScreenMirroringControlDelegate allows your app to receive screen mirroring status information. | ||
|
||
Methods | ||
------- | ||
|
||
\- (void) **screenMirroringDidStart**:(BOOL) *result* | ||
Calls to pass the result of a screen mirroring start request. | ||
|
||
**Parameters:** | ||
|
||
- result – Screen mirroring start result | ||
|
||
\- (void) **screenMirroringDidStop**:(BOOL)\ *result* | ||
Calls to pass the result of a screen mirroring stop request. | ||
|
||
**Parameters:** | ||
|
||
- result – Screen mirroring stop result | ||
|
||
\- (void) **screenMirroringErrorDidOccur**:(ScreenMirroringError)\ *error* | ||
Calls when an error occurs after starting the screen mirroring. | ||
For error types, refer to :doc:`ScreenMirroringError <ios-screenmirroringerror>`. | ||
|
||
**Parameters:** | ||
|
||
- error – Screen mirroring error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
ScreenMirroringError | ||
===================== | ||
|
||
Enumerates error type | ||
|
||
Properties | ||
---------- | ||
|
||
**ScreenMirroringErrorGeneric** | ||
The general error | ||
|
||
**ScreenMirroringErrorConnectionClosed** | ||
The error that occurs when the network is disconnected | ||
|
||
**ScreenMirroringErrorDeviceShutdown** | ||
The error that occurs when the TV shuts down | ||
|
||
**ScreenMirroringErrorRendererTerminated** | ||
The error that occurs when the TV app is closed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.