Closed mangobubu closed 6 months ago
demo中的地址我这无法访问, 我这用 https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd 地址可以播放。目前dash只支持 segment_base 和 segment_template模版,可以贴下具体的mpd文件内容
xgplayer version: 3.0.10 xgplayer-dash version: 3.0.10 browser:EDGE、Chrome 你好!请问找到了解决办法了吗?我也播放不了dash,但我尝试使用xgplayer-shaka拓展的时候竟然可以播放了!但是用xgplayer-dash却会报416 (Requested Range Not Satisfiable) 错误。 然后希望官方能把拓展方面的文档适时补充一下,总让我这类新手摸索得非常困难/sad 报错如下:
这是我的mpd文件:
<MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:mpeg:dash:schema:mpd:2011"
xmlns:xlink="http://www.w3.org/1999/xlink"
xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd"
profiles="urn:mpeg:dash:profile:isoff-live:2011"
type="static"
mediaPresentationDuration="PT25.0S"
minBufferTime="PT16.6S">
<ProgramInformation>
</ProgramInformation>
<Period id="0" start="PT0.0S">
<AdaptationSet id="0" contentType="video" segmentAlignment="true" bitstreamSwitching="true" lang="und">
<Representation id="0" mimeType="video/mp4" codecs="avc1.64001e" bandwidth="504511" width="640" height="360" frameRate="30000/1001">
<SegmentTemplate timescale="30000" initialization="v_cxa7qqp4tn8j687-init-$RepresentationID$.m4s" media="v_cxa7qqp4tn8j687-$RepresentationID$-$Number%05d$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="250250" r="2" />
<S d="2002" />
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
<AdaptationSet id="1" contentType="video" segmentAlignment="true" bitstreamSwitching="true" lang="und">
<Representation id="1" mimeType="video/mp4" codecs="avc1.64001f" bandwidth="909082" width="854" height="480" frameRate="30000/1001">
<SegmentTemplate timescale="30000" initialization="v_cxa7qqp4tn8j687-init-$RepresentationID$.m4s" media="v_cxa7qqp4tn8j687-$RepresentationID$-$Number%05d$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="250250" r="2" />
<S d="2002" />
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
<AdaptationSet id="2" contentType="video" segmentAlignment="true" bitstreamSwitching="true" lang="und">
<Representation id="2" mimeType="video/mp4" codecs="avc1.64001f" bandwidth="2078659" width="1080" height="720" frameRate="30000/1001">
<SegmentTemplate timescale="30000" initialization="v_cxa7qqp4tn8j687-init-$RepresentationID$.m4s" media="v_cxa7qqp4tn8j687-$RepresentationID$-$Number%05d$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="250250" r="2" />
<S d="2002" />
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
<AdaptationSet id="3" contentType="audio" segmentAlignment="true" bitstreamSwitching="true" lang="und">
<Representation id="3" mimeType="audio/mp4" codecs="mp4a.40.2" bandwidth="128009" audioSamplingRate="44100">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2" />
<SegmentTemplate timescale="44100" initialization="v_cxa7qqp4tn8j687-init-$RepresentationID$.m4s" media="v_cxa7qqp4tn8j687-$RepresentationID$-$Number%05d$.m4s" startNumber="1">
<SegmentTimeline>
<S t="0" d="365568" />
<S d="367616" r="1" />
<S d="6066" />
</SegmentTimeline>
</SegmentTemplate>
</Representation>
</AdaptationSet>
</Period>
</MPD>
mpeg-dash, 播放不了
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MPD xmlns="urn:mpeg:DASH:schema:MPD:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" mediaPresentationDuration="PT3.592S" minBufferTime="PT1S" profiles="urn:webm:dash:profile:webm-on-demand:2012" type="static" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011">
<Period duration="PT3.592S" id="0" start="PT0S">
<AdaptationSet bitstreamSwitching="true" codecs="vp9" height="1224" id="0" mimeType="video/webm" subsegmentAlignment="true" subsegmentStartsWithSAP="0" width="1000">
<Representation bandwidth="0" id="0">
<BaseURL>https://xxxx.com/xxxx.webm</BaseURL>
<SegmentBase indexRange="845149-845170">
<Initialization range="0-477"/>
</SegmentBase>
</Representation>
</AdaptationSet>
<AdaptationSet audioSamplingRate="48000" bitstreamSwitching="true" codecs="opus" id="1" mimeType="audio/webm" subsegmentAlignment="true" subsegmentStartsWithSAP="0">
<Representation bandwidth="0" id="1">
<BaseURL>https://xxxx.com/xxxx.webm</BaseURL>
<SegmentBase indexRange="32119-32140">
<Initialization range="0-716"/>
</SegmentBase>
</Representation>
</AdaptationSet>
</Period>
</MPD>
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue has been automatically closed after a period of inactivity. If it is still present in the latest release, please create a new issue with up-to-date information. Thank you!
您使用的西瓜播放器版本是多少? What version of xgplayer are you using? 3.0.8
您使用的操作系统和浏览器分别是? What OS and browser are you using? windows11, EDGE
如何复现问题? How to reproduce the problem? https://codesandbox.io/p/sandbox/icy-morning-lg82gd
您期望的播放器正常行为是? What did you expect to happen? 正常播放MPEG DASH
实际播放器的表现是? What actually happened?