Skip to content

Commit

Permalink
closes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin committed Jul 10, 2017
1 parent 32f646b commit d7e4387
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
6 changes: 3 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
"version": "3.0.0"
},
"tns-android": {
"version": "3.0.1"
"version": "3.1.1"
}
},
"dependencies": {
"nativescript-theme-core": "~1.0.2",
"nativescript-videoplayer": "file:..",
"tns-core-modules": "^3.0.0"
"tns-core-modules": "^3.1.0"
},
"devDependencies": {
"babel-traverse": "6.24.1",
"babel-types": "6.24.1",
"babylon": "6.17.0",
"lazy": "1.0.11",
"nativescript-dev-typescript": "~0.4.5",
"nativescript-dev-typescript": "~0.5.0",
"typescript": "^2.2.2"
}
}
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-videoplayer",
"version": "3.0.8",
"version": "3.0.9",
"main": "videoplayer",
"typings": "videoplayer.d.ts",
"description": "A NativeScript plugin that uses the native video players to play local and remote videos.",
Expand All @@ -20,10 +20,7 @@
"precommit": "lint-staged"
},
"lint-staged": {
"*.ts": [
"prettier --write",
"git add"
]
"*.ts": ["prettier --write", "git add"]
},
"repository": {
"type": "git",
Expand All @@ -38,7 +35,7 @@
"video player",
"movie",
"bradmartin",
"Thorum"
"nStudio"
],
"contributors": [
{
Expand Down Expand Up @@ -95,4 +92,4 @@
"tns-platform-declarations": "3.0.1",
"typescript": "^2.2.2"
}
}
}
8 changes: 5 additions & 3 deletions videoplayer.android.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import common = require("./videoplayer-common");
import videoSource = require("./video-source/video-source");
import * as common from "./videoplayer-common";
import * as videoSource from "./video-source/video-source";
import * as utils from "tns-core-modules/utils/utils";
import * as timer from "tns-core-modules/timer";

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

public initNativeView(): void {
public createNativeView(): any {
let that = new WeakRef(this);

this.nativeView = new android.view.TextureView(this._context);
Expand Down Expand Up @@ -110,6 +110,8 @@ export class Video extends common.Video {
}
})
);

return this.nativeView;
}

public toggleMediaControllerVisibility(): void {
Expand Down

0 comments on commit d7e4387

Please sign in to comment.