0

How can I hide or encrypt a videojs video source URL? I want disable my video url, eg. mysite/video.mp4.

<video id="player" class="video-js" width='500' height='400'>
  <source src="http://mysite/video.mp4" type="video/mp4">
  <source src="http://mysite/video.webm" type="video/webm">
</video>
videojs('player', {
  controls: true,
  autoplay: true,
  preload: 'auto',
  controlBar: {
    muteToggle: false
  },
});
Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
rahul.m
  • 5,572
  • 3
  • 23
  • 50

1 Answers1

0

Yes you can. You can convert your source URL to blob by using URL.createObjectURL(blob)

TheCoder
  • 56
  • 8