Skip to content

Commit

Permalink
Update SDK to v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjl-firework authored and spookyd committed Aug 19, 2021
1 parent 1150f7c commit 7b686c0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## CHANGELOG

## [0.10.0] - 2021-08-20

### Added

- Ability to force refresh video feeds.
- Ability to pass VideoPlayerContentConfiguration when opening a video player with share link.

## [0.9.1] - 2021-08-06

### Changed
Expand Down
2 changes: 1 addition & 1 deletion FireworkVideo.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "FireworkVideo"
spec.version = "0.9.1"
spec.version = "0.10.0"
spec.summary = "FireworkVideoSDK"
spec.homepage = "https://github.com/loopsocial/firework_ios_sdk"
spec.license = { :text => "Copyright 2021 Loop Now Technologies, Inc.", :type => "Copyright" }
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ let package = Package(
],
targets: [
.binaryTarget(name: "FireworkVideo",
url: "https://github.com/loopsocial/firework_ios_sdk/releases/download/v0.9.1/FireworkVideo-v0.9.1.xcframework.zip",
checksum: "890c82606f5c908e1428562774f72de10952a49acfef14485acb7672c8c702fb"),
url: "https://github.com/loopsocial/firework_ios_sdk/releases/download/v0.10.0/FireworkVideo-v0.10.0.xcframework.zip",
checksum: "4984c7a00ab1ba6ae9879800656471a84dbd5f27ef325ceb827c821d90d082b6"),
]

)
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ Alternatively, a channel feed can be used as a source by using the .channel and
let feedVC = VideoFeedViewController(source: .channelPlaylist(channelID: "", playlistID: ""))
```

### Force Refresh

A `VideoFeedViewController` can be hard refreshed by calling the `refresh()` method on the instance that should be refreshed. This functionality is useful if your feed is embedded along with other components that are also updated and you support features like pull to refresh.

### Share Link

You can customize the shared URL. The feature can be used, if you want share URL to be a universal link or a deeplink link so that when a user clicks on it, it can be opened in your application.
Expand All @@ -245,7 +249,9 @@ After your app receives a universal link or deeplink, once your app is ready to
```swift
let viewController = // The view controller that should present the video player
let url = // The received url that contains the `fwplayer` query parameter
VideoFeedViewController.openVideoPlayer(with: url, viewController) { result in /* Called after successfully presenting the video player */ }
// Optionally a custom player config can be applied to the presented video player
let playerConfig: VideoPlayerContentConfiguration = // Custom video player configuration
VideoFeedViewController.openVideoPlayer(with: url, playerConfig, viewController) { result in /* Called after successfully presenting the video player */ }

// Or you can pass the value of the `fwplayer` query parameter directly into method

Expand All @@ -254,6 +260,8 @@ VideoFeedViewController.openVideoPlayer(with: paramValue, viewController) { resu

```

> **Note** If a custom `VideoPlayerContentConfiguration` is not passed into the `openVideoPlayer` method the default configuration will be used.
### Ad Support

Popular 3rd party ad SDKs can be used alongside the FireworkVideoSDK to perform client side ad insertion within the Firework Video Player. These 3rd party SDKs require a supporting library in order to work. Please review the list below and checkout the repo for more detailed instructions.
Expand Down

0 comments on commit 7b686c0

Please sign in to comment.