mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Decrease polling rate for IMA Video Ads from 100ms to 200ms
PiperOrigin-RevId: 438634901
This commit is contained in:
parent
89c4bbec5b
commit
7bbcf1c4c1
2 changed files with 8 additions and 3 deletions
|
|
@ -19,6 +19,9 @@
|
||||||
* Rename `DummySurface` to `PlaceHolderSurface`.
|
* Rename `DummySurface` to `PlaceHolderSurface`.
|
||||||
* Audio:
|
* Audio:
|
||||||
* Use LG AC3 audio decoder advertising non-standard MIME type.
|
* Use LG AC3 audio decoder advertising non-standard MIME type.
|
||||||
|
* Ad playback / IMA:
|
||||||
|
* Decrease ad polling rate from every 100ms to every 200ms, to line up with
|
||||||
|
Media Rating Council (MRC) recommendations.
|
||||||
* Extractors:
|
* Extractors:
|
||||||
* Matroska: Parse `DiscardPadding` for Opus tracks.
|
* Matroska: Parse `DiscardPadding` for Opus tracks.
|
||||||
* UI:
|
* UI:
|
||||||
|
|
|
||||||
|
|
@ -84,12 +84,14 @@ import java.util.Map;
|
||||||
private static final String IMA_SDK_SETTINGS_PLAYER_VERSION = MediaLibraryInfo.VERSION;
|
private static final String IMA_SDK_SETTINGS_PLAYER_VERSION = MediaLibraryInfo.VERSION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interval at which ad progress updates are provided to the IMA SDK, in milliseconds. 100 ms is
|
* Interval at which ad progress updates are provided to the IMA SDK, in milliseconds. 200 ms is
|
||||||
* the interval recommended by the IMA documentation.
|
* the interval recommended by the Media Rating Council (MRC) for minimum polling of viewable
|
||||||
|
* video impressions.
|
||||||
|
* http://www.mediaratingcouncil.org/063014%20Viewable%20Ad%20Impression%20Guideline_Final.pdf.
|
||||||
*
|
*
|
||||||
* @see VideoAdPlayer.VideoAdPlayerCallback
|
* @see VideoAdPlayer.VideoAdPlayerCallback
|
||||||
*/
|
*/
|
||||||
private static final int AD_PROGRESS_UPDATE_INTERVAL_MS = 100;
|
private static final int AD_PROGRESS_UPDATE_INTERVAL_MS = 200;
|
||||||
|
|
||||||
/** The value used in {@link VideoProgressUpdate}s to indicate an unset duration. */
|
/** The value used in {@link VideoProgressUpdate}s to indicate an unset duration. */
|
||||||
private static final long IMA_DURATION_UNSET = -1L;
|
private static final long IMA_DURATION_UNSET = -1L;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue