• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by FlyingSquirrels · Apr 21, 2017 at 09:20 AM · androidvideostreamingdevelopment build

Unity 5.6 Video Clip stream on Android

I need to stream video on Android with Unity 5.6. Video is hosted on Azure.

H264 works perfect on iOS but jitters a lot on Android. H264 hosted on device works perfect on both Android and iOS. Webm works perfect on iOS but only works on Development builds on Android.

Error: W/Unity(10989): AndroidVideoMedia: No tracks in https://****.mp4 Error: E/Unity(20860): OnVideoErrorReceived Can't play movie [https://****.mp4]

Codec errors attached here - link text

Any ideas?

videocodecerror.txt (2.8 kB)
Comment

People who like this

0 Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FlyingSquirrels · Apr 21, 2017 at 10:04 AM 0
Share

I get this error when opening .3gp, .webm or .ogv files.

 AndroidVideoMedia: Error opening extractor: -10000
 VideoPlayback audio buffer overflow.  1024 sample frames discarded.



avatar image FlyingSquirrels · Apr 21, 2017 at 10:40 AM 0
Share

Sample project attached here.link text

videotestproject.zip (102.7 kB)
avatar image FlyingSquirrels · Apr 26, 2017 at 11:14 AM 0
Share

Bug report here: https://issuetracker.unity3d.com/issues/android-video-player-black-screen-if-streaming-a-video-in-release-mode-development-build-disabled

Vote for it if you have the same problem :-)

Thanks,

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by AquaGhost · May 08, 2017 at 03:17 PM

@Demanuele did you find an answer to t$$anonymous$$s? We get the same error but only on a long clip, and not if we shorten the same clip in length. investigating the Prepare function

Comment

People who like this

0 Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image FlyingSquirrels · May 08, 2017 at 03:23 PM 0
Share

Make sure that you have the internet required permission on as that was causing additional issues.

Having said that, we had so many problems on Android that we switched to a plugin called AV Media Pro until these problems are resolved from Unity.

avatar image AquaGhost · May 09, 2017 at 02:52 PM 0
Share

@Demanuele Turns out that didnt fix it for us. Just putting this on record in case anyone else has the issue. We were getting a weird error that "there is no track" (sound track) on the video for android. It is related to something with encoding, though we couldnt nail down exactly what the encoding problem was, because we re-encoded it a few times and it worked. I think the error reporting is not great regarding codecs.

avatar image FlyingSquirrels AquaGhost · May 09, 2017 at 03:38 PM 0
Share

Which codec is working for you? Can you give more info on length of video, resolution, size etc?

Thanks.

avatar image AquaGhost FlyingSquirrels · May 09, 2017 at 04:24 PM 0
Share

Here is what is working on ios and android today: Sound: AAC Stereo 44.100

Vid: H264 1920x960 FPS 29.96

avatar image

Answer by MarioetLesHerosNintendo · Jul 23, 2021 at 12:18 PM

Hi ! I have the same error bu my video is on my device (Oculus Quest 2) and not online. I use Unity 2019.3.15. Did you find a solution, @Demanuele ?

Comment

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

159 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to play a video inside a canvas with world space in unity3d 0 Answers

Unity 5 mobile video stops after a second using Handheld.PlayFullScreenMovie() 0 Answers

Stereoscopic 3D 360 video player for Gear VR - left and right spheres out of sync 0 Answers

Handheld.PlayFullScreenMovie is not playing Video from URL in Android 0 Answers

Unity and Vuforia on Android: Could Not Load Video from OBB 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges