Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg_video
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
dg_video
Commits
3eeb2ed5
Commit
3eeb2ed5
authored
Nov 02, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改表单问题
parent
3e12b4fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
upload-video.component.html
form/src/app/common/upload-video/upload-video.component.html
+2
-2
upload-video.component.ts
form/src/app/common/upload-video/upload-video.component.ts
+2
-1
form.component.ts
form/src/app/form/form.component.ts
+2
-0
No files found.
form/src/app/common/upload-video/upload-video.component.html
View file @
3eeb2ed5
...
...
@@ -81,8 +81,8 @@
</div>
</div>
<div
class=
"p-preview"
*
ngIf=
"!uploading && videoUrl "
>
<
!--<video crossorigin="anonymous" [src]="videoUrl" controls #videoNode></video>--
>
<
video
[
src
]="
safeVideoUrl
(
videoUrl
)"
controls
#
videoNode
></video
>
<
video
crossorigin=
"anonymous"
[
src
]="
videoUrl
"
controls
#
videoNode
></video
>
<
!-- <video [src]="safeVideoUrl(videoUrl)" controls #videoNode></video> --
>
</div>
</div>
<div
[
style
.
display
]="!
checkVideoExists
?'
none
'
:
''"
>
...
...
form/src/app/common/upload-video/upload-video.component.ts
View file @
3eeb2ed5
...
...
@@ -82,7 +82,8 @@ export class UploadVideoComponent implements OnChanges, OnDestroy {
safeVideoUrl
(
url
)
{
console
.
log
(
url
);
return
this
.
sanitization
.
bypassSecurityTrustResourceUrl
(
url
);
// `${url}`;
// return this.sanitization.bypassSecurityTrustResourceUrl(url); // `${url}`;
return
url
;
}
videoLoadedMetaData
()
{
...
...
form/src/app/form/form.component.ts
View file @
3eeb2ed5
...
...
@@ -15,6 +15,8 @@ export class FormComponent extends ComponentBase implements OnInit, OnChanges, O
dataArr
:
[]
};
// testUrl = "http://staging-teach.cdn.ireadabc.com/0e64dfbfc54a7bd0bb121092f74b130b.mp4";
constructor
(
public
nzMessageService
:
NzMessageService
,
public
appRef
:
ApplicationRef
,
public
changeDetectorRef
:
ChangeDetectorRef
)
{
super
(
appRef
,
changeDetectorRef
);
}
...
...
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