Skip to content

Commit

Permalink
Update to version 1.1.0
Browse files Browse the repository at this point in the history
Bitrate selector
Fixed fullscreen button issue when rotating
Modified default analytics url to https
Optional IMA Plugin on createPlayer
Dependency libraries updated
Fixed issue #2
  • Loading branch information
Stefano Russello committed Apr 14, 2022
1 parent 743e033 commit c32a3d7
Show file tree
Hide file tree
Showing 21 changed files with 469 additions and 78 deletions.
13 changes: 11 additions & 2 deletions PlayKitReadme.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ The following setup code should be carried out in the 'viewDidAppear' function:
Create the player:

``` Swift
amgPlaykit?.createPlayer(analytics: AMGAnalyticsConfig? = nil)
amgPlaykit?.createPlayer(analytics: AMGAnalyticsConfig? = nil, enableIMA: Bool = true)
```

'enableIMA' is an optional parameter, enabled by default, that it loads IMA Plugin
(Optional) Add the partnerID - see 'Manually updating the PartnerID'

### Removing the player
Expand Down Expand Up @@ -248,6 +249,11 @@ Set the colour of the VOD scrub bar 'tracked' time to a hex formatted RGB colour
.scrubBarVODColour(colour: String)
```

Toggle the visibility of the bitrate selector
``` Swift
.setBitrateSelector(_ isOn: Bool)
```

## Media overlays

AMG Play Kit supports the overlaying of an 'is live' badge and a logo as overlays to any media playing.
Expand Down Expand Up @@ -639,12 +645,15 @@ To instruct PlayKit to use a certain highest bitrate when streaming, you can use
amgPlayKit?.setMaximumBitrate(bitrate: Double)
```

PlayKit will atttempt to change bitrate to that value (or the closest one BELOW that value) for the rest of the stream. This change may not be immediate.
PlayKit will atttempt to change bitrate to that value (or the closest one BELOW that value) for the rest of the stream.

# Change Log

All notable changes to this project will be documented in this section.

### 1.1.0
- Bitrate selector UI

### 1.0.4
- Fixed fullscreen button to standard UI

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Change Log:

All notable changes to this project will be documented in this section.

### 1.0.4 - PlayKit minor UI fixes
### 1.1.0 - PlayKit bitrate selector UI

### 1.0.3 - PlayKit fixes

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x21",
"green" : "0x13",
"red" : "0x0D"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x21",
"green" : "0x13",
"red" : "0x0D"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2D",
"green" : "0x24",
"red" : "0x21"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2D",
"green" : "0x24",
"red" : "0x21"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "checkmark.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "icons8-settings.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public class AMGAnalyticsPlugin: BasePlugin, AnalyticsPluginProtocol {


private static var partnerID = 0
//private static var baseURL = "https://nudeiys3md.execute-api.eu-west-1.amazonaws.com/api/submit"
private static var baseURL = "http://stats.mp.streamamg.com/SessionUpdate?"
private static var baseURL = "https://stats.mp.streamamg.com/SessionUpdate?"

// MARK: - Private local variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import PlayKit
// MARK: - Properties
/************************************************************/

private let defaultBaseUrl = "http://stats.mp.streamamg.com/SessionUpdate"
private let defaultBaseUrl = "https://stats.mp.streamamg.com/SessionUpdate"

/// application ID.
let applicationId = Bundle.main.bundleIdentifier
Expand Down
Loading

0 comments on commit c32a3d7

Please sign in to comment.