Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 dibonaj · Oct 26, 2011 at 02:37 PM · webplayervideostreaming

Video Streaming for Web Player

Hello all:

I am building a web player that right now is far too large. My main culprit are the videos that I still have inside of the build. So I have a question about streaming video, since I would like to get my videos out of my build to reduce the size of the web player.

I have not been able to find any tutorials or anything like that, and if you know of any please, by all means, provide links. But my question is this: when streaming video content, do the videos need to be hosted on a site, or can they just sit in a folder in the same location as my web player? As of right now I don't have a test server set up or anything like that, so I am at a loss of how to test to make sure I have my code written correctly. Actually, right now I don't even have any code written for streaming videos.

Any help would be greatly appreciated.

Thank you.

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

1 Reply

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

Answer by jonas-echterhoff · Oct 26, 2011 at 02:46 PM

Once you upload your web player somewhere, "Hosting on a site" and "Sitting in a folder in the same location as my web player" are the same, since you are hosting your web player on a site.

In the web player you can use relative URLs to find files next to your web player. Like this:

 www = new WWW ("myMovie.ogg");

See here for a sample on how to stream a movie from a url.

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 dibonaj · Oct 26, 2011 at 02:52 PM 0
Share

Hahah, fair enough. Total brain fart on the "Hosting on a site" and "Sitting in a folder..." were the same thing. Something I already knew, and should have kept in $$anonymous$$d.

When writing my code and before creating the web player, I take it that it will work just fine in the editor if I write everything correctly, right?

avatar image dibonaj · Oct 26, 2011 at 06:09 PM 0
Share

Do .ogv files work, or do they have to be .ogg? I have found a script on the Unity Reference page that I am trying to get working, but my video never plays. When I run the script exactly as it is in the Reference page it works. That being said, I am also searching for my file in my machine's directory, not from a website.

avatar image dibonaj · Oct 26, 2011 at 06:34 PM 0
Share

Never$$anonymous$$d. Got the .ogv file working and grabbing the video from my directory, but I have to write out the full directory it seems.

The problem I am struggling with is the fact that I have about 8 different videos. When the user clicks on a certain item I want that video to spawn up. So I am still trying to figure out how to attack this. Thank you for your help earlier though.

avatar image VamshiKrishnaP · Sep 06, 2013 at 11:34 AM 0
Share

How to Play the Strea$$anonymous$$g video in Android device or iphone device ? Can you help me.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How o I prevent streamed video stutter? 1 Answer

Unity simple client server video streaming using RPC calls to send webcamTexture 2 Answers

Streaming videos from web server in android 0 Answers

Cross Platform Video Streaming? 0 Answers

Is 4K webcam compatible with Unity 5.6 video player/webcamtexture? 0 Answers


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