Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render nothing for stereo projection (360_LR/360TB) #155

Open
ycw opened this issue Nov 11, 2018 · 4 comments
Open

Render nothing for stereo projection (360_LR/360TB) #155

ycw opened this issue Nov 11, 2018 · 4 comments

Comments

@ycw
Copy link

ycw commented Nov 11, 2018

Reproduce

  • video source = stereo 360 side-by-side in mp4 container
  • plugin setup = player.vr({projection:"360_LR"})
  • result = video:transparent audio:ok

Versions

  • videojs @7.3.0
  • videojs-vr @1.5.0
  • THREE WebGL Renderer @93

Workaround

@nickkraakman
Copy link

Hi @ycw, I am having the exact same problem and was very happy when I found your issue and your workaround, but for some reason even with the workaround I still have a black screen for stereo video... So strange. You are certain those two lines are the only ones you changed?

Thanks for any help you can provide!

@nickkraakman
Copy link

Any news on this problem? We still have not been able to finish our videojs-vr integration, because nothing is rendering in stereo mode.

@raviverma89
Copy link

Above solution worked it shows video after changing it to FrontSide

@Sn0wFox
Copy link

Sn0wFox commented May 22, 2019

Probably late to the party, but in case someone want a fix that doesn't involve tweaking the plugin itself, here's what you can do, es6 style - but please read the edit underneath:

const vr = player.vr({projection:'360_TB'});  // Or '360_LR'

Object.defineProperty(vr, '_movieMaterial', {
  enumerable: true,
  writable: true,
});

Object.defineProperty(vr, 'movieMaterial', {
  get() {
    return this._movieMaterial;
  },
  set(value) {
    value.side = 0;
    this._movieMaterial = value;
  }
});

EDIT: the above solution worked in version 1.5.0. I recently updated the plugin to version 1.7.1 along with videojs 7.11.4 and it seems to now work as expected without the above, provided that you check these two issues and apply appropriate fixtures:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants