Android Question Play video for Google VR

Octavio Diaz

Member
Licensed User
Longtime User
Hi guys, I wonder if have an example for play a video on Mp4 in the library Google vr, I dont undestand how I do it, thanks a lot.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Octavio Diaz

Member
Licensed User
Longtime User
Thanks DonManfred, I see the example but is only for an bitmap, how can I play a video from a local uri, thanks again,
 
Upvote 0

monic

Active Member
Licensed User
Longtime User
Hi,

I loaded a video few weeks back I did it with these methods

  • LoadVideo (Path As String, VideoFormat As Int, VideoType As Int)
    Asynchronously loads a pano video from the given Path.
    The Path can be a path to a local file or a remote URL with an <i>http</i> or <i>https</i> scheme.
    VideoFormat and VideoType are constants from the VrVideoViewOptions object.
    Event LoadError or LoadSuccess will be raised.
  • LoadVideoFromAsset (Path As String, VideoFormat As Int, VideoType As Int)
    Asynchronously loads a pano video from the given file in the assets of the apk.
    If the video isn't located the assets, the general LoadVideo(Path As String, VideoFormat As Int, VideoType As Int) method should be used.
    VideoFormat and VideoType are constants from the VrVideoViewOptions object.
    Event LoadError or LoadSuccess will be raised.
 
Upvote 0
Top