Tracking the tools that decentralize the media. tools process ideas resources eventsav

unmediated

 

August 10, 2006

Ryan Shaw emailed this reply to Jay Fienberg --
What Jay Fienberg describes is basically what life would be like if the Flash NetStream API (and some syntax for binding it to HTML-defined boxes) were standardized, available in the major browsers, and scriptable from JavaScript. In fact, it is available in the 98% of browsers that have a Flash plugin installed, and JavaScript <-> ActionScript bridges work pretty well these days--but obviously it sucks that Adobe controls the API and all implementations. It would be nice if IE adapted its HTML+TIME code to support a NetStream API, and Mozilla shipped media playback capability (perhaps based on VLC or GStreamer) and standardized on the same API. Until that happens, though, using MTASC and some JS<->AS hackery isn't a bad way to go.

The NetStream API is new to me, and since I like to provide some sort of explanation when a technology first appears on my blog, here's some documentation.

NetStream - Flash 8 ActionScript 2.0 Language Reference

The NetStream class provides methods and properties for playing Flash Video (FLV) files from the local file system or an HTTP address. You use a NetStream object to stream video through a NetConnection object. Playing external FLV files provides several advantages over embedding video in a Flash document, such as better performance and memory management, and independent video and Flash frame rates. This class provides a number of methods and properties you can use to track the progress of the file as it loads and plays, and to give the user control over playback (stopping, pausing, and so on).

What Ryan is picturing here is a Javascript-accessible library for media rendering in the browser. In Internet Explorer the library might be accessing the underlying COM API to Windows Media Player, while other browsers would be accessing Flash. In either case there would be a standard API between the Javascript and the media player.