How do stream video from my site and play in unity app? - c#

I want to make a archive of my videos (high quality videos) on my site or other sites and I want to stream them online from the unity exported app.
How can I make stream option because if I preload it in the app, the size of the app is very big which is not needed, want the app to be small in size.
I also tried using YouTube streaming in the app but it only support up to 720p using plugin available on the asset store. Any steps or tutorials is much appreciated. Can someone please help I am stuck here and do not know how to do this.

For a Android/IOS app you can use a plugin called Easy Movie Texture, is not free but the plugin works great and the support is very good too.
All you need to do is add the MediaPlayerCs.cs to the gameObject who will be the "screen" then assign the path of your video in the inspector.(in your case an url)
All of this is explained in the plugin manual.
Link to plugin: https://www.assetstore.unity3d.com/en/#!/content/10032

Related

Windows Phone 8 - Playing streamed audio (internet radio station)

I am trying to make an application that would play an audio stream (mp3) from the following URL http://icecast6.play.cz/radio1-128.mp3. I am struggling to get it working. Is there any default support for cases like these? That the content is continuously streamed?
I have tried to use Background Audio Agent and set Media Element but none of that has been working for me. Would Background Audio Streamer be an option for me? I would be happy for any similar example that I would use to my advantage.
Thank you
I found phonesm project on codeplex that provides great examples and functionality for implementing internet audio streaming.
You need to use BackgroundAudioPlayer by creating another project and adding its reference to your project.
Check this link:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202978%28v=vs.105%29.aspx
You can use Microsoft player framework.
For more details Player Framework

ASP.net - capture video with camera and play in web page

I want to capture video with webcam and play it live in my website.
I dont know what to do!
how can I do that?
With pure ASP.NET, you can't. You have several options and the only one that I am aware of in the .NET wheelhouse would be to use Silverlight (e.g. http://www.silverlightshow.net/items/Capturing-the-Webcam-in-Silverlight-4.aspx and http://forums.silverlight.net/t/145729.aspx)
Your other options would be to use Flash or purchase a third party component.
You can do this with the in development HTML5 video standards. I remember seeing a working demo of a webcam app like you're talking about in a presentation (Google's HTML can do that I think). Check these pages out for ideas/examples:
http://www.sitepoint.com/stream-your-webcam-to-a-browser-in-javascript/
http://www.iandevlin.com/blog/2012/06/html5/filtering-a-webcam-using-getusermedia-and-html5-canvas
http://www.webrtc.org/
https://wiki.mozilla.org/Platform/Features/Camera_API
If you want to display video from a single computer you control (like an old-school "webcam" page) then you'd write some local computer software (presumably using DirectShow or MediaFoundation) that captures frames from your camera and transfers them to your webserver and your page has a simple script that causes the image to be reloaded every second or so. It's not really video, but it's how webcam pages worked until recently.
Now, in 2012, you can serve video directly. You'd want to use something like Apple's "HTTP Video Streaming" where the camera's video stream (not individual frames) is saved into chunks a few seconds in length, then constantly pushed to the server. The webserver then serves a never-ending playlist that lists all of the video chunks just as they're made available, browsers then download the chunks as they're needed. This negates the need for a streaming media server (such as Microsoft's WMS or Adobe's Flash Media Server).

Customizing Microsoft SmoothStreaming Player

I am working on a project that involves the user to view multimedia files like videos or live webcasts thru streaming. I came across the smoothStreaming framework and it was good. But in the player, there is no facility to manually open a video file from the hard disk just like other media players do, so i was wondering that is there anyway to provide this functionality to the player or anyway thru which we can make our own media player on the SMF Framework and then embed it in a webpage.
Please help.

Whats the best C# Way to stream a H.264 Video to another computer/device on a network? Is there a library/API For this? File Sharing?

I am experimenting with C#, and I wanted to create a fun/useful network program. I've programmed for most of my years using C++, C# seems a lot cleaner and easier to program in. I mostly programmed data structures and algorithms. I haven't really touched networking much.
I have video files on my computer that I would like to be able to share/stream/send to other computers on my network. I'm going to eventually expand on it and add a lot of features, but I want to conquer the hardest part first.
Is there a library out that helps with the data management for this?
I see accomplishing this three ways, Idk what's easiest and best.
Maybe using Windows File Sharing (Like how other computers on a network can open videos in a shared folder?)
Streaming the video data to the client computer? Then having their native video program open the data stream? (Buffer-like on youtube?)
Silverlight or some other Library. I can use the built in video player, etc to run it
Features:
I want to allow the client to be able to copy the video tutorial file to their own computer eventually if necessary, so idk. Maybe buffering is the best solution.
Want to allow the client to pause/download the video.
Hopefully I can learn a lot in this project.
You can use Microsoft Expression Encoder SDK to push video stream to a local port, or publish it in Windows or IIS Media Services. Windows Media Player, Silverlight or player-based application can be used for playback on another computer. Also, the are some options for playback on Apple devices. For H.264 support, you would need Pro version of the encoder.
For more information see the SDK documentation on MSDN, and articles Getting started with IIS Live Smooth Streaming and Apple HTTP Live Streaming with IIS Media Services.
You should be able to use vlc to transcode the file (or just stream it) then connect to the stream it produces. I know you're experimenting with C#, but it seems odd to re-invent the wheel, especially when it's such a good one!
I'm sure you'd have some fun automating vlc.

Good plug-in to Record Web Cam Video in ASP.net Application

What are some good plug-ins or techniques to capture a user's video from their webcam. Then upload that file to the server were it could be played back on the web.
I'm thinking flash will be the best option for this, but not sure exactly how to go about this.
Thanks,
Adam
Yes it's quite easy in Flash but you will probably need somthing like Flash Media Server (commercial product) to stream your video afterwards

Categories

Resources