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

VR Button is not split the video screen instead shown black screen. #175

Open
dj4385 opened this issue Nov 17, 2021 · 1 comment
Open

VR Button is not split the video screen instead shown black screen. #175

dj4385 opened this issue Nov 17, 2021 · 1 comment

Comments

@dj4385
Copy link

dj4385 commented Nov 17, 2021

I am using videojs 7.17.0 and panoroma in angular 12 application. But when we click on VRButton then screen is not split in two parts instead of that show black screen.
Please help me to fix it.

code:

HTML File:
<video class="video-js vjs-default-skin" 
    crossorigin="anonymous" poster="assets/poster.jpg"   preload="none"
     controls   style="object-fit:cover" width="774px" height="400.75px">
  <source [src]="videoLink" type="video/mp4"   #source/>
</video>
-----------------------------
ts file

this.player = (window as any).player = videojs(this.video?.nativeElement, {}, function () { });
this.player.panorama({
      clickAndDrag: true,
      clickToToggle: true,
      autoMobileOrientation: true,
      callback: function () {
        if(this.player) {
          this.player.play();
        }
      }
    });

Untitled

@dj4385
Copy link
Author

dj4385 commented Nov 18, 2021

Expected Result:
Screenshot from 2021-11-18 12-09-03

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

1 participant