Skip to content

Commit

Permalink
Fix: Work around for strange bug in Fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnitto committed Sep 4, 2022
1 parent 84c9cba commit 47d0548
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Component/Backend.fusion
Original file line number Diff line number Diff line change
@@ -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}

Expand Down
6 changes: 3 additions & 3 deletions Resources/Private/Fusion/Component/Source.fusion
Original file line number Diff line number Diff line change
@@ -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)}

Expand Down
10 changes: 5 additions & 5 deletions Resources/Private/Fusion/Component/Track.fusion
Original file line number Diff line number Diff line change
@@ -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'}
Expand Down
18 changes: 9 additions & 9 deletions Resources/Private/Fusion/Component/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down
8 changes: 4 additions & 4 deletions Resources/Private/Fusion/Content/Video.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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'
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 47d0548

Please sign in to comment.