Reputation:
I want to create a html page that can be used to upload videos and also able to playback the videos. I am totally new to this. 2 weeks before only i learnt uploading and processing images. So, i need some guidelines like
I am using Java in server side!
And i also want to know that Is there any way to do them all with AJAX?
Any suggestions or advices or links or anything that can help me would be more appreciative!!!
Thanks in Advance!
Upvotes: 2
Views: 4123
Reputation: 13974
Hmmm... seems interesting..
How to upload video?
Well it depends.
Apache Commons File Uplaod API
.what concepts i have to learn?
what are all the libraries i may require?
Again depends
JSTL
etcXuggler is the easy way to uncompress, modify, and re-compress any media file (or stream) from Java. Xuggler is available under the GNU Lesser General Public License.
Most of the Flash video sites either use xuggler or FFMpeg for conversion and playback.
How to convert it into flash format?
Use Xuggler http://www.xuggle.com/xuggler/. It uses the FFMpeg
http://www.ffmpeg.org/. Though you have to use at server side for conversion (As of now you can not use it in applet). Refer to http://wiki.xuggle.com/Tutorials for more information.
How to stream it back to user?
I normally do it in this fasion.
<embed height="385" width="640" type="application/x-shockwave-flash" src="http://s.ytimg.com/yt/swf/watch_as3-vflofTU0v.swf" id="movie_player" flashvars="rv.7.length_seconds=107&rv.2.thumbnailUrl=http%3A%2F%2Fi4....." allowscriptaccess="always" allowfullscreen="true" bgcolor="#000000">
I hope it will help you :)
Upvotes: 5