Remove the EDL option for the skip button since it's not working

This commit is contained in:
rlauu 2024-10-12 10:32:47 +02:00
parent 6c04f26407
commit 75352dd1c4
3 changed files with 7 additions and 26 deletions

View File

@ -150,8 +150,6 @@
<option value="Cut">Cut (player will remove the intro from the video)</option>
<option value="Intro">Intro/Credit (show a skip button, *experimental*)</option>
<option value="Mute">Mute (audio will be muted)</option>
<option value="SceneMarker">Scene Marker (create a chapter marker)</option>

View File

@ -11,32 +11,22 @@ public enum EdlAction
None = -1,
/// <summary>
/// Completely remove the intro from playback as if it was never in the original video.
/// Completely remove the segment from playback as if it was never in the original video.
/// </summary>
Cut,
Cut = 0,
/// <summary>
/// Mute audio, continue playback.
/// </summary>
Mute,
Mute = 1,
/// <summary>
/// Inserts a new scene marker.
/// </summary>
SceneMarker,
SceneMarker = 2,
/// <summary>
/// Automatically skip the intro once during playback.
/// Automatically skip once during playback.
/// </summary>
CommercialBreak,
/// <summary>
/// Show a skip button.
/// </summary>
Intro,
/// <summary>
/// Show a skip button.
/// </summary>
Credit,
CommercialBreak = 3
}

View File

@ -97,15 +97,8 @@ public static class EdlManager
edlContent += Environment.NewLine;
}
if (action == EdlAction.Intro)
{
edlContent += credit?.ToEdl(EdlAction.Credit);
}
else
{
edlContent += credit?.ToEdl(action);
}
}
File.WriteAllText(edlPath, edlContent);
}