πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
DemoInstallSign in
Socket

capacitor-youtube-player

Package Overview
Dependencies
Maintainers
2
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-youtube-player - npm Package Compare versions

Comparing version

to
1.0.9

17

dist/esm/definitions.d.ts

@@ -1,2 +0,2 @@

import type { IPlayerState, IPlayerOptions } from './web/models/models';
import type { IPlayerState, IPlayerOptions, IPlaylistOptions } from './web/models/models';
export interface YoutubePlayerPlugin {

@@ -76,2 +76,17 @@ initialize(options: IPlayerOptions): Promise<{

/***********/
cuePlaylist(playerId: string, playlistOptions: IPlaylistOptions): Promise<{
result: {
method: string;
value: boolean;
};
}>;
loadPlaylist(playerId: string, playlistOptions: IPlaylistOptions): Promise<{
result: {
method: string;
value: boolean;
};
}>;
/***********/
/***********/
/***********/
mute(playerId: string): Promise<{

@@ -78,0 +93,0 @@ result: {

import { WebPlugin } from '@capacitor/core';
import type { YoutubePlayerPlugin } from './definitions';
import type { IPlayerSize, IPlayerState, IPlayerOptions, RequiredKeys } from './web/models/models';
import type { IPlayerSize, IPlayerState, IPlayerOptions, RequiredKeys, IPlaylistOptions } from './web/models/models';
export declare function YT(): any;

@@ -94,2 +94,16 @@ export declare function Player(): any;

/*********/
cuePlaylist(playerId: string, playlistOptions: IPlaylistOptions): Promise<{
result: {
method: string;
value: boolean;
};
}>;
loadPlaylist(playerId: string, playlistOptions: IPlaylistOptions): Promise<{
result: {
method: string;
value: boolean;
};
}>;
/*********/
/*********/
mute(playerId: string): Promise<{

@@ -96,0 +110,0 @@ result: {

@@ -180,2 +180,15 @@ import { WebPlugin } from '@capacitor/core';

/*********/
// Methods for playing playlist.
/*********/
async cuePlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> cuePlaylist with options ${JSON.stringify(playlistOptions)}`);
this.players[playerId].cuePlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'cuePlaylist', value: true } });
}
async loadPlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> loadPlaylist with options ${playlistOptions}`);
this.players[playerId].loadPlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'loadPlaylist', value: true } });
}
/*********/
// Methods changing the player volume.

@@ -182,0 +195,0 @@ /*********/

@@ -46,2 +46,9 @@ export declare type RequiredKeys<T, K extends keyof T> = Exclude<T, K> & {

}
export interface IPlaylistOptions {
listType: 'playlist' | 'search' | 'user_uploads';
list: string;
index?: number;
startSeconds?: number;
suggestedQuality?: string;
}
export interface IPlayerLog {

@@ -48,0 +55,0 @@ log(primaryMessage: string, ...supportingData: any[]): void;

@@ -216,2 +216,15 @@ 'use strict';

/*********/
// Methods for playing playlist.
/*********/
async cuePlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> cuePlaylist with options ${JSON.stringify(playlistOptions)}`);
this.players[playerId].cuePlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'cuePlaylist', value: true } });
}
async loadPlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> loadPlaylist with options ${playlistOptions}`);
this.players[playerId].loadPlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'loadPlaylist', value: true } });
}
/*********/
// Methods changing the player volume.

@@ -218,0 +231,0 @@ /*********/

@@ -213,2 +213,15 @@ var capacitorPlugin = (function (exports, core) {

/*********/
// Methods for playing playlist.
/*********/
async cuePlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> cuePlaylist with options ${JSON.stringify(playlistOptions)}`);
this.players[playerId].cuePlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'cuePlaylist', value: true } });
}
async loadPlaylist(playerId, playlistOptions) {
this.playerLogger.log(`player "${playerId}" -> loadPlaylist with options ${playlistOptions}`);
this.players[playerId].loadPlaylist(playlistOptions);
return Promise.resolve({ result: { method: 'loadPlaylist', value: true } });
}
/*********/
// Methods changing the player volume.

@@ -215,0 +228,0 @@ /*********/

16

package.json
{
"name": "capacitor-youtube-player",
"version": "1.0.8",
"version": "1.0.9",
"description": "Capacitor Youtube Player",

@@ -29,6 +29,6 @@ "main": "dist/plugin.cjs.js",

"devDependencies": {
"@capacitor/android": "^3.3.1",
"@capacitor/core": "^3.3.1",
"@capacitor/android": "^3.3.2",
"@capacitor/core": "^3.3.2",
"@capacitor/docgen": "0.0.18",
"@capacitor/ios": "^3.3.1",
"@capacitor/ios": "^3.3.2",
"@ionic/eslint-config": "^0.3.0",

@@ -38,11 +38,11 @@ "@ionic/prettier-config": "^2.0.0",

"eslint": "^7.32.0",
"prettier": "^2.4.1",
"prettier": "^2.5.0",
"prettier-plugin-java": "^1.6.0",
"rimraf": "^3.0.2",
"rollup": "^2.60.0",
"rollup": "^2.60.2",
"swiftlint": "^1.0.1",
"typescript": "^4.3.5"
"typescript": "^4.5.2"
},
"peerDependencies": {
"@capacitor/core": "^3.0.0"
"@capacitor/core": "^3.3.2"
},

@@ -49,0 +49,0 @@ "prettier": "@ionic/prettier-config",

@@ -27,2 +27,4 @@ ![Built With Capacitor](https://img.shields.io/badge/-Built%20With%20Capacitor-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)

![Ionic App](readme_resources/ionic_app.gif "App")
![App](readme_resources/app.gif "App")

@@ -29,0 +31,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet