Search Unity

Video Unity 2019.2.15f1 videoPlayer.loopPointReached not working on Android device

Discussion in 'Audio & Video' started by stephenmutua, Dec 12, 2019.

  1. stephenmutua

    stephenmutua

    Joined:
    Mar 16, 2017
    Posts:
    1
    I have a videoplayer in my scene which works well on the editor but when I build and deploy it on my device(Android 6.0) the video plays but when it has finished playing the event videoPlayer.LoopPointReached is not being called. On the editor everything works fine but on the android device the event is not being called.
    Code (CSharp):
    1.  videoPlayer.errorReceived += HandleVideoError;
    2. videoPlayer.started += HandleStartedEvent;
    3. videoPlayer.seekCompleted += HandleSeekCompleted;
    4. videoPlayer.loopPointReached += EndReached;
    5.  
    6. void EndReached(VideoPlayer video)
    7. {
    8.     // show cube
    9.     cubeObject.SetActive(true);
    10. }
     
    sonofbryce likes this.