File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 16
16
color : # 2492a8 ;
17
17
}
18
18
19
- .video {
20
- width : 634px ;
21
- height : 356px ;
22
- margin : 0 auto;
23
- }
24
-
25
-
26
19
.videoListItem {
27
20
background-color : # efefef ;
28
21
padding : 20px ;
29
22
margin-bottom : 20px ;
23
+ max-width : 634px ;
24
+ max-height : 356px ;
25
+ margin : 0 auto;
30
26
}
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ class App extends Component {
30
30
onPlay = { ( ) => {
31
31
this . refs . video2 . videoEl . pause ( ) ;
32
32
} }
33
- className = { styles . video }
34
33
poster = { sintelTrailerPoster } >
35
34
< source src = { sintelTrailer } type = "video/mp4" />
36
35
< track
@@ -53,7 +52,6 @@ class App extends Component {
53
52
this . refs . video1 . videoEl . pause ( ) ;
54
53
} }
55
54
src = { bigBuckBunny }
56
- className = { styles . video }
57
55
poster = { bigBuckBunnyPoster } >
58
56
</ Video >
59
57
</ li >
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ export default videoConnect(
123
123
}
124
124
} ) ,
125
125
( videoEl , state ) => ( {
126
- onFullscreenClick : ( ) => fullscreen ( videoEl ) ,
126
+ onFullscreenClick : ( ) => fullscreen ( videoEl . parentElement ) ,
127
127
onVolumeClick : ( ) => toggleMute ( videoEl , state ) ,
128
128
onCaptionsClick : ( ) => toggleTracks ( state ) ,
129
129
onPlayPauseClick : ( ) => togglePause ( videoEl , state ) ,
You can’t perform that action at this time.
0 commit comments