Languages

Menu
Sites
Language
Multi period DASH live streams
Hi,
 
We're trying to integrate google dai service in our app. The service would process both live and vod content and eventually provides multi period manifests. We are using the native's AVPlay API to play media content.
 
Here is what we got so far: When the player plays such streams, it plays only the first period and then it fails/freezes. So my question is:
 
- Does tizen's AVPlay supprots such streams?
- If it does, then is the player triggers notifications, when it starts playing a new period?
 
Here is a sample of manifest for a LIVE content generated by dai service:
    ................................
	<Period id="pod-0000010017-ad-1" start="PT358H39M16.84S" duration="PT30.72S">
		<EventStream schemeIdUri="urn:google:dai:2018" timescale="1000">
			<Event duration="0" id="0" messageData="google_9210292406329676570" />
			<Event presentationTime="300" duration="0" id="5" messageData="google_6653052645041617707" />
			<Event presentationTime="1300" duration="0" id="6" messageData="google_6653052645041617707" />
			...................................
			<Event presentationTime="30720" duration="0" id="4" messageData="google_0914388420780183429" />
		</EventStream>
		<AdaptationSet id="0" contentType="audio">
		<AdaptationSet startWithSAP="1" id="1" contentType="video" segmentAlignment="true">
		<AdaptationSet startWithSAP="1" id="2" contentType="video" segmentAlignment="true">
	</Period>
	<Period id="pod-0000010017-ad-2" start="PT358H39M47.56S" duration="PT14.28S">
		<BaseURL>DAIService URL</BaseURL>
		<EventStream schemeIdUri="urn:google:dai:2018" timescale="1000">
		<AdaptationSet id="0" contentType="audio">
		<AdaptationSet startWithSAP="1" id="1" contentType="video" segmentAlignment="true">
		<AdaptationSet startWithSAP="1" id="2" contentType="video" segmentAlignment="true">
	</Period>
		<Period id="239721" start="PT358H40M1.84S">
		<AdaptationSet mimeType="video/mp4" startWithSAP="1" segmentAlignment="true" subsegmentAlignment="true" subsegmentStartsWithSAP="1" bitstreamSwitching="true">
		<AdaptationSet mimeType="audio/mp4" lang="eng">
	</Period>
	..........................
Here is a sample of manifest of VOD content generated by DAI service:
    <Period id="pre-roll-1-ad-1" duration="PT10S">
		<BaseURL>DAIService URL</BaseURL>
		<AdaptationSet id="0" contentType="audio">
		<AdaptationSet startWithSAP="1" id="1" contentType="video" segmentAlignment="true">
	</Period>
	<Period id="0" duration="PT35S">
		<AdaptationSet width="1920" height="1080" frameRate="19200/800" id="0" contentType="video" par="16:9" segmentAlignment="true">
		<Representation sar="1:1" mimeType="video/mp4" codecs="avc1.4d4029" id="0" bandwidth="11520371">
			<SegmentTemplate timescale="19200" startNumber="1" media="video_$Number$.m4s" initialization="video_init.mp4">
		</Representation>
		</AdaptationSet>
		<AdaptationSet id="1" lang="en" contentType="audio" segmentAlignment="true">
	</Period>
	<Period id="mid-roll-1-ad-1" duration="PT10S">
		<BaseURL>Dai</BaseURL>
		<AdaptationSet id="0" contentType="audio">
		<AdaptationSet startWithSAP="1" id="1" contentType="video" segmentAlignment="true">
		<Representation width="1920" height="1080" frameRate="30" mimeType="video/mp4" codecs="avc1.4d4028" id="0" bandwidth="346000">
			<SegmentTemplate timescale="90000" startNumber="1" media="$Number$.mp4?orig=URL">
		</Representation>
		</AdaptationSet>
	</Period>
		<Period id="1" duration="PT34S">
		<AdaptationSet id="1" lang="en" contentType="audio" segmentAlignment="true">
		<AdaptationSet width="1920" height="1080" frameRate="19200/800" id="0" contentType="video" par="16:9" segmentAlignment="true">
		<Representation sar="1:1" mimeType="video/mp4" codecs="avc1.4d4029" id="0" bandwidth="6789799">
			<SegmentTemplate timescale="19200" presentationTimeOffset="672799" startNumber="19" media="video_$Number$.m4s" initialization="video_init.mp4">
		</Representation>
		</AdaptationSet>
	</Period>
 
Best regards,
Atanas