From 6b6c0b120f3275be6bd9dbb26480f8f1df355e00 Mon Sep 17 00:00:00 2001 From: Mark Hung Date: Sun, 27 Jan 2019 13:41:34 +0800 Subject: tdf#44223 allow slideshow to play embedded media. Implement MediaFileManager that create the temp media file for package urls when making slideshow. Change-Id: I10a5ddc405928b4322ad72eb603508faf25bf0db Reviewed-on: https://gerrit.libreoffice.org/67209 Tested-by: Jenkins Reviewed-by: Mark Hung --- include/avmedia/mediaitem.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/avmedia') diff --git a/include/avmedia/mediaitem.hxx b/include/avmedia/mediaitem.hxx index b2b624bee4db..1b7b235b7b6e 100644 --- a/include/avmedia/mediaitem.hxx +++ b/include/avmedia/mediaitem.hxx @@ -131,10 +131,25 @@ bool AVMEDIA_DLLPUBLIC EmbedMedia( ::css::uno::Reference<::css::io::XInputStream> const& xInputStream = ::css::uno::Reference<::css::io::XInputStream>()); +bool AVMEDIA_DLLPUBLIC CreateMediaTempFile( + ::css::uno::Reference<::css::io::XInputStream> const& xInStream, + OUString& o_rTempFileURL, + const OUString& rDesiredExtension); + OUString GetFilename(OUString const& rSourceURL); ::css::uno::Reference< ::css::io::XStream> CreateStream( const ::css::uno::Reference< ::css::embed::XStorage>& xStorage, const OUString& rFilename); + +struct AVMEDIA_DLLPUBLIC MediaTempFile +{ + OUString const m_TempFileURL; + MediaTempFile(OUString const& rURL) + : m_TempFileURL(rURL) + {} + ~MediaTempFile(); +}; + } #endif -- cgit