إدارة الوسائط
Contents
[
Hide
]
تصدير ملف الوسائط إلى HTML
لتصدير ملفات الوسائط إلى HTML، توفر Aspose.Slides لـ C++ واجهة برمجة تطبيقات بسيطة لإدارة بيانات المخططات. يرجى اتباع الخطوات أدناه:
- إنشاء مثيل من فئة Presentation.
- الحصول على مرجع من الشريحة.
- تعيين تأثير الانتقال.
- كتابة العرض التقديمي كملف PPTX.
في المثال المقدم أدناه، قمنا بتصدير ملفات الوسائط إلى HTML.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The path to the documents directory. | |
const String templatePath = u"../templates/Media File.pptx"; | |
const String path = u"../out/"; | |
SharedPtr<Presentation> pres = MakeObject<Presentation>(templatePath); | |
const String fileName = u"ExportMediaFiles_out.html"; | |
const String baseUri = u"http://www.example.com/"; | |
SharedPtr<VideoPlayerHtmlController> videoController = MakeObject<VideoPlayerHtmlController>(path, fileName, baseUri); | |
System::SharedPtr<HtmlOptions> htmlOptions = System::MakeObject<HtmlOptions>(videoController); | |
System::SharedPtr<SVGOptions> svgOptions = System::MakeObject<SVGOptions>(videoController); | |
htmlOptions->set_HtmlFormatter(HtmlFormatter::CreateCustomFormatter(videoController)); | |
htmlOptions->set_SlideImageFormat(SlideImageFormat::Svg(svgOptions)); | |
pres->Save(path+fileName, SaveFormat::Html, htmlOptions); | |