-
Notifications
You must be signed in to change notification settings - Fork 11
Add desugaring required by Google IMA SDK #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| package com.theoplayer.sample.ads.optiviewads | ||
|
|
||
| import com.theoplayer.android.api.ads.theoads.TheoAdDescription | ||
| import com.theoplayer.android.api.source.SourceDescription | ||
| import com.theoplayer.android.api.source.SourceType | ||
| import com.theoplayer.android.api.source.TypedSource | ||
|
|
||
| object OptiviewAdsSourceManager { | ||
| val THEOADS: SourceDescription by lazy { | ||
| SourceDescription.Builder( | ||
| TypedSource.Builder("https://example.com/manifest.m3u8") | ||
| .type(SourceType.HLS) | ||
| .hlsDateRange(true) // The flag needs to be set to `true` as the ad markers are done using `EXT-X-DATERANGE` tags. | ||
| .build() | ||
| ).ads( | ||
| TheoAdDescription( | ||
| networkCode = "network-code-here", | ||
| customAssetKey = "asset-key-here", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we want to leave this as strings, or maybe leave unimplemented to fail the build?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we don't want the build to fail. these values are placeholders to show how a THEOads stream can be set on the player. |
||
| backdropDoubleBox = "https://example.com/double.box.svg", | ||
| backdropLShape = "https://example.com/L-shape.svg" | ||
| ) | ||
| ).build() | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package com.theoplayer.sample.streaming.millicast | ||
|
|
||
| import com.theoplayer.android.api.millicast.MillicastSource | ||
| import com.theoplayer.android.api.source.SourceDescription | ||
|
|
||
| object MillicastSourceManager { | ||
| val MILLICAST: SourceDescription by lazy { | ||
| SourceDescription.Builder( | ||
| MillicastSource( | ||
| src = "multiview", | ||
| streamAccountId = "k9Mwad", | ||
| apiUrl = "https://director.millicast.com/api/director/subscribe", | ||
| // subscriberToken = "<token>" // This is only required for subscribing to secure streams and should be omitted otherwise. | ||
| ) | ||
| ).build() | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a new line at the end of the file.
Can you, please, check other files as well as there are a few new files with missing new lines at the end of the file.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I added them to the files I edited