Skip to content

Commit d7e4387

Browse files
committed
closes #80
1 parent 32f646b commit d7e4387

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

demo/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
"version": "3.0.0"
66
},
77
"tns-android": {
8-
"version": "3.0.1"
8+
"version": "3.1.1"
99
}
1010
},
1111
"dependencies": {
1212
"nativescript-theme-core": "~1.0.2",
1313
"nativescript-videoplayer": "file:..",
14-
"tns-core-modules": "^3.0.0"
14+
"tns-core-modules": "^3.1.0"
1515
},
1616
"devDependencies": {
1717
"babel-traverse": "6.24.1",
1818
"babel-types": "6.24.1",
1919
"babylon": "6.17.0",
2020
"lazy": "1.0.11",
21-
"nativescript-dev-typescript": "~0.4.5",
21+
"nativescript-dev-typescript": "~0.5.0",
2222
"typescript": "^2.2.2"
2323
}
2424
}

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-videoplayer",
3-
"version": "3.0.8",
3+
"version": "3.0.9",
44
"main": "videoplayer",
55
"typings": "videoplayer.d.ts",
66
"description": "A NativeScript plugin that uses the native video players to play local and remote videos.",
@@ -20,10 +20,7 @@
2020
"precommit": "lint-staged"
2121
},
2222
"lint-staged": {
23-
"*.ts": [
24-
"prettier --write",
25-
"git add"
26-
]
23+
"*.ts": ["prettier --write", "git add"]
2724
},
2825
"repository": {
2926
"type": "git",
@@ -38,7 +35,7 @@
3835
"video player",
3936
"movie",
4037
"bradmartin",
41-
"Thorum"
38+
"nStudio"
4239
],
4340
"contributors": [
4441
{
@@ -95,4 +92,4 @@
9592
"tns-platform-declarations": "3.0.1",
9693
"typescript": "^2.2.2"
9794
}
98-
}
95+
}

videoplayer.android.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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";
33
import * as utils from "tns-core-modules/utils/utils";
44
import * as timer from "tns-core-modules/timer";
55

@@ -56,7 +56,7 @@ export class Video extends common.Video {
5656
this._setNativeVideo(value ? value.android : null);
5757
}
5858

59-
public initNativeView(): void {
59+
public createNativeView(): any {
6060
let that = new WeakRef(this);
6161

6262
this.nativeView = new android.view.TextureView(this._context);
@@ -110,6 +110,8 @@ export class Video extends common.Video {
110110
}
111111
})
112112
);
113+
114+
return this.nativeView;
113115
}
114116

115117
public toggleMediaControllerVisibility(): void {

0 commit comments

Comments
 (0)