• How to get a list of files in your application's content location (ModuleVideoNameList)

    ModuleVideoNameList is an application module that will return a list of files that are currently available in an application's content folder. It can be called from a custom Flash client by using the NetConnection.call function.

    A compiled version of this module is included in the Wowza Module Collection.


    To enable this module, add the following module definition to your application. See Configure modules for details.

    Fully Qualified Class Name
    ModuleVideoNameList List videos in content folder. com.wowza.wms.plugin.collection.module.ModuleVideoNameList

    Flash Client Configuration

    To call this from module from Flash, use the following AS3 version code. If you're using Flex, yoyou're e Bindable ArrayCollection with a ComboBox. In Flash CS, you can change the returned list format into an array.

    netconnection.call("getVideoNames",new Responder(videoNamesHandler));
    private var recordedStreamsDP = new ArrayCollection();
    private function videoNamesHandler(results:Object):void
    for( var item:String in results ) 
    	var obj:ObjectProxy = new ObjectProxy(); // In Flex use ObjectProxy to populate Bindable ArrayCollection.
    	obj.label = results[item];
    	obj.value = item;
    This following code should work in Flash AS3 or AS2:

    var result:Object = new Object();
    result.onResult = function(results:Object)
      for( var item:String in results ) 
    netconnection.call("getVideoNames", result);

    Wowza media server software and all components, including modules, source code, and other related items offered on this page, are copyrighted (c) 2006-2014 by Wowza Media Systems, LLC, all rights reserved, and are licensed pursuant to the Wowza Media Software End User License Agreement.
    Updated: For Wowza Streaming Engine 4.0.6 on 08-11-2014.

    If you're having problems or want to discuss this article, post in our forum.

    This article was originally published in forum thread: Module Collection started by rrlanham View original post