Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
864
Issues
864
List
Boards
Labels
Service Desk
Milestones
Merge Requests
46
Merge Requests
46
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
74568305
Commit
74568305
authored
4 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(feat): pass through default widescreen dimensions if not loaded metadata yet
parent
d06e5286
fix/video-player-quirks
No related merge requests found
Pipeline
#86112166
passed with stages
in 47 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
video.component.html
src/app/modules/media/components/video/video.component.html
+4
-1
modal.component.ts
src/app/modules/media/modal/modal.component.ts
+6
-2
No files found.
src/app/modules/media/components/video/video.component.html
View file @
74568305
...
...
@@ -37,7 +37,10 @@
<ng-container
*ngIf=
"playerRef"
>
<i
*ngIf=
"!playerRef.isPlaying() && !playerRef.isLoading()"
*ngIf=
"
(!playerRef.isPlaying() && !playerRef.isLoading()) ||
(shouldPlayInModal && !playerRef.isPlaying())
"
class=
"material-icons minds-video-play-icon"
(click)=
"clickedVideo()"
>
play_circle_outline
</i
...
...
This diff is collapsed.
Click to expand it.
src/app/modules/media/modal/modal.component.ts
View file @
74568305
...
...
@@ -139,8 +139,12 @@ export class MediaModalComponent implements OnInit, OnDestroy {
switch
(
this
.
entity
.
custom_type
)
{
case
'
video
'
:
this
.
contentType
=
'
video
'
;
this
.
entity
.
width
=
this
.
entity
.
custom_data
.
dimensions
.
width
;
this
.
entity
.
height
=
this
.
entity
.
custom_data
.
dimensions
.
height
;
this
.
entity
.
width
=
this
.
entity
.
custom_data
.
dimensions
?
this
.
entity
.
custom_data
.
dimensions
.
width
:
1280
;
this
.
entity
.
height
=
this
.
entity
.
custom_data
.
dimensions
?
this
.
entity
.
custom_data
.
dimensions
.
height
:
720
;
this
.
entity
.
thumbnail_src
=
this
.
entity
.
custom_data
.
thumbnail_src
;
break
;
case
'
batch
'
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment