Creating a MediaCollection


In this sample, we:


create a MediaCollection on disk

add a pre-analyzed EDF file (perhaps made with the previous code sample, Analyzing a File)

close the collection.


// set up the file names and locations

String path="\\temp\\mymediacollection"

String edf = "\\temp\\mymediaobject"


// create a MediaCollection object and a MediaObject

MediaCollection mediaCollection = (MediaCollection) Eve.newMediaCollection();

MediaObject mediaObject = (MediaObject) Eve.newMediaObject();





catch (Exception e)