Search Unity

Playing multiple videos in a series in Android

Discussion in 'Android' started by sgregos, Jan 26, 2016.

  1. sgregos

    sgregos

    Joined:
    Jan 26, 2016
    Posts:
    1
    I'm creating an application that allows a user to select one of a number of videos. The caveat that I'm running into is that the videos need to be played with both audio + video, and in stereoscopic 360 (to be played in VR using Cardboard). The library I'm using is EasyMovieTexture for reference, but am looking for any options available. Unity has built in support for standard fullscreen video play for multiple videos using the Handheld.PlayFullScreen(params) API, but has no native support for VR 360 video play for multiple videos.

    With EasyMovieTexture, they have examples provided that show the ability to play a single video in stereoscopic 360. Looking through their source, there is no API that allows the deallocation and reallocation of a new media resource for the Android MediaPlayer.

    I'm looking for some support and options/thoughts on how I could go about handling the deallocation/release of a current MediaPlayer resource and allocating/preparing a new video resource to play. Any thoughts/library recommendations are welcome.

    Thanks!
     
  2. kmcmenamin

    kmcmenamin

    Joined:
    Mar 26, 2017
    Posts:
    2
    Hi,

    I'm interested in creating a similar application (however only 1 source of audio) - Did you have any luck in switching between 360 videos?

    I was thinking one way to do this would be by teleporting between 2 spheres with the video rendered on the inside?

    Would be interested in hearing about other possible solutions

    - All the best,
    K