Evenin' all:
I posted four new OSMF recipes on Adobe's cookbook site this afternoon, and thought you might care to see 'em:
Playing Multiple Pieces of Media, Consecutively, with the OSMF ParallelElement
Playing Multiple Pieces of Media, Concurrently, with the OSMF ParallelElement
Dynamic Streaming with OSMF
HTTP Streaming in OSMF
And, as a reminder along these lines, I'm teaching this year at MAX, as a MAX Master, on 'Designing Custom Video Players with OSMF' (you can browse the catalog of talks and presentations and then you can register here).
Share and enjoy!
-r …read more…
The OSMF team sent this to me to help get the word out, and I wanted to pass it along to you all.
On Wednesday, June 9th, Adobe will be hosting a FREE 90-minute session, run by Lisa Larson-Kelley, on the formal launch of the 1.0 version of the Adobe Open Source Media Framework (OSMF). Lisa will also cover the beta release of "Strobe Media Playback," a pre-compiled SWF media player (including source code) based on OSMF.
The invitation is here and you may register here.
…read more…
I tried to record my 'Standardize Your Flash with Adobe OSMF' talk from FITC Toronto — and, lo and behold, it actually seems to have worked.
So I edited it down a bit (cutting out the Q&A, which unfortunately was not audible on my microphone), chopped the sections down into individual videos, and posted them to YouTube. I thought it might be a good reference if I embedded all of them in a single post, along with the source code you'll want for each lesson if you wish to follow along in Flash CS4 or CS5.
In this talk, I cover:
- what is OSMF
- OSMF capabilities
- The basic structure of an OSMF player, including the MediaElement, MediaPlayer and MediaComposition
- Dynamic Streaming (the files for that video also include HTTP Streaming)
- Subclipping
- The key MediaPlayer properties and events required to build a media player
…read more…
I'm writing some new sample files for OSMF in preparation for my presentation, 'Standardize Your Flash with Adobe OSMF,' which I'll be giving on April 27th at FITC Toronto.
Last time I checked (February), OSMF was in Sprint 9 (and I updated my sample files at that time, posted here). Now, it's in Sprint 10, specifically version 0.93. And Adobe appears to have done a lot to lock down the API, which is definitely an exciting and positive development.
But, of course, there are some significant changes since the Sprint 9 OSMF framework — so even the files I posted just two months ago are no longer valid. So, since I wrote it as one of the sample files for my talk, I figured I would post the code to run dynamic streaming with OSMF v0.93.
Here is a Flash CS4 document class, assuming you already have your OSMF SWC in your library path.
package
{
import flash.display.Sprite;
import org.osmf.media.MediaPlayer;
import org.osmf.containers.MediaContainer;
import org.osmf.media.URLResource;
import org.osmf.net.NetLoader;
import org.osmf.elements.VideoElement;
import org.osmf.utils.URL;
import org.osmf.net.DynamicStreamingResource ;
import org.osmf.net.DynamicStreamingItem ;
public class MyPlayer extends Sprite
{
private const RTMP_URL : String = "rtmp://myhost" ;
public function MyPlayer()
{
player = new MediaPlayer ( ) ;
container = new MediaContainer ( ) ;
addChild ( container ) ;
//set the player to play videos only once by default
player.autoRewind=false;
var resource : DynamicStreamingResource = new DynamicStreamingResource ( RTMP_URL ) ;
var vector : Vector.<DynamicStreamingItem> = new Vector.<DynamicStreamingItem> ( 3 ) ;
vector [ 0 ] = new DynamicStreamingItem ( "myMovie_high" , 1500 ) ;
vector [ 1 ] = new DynamicStreamingItem ( "myMovie_low" , 400 ) ;
vector [ 2 ] = new DynamicStreamingItem ( "myMovie_medium" , 600 ) ;
resource.streamItems = vector ;
videoElement = new VideoElement( resource ) ;
player.media = videoElement ;
container.addMediaElement ( videoElement ) ;
}
private var player:MediaPlayer;
private var container:MediaContainer;
private var videoElement : VideoElement ;
}
}
Share and enjoy!
-r
My new online video course on Dynamic Multi-bitrate Streaming with Adobe Open Source Media Framework (OSMF) has just gone live on Adobe Developer Connection.
It's 35 minutes across five lessons and takes you through the process of converting the progressive OSMF video player (which we create in the first installment of this course on Building Progressive Video Players with Adobe OSMF, into a dynamic multi-bitrate streaming player. Multi-bitrate streaming occurs when you program your Flash to deliver the highest quality video a viewer can see (dependent on their bandwidth). *Dynamic* multi-bitrate streaming is similar, with the additional feature of having your player constantly meters the bandwidth throughout viewing, to adjust the playback between multiple videos seamlessly, as the viewer's bandwidth may fluctuate. …read more…