Category Archives: ActionScript

Server-side stream recording example updated

36
Filed under ActionScript, Flash, Java, Red5, Software, Tutorials

With this being my most popular blog topic, I felt the time has come for a little update. (You can catch up on the original here.) Frankly, there’s not much too it. The server-side code didn’t change much, just an update to take advantage of the built-in logging support of Red5. Both clients have been completely rewritten using ActionScript 3. (I know, it’s about time.) Read More »

jQuery Transmit file upload plugin updated

4
Filed under ActionScript, Flash, Software, jQuery

Having finally gotten a few hours to myself, I’ve updated the jquery-transmit file upload plugin to support Flash 10. Because of the security restrictions added in the most recent revision of the flash browser plugin, the calls to trigger the file selection dialog needed to occur in the SWF itself. To achieve this, the SWF is placed on a layer above the links triggering the dialog. You should be able to successfully edit the HTML to your liking without much consequence. Though, you should be careful not to rename any of the ids or classes. The plugin relies on them to place the SWF and resize it as necessary. As with the initial release, the plugin should be considered a work in progress and is not yet suitable for a production environment. Hopefully, this fact won’t deter you from giving the plugin a try. Source and downloads are available at googlecode. As always, constructive feedback is very much appreciated.

Flickr style multiple file upload with jQuery

14
Filed under ActionScript, Flash, Software, Tutorials, jQuery

A while back, Paul Gregoire introduced me to the jQuery JavaScript library. It didn’t take long for me to realize the power and elegance of this library. For the longest time, I’ve been wanting to take a shot at authoring a plugin for jQuery and I’ve finally gotten around to it. So, it is my pleasure to announce the creation of the jquery.transmit plugin. It is a flash-backed multiple file upload utility with a user experience similar to that of Flickr’s current uploader. The goals for the plugin were simple: Provide an easy-to-use interface, use flash to work around HTML and JavaScript based file upload issues, and wire it all together with jQuery. Getting started with the plugin is quite simple. Import the necessary CSS and JavaScript dependencies, edit the supplied HTML to your liking and invoke the plugin like so:

    $(document).ready(function() {
        $('#transmit').transmit('http://mysite.com/upload/');
    });

While the plugin is still very much in its infancy and should be considered a work in progress, it is my opinion that it is easier to shake out bugs using an iterative development process. So, keeping that in mind, I’m hoping that a couple of you brave souls will wander over to googlecode and give it a try. Constructive feedback is very much appreciated.

Jedai Framework for Red5

1
Filed under ActionScript, Flash Media Server, Red5

As the Red5 media server continues to mature, new and exciting additions are announced with greater frequency. Once such addition to Red5 is the Jedai project. Anyone familiar with Flash Media Server knows that it provides a solid component library for rapid development of collaborative media applications. With the introduction of the Jedai project, Red5 is no longer lacking in the area. Read More »

Server-side stream recording with Red5

62
Filed under ActionScript, Flash Media Server, Java, Red5, Software, Tutorials

This tutorial has been updated. Please check out the new post.NetStream.publish(“streamName”, “record”) API, it is sometimes useful to take FLV snippets from the publishing stream instead. In my opinion, this is one of the greatest features of Flash Media Server (FMS) and Red5. Utilizing this strategy allows the application developer to precisely control when and how much of the video is recorded. While recording via the NetStream function has been available in Red5 since the beginning, recording video from the server-side application has not. In this post, I’ll demonstrate Red5’s ability to record an FLV with a very simple pair of publish and subscribe flash applications. Read More »

Server-side ActionScript plugin for Eclipse

0
Filed under ActionScript, Eclipse, Flash Media Server, SSAS, Software

Server-side ActionScript (SSAS) has long been the bastard child of the ActionScript permutations. There are a number of editors that offer syntax highlighting and in the case of the Flash development tool, the bare minimum of auto-completion features for SSAS. That is until now. Read More »

Red5 + Hibernate

9
Filed under ActionScript, Hibernate, Java, Red5, Software, Tutorials

This tutorial has been updated. Please check out the new post.

Having followed the growth of the Red5 Media Server[1] from it’s fledgling 0.3 days, I’ve become fairly familiar with its offerings. One of the most frequently asked questions on the Red5 mailing list pertains to database connectivity for user authentication and application security. I’ll attempt to tackle one solution here using Hibernate[2], an object/relational persistence framework. Read More »