Commit 73b82337 by bachinger Committed by Tofunmi Adigun-Hameed

Enable live DASH stream for IMA DAI

This change enables the IMA extension to play live DASH streams
with DAI support. Samples streams can be found and played in the
main demo app.

Issue: google/ExoPlayer#10912
#minor-release
PiperOrigin-RevId: 532407708
(cherry picked from commit 806f19c44dd3685be119bdc78e0e09f22fca13e1)
parent fcc11a08
...@@ -407,6 +407,18 @@ ...@@ -407,6 +407,18 @@
"uri": "ssai://dai.google.com/?contentSourceId=2559737&videoId=tos-dash&format=0&adsId=1" "uri": "ssai://dai.google.com/?contentSourceId=2559737&videoId=tos-dash&format=0&adsId=1"
}, },
{ {
"name": "DASH live: Tears of Steel (mid), 3 ads each [10 s]",
"uri": "ssai://dai.google.com/?assetKey=jNVjPZwzSkyeGiaNQTPqiQ&format=0&adsId=1"
},
{
"name": "DASH live: New Tears of Steel (mid), 3 ads each [10 s]",
"uri": "ssai://dai.google.com/?assetKey=PSzZMzAkSXCmlJOWDmRj8Q&format=0&adsId=12"
},
{
"name": "DASH live: Unencrypted stream with 30s ad breaks every minute",
"uri": "ssai://dai.google.com/?assetKey=0ndl1dJcRmKDUPxTRjvdog&format=0&adsId=21"
},
{
"name": "Playlist: No ads - HLS VOD: Demo (skippable pre/post) - No ads", "name": "Playlist: No ads - HLS VOD: Demo (skippable pre/post) - No ads",
"playlist": [ "playlist": [
{ {
...@@ -435,20 +447,6 @@ ...@@ -435,20 +447,6 @@
] ]
}, },
{ {
"name": "Playlist: No ads - HLS Live: Big Buck Bunny (mid) - No ads",
"playlist": [
{
"uri": "https://html5demos.com/assets/dizzy.mp4"
},
{
"uri": "ssai://dai.google.com/?assetKey=sN_IYUG8STe1ZzhIIE_ksA&format=2&adsId=3"
},
{
"uri": "https://html5demos.com/assets/dizzy.mp4"
}
]
},
{
"name": "Playlist: No ads - DASH VOD: Tears of Steel (11 periods, pre/mid/post) - No ads", "name": "Playlist: No ads - DASH VOD: Tears of Steel (11 periods, pre/mid/post) - No ads",
"playlist": [ "playlist": [
{ {
......
...@@ -379,10 +379,6 @@ public final class ImaServerSideAdInsertionUriBuilder { ...@@ -379,10 +379,6 @@ public final class ImaServerSideAdInsertionUriBuilder {
if (streamActivityMonitorId != null) { if (streamActivityMonitorId != null) {
streamRequest.setStreamActivityMonitorId(streamActivityMonitorId); streamRequest.setStreamActivityMonitorId(streamActivityMonitorId);
} }
checkState(
streamRequest.getFormat() != StreamFormat.DASH
|| TextUtils.isEmpty(streamRequest.getAssetKey()),
"DASH live streams are not supported yet.");
return streamRequest; return streamRequest;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment