grass valley developers

Home > APIs > AppServer API > Examples > Asset Management > Create a Bin

Create a Bin

The sample code below shows how to create a bin. Bins contain assets (clips, playlists, etc.)

// create a mediamgr object
IMediaMgr mediaMgr = iappServer.CreateMediaMgr(appName);

// create the bin V:/testbin
mediaMgr.CreateBin("V:", "testbin");

// cleanup
// create a mediamgr object
IMediaMgrPtr spMediaMgr;
hr = spAppServer->CreateMediaMgr(_bstr_t("YourApplicationName"), 

// create the bin V:/testbin
spAppServer->CreateBin( _bstr_t("V:"), _bstr_t("testbin") );