Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jj_video_practice
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
jj_video_practice
Commits
2aa97a71
Commit
2aa97a71
authored
Dec 24, 2025
by
kingweight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新url后缀
parent
41637290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
form.component.ts
src/app/form/form.component.ts
+5
-2
No files found.
src/app/form/form.component.ts
View file @
2aa97a71
...
@@ -175,7 +175,6 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -175,7 +175,6 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
console
.
log
(
'
i:
'
,
i
);
console
.
log
(
'
i:
'
,
i
);
this
.
currentFragmentQues
=
ques
;
this
.
currentFragmentQues
=
ques
;
this
.
currentFragmentIndex
=
i
;
this
.
currentFragmentIndex
=
i
;
this
.
fragmentVideoUrl
=
this
.
item
.
video_url
||
''
;
const
videoUrl
=
this
.
fragmentVideoUrl
;
const
videoUrl
=
this
.
fragmentVideoUrl
;
this
.
fragmentVideoCurrentTime
=
ques
.
time
||
0
;
this
.
fragmentVideoCurrentTime
=
ques
.
time
||
0
;
this
.
fragmentSelectedTime
=
ques
.
time
||
0
;
this
.
fragmentSelectedTime
=
ques
.
time
||
0
;
...
@@ -524,7 +523,11 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
...
@@ -524,7 +523,11 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
onVideoIsAccessibleInCDN
(
url
:
string
)
{
onVideoIsAccessibleInCDN
(
url
:
string
)
{
console
.
log
(
'
视频已上传到CDN:
'
,
url
);
console
.
log
(
'
视频已上传到CDN:
'
,
url
);
this
.
fragmentVideoUrl
=
url
.
replace
(
"
_h.mp4
"
,
"
.mp4
"
).
replace
(
"
.mp4
"
,
"
_l.mp4
"
);
if
(
!
url
.
endsWith
(
"
_l.mp4
"
))
{
this
.
fragmentVideoUrl
=
url
.
replace
(
"
_h.mp4
"
,
"
.mp4
"
).
replace
(
"
.mp4
"
,
"
_l.mp4
"
);
}
else
{
this
.
fragmentVideoUrl
=
url
;
}
this
.
changeDetectorRef
.
detectChanges
();
this
.
changeDetectorRef
.
detectChanges
();
}
}
...
...
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