Strobe Media Playback + Static plugin

I'm trying to load plugins into SMP statically instead of externally, what is the preferred method of injection? I can't find a single example.
Thanks in advance!
Casey

I duplicated StrobeMediaPlayback and renamed it for my project, then I made a small edit like this:
Find these lines inside onChromeProviderComplete:
var pluginLoader:PluginLoader;
factory = injector.getInstance(MediaFactory);
After them add:
//injecting plugins statically
factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD, onPluginLoad);
factory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD_ERROR, onPluginLoadError);
var youtubePluginInfoResource:PluginInfoResource = new PluginInfoResource(new YouTubePluginInfo());
factory.loadPlugin(youtubePluginInfoResource);
//end plugin injection
The listeners are optional:
protected function onPluginLoad(event:MediaFactoryEvent):void
trace("The plug-in loaded successfully.");
protected function onPluginLoadError(event:MediaFactoryEvent):void
trace("The plug-in failed to load.");
--C

Similar Messages

  • How to Create a new plugin in Strobe Media PlayBack?

    Hai
                  i want to create a plugin for swf,and added into the Strobe media Playback.i follow this link:http://osmf.org/dev/osmf/OtherPDFs/osmf_plugin_dev_guide.pdf
    But my plugin is Not Loaded ,i dunno wats the reason.Anybody kindly Help me,am new for creating a plugin.
    Thanks in advance!
    swfPlugin.as
    package
              import flash.display.Sprite;
              import com.realeyes.osmf.plugin.swfPluginInfo;
    public class swfPlugin extends Sprite
              public function swfPlugin()
                        super();
                        _pluginInfo = new swfPluginInfo();
              // OSMF will invoke this getter to retrieve the plug-in's
              // PluginInfo object.
              public function get pluginInfo():swfPluginInfo
                        return _pluginInfo;
              private var _pluginInfo:swfPluginInfo;
    swfPluginInfo.as
    package com.realeyes.osmf.plugin
              import org.osmf.media.PluginInfo;
              import org.osmf.media.MediaElement;
              import org.osmf.media.MediaResourceBase;
              import org.osmf.media.MediaFactoryItem;
              import org.osmf.media.URLResource;
              import org.osmf.elements.VideoElement;
              public class swfPluginInfo extends PluginInfo
              public function swfPluginInfo()
                        var items:Vector.<MediaFactoryItem> = new Vector.<MediaFactoryItem>();
                        // Create the MediaFactoryItem and add to our list of items.
                        var item:MediaFactoryItem = new MediaFactoryItem
                                  ( "com.realeyes.osmf.plugins.WatermarkPlugin"
                                            , canHandleResourceFunction
                                            , mediaElementCreationFunction
                        items.push(item);
                        // Pass the list to the base class.
                        super(items);
              private function canHandleResourceFunction(resource:MediaResourceBase):Boolean
    var result:MediaElement;
                        // Only return true if the resource is an URLResource...
                        var urlResource:URLResource = new URLResource("http://vm2.gloriatech.in/android/load6.swf");
                                  // ... and if the URL starts with "rtmp".
                                  return result = urlResource as MediaElement;
              private function mediaElementCreationFunction():MediaElement
                        return new VideoElement();

    Hai
                  i want to create a plugin for swf,and added into the Strobe media Playback.i follow this link:http://osmf.org/dev/osmf/OtherPDFs/osmf_plugin_dev_guide.pdf
    But my plugin is Not Loaded ,i dunno wats the reason.Anybody kindly Help me,am new for creating a plugin.
    Thanks in advance!
    swfPlugin.as
    package
              import flash.display.Sprite;
              import com.realeyes.osmf.plugin.swfPluginInfo;
    public class swfPlugin extends Sprite
              public function swfPlugin()
                        super();
                        _pluginInfo = new swfPluginInfo();
              // OSMF will invoke this getter to retrieve the plug-in's
              // PluginInfo object.
              public function get pluginInfo():swfPluginInfo
                        return _pluginInfo;
              private var _pluginInfo:swfPluginInfo;
    swfPluginInfo.as
    package com.realeyes.osmf.plugin
              import org.osmf.media.PluginInfo;
              import org.osmf.media.MediaElement;
              import org.osmf.media.MediaResourceBase;
              import org.osmf.media.MediaFactoryItem;
              import org.osmf.media.URLResource;
              import org.osmf.elements.VideoElement;
              public class swfPluginInfo extends PluginInfo
              public function swfPluginInfo()
                        var items:Vector.<MediaFactoryItem> = new Vector.<MediaFactoryItem>();
                        // Create the MediaFactoryItem and add to our list of items.
                        var item:MediaFactoryItem = new MediaFactoryItem
                                  ( "com.realeyes.osmf.plugins.WatermarkPlugin"
                                            , canHandleResourceFunction
                                            , mediaElementCreationFunction
                        items.push(item);
                        // Pass the list to the base class.
                        super(items);
              private function canHandleResourceFunction(resource:MediaResourceBase):Boolean
    var result:MediaElement;
                        // Only return true if the resource is an URLResource...
                        var urlResource:URLResource = new URLResource("http://vm2.gloriatech.in/android/load6.swf");
                                  // ... and if the URL starts with "rtmp".
                                  return result = urlResource as MediaElement;
              private function mediaElementCreationFunction():MediaElement
                        return new VideoElement();

  • Strobe Media Playback with AIR ?

    Does anybody know how to  use the Strobe Media Playback Player in an AIR application?
    I need to skip all the configuration that comes from flashvars,I tried to modify the source code but it's a headache.

    Adrian,you are the man!
    The dynamic version worked,however I didnt get the static version to work.Here's the modified code,got rid of the unecessary loader stuff
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      creationComplete ="init(event)"
      showStatusBar = "false"
      >
    <fx:Script>
    <![CDATA[
    import mx.core.UIComponent;
    [Embed(source='/StrobeMediaPlayback.swf')]        ????(it was not in the source!)
       private var StrobeMediaPlayback:Class;
    protected function init(event:Event):void
    _stage = systemManager.stage;
    _stage.align = StageAlign.TOP_LEFT;
    _parameters  =
    src:"http://mediapm.edgesuite.net/strobe/content/test/AFaerysTale_sylviaApostol_640_500_short.f lv"
    , controlBarMode:"floating"
    , controlBarAutoHide:"false"
    // For statically linked StrobeMediaPlayback you can use this snippet
    var playerClass:Class = getDefinitionByName("StrobeMediaPlayback") as Class;
    var playerInstance:Object = new playerClass();
    playerInstance.initialize(_parameters, _stage);
    var ui:UIComponent = new UIComponent();
    ui.addChild(playerInstance as DisplayObject);
    addElement(ui);
    private var _stage:Stage;
    private var _parameters:Object;
    /* static */
    private static const ALLOW_LOAD_BYTES_CODE_EXECUTION:String = "allowLoadBytesCodeExecution";
    ]]>
    </fx:Script>
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    </s:WindowedApplication>
    The problem is I did'nt find any  StrobeMediaPlayback.swf   in the source of your project to embed,so I just grabbed the StrobeMediaPlayback.swf  from the StrobeMediaPlayback download,and also tried the swf in the bin folder of the StrobeMediaPlayback Flex Project.
    I got a runtime error
    ReferenceError: Error #1065: Variable StrobeMediaPlayback is not defined.
    I will appreciate your help,(again)!

  • Sharing widget for Strobe Media Playback

    Hi,
    I earlier posted for same.
    Can i find sharing widget somewhere
    Or
    any sharing plugin availabe that can be integarted.
    Hope someOne will reply.................

    Hi,
    Currently we don't provide ASDocs for Strobe Media Playback. Would it be useful for you?
    Besides the user guide, you can check our wiki space for some technical documentation: https://sourceforge.net/adobe/smp/wiki/Features/
    -Andrian

  • Strobe Media Playback, basic code not working with FLV file?

    I am trying to use the following code with Strobe Media Playback swf 1.5:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />   
        <title> </title>
        <script type="text/javascript" src="scripts/swfobject.js"></script>
        <script type="text/javascript">
                var flashvars = {};
                    flashvars.src = "song.flv";
                    flashvars.poster = "preview.jpg";
                var params = {};
                    params.movie = "StrobeMediaPlayback.swf";
                    params.allowfullscreen = "false";
                    params.allowscriptaccess = "always";
                var attributes = {};
                // Embed the player SWF:
                swfobject.embedSWF
                    ( "StrobeMediaPlayback.swf" //swf file name
                    , "videoDiv" // targeted div
                    , "652", "366" // width, height
                    , "10.1.0" // Flash version
                    , "scripts/expressInstall.swf" //location of expressinstall script
                    , flashvars
                    , params
                    , attributes
         </script></head>
    <body>
        <div id="videoDiv">
            <video controls="controls" poster="preview.jpg" width="652" height="366">
                <source src="song.flv" type="video/flv" />
                <source src="song.ogg" type="video/ogg" />
            </video>
        </div>
    </body>
    </html>
    However, the page is saying:
    We are having problems with playback. We apologize for the inconvenience.
    My links do not appear to be broken, I have checked them with Firebug / View Source. Has the javascript changed for Strobe 1.5?

    Okay, I think I have it *partly* figured out. If I use the link from the example it works:
    http://players.edgesuite.net/videos/big_buck_bunny/bbb_448x252.mp4
    Does the video have to be online for it to work?

  • I am using strobe media playback but i want to add new button for subtitle in control bar,Can anybody tell me how can i do it.

    I am using strobe media playback but i am not able to add new button for subtitle in control bar.
    I have imported assets.fla file in Flash professional but i do not understand how add new button in this fla and then link with action script method to show subtitle.If anybody know about it please tell me.

    Hi,
    Yes you can add video subtitle and I can give you the details how to do
    that. Can you please advise which type of files you have for video
    subtitile and how many language you want to add. i.e. text files or xml
    files.
    Best regards,
    Sunil Kumar
    On Thu, Jan 15, 2015 at 5:22 PM, Add Subtitles to OSMF and <

  • Online Code Walk-Through Wednesday on How To Build an OSMF Player Strobe Media Playback

    Wednesday November 17 at 12:00 noon PDT the OSMF User Group is hosting an online  code walk-through of the open source Strobe Media Playback video  player codebase.
    The code walk-through will be lead by Andrian Cucu who is  Adobe's Project Leader on the Flash and Strobe Media Playback video player  project.
    To join, just go to the following link at the meeting time to join the OSMF  User Group's Connect room:
    http://experts.na3.acrobat.com/osmf/
    For further details and to RSVP see the following link:
    http://osmf.groups.adobe.com/index.cfm?event=post.display&postid=30846
    ** ALL ARE WELCOME! **
    ** PLEASE FORWARD THIS MEETING NOTICE TO ALL WHO  YOU THINK MAY BE INTERESTED! **

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • How to stream with the player strobe media playback videos using http dynamic streaming?

    Hi..
    please could i have some help about the player strobe media playback?
    i would like to know how to stream with the player strobe media playback videos using http dynamic streaming.
    I have already installed the server,i put my own video in the video on demand folder.i downloaded the player but i don't know how to stream that video with the adobe protocol dynamic streaming.

    http://osmf.org/configurator/fmp/
    Use this configurator, and use the same code it generates with your strobemediaplayback.swf
    Also make sure the domain where strobemediaplayback.swf is being called from and resides, is in your /webroot/crossdomain.xml  file, or it will not work.

  • Any tutorial for Live RTMP Dynamic Streaming using Strobe Media Playback?

    Any tutorial for Live RTMP Dynamic Streaming using Strobe Media Playback anywhere available on the web ?

    Thank you for the link but it does not solve my problem. In this thread they work with manifest xml files like a playlist. Which i tryed but also doesn´t work. Adobe declairs FMP with easy config and less code for non geeks. And this is exactly what i want for my project.
    Does anybody can post some  html sample code especially for dynamic streaming/ MBR wit Flash Media Playback??? For Live or On-Demand.
    Best
    Hinricht

  • Strobe Media Playback requires FMS, HTTP origin

    I want to know that Strobe Media Playback (that uses OSMF 2.0) requires FMS, HTTP Origin and f4fpackager (all of them or any) as server side support for the Dynamic Streaming Sample application,  (OSMF Sample Players given  in the OSMF Sample Folder) to actually do Dynamic http Streaming.
    Also I want to Know that  HTTP Origin Module is Open Source or not.
    http://help.adobe.com/en_US/HTTPStreaming/1.0/Using/WS7b362c044b7dd076-735e76121260080a90e -8000.html#WS8af793f9af34bea079185b712874092c43-8000
    Please Clerify me on this.

    As stated in your other post, you are asking these questions in the wrong forum. Here is the forum for FMS: http://forums.adobe.com/community/flash/flash_media_server
    The Shark wrote:
    It is important to note that your post is in the wrong forum. For future reference, if you have FMS related questions, they should be posted here:
    http://www.adobe.com/go/fms_usergroup/

  • Questions about SMP (Strobe Media Playback)

    Hi all,
    Sorry if I am posting this in a wrong forum. I did not know where else to put this.
    I want to know:
    Is it a web based player that can be embedded in a web browser or is it a desktop application?
    How many domains can SMP be played on?
    Does SMP support bandwidth detection?
    Regards,
    digital mystic

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • What Web Services Strobe Media Playback Uses.

    HI,
    Am I posting correct question or I am wrong
    Does strobe media playback uses any web service.
    If it uses or not please let me know .

    The player supports both standard and advanced delivery methods, including progressive download, RTMP streaming,
    RTMP dynamic streaming, HTTP streaming, HTTP dynamic streaming, and live streaming. Flash Media Playback
    1.5 and Strobe Media Playback 1.5 also provide support for RTMFP multicast content delivery.
    While RTMP(x) streaming are FMS content delivery technologies, the player can also be used with other FMS compatible streaming servers, such as Wowza or Red5.
    In the case you do not need the use of FMS streaming functionality, progressive download is always an alternative (what this means is that all you need is a video that can be served by a webserver like apache, nginx, lightypd, etc).
    As for how the player can be used, these links are allways a good place to start and get a better idea of what it is all about:
    http://www.osmf.org/strobe_mediaplayback.html
    http://blog.theflashblog.com/?p=2087
    Hope this helps.

  • Strobe media playback in Flash?

    Hi everybody,
    is there any way to load the player into a .fla file?
    I'm not able to find anything about that..
    Thanks in advance.

    Thank you, billo! From a first sight, it looks as a slightly different approach, but I'm enthusiastic to try.
    Just for information, I've been able to load an instance of the Strobe Media Playback in Flash (with the Loader class), but when I try to load a second instance I get a
    TypeError: Error #1034
    Does this tell anything?
    It's very strange, because the first instance seems to work perfectly..
    Thanks for the help.

  • Encryption techniques for strobe media playback

    What are the best techniques to protect content’s being played via strobe media playback..
    User should be able only to view the video’s.
    There should be no option for video download, even if user has installed real player.
    Because by installing real player, it provides download option.
    Thanks

    Hi,
    Currently we don't provide ASDocs for Strobe Media Playback. Would it be useful for you?
    Besides the user guide, you can check our wiki space for some technical documentation: https://sourceforge.net/adobe/smp/wiki/Features/
    -Andrian

  • Is There a Public "Bug and Issue Management System" for Strobe Media Playback?

    HI all,
    Is there a public "Bug and Issue Management System" for Strobe Media Playback?  Or is this forum the only officially supported public mechanism for SMP bug reporting and feature requests?
    (fyi, I ask in part because SMP is built on top of OSMF, and both projects are led by development teams at Adobe.  The OSMF project, however, has fuller level of support including "Bug and Issue Management System" here:
    https://bugs.adobe.com/jira/browse/FM   )
    Thank you to all of the SMP team for this great player!
    Best regards,
    g

    Hi Greg,
    Here is our public bug and issue management page:
    http://bugs.adobe.com/jira/browse/ST
    Thanks for your interest in Strobe Media Playback and for your great articles!
    -Andrian

Maybe you are looking for

  • Paper tray error message HP LaserJet 1102w

    Recently my LaserJet 1102w stopped printing duplex; instead, after printing the first side it gives an error message :  Paper tray needs to be filled.   The paper tray is full, but I cannot get it to continue printing the other side, no matter what.

  • Crystal XI viewer will not open in Internet Explorer

    I have a web site using ASP and we are using Crystal XI as our report program.  We developers have created the .msi file that is distributed to our QA and Production Servers so that all users can run reports and see them in Crystal Viewer using IE us

  • Disappearing bookmarks in Acrobat XI trial version

    Hi there, I recently converted a Word 2013 document to a PDF using Acrobat XI trial version. However, when  I reduced the PDF size and secured it, the bookmarks disappeared. I'm interested in buying the full version but I need to know first why this

  • How can I unlock an I phone 4 locked to Orange UK

    I have bought my niece an I phone 4 but she is on Talk mobile and the phone is Orange, Orange say I have to wait 6 months to unlock it, is there another way?

  • Detect browser closing

    In my company, we have a requirement to display a message to the user whenever they close the browser while in the EP. Is there any config or hacks (javascript, etc) to detect the browser closing to display a message box? Thanks.