Search Unity

Video Handheld.PlayFullScreenMovie not always playing (online streaming)

Discussion in 'Audio & Video' started by Fernandxor, Sep 11, 2017.

  1. Fernandxor

    Fernandxor

    Joined:
    Oct 13, 2014
    Posts:
    23
    Hi,

    I'm having trouble with video playback using Unity's Handheld.PlayFullScreenMovie function on Android, Unity 2017.1.1p1 (also happened with 2017.1.0f3)

    Sometimes it works, some others just don't (I get a black screen, no sound, with no errors/crashes).

    I'm always passing the same url, so it's ok to say that the problem is not attached to the video, which is an mp4 container with h.264 fast-decode compression, sub-hd resolution and simple 128k 44khz mono audio. I also tried with other options, like 720p, fast-decode off, CBR, VBR, stereo sound... none of them solves the problem.

    Connected with Android Device Monitor I get no errors or warnings, except when I close the video (I use the option CancelOnInput), when I get these lines:

    • pause called in state 8
    • error (-38, 0)
    Anybody got the same problem? Any clue to solve it?