castlabs / dashas

MPEG-DASH player written in ActionScript
http://castlabs.github.io/dashas
Other
102 stars 30 forks source link

Issue with Live Streaming #41

Open stakach opened 9 years ago

stakach commented 9 years ago

The player seems to be having trouble playing dash streams formatted like:

<?xml version="1.0" encoding="UTF-8"?>
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" type="dynamic" minimumUpdatePeriod="PT2S" availabilityStartTime="2015-08-19T03:33:52" minBufferTime="PT4S" suggestedPresentationDelay="PT20S" timeShiftBufferDepth="PT1M0S" profiles="urn:mpeg:dash:profile:isoff-live:2011">
  <Period start="PT0S" id="1">
    <AdaptationSet mimeType="video/mp4" codecs="avc1.4d401f,mp4a.40.5" frameRate="25/1" segmentAlignment="true" subsegmentAlignment="true" startWithSAP="1" subsegmentStartsWithSAP="1" bitstreamSwitching="true">
      <ContentComponent contentType="video" id="1"/>
      <ContentComponent contentType="audio" id="2"/>
      <SegmentTemplate timescale="90000" media="ch09$Time$.mp4" initialization="ch09init.mp4">
        <SegmentTimeline>
          <S t="47608740000" d="180000" r="29"/>
        </SegmentTimeline>
      </SegmentTemplate>
      <Representation id="1" width="1024" height="576" bandwidth="4500000">
        <SubRepresentation contentComponent="1" bandwidth="4500000" codecs="avc1.4d401f"/>
        <SubRepresentation contentComponent="2" bandwidth="64000" codecs="mp4a.40.5"/>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>

The console produces the following errors at try.js:56:

Loading manifest, url='http://sohiptvlb2.soh.com/sdtv/ch09.mpd'
Loaded manifest, url='http://sohiptvlb2.soh.com/sdtv/ch09.mpd'
Creating manifest...
Couldn't find media presentation duration

The DASH standard seems to support a lot of different representations