Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
East_L230
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
East_L230
Commits
e82d9ac0
Commit
e82d9ac0
authored
Jun 02, 2020
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update package
parent
d73963a7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
52 deletions
+121
-52
.gitignore
.gitignore
+0
-1
ng-template-generator_20200602 00-42-31.zip
publish/ng-template-generator_20200602 00-42-31.zip
+0
-0
Cartoon.ts
src/app/play/Cartoon.ts
+22
-12
play.component.ts
src/app/play/play.component.ts
+99
-39
No files found.
.gitignore
View file @
e82d9ac0
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
# dependencies
# dependencies
/node_modules
/node_modules
/publish
# profiling files
# profiling files
chrome-profiler-events*.json
chrome-profiler-events*.json
...
...
BasicCoursewareTemplate.rar
→
publish/ng-template-generator_20200602 00-42-31.zip
View file @
e82d9ac0
No preview for this file type
src/app/play/Cartoon.ts
View file @
e82d9ac0
...
@@ -114,20 +114,30 @@ export class Cartoon {
...
@@ -114,20 +114,30 @@ export class Cartoon {
const
audio
=
this
.
audio
.
get
(
key
);
const
audio
=
this
.
audio
.
get
(
key
);
audio
.
volume
=
volume
audio
.
volume
=
volume
}
}
stopAllAudio
(){
stopAllAudio
(
audioAll
?){
this
.
_playingNow
.
forEach
(
audio
=>
{
if
(
!
audioAll
){
try
{
audioAll
=
this
.
_playingNow
if
(
audio
){
}
audio
.
onended
&&
audio
.
onended
()
audioAll
.
forEach
(
audio_URL
=>
{
audio
.
pause
();
if
(
audio_URL
){
audio
.
currentTime
=
0
;
const
audio
=
this
.
audio
.
get
(
audio_URL
);
}
else
{
try
{
if
(
audio
.
src
&&
this
.
audioCallback
[
audio
.
src
]
&&
this
.
audioCallback
[
audio
.
src
][
"
onended
"
]){
if
(
audio
){
this
.
audioCallback
[
audio
.
src
][
"
onended
"
]()
audio
.
onended
&&
audio
.
onended
()
audio
.
pause
&&
audio
.
pause
();
audio
.
currentTime
=
0
;
}
else
{
if
(
this
.
audioCallback
[
audio_URL
]
&&
this
.
audioCallback
[
audio_URL
][
"
onended
"
]){
this
.
audioCallback
[
audio_URL
][
"
onended
"
]()
}
}
}
}
catch
(
err
){
console
.
log
(
err
)
}
}
}
catch
(
err
){
}
console
.
log
(
err
)
else
if
(
this
.
_currentPlayAudio
){
this
.
_currentPlayAudio
.
pause
();
this
.
_currentPlayAudio
.
currentTime
=
0
;
}
}
})
})
this
.
_playingNow
=
[]
this
.
_playingNow
=
[]
...
...
src/app/play/play.component.ts
View file @
e82d9ac0
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