# VR / 360°

Note

This feature is available only to ByteArk Video Cloud for Business customers. Please contact sales@byteark.com if you would like to use it.

ByteArk Player supports playing 360° / VR videos. Viewers can drag the player to look around, and the player offers VR mode for use with cardboard-style headsets.

# VR display

VR

# Options

Name Type Required Description
vr Object No VR configuration
vr.projection String No Projection type, e.g., 360 for 360° equirectangular

# Example

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
  </head>
  <body>
    <div id="video-player"></div>
    <script src="https://byteark-sdk.cdn.byteark.com/player/v2/byteark-player.min.js"></script>
    <script>
      var player = bytearkPlayer('video-player', {
        fluid: true,
        plugins: {
          bytearkVR: {
            projection: '360',
          }
        },
        sources: [{
          title: '360° Video',
          src: '<360_MEDIA_URL>',
          type: 'application/x-mpegURL'
        }]
      });
    </script>
  </body>
</html>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

Recommendation

  • Disable Picture-in-Picture when using VR/360°, since PiP does not support VR content.
  • Use a <source> whose codec supports the resolution required by VR (typically 4K).