Sorry, I got some problems when I tried to get correct timestamp when I was playing DVR.
I don't know who I can ask, but I need some help...
There is my mpd file below,
I tried to get timestamp with player.timeAsUTC() function, but it's not correct.
Then I tried to get timestamp from player.timeAsUTC() - 3371240288 / 90000 (first SegmentTimeline t / timescale)
But it still has some difference which equals 16 secs..
I also tried availabilityStartTime + player.time() and still no luck.
Could anyone help me please?
<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="dynamic" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-live:2011" availabilityStartTime="2017-03-19T13:27:39Z" minimumUpdatePeriod="PT5S" timeShiftBufferDepth="PT3M10.0S" minBufferTime="PT1.0S">
<Location>http://xxx.xxx.xxx.xxx:8081/b/a/manifest_dvr.mpd?nimblesessionid=124</Location>
<Period id="1" start="PT0.0S">
<AdaptationSet id="1" segmentAlignment="true" startWithSAP="1">
<Representation id="v0" mimeType="video/mp4" codecs="avc1.4d4032" width="1536" height="1536" bandwidth="887013">
<SegmentTemplate timescale="90000" media="dvr_v_p1_$Time$.m4s?nimblesessionid=124" initialization="dvr_i_p1.m4mv?nimblesessionid=124">
<SegmentTimeline>
<S t="3371240288" d="900072" />
<S t="3372140360" d="450038" />
<S t="3372590398" d="450036" />
<S t="3373040434" d="450038" />
<S t="3373490472" d="450034" />
<S t="3373940506" d="900074" />
<S t="3374840580" d="450036" />
<S t="3375290616" d="450036" />
<S t="3375740652" d="450036" />
<S t="3376190688" d="450038" />
<S t="3376640726" d="900072" />
<S t="3377540798" d="450036" />
<S t="3377990834" d="450036" />
<S t="3378440870" d="450038" />
<S t="3378890908" d="450036" />
<S t="3379340944" d="900072" />
<S t="3380241016" d="450036" />
<S t="3380691052" d="450036" />
<S t="3381141088" d="450038" />
<S t="3381591126" d="450036" />
<S t="3382041162" d="900072" />
<S t="3382941234" d="450036" />
<S t="3383391270" d="450036" />
<S t="3383841306" d="450038" />
.....
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
</MPD>