File tree Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Expand file tree Collapse file tree 3 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 5
5
"version" : " 3.0.0"
6
6
},
7
7
"tns-android" : {
8
- "version" : " 3.0 .1"
8
+ "version" : " 3.1 .1"
9
9
}
10
10
},
11
11
"dependencies" : {
12
12
"nativescript-theme-core" : " ~1.0.2" ,
13
13
"nativescript-videoplayer" : " file:.." ,
14
- "tns-core-modules" : " ^3.0 .0"
14
+ "tns-core-modules" : " ^3.1 .0"
15
15
},
16
16
"devDependencies" : {
17
17
"babel-traverse" : " 6.24.1" ,
18
18
"babel-types" : " 6.24.1" ,
19
19
"babylon" : " 6.17.0" ,
20
20
"lazy" : " 1.0.11" ,
21
- "nativescript-dev-typescript" : " ~0.4.5 " ,
21
+ "nativescript-dev-typescript" : " ~0.5.0 " ,
22
22
"typescript" : " ^2.2.2"
23
23
}
24
24
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-videoplayer" ,
3
- "version" : " 3.0.8 " ,
3
+ "version" : " 3.0.9 " ,
4
4
"main" : " videoplayer" ,
5
5
"typings" : " videoplayer.d.ts" ,
6
6
"description" : " A NativeScript plugin that uses the native video players to play local and remote videos." ,
20
20
"precommit" : " lint-staged"
21
21
},
22
22
"lint-staged" : {
23
- "*.ts" : [
24
- " prettier --write" ,
25
- " git add"
26
- ]
23
+ "*.ts" : [" prettier --write" , " git add" ]
27
24
},
28
25
"repository" : {
29
26
"type" : " git" ,
38
35
" video player" ,
39
36
" movie" ,
40
37
" bradmartin" ,
41
- " Thorum "
38
+ " nStudio "
42
39
],
43
40
"contributors" : [
44
41
{
95
92
"tns-platform-declarations" : " 3.0.1" ,
96
93
"typescript" : " ^2.2.2"
97
94
}
98
- }
95
+ }
Original file line number Diff line number Diff line change 1
- import common = require ( "./videoplayer-common" ) ;
2
- import videoSource = require ( "./video-source/video-source" ) ;
1
+ import * as common from "./videoplayer-common" ;
2
+ import * as videoSource from "./video-source/video-source" ;
3
3
import * as utils from "tns-core-modules/utils/utils" ;
4
4
import * as timer from "tns-core-modules/timer" ;
5
5
@@ -56,7 +56,7 @@ export class Video extends common.Video {
56
56
this . _setNativeVideo ( value ? value . android : null ) ;
57
57
}
58
58
59
- public initNativeView ( ) : void {
59
+ public createNativeView ( ) : any {
60
60
let that = new WeakRef ( this ) ;
61
61
62
62
this . nativeView = new android . view . TextureView ( this . _context ) ;
@@ -110,6 +110,8 @@ export class Video extends common.Video {
110
110
}
111
111
} )
112
112
) ;
113
+
114
+ return this . nativeView ;
113
115
}
114
116
115
117
public toggleMediaControllerVisibility ( ) : void {
You can’t perform that action at this time.
0 commit comments