우원진
우원진

Reputation: 199

Unity Video player not working on my android

I have two android smartphones( galaxy A6, galaxy 9+) and I'm trying to build my Unity project on smartphones then video player is not working on galaxy 9+ but in case of A6 its is working.

Why were the reasons its not working with galaxy 9+?

Upvotes: 2

Views: 8888

Answers (2)

Asfand Tauqir
Asfand Tauqir

Reputation: 1

Which video format and codec are you using? After import in Unity, select the video file and enable override for android, and transcode it to VP8. Also you have to set Import audio to false.

Upvotes: 0

Di Zhang
Di Zhang

Reputation: 346

May be you should give a fallback plan like this:

m_VideoPlayer.errorReceived += delegate (VideoPlayer videoPlayer, string message)
{
    Debug.LogWarning("[VideoPlayer] Play Movie Error: " + message);
    Handheld.PlayFullScreenMovie(m_MoivePath, Color.black, FullScreenMovieControlMode.CancelOnInput, FullScreenMovieScalingMode.AspectFit);
};

Upvotes: 2

Related Questions