|
Android OpenTV Player SDK
4.25.0.1691567955
|
Provides an interface to set up and control a unique watermark on the playback content, powered by the NexGuard-QuickMark SDK.
For further information on the NexGuard-QuickMark SDK please see the integration guide.
Watermark class handles the lifecycle interaction between the QuickMark SDK and the bound NMPVideoView player interface.
The minimum API for using the watermarking interface is 24. This is a minimum requirement from the QuickMark SDK.
Public Member Functions | |
| Watermark (Context context) | |
| Default constructor for Watermark. More... | |
| void | setToken (String token) |
| Sets the customer system generated token to the Watermark. More... | |
| void | setUrl (String url) |
| Sets the service endpoint URL to the Watermark. More... | |
| void | setTenant (String tenant) |
| Sets the tenant name to the Watermark. More... | |
| void | bind (NMPVideoView player) |
| Binds the Watermark to the passed NMPVideoView object after this call is made, the watermark will be active during playback of the passed NMPVideoView. More... | |
| void | unbind (NMPVideoView player) |
| Unbinds the Watermark to the passed NMPVideoView object after this call is made, the watermark will no longer be active during playback of the passed NMPVideoView. More... | |
| void | addErrorListener (WatermarkErrorListener listener) |
| Add an object interfacing WatermarkErrorListener to the Watermark to handle error callbacks Playback of content should be limited based on errors reported. More... | |
| void | removeErrorListener (WatermarkErrorListener listener) |
| Remove an object interfacing WatermarkErrorListener from the Watermark. More... | |
| void | addMessageListener (WatermarkMessageListener listener) |
| Add an object interfacing WatermarkMessageListener to the Watermark to handle message callbacks. More... | |
| void | removeMessageListener (WatermarkMessageListener listener) |
| Remove an object interfacing WatermarkMessageListener from the Watermark. More... | |
| NMPVideoView | boundPlayer () |
| Returns the instance of the NMPVideoView object which this Watermark is currently bound to. More... | |
| void addErrorListener | ( | WatermarkErrorListener | listener | ) |
Add an object interfacing WatermarkErrorListener to the Watermark to handle error callbacks Playback of content should be limited based on errors reported.
| listener | a WatermarkErrorListener instance |
| void addMessageListener | ( | WatermarkMessageListener | listener | ) |
Add an object interfacing WatermarkMessageListener to the Watermark to handle message callbacks.
| listener | a WatermarkMessageListener instance |
| void bind | ( | NMPVideoView | player | ) |
Binds the Watermark to the passed NMPVideoView object after this call is made, the watermark will be active during playback of the passed NMPVideoView.
| player | the NMPVideoView player instance |
| NMPVideoView boundPlayer | ( | ) |
Returns the instance of the NMPVideoView object which this Watermark is currently bound to.
| void removeErrorListener | ( | WatermarkErrorListener | listener | ) |
Remove an object interfacing WatermarkErrorListener from the Watermark.
| listener | a WatermarkErrorListener instance |
| void removeMessageListener | ( | WatermarkMessageListener | listener | ) |
Remove an object interfacing WatermarkMessageListener from the Watermark.
| listener | a WatermarkMessageListener instance |
| void setTenant | ( | String | tenant | ) |
Sets the tenant name to the Watermark.
| tenant | the string representation of the tenant name |
| void setToken | ( | String | token | ) |
Sets the customer system generated token to the Watermark.
| token | the string representation of the token |
| void setUrl | ( | String | url | ) |
Sets the service endpoint URL to the Watermark.
| url | the string representation of the service endpoint URL |
| void unbind | ( | NMPVideoView | player | ) |
Unbinds the Watermark to the passed NMPVideoView object after this call is made, the watermark will no longer be active during playback of the passed NMPVideoView.
| player | the NMPVideoView player instance |