Skip to content

360° video support

Compare
Choose a tag to compare
@defagos defagos released this 12 Dec 17:48
· 1208 commits to master since this release

Support for 360° video playback has been added. The SRGMediaPlayerView class now has an additional viewMode property, which lets you choose how a media should be rendered:

  • Flat: Normal playback.
  • Monoscopic: 360° full-frame video playback.
  • Stereoscopic: 360° split-frame video playback for use with headsets.

A new SRGViewModeButton overlay button has been added as well to automatically provide users with a quick way to switch between supported modes.

360° content navigation responds both to device motions as well as pan gestures. If your application currently uses no Core Motion tracker, SRG Media Player will silently instantiate one for you. If your application readily uses a Core Motion tracker, use the new -[SRGMediaPlayerView setMotionManager:] method to use it for 360° video navigation as well.