如何解决无法播放我的PMD视频文件的问题

时间:2019-12-08 05:14:42

标签: javascript video live pmd m3u8

我是pmd的初学者 我创建了Pmd文件并将其上传到云存储,但视频无法正常工作 请注意,它与原始文件相同,但是在不同的存储驱动器上

My file

This is the original file

我的链接在同一文件中不起作用 但是,如果将链接放在vls视频播放器上,则视频将播放

In this video, there is the original file with the original link
<link href="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css" rel="stylesheet" title="embed" type="text/css"></link>
<script src="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js"></script>
<div id="player"></div><script>

<script src="https://cdn-cms.f-static.com/uploads/1379027/normal_5cb611f1666b2.js" type="text/javascript"></script>
<video id='dash-video'>
    <source src='https://docs.fluidplayer.com/streaming/stream_dash.mpd' type='application/dash+xml'/>
</video>

<script>
fluidPlayer(
    'dash-video',
    {
        layoutControls: {
            fillToContainer: true
        }
    }
);
</script>

In this video there is the file that I copied via my link

<link href="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.css" rel="stylesheet" title="embed" type="text/css"></link>
<script src="https://cdn.fluidplayer.com/v2/current/fluidplayer.min.js"></script>
<div id="player"></div><script>

<script src="https://cdn-cms.f-static.com/uploads/1379027/normal_5cb611f1666b2.js" type="text/javascript"></script>
<video id='dash-video'>
    <source src='https://cdn-cms.f-static.com/uploads/1379027/normal_5dec7b5578d96.mpd' type='application/dash+xml'/>
</video>
My link doesn't work here though it's the same file
But if you put the link on the vls video player, the video will play
<script>
fluidPlayer(
    'dash-video',
    {
        layoutControls: {
            fillToContainer: true
        }
    }
);
</script>

   This is the complete PMD file format



<MPD xmlns="urn:mpeg:DASH:schema:MPD:2011" mediaPresentationDuration="PT0H3M1.63S" minBufferTime="PT1.5S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011"
type="static">
  <Period duration="PT0H3M1.63S" start="PT0S">
    <AdaptationSet>
      <ContentComponent contentType="video" id="1" />
      <Representation bandwidth="4190760" codecs="avc1.640028" height="1080" id="1" mimeType="video/mp4" width="1920">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-89.mp4</BaseURL>
        <SegmentBase indexRange="674-1149">
          <Initialization range="0-673" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="2073921" codecs="avc1.4d401f" height="720" id="2" mimeType="video/mp4" width="1280">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-88.mp4</BaseURL>
        <SegmentBase indexRange="708-1183">
          <Initialization range="0-707" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="869460" codecs="avc1.4d401e" height="480" id="3" mimeType="video/mp4" width="854">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-87.mp4</BaseURL>
        <SegmentBase indexRange="708-1183">
          <Initialization range="0-707" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="686521" codecs="avc1.4d401e" height="360" id="4" mimeType="video/mp4" width="640">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-86.mp4</BaseURL>
        <SegmentBase indexRange="708-1183">
          <Initialization range="0-707" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="264835" codecs="avc1.4d4015" height="240" id="5" mimeType="video/mp4" width="426">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-85.mp4</BaseURL>
        <SegmentBase indexRange="672-1147">
          <Initialization range="0-671" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="100000" codecs="avc1.4d4015" height="144" id="5" mimeType="video/mp4" width="256">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-160.mp4</BaseURL>
        <SegmentBase indexRange="671-1146">
          <Initialization range="0-670" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
    <AdaptationSet>
      <ContentComponent contentType="audio" id="2" />
      <Representation bandwidth="127236" codecs="mp4a.40.2" id="6" mimeType="audio/mp4" numChannels="2" sampleRate="44100">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-8c.mp4</BaseURL>
        <SegmentBase indexRange="592-851">
          <Initialization range="0-591" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="255236" codecs="mp4a.40.2" id="7" mimeType="audio/mp4" numChannels="2" sampleRate="44100">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-8d.mp4</BaseURL>
        <SegmentBase indexRange="592-851">
          <Initialization range="0-591" />
        </SegmentBase>
      </Representation>
      <Representation bandwidth="31749" codecs="mp4a.40.5" id="8" mimeType="audio/mp4" numChannels="1" sampleRate="22050">
        <BaseURL>https://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-8b.mp4</BaseURL>
        <SegmentBase indexRange="592-851">
          <Initialization range="0-591" />
        </SegmentBase>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>

0 个答案:

没有答案