Skip to content

Commit

Permalink
Add 1.8.1 and Use SDK's new swift concurrency API's
Browse files Browse the repository at this point in the history
  • Loading branch information
aravind-raveendran committed Apr 10, 2024
1 parent 8bc9d44 commit 374b6e3
Show file tree
Hide file tree
Showing 11 changed files with 328 additions and 483 deletions.
14 changes: 0 additions & 14 deletions Package.resolved

This file was deleted.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
targets: ["DolbyIORTSUIKit"])
],
dependencies: [
.package(url: "https://github.com/millicast/millicast-sdk-swift-package", exact: "1.7.0")
.package(url: "https://github.com/millicast/millicast-sdk-swift-package", exact: "1.8.1")
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
11 changes: 2 additions & 9 deletions Sources/DolbyIORTSCore/Builder/StreamSourceBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,12 @@ final class StreamSourceBuilder {
let trackID: String
let mediaType: StreamSource.MediaType

/// Initialises the Track Item, if possible from the passed-in String
/// - Parameter track: A string value passed in by the SDK and is expected to be of format `{mediaType}/{trackID}`
init?(track: String) {
let trackInfoList = track.split(separator: "/")

guard
trackInfoList.count == 2,
let mediaType = StreamSource.MediaType(rawValue: String(trackInfoList[0].lowercased()))
else {
guard let mediaType = StreamSource.MediaType(rawValue: track) else {
return nil
}
self.mediaType = mediaType
self.trackID = String(trackInfoList[1])
self.trackID = track
}
}

Expand Down
Loading

0 comments on commit 374b6e3

Please sign in to comment.