0

I am using video.js library for my video player. I have provider Autodesk bim360 doc, my video file is there.

I am getting url like - blob:http://sample-client-for-test-plan.localtest.me:3000/11c90362-8e46-4195-94c8-940d56c4aa42

from provider but that is not supported in video player.

Any help would be appreciated.

Here is my code -

function bim360_player(res, callbackFn) {
  console.log(res.video_url)
  callbackFn();

  var player = videojs('#video_viewer' );

  videojs.Hls.xhr.beforeRequest = function(options) {
    options.headers = options.headers || {}
    options.headers["Authorization"] = 'Bearer ' + res.auth_token;
    return options;
  };

  player.ready(function() {
    this.src({
      src: res.video_url,
      withCredentials: true,
      type: 'application/x-mpegURL'
    })
    this.play();
  });
  
 }
Chitra
  • 1,294
  • 2
  • 13
  • 28
  • If you can share an example webpage where you're trying this that would be helpful. However, I doubt video.js and html5 video support an autodesk file. You will probably need to transcode it into another format. – heff Jul 21 '18 at 01:49
  • @heff, i updated my question with the code. – Chitra Jul 22 '18 at 05:25

1 Answers1

0

Not possible to get a signed URL in BIM360.

varunpatil
  • 428
  • 1
  • 3
  • 6