-
Notifications
You must be signed in to change notification settings - Fork 14
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 #532 from bitmovin/feature/enable-lock-screen-cont…
…rols iOS: support Media Controls
- Loading branch information
Showing
6 changed files
with
81 additions
and
0 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,50 @@ | ||
/** | ||
* Configures the lock screen information for the application. This information will be displayed | ||
* wherever current media information typically appears, such as the lock screen | ||
* and inside the control center. | ||
*/ | ||
export interface LockScreenControlConfig { | ||
/** | ||
* Enable the default behavior of displaying media information | ||
* on the lock screen and within the control center. | ||
* Default is `false`. | ||
* | ||
* For a detailed list of the supported features in the **default behavior**, | ||
* check the **Default Supported Features** section. | ||
* | ||
* @note Enabling this flag will automatically treat {@link TweaksConfig.updatesNowPlayingInfoCenter} as `false`. | ||
* | ||
* ## Limitations | ||
* --- | ||
* - At the moment, the current media information is disabled during casting. | ||
* | ||
* ## Known Issues | ||
* --- | ||
* **iOS**: | ||
* - There is unexpected behavior when using the IMA SDK. The Google IMA SDK adds its own commands | ||
* for play/pause as soon as the ad starts loading (not when it starts playing). Within this window | ||
* (approximately around 10 seconds), it is possible that both the ad and the main content are playing | ||
* at the same time when a user interacts with the lock-screen control feature. | ||
* | ||
* ## Default Supported Features | ||
* --- | ||
* Here is the list of features supported by the default behavior. | ||
* | ||
* ### Populated Metadata | ||
* - asset URL (to visualize the correct kind of data — _e.g. a waveform for audio files_) | ||
* - title | ||
* - artwork | ||
* - live or VOD status | ||
* - playback rate | ||
* - default playback rate | ||
* - elapsed time | ||
* - duration | ||
* | ||
* ### Registered Commands | ||
* - toggle play/pause | ||
* - change playback position | ||
* - skip forward | ||
* - skip backward | ||
*/ | ||
isEnabled?: boolean; | ||
} |
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