Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ops
luna
Commits
ec589f57
Unverified
Commit
ec589f57
authored
Apr 24, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
868e5ada
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
6 deletions
+15
-6
mp4.component.html
src/app/replay-page/mp4/mp4.component.html
+1
-1
mp4.component.ts
src/app/replay-page/mp4/mp4.component.ts
+7
-0
replay-page.component.ts
src/app/replay-page/replay-page.component.ts
+2
-2
test-page.component.html
src/app/test-page/test-page.component.html
+2
-1
test-page.component.ts
src/app/test-page/test-page.component.ts
+3
-2
No files found.
src/app/replay-page/mp4/mp4.component.html
View file @
ec589f57
<div
[
ngStyle
]="{'
width
.
px
'
:
Video
.
width
,'
height
.
px
'
:Video
.
height
}"
>
<video
controls
>
<video
controls
>
<source
[
src
]="
Video
.
src
"
type=
"video/mp4"
>
Your browser does not support the video tag.
<br>
...
...
src/app/replay-page/mp4/mp4.component.ts
View file @
ec589f57
...
...
@@ -13,6 +13,13 @@ export class Mp4Component implements OnInit {
}
ngOnInit
()
{
if
(
this
.
Video
.
height
===
0
)
{
this
.
Video
.
height
=
600
;
}
if
(
this
.
Video
.
width
===
0
)
{
this
.
Video
.
width
=
800
;
}
}
}
src/app/replay-page/replay-page.component.ts
View file @
ec589f57
...
...
@@ -29,8 +29,8 @@ export class ReplayPageComponent implements OnInit {
Video
.
type
=
data
[
'type'
];
Video
.
src
=
data
[
'src'
];
Video
.
id
=
data
[
'id'
];
Video
.
width
=
data
[
'width'
];
Video
.
height
=
data
[
'height'
];
//
Video.width = data['width'];
//
Video.height = data['height'];
},
err
=>
{
this
.
_http
.
get_replay
(
token
)
...
...
src/app/test-page/test-page.component.html
View file @
ec589f57
<tree-root
[
nodes
]="
nodes
"
[
options
]="
options
"
></tree-root>
<!--<tree-root [nodes]="nodes" [options]="options"></tree-root>-->
<app-replay-mp4></app-replay-mp4>
src/app/test-page/test-page.component.ts
View file @
ec589f57
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
DataStore
}
from
'../globals'
;
import
{
DataStore
,
Video
}
from
'../globals'
;
import
{
TREE_ACTIONS
,
KEYS
,
IActionMapping
,
ITreeOptions
}
from
'angular-tree-component'
;
@
Component
({
...
...
@@ -68,7 +68,8 @@ export class TestPageComponent implements OnInit {
}
ngOnInit
()
{
Video
.
id
=
'asfafdasd'
;
Video
.
src
=
'https://www.w3schools.com/tags/movie.mp4'
;
}
}
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