Skip to content

Commit

Permalink
Merge pull request #89 from abritopach/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
abritopach authored Nov 29, 2021
2 parents a6648bb + 127f3c5 commit 2737e16
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/ionic-test-capacitor-youtube-player/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@capacitor/status-bar": "^1.0.6",
"@ctrl/ngx-github-buttons": "^7.1.0",
"@ionic/angular": "^6.0.0-rc.3",
"capacitor-youtube-player": "^1.0.5-dev",
"capacitor-youtube-player": "^1.0.7",
"rxjs": "^7.4.0",
"tslib": "^2.3.1",
"zone.js": "^0.11.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,18 @@ export class HomePage implements OnInit, AfterViewInit {

async initializeYoutubePlayerPluginWeb() {
console.log('HomePage::initializeYoutubePlayerPluginWeb() | method called');
const options: IPlayerOptions = {playerId: 'youtube-player', playerSize: {width: 640, height: 360}, videoId: 'tDW2C6rcH6M', fullscreen: true, debug: true};
const options: IPlayerOptions = {
playerId: 'youtube-player',
playerSize: {width: 640, height: 360},
playerVars: {
autoplay: 1,
rel: 0,
showinfo: 1
},
videoId: 'tDW2C6rcH6M',
fullscreen: false,
debug: true
};
const result = await YoutubePlayer.initialize(options);
console.log('playerReady', result);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capacitor-youtube-player",
"version": "1.0.6",
"version": "1.0.7",
"description": "Capacitor Youtube Player",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class YoutubePlayerPluginWeb extends WebPlugin implements YoutubePlayerPl
const player = Player();

this.players[options.playerId] = new player(options.playerId, {
...options.playerVars,
playerVars: options.playerVars,
...playerSize,
fullscreen: options.fullscreen,
videoId: options.videoId,
Expand Down

0 comments on commit 2737e16

Please sign in to comment.