Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_audio_image
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_audio_image
Commits
6205fd05
Commit
6205fd05
authored
May 26, 2025
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
41d806ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
play.component.ts
src/app/play/play.component.ts
+2
-4
No files found.
src/app/play/play.component.ts
View file @
6205fd05
...
@@ -69,6 +69,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
...
@@ -69,6 +69,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
window
[
'
courseware
'
].
onEvent
(
'
course-in-screen
'
,
()
=>
{
window
[
'
courseware
'
].
onEvent
(
'
course-in-screen
'
,
()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
audio
=
new
Audio
();
this
.
audio
.
src
=
this
.
data
.
contentObj
.
audio_id
;
this
.
canPlayAudio
=
true
;
this
.
canPlayAudio
=
true
;
},
1500
);
},
1500
);
});
});
...
@@ -126,7 +128,6 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
...
@@ -126,7 +128,6 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
return
;
return
;
}
}
ev
.
preventDefault
();
ev
.
preventDefault
();
console
.
log
(
'
Trying to play audio...
'
,
window
[
'
air
'
].
isCourseInScreen
);
if
(
this
.
data
.
contentObj
&&
this
.
data
.
contentObj
.
audio_id
)
{
if
(
this
.
data
.
contentObj
&&
this
.
data
.
contentObj
.
audio_id
)
{
if
(
this
.
audio
&&
!
this
.
audio
.
paused
)
{
if
(
this
.
audio
&&
!
this
.
audio
.
paused
)
{
console
.
log
(
'
Pausing audio...
'
);
console
.
log
(
'
Pausing audio...
'
);
...
@@ -134,9 +135,6 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
...
@@ -134,9 +135,6 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
markForCheck
();
return
;
return
;
}
}
this
.
audio
=
new
Audio
();
this
.
audio
.
src
=
this
.
data
.
contentObj
.
audio_id
;
this
.
audio
.
play
();
this
.
audio
.
play
();
this
.
changeDetectorRef
.
markForCheck
();
this
.
changeDetectorRef
.
markForCheck
();
}
else
{
}
else
{
...
...
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