<pedrocorreia.net ⁄>
 

<Creating MyTube with Flex and PHP ⁄ >




clicks: 4230 4230 2007-05-27 2007-05-27 goto programacao myNews programacao  Bookmark This Bookmark This


With widespread broadband adoption, the continued shrinking cost of disk space, and the availability of the Adobe Flash Player and Flash video, it's no wonder that video sharing on the Internet is insanely popular. Sites like Google video and YouTube got the ball rolling, but now there are niche video sites everywhere. So, how can you get in on the action? How can you use technologies such as PHP, Flash, and Adobe Flex to build your own video sharing site? Turns out, it's a lot easier than you think.
Click here to find out more!

This article walks you through building the PHP portion of the site as well as building a movie viewer in Flash using the Flex framework. To build a simple version of YouTube (or a MyTube, as it were), you should have a couple of tools in place.

On the server side, you first need PHP and MySQL. You'll use MySQL to store the data about the movies (for example, the file name for the movie, the thumbnail file, the height and width of the thumbnail, the title, and the description). PHP will do the work of formatting pages, both HTML and XML, depending on how you want to do it.

You also need an open source utility called ffmpeg to do the work of converting the video from whatever format your user uploads into a Flash Video (FLV) file. The ffmpeg utility can also generate a thumbnail snapshot of a frame from the movie for use when you present the list of available movies. Lest there be any doubt, ffmpeg is your new best friend in the world of video sharing. It's an amazing utility that is powerful, easy to use, and well documented.

On the frontend, I show several different user interface approaches. The first uses a hybrid HTML/Flash approach similar to YouTube. The second approach uses a completely Flash-based interface. For both of these approaches, I use the Flex framework to build the Flash applications that view the video and later to list the available videos and provide navigation



este é só um excerto do artigo, para aceder ao artigo completo, clique no link em baixo:
this is just a small excerpt from the article, to access the full article please click in the link below:

http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-a...




Subscribe News RSS  Subscribe News Updates by E-mail





myNews <myNews show="rand" cat="programacao" ⁄>

RouterJs: easy routing for your ajax Web applications new ...

RouterJs is a simple router for your ajax web apps. It's build upon History.js which means that Rout (...)

clicks: 19460 19460 2012-05-14 2012-05-14 goto url (new window) haithembelhaj.g... goto myNews programacao


Backbone computed properties new ...

This gist shows one way to implement read- and write-enabled computed properties on a Backbone Model (...)

clicks: 19010 19010 2012-05-13 2012-05-13 goto url (new window) https://gist.gi... goto myNews programacao


Create Instagram Filters With PHP new ...

In this tutorial, I'll demonstrate how to create vintage (just like Instagram does) photos with PHP (...)

clicks: 19164 19164 2012-05-12 2012-05-12 goto url (new window) net.tutsplus.co... goto myNews programacao


HTML5 jQuery Paint Plugin new ...

Websanova Paint is a HTML5 canvas based jQuery plugin. It allows you to free paint on a canvas area (...)

clicks: 30319 30319 2012-05-12 2012-05-12 goto url (new window) websanova.com/t... goto myNews programacao


Android Query new ...

Android-Query (AQuery) is a light-weight library for doing asynchronous tasks and manipulating UI el (...)

clicks: 18851 18851 2012-05-12 2012-05-12 goto url (new window) code.google.com... goto myNews programacao


Real-time Applications With Node.js and Socket.IO new ...

Hey everyone! Sorry about the long pause since the last blog post, life has been quite hectic for th (...)

clicks: 19424 19424 2012-05-11 2012-05-11 goto url (new window) codingcookies.c... goto myNews programacao


Sass vs. LESS vs. Stylus: Preprocessor Shootout new ...

CSS3 preprocessors are languages written for the sole purpose of adding cool, inventive features to (...)

clicks: 18896 18896 2012-05-11 2012-05-11 goto url (new window) net.tutsplus.co... goto myNews programacao


Gettings to know Backbone.ks new ...

In this series, we're going to learn how to build a fully functional contacts manager using Backbone (...)

clicks: 18032 18032 2012-05-10 2012-05-10 goto url (new window) net.tutsplus.co... goto myNews programacao