Beispiel #1
0
        /// <summary>
        /// Resizes the HTML5 video content (when applicable)
        /// </summary>
        private void updateBrowserVideo()
        {
            if (Manager.SupportedHtml5VideoFormats.Contains(image.Extension))
            {
                ChromeBrowser.LoadHtml($@"
<!DOCTYPE html><html><body>

<video width=""{ChromeBrowser.Width - 25}"" height=""{ChromeBrowser.Height - 25}"" autoplay controls loop src=""file:///{image.FullName}"">
    Your browser does not support HTML5 video.
</video>

</body></html>", $"file:///{image.Directory.FullName}");
            }
            this.updateImageLabels();
        }