From 47d0548971e7c4bff7504ae488cc93fa618d3883 Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Sun, 4 Sep 2022 17:56:03 +0200 Subject: [PATCH] Fix: Work around for strange bug in Fusion --- .../Private/Fusion/Component/Backend.fusion | 2 +- .../Private/Fusion/Component/Source.fusion | 6 +++--- .../Private/Fusion/Component/Track.fusion | 10 +++++----- .../Private/Fusion/Component/Video.fusion | 18 +++++++++--------- Resources/Private/Fusion/Content/Video.fusion | 8 ++++---- 5 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Resources/Private/Fusion/Component/Backend.fusion b/Resources/Private/Fusion/Component/Backend.fusion index 173c390..e4af97b 100644 --- a/Resources/Private/Fusion/Component/Backend.fusion +++ b/Resources/Private/Fusion/Component/Backend.fusion @@ -1,6 +1,6 @@ prototype(Jonnitto.PrettyEmbedVideo:Component.Backend) < prototype(Neos.Fusion:Component) { identifier = ${q(node).property('_identifier')} - setFirstTrackToDefault = null + setFirstTrackToDefault = ${null} @context.setFirstTrackToDefault = ${this.setFirstTrackToDefault} diff --git a/Resources/Private/Fusion/Component/Source.fusion b/Resources/Private/Fusion/Component/Source.fusion index a5acd45..572f754 100644 --- a/Resources/Private/Fusion/Component/Source.fusion +++ b/Resources/Private/Fusion/Component/Source.fusion @@ -1,7 +1,7 @@ prototype(Jonnitto.PrettyEmbedVideo:Component.Source) < prototype(Neos.Fusion:Component) { - asset = null - uri = null - fileextension = null + asset = ${null} + uri = ${null} + fileextension = ${null} @if.render = ${this.fileextension && this.uri || (this.asset && this.asset.resource.fileextension == this.fileextension)} diff --git a/Resources/Private/Fusion/Component/Track.fusion b/Resources/Private/Fusion/Component/Track.fusion index f627a06..a445c65 100644 --- a/Resources/Private/Fusion/Component/Track.fusion +++ b/Resources/Private/Fusion/Component/Track.fusion @@ -1,9 +1,9 @@ prototype(Jonnitto.PrettyEmbedVideo:Component.Track) < prototype(Neos.Fusion:Component) { - asset = null - kind = null - label = null - srclang = null - default = null + asset = ${null} + kind = ${null} + label = ${null} + srclang = ${null} + default = ${null} @if { render = ${this.asset && this.kind && this.asset.resource.fileextension == 'vtt'} diff --git a/Resources/Private/Fusion/Component/Video.fusion b/Resources/Private/Fusion/Component/Video.fusion index a402640..2a18057 100644 --- a/Resources/Private/Fusion/Component/Video.fusion +++ b/Resources/Private/Fusion/Component/Video.fusion @@ -12,22 +12,22 @@ prototype(Jonnitto.PrettyEmbedVideo:Component.Video) < prototype(Neos.Fusion:Com wrapper = ${Configuration.setting('Jonnitto.PrettyEmbedHelper.wrapper')} - width = null - height = null + width = ${null} + height = ${null} - id = null + id = ${null} - poster = null - alternativeText = null - title = null + poster = ${null} + alternativeText = ${null} + title = ${null} playButton = Jonnitto.PrettyEmbedHelper:Button.Play pauseButton = Jonnitto.PrettyEmbedHelper:Button.Pause - sources = null - tracks = null + sources = ${null} + tracks = ${null} content = ${(Type.isString(this.sources) ? this.sources : '') + (Type.isString(this.tracks) ? this.tracks : '')} - ownPreview = null + ownPreview = ${null} // Internal type = ${this.lightbox ? 'lightbox' : 'inline'} diff --git a/Resources/Private/Fusion/Content/Video.fusion b/Resources/Private/Fusion/Content/Video.fusion index 7d554d3..8feec46 100644 --- a/Resources/Private/Fusion/Content/Video.fusion +++ b/Resources/Private/Fusion/Content/Video.fusion @@ -15,7 +15,7 @@ prototype(Jonnitto.PrettyEmbedVideo:Content.Video) < prototype(Jonnitto.PrettyEm alternativeText = ${this.title} # Use this if you want to set a own Preview - ownPreview = null + ownPreview = ${null} # Should the video be opened on a lightbox? lightbox = Jonnitto.PrettyEmbedHelper:GetProperty { @@ -28,7 +28,7 @@ prototype(Jonnitto.PrettyEmbedVideo:Content.Video) < prototype(Jonnitto.PrettyEm property = 'playsinline' } - # If true, the browser will automatically seek back + # If true, the browser will automatically seek back # to the start upon reaching the end of the video. loop = Jonnitto.PrettyEmbedHelper:GetProperty { property = 'loop' @@ -67,8 +67,8 @@ prototype(Jonnitto.PrettyEmbedVideo:Content.Video) < prototype(Jonnitto.PrettyEm property = 'crossorigin' } - width = null - height = null + width = ${null} + height = ${null} renderer = Neos.Fusion:Component { @apply {