From b8146fc9c06758566f23b55c5982e51bf3d1b31d Mon Sep 17 00:00:00 2001 From: John Thomson Date: Tue, 24 Mar 2026 16:31:27 -0500 Subject: [PATCH] Restore including videos in epubs (BL-16051) --- src/BloomExe/Publish/Epub/EpubMaker.cs | 3 ++- src/BloomExe/Publish/PublishHelper.cs | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/BloomExe/Publish/Epub/EpubMaker.cs b/src/BloomExe/Publish/Epub/EpubMaker.cs index 3226b13c05e6..f8db12b31f91 100644 --- a/src/BloomExe/Publish/Epub/EpubMaker.cs +++ b/src/BloomExe/Publish/Epub/EpubMaker.cs @@ -324,7 +324,8 @@ public void StageEpub(WebSocketProgress progress, bool publishWithoutAudio = fal tempBookPath, _book.IsTemplateBook, _omittedPageLabels, - includeVideoAndActivities: false, // no activities in Epubs. + includeFilesNeededForBloomPlayer: false, // no activities in Epubs. + includeVideos: true, // We could enhance this if we can figure out exactly what languages we will publish audio of. // For now, I'm including them all in this initial copy. Later stages will filter to just // what's visible. diff --git a/src/BloomExe/Publish/PublishHelper.cs b/src/BloomExe/Publish/PublishHelper.cs index a6790cc8efda..12549df73f93 100644 --- a/src/BloomExe/Publish/PublishHelper.cs +++ b/src/BloomExe/Publish/PublishHelper.cs @@ -994,7 +994,8 @@ public static Book.Book MakeDeviceXmatterTempBook( string tempFolderPath, bool isTemplateBook, Dictionary omittedPageLabels = null, - bool includeVideoAndActivities = true, + bool includeFilesNeededForBloomPlayer = true, + bool includeVideos = true, string[] narrationLanguages = null, bool wantMusic = false, bool wantFontFaceDeclarations = true, @@ -1003,8 +1004,8 @@ public static Book.Book MakeDeviceXmatterTempBook( { var filter = new BookFileFilter(bookFolderPath) { - IncludeFilesNeededForBloomPlayer = includeVideoAndActivities, - WantVideo = includeVideoAndActivities, + IncludeFilesNeededForBloomPlayer = includeFilesNeededForBloomPlayer, + WantVideo = includeVideos, NarrationLanguages = narrationLanguages, WantMusic = true, };