Skip to content

Commit

Permalink
Added proper video
Browse files Browse the repository at this point in the history
  • Loading branch information
d2dyno1 committed Oct 6, 2023
1 parent b5daa7b commit 756a6fb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SecureFolderFS.Sdk/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static class Widgets

public static class Dialogs
{
public const int EXPLANATION_DIALOG_TIME_TICKS = 5;
public const int EXPLANATION_DIALOG_TIME_TICKS = 14;
}

public static class Vault
Expand Down
Binary file not shown.
Binary file not shown.
6 changes: 3 additions & 3 deletions SecureFolderFS.UI/SecureFolderFS.UI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<EmbeddedResource Include="Assets\*" />
<None Remove="Assets\AppAssets\AppIcon.png" />
<None Remove="Assets\AppAssets\AppTitle.svg" />
<None Remove="Assets\AppAssets\ExplanationVideo.mp4" />
<None Remove="Assets\AppAssets\Media\ExplanationVideoDark.mov" />
<None Remove="Assets\Licenses\FluentAvalonia LICENSE" />
<None Remove="Assets\Licenses\MicrosoftExtensionsDependencyInjection LICENSE" />
<None Remove="Assets\Licenses\PolySharp LICENSE" />
Expand All @@ -25,8 +25,8 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
<None Remove="Assets\AppAssets\Vault_dark.svg" />
<EmbeddedResource Include="Assets\AppAssets\ExplanationVideo.mp4">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<EmbeddedResource Include="Assets\AppAssets\Media\ExplanationVideoDark.mov">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</EmbeddedResource>
<EmbeddedResource Include="Assets\AppAssets\Vault_dark.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
5 changes: 4 additions & 1 deletion SecureFolderFS.WinUI/Dialogs/ExplanationDialog.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ public ExplanationDialog()
private void Media_Loaded(object sender, RoutedEventArgs e)
{
var assembly = AppDomain.CurrentDomain.GetAssemblies().SingleOrDefault(x => x.GetName().Name == "SecureFolderFS.UI")!;
var stream = assembly.GetManifestResourceStream("SecureFolderFS.UI.Assets.AppAssets.ExplanationVideo.mp4");
var stream = assembly.GetManifestResourceStream("SecureFolderFS.UI.Assets.AppAssets.Media.ExplanationVideoDark.mov");
_disposable = stream;

if (stream is null)
return;

Media.Source = MediaSource.CreateFromStream(stream.AsRandomAccessStream(), string.Empty);
Media.MediaPlayer.IsLoopingEnabled = true;
Media.MediaPlayer.AutoPlay = true;
Expand Down
5 changes: 0 additions & 5 deletions SecureFolderFS.WinUI/SecureFolderFS.WinUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,4 @@
<EmbeddedResource Include="Assets\Wide310x150Logo.scale-200.png" />
<EmbeddedResource Include="Assets\Wide310x150Logo.scale-400.png" />
</ItemGroup>
<ItemGroup>
<Content Update="Assets\ExplanationVideo.mp4">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>

0 comments on commit 756a6fb

Please sign in to comment.