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
47
Merge Requests
47
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
fc659c9f
Commit
fc659c9f
authored
7 hours ago
by
Mark Harding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): attempt to resolve promises to stop exceptions - closes
#2034
parent
0ae1203f
master
No related merge requests found
Pipeline
#85961094
waiting for manual action with stages
in 62 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
direct-http.component.ts
...s/media/components/video/players/direct-http.component.ts
+7
-7
No files found.
src/app/modules/media/components/video/players/direct-http.component.ts
View file @
fc659c9f
...
...
@@ -115,33 +115,33 @@ export class MindsVideoDirectHttpPlayer
return
this
.
player
.
nativeElement
;
}
play
()
{
async
play
()
{
const
player
=
this
.
getPlayer
();
try
{
player
.
play
();
await
player
.
play
();
}
catch
(
e
)
{
console
.
log
(
e
);
}
}
pause
()
{
async
pause
()
{
const
player
=
this
.
getPlayer
();
try
{
player
.
pause
();
await
player
.
pause
();
}
catch
(
e
)
{
console
.
log
(
e
);
}
}
toggle
()
{
async
toggle
()
{
const
player
=
this
.
getPlayer
();
if
(
player
.
paused
)
{
this
.
play
();
await
this
.
play
();
}
else
{
this
.
pause
();
await
this
.
pause
();
}
}
...
...
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