string pkl_uuid = make_uuid ();
string pkl_path = write_pkl (pkl_uuid, interop, metadata, signer);
- write_volindex ();
+ write_volindex (interop);
write_assetmap (pkl_uuid, boost::filesystem::file_size (pkl_path), interop, metadata);
}
}
void
-DCP::write_volindex () const
+DCP::write_volindex (bool interop) const
{
boost::filesystem::path p;
p /= _directory;
- p /= "VOLINDEX.xml";
+ if (interop) {
+ p /= "VOLINDEX";
+ } else {
+ p /= "VOLINDEX.xml";
+ }
xmlpp::Document doc;
xmlpp::Element* root = doc.create_root_node ("VolumeIndex", "http://www.smpte-ra.org/schemas/429-9/2007/AM");
{
boost::filesystem::path p;
p /= _directory;
- p /= "ASSETMAP.xml";
+ if (interop) {
+ p /= "ASSETMAP";
+ } else {
+ p /= "ASSETMAP.xml";
+ }
xmlpp::Document doc;
xmlpp::Element* root;
std::string write_pkl (std::string pkl_uuid, bool, XMLMetadata const &, boost::shared_ptr<const Signer>) const;
/** Write the VOLINDEX file */
- void write_volindex () const;
+ void write_volindex (bool) const;
/** Write the ASSETMAP file.
* @param pkl_uuid UUID of our PKL.