Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
avatar image
1
Question by Symbolizer · Oct 13, 2015 at 03:00 PM · androidiosunity 4.6uploadvideos

How to Upload a video from Android/iOS to a server without using WWW ?

Hi everybody !

I need to upload some videos from Android/iOS to a server but as those videos could probably be heavy in term of size (> 100mb), it is pretty hard to use the WWW object from Unity to achieve this.

Is there another way to do this ?

Thank you in advance for your answers !

Comment
Add comment
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Symbolizer · Oct 21, 2015 at 12:00 PM

By doing more research I've finally found a solution to this problem.

I've used a BinaryReader object to read the video by chunks, everytime a chunk is read, I upload it to the server with a WWW request (it's not crashing the application because the chunk size is lower than 10mo).

Once every chunks are uploaded, the side server code is merging all of them into one single video file and it's working perfectly !

if some of you need a code example just give me a sign :) !

Comment
Add comment · 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 riotgrrrl · Jan 18, 2016 at 08:30 AM 0
Share

Hello Symbolizer,

I am making a small app which accompanies a website that allows for asking a question. Right now I'm successfully recording and playing back audio on IOS, but I am struggling with uploading the clip via WWW. Your posts here look very promising and I would be very grateful if you could be so kind as to share the code you used. Whereas you were dealing with size issues I think I will be alright as the max recording length is currently 10 seconds. I have web hosting/FTP, is that what you used? If you don't feel comfortable sharing all your code then a few pointers would be much appreciated.

Thank you!

avatar image Anagashi · Feb 12, 2016 at 04:23 AM 0
Share

Hello Symbolizer,

Is it possible that you share your code example to me?

I kinda doing the same thing.

avatar image gguemdole · Aug 16, 2016 at 05:28 AM 0
Share

Hello Symbolizer, I have a same problem. I want to upload a video in android phone to a web server. Could you share your code example to me? thank you!

avatar image valeria159 · May 17, 2018 at 08:22 PM 0
Share

Hello Symbolizer, can you pls share your code?? Thank you in advance

avatar image
0

Answer by justin_iSO · Jul 19, 2016 at 04:35 PM

Can you share your code?

Comment
Add comment · 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
0

Answer by MHeru_Art07 · Apr 24, 2019 at 06:19 PM

Hallo @Symbolizer, can you explain more to me about your method and code? Thank you

Comment
Add comment · 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.

Follow this Question

Answers Answers and Comments

10 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

Related Questions

Playing video on a cube ? 1 Answer

launch mobile games Unity 4.6 need unity pro IOS and Android? And Unity Android or IOS needs some library´s to work? 1 Answer

"3th Party Library for MPEG 4 Video From images" under Unity for mobile 2 Answers

Runtime terrain loading, Partial terrain loding 1 Answer

Is there a way to fix uploadprogress on mobile? 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