videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.84k stars 7.43k forks source link

Video generated using plugin-concat is not working in ios #7645

Open kokaprathyush opened 2 years ago

kokaprathyush commented 2 years ago

Here is the sample code

videoPlayer.concat({
    manifests: [{
      url: introVideo,
      mimeType: 'application/x-mpegURL'
    },{
      url: url,
      mimeType: 'application/x-mpegURL'
    }],
    targetVerticalResolution: 720,
    callback: (err, result) => {
      if (err) {
        console.error(err);
        return;
      }
      videoPlayer.src({
        src: `data:application/vnd.videojs.vhs+json,${JSON.stringify(result.manifestObject)}`,
        type: 'application/vnd.videojs.vhs+json'
      });
    }
  });

It is showing error no compatible source was found for this media

welcome[bot] commented 2 years ago

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

mister-ben commented 2 years ago

Unfortunately it can't work. It relies on media source extensions, which apple hasn't implemented on iPhone.

kokaprathyush commented 2 years ago

Thank you, Is there any work around for this problem

mister-ben commented 2 years ago

It may be feasible to do something like the concat plugin does but outputting a base64 encoded data uri of the concatenated manifests.

kokaprathyush commented 2 years ago

Can you provide me some insight on how it can be done

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.