/// ------------------------------------------------------------------------------------ internal PaMediaFile(ICmMedia mediaFile) { OriginalPath = mediaFile.MediaFileRA.OriginalPath; AbsoluteInternalPath = mediaFile.MediaFileRA.AbsoluteInternalPath; InternalPath = mediaFile.MediaFileRA.InternalPath; xLabel = PaMultiString.Create(mediaFile.Label, mediaFile.Cache.ServiceLocator); }
private void WriteMediaFile(TextWriter w, ICmMedia file) { //LT-13681 if (file == null || file.MediaFileRA == null) return; w.Write("<media href=\""); ExportFile(w, file.MediaFileRA.InternalPath, file.MediaFileRA.AbsoluteInternalPath, "audio", FdoFileHelper.ksMediaDir); //if (file.MediaFileRA != null) // w.Write(XmlUtils.MakeSafeXmlAttribute(Path.GetFileName(file.MediaFileRA.InternalPath))); w.WriteLine("\">"); WriteAllForms(w, "label", null, "form", file.Label); w.Write("</media>"); }