5.0.0 • Published 8 months ago

jwplayer-capacitor v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

jwplayer-capacitor

Integration of JWPlayer Web and Mobile SDKs with Capacitor

Install

npm install jwplayer-capacitor
npx cap sync

API

echo(...)

echo(options: { value: string; }) => any
ParamType
options{ value: string; }

Returns: any


initialize(...)

initialize(options: { webLicenseKey?: string; androidLicenseKey?: string; iosLicenseKey?: string; googleCastId?: string; debug?: boolean; }) => any
ParamType
options{ webLicenseKey?: string; androidLicenseKey?: string; iosLicenseKey?: string; googleCastId?: string; debug?: boolean; }

Returns: any


create(...)

create(options: { webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd; }) => any
ParamType
options{ webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd; }

Returns: any


remove()

remove() => any

Returns: any


getPosition()

getPosition() => any

Returns: any


seek(...)

seek(options: { position: number; }) => any
ParamType
options{ position: number; }

Returns: any


addButton(...)

addButton(img: string, tooltip: string, callback: () => void, id: string, btnClass: string) => void
ParamType
imgstring
tooltipstring
callback() => void
idstring
btnClassstring

addCuePoints(...)

addCuePoints(options: { cuePoints: JWPlayerCuePoint[]; }) => void
ParamType
options{ cuePoints: {}; }

playlistItem(...)

playlistItem(options: { index: number; }) => any
ParamType
options{ index: number; }

Returns: any


addListener(...)

addListener(eventName: 'playerEvent', listenerFunc: EventChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle

Listen for events in player

ParamType
eventName"playerEvent"
listenerFunc(event: JWPlayerEvent) => void

Returns: any

Since: 1.0.0


addListener(...)

addListener(eventName: 'fullScreenPlayerEvent', listenerFunc: EventChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName"fullScreenPlayerEvent"
listenerFunc(event: JWPlayerEvent) => void

Returns: any


addListener(...)

addListener(eventName: 'readyPlayerEvent', listenerFunc: EventChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName"readyPlayerEvent"
listenerFunc(event: JWPlayerEvent) => void

Returns: any


removeAllListeners()

removeAllListeners() => any

Remove all listeners (including the network status changes) for this plugin.

Returns: any

Since: 1.0.0


Interfaces

JWPlayerNativeConfiguration

PropType
widthnumber
heightnumber
xnumber
ynumber
googleCastIdstring
frontboolean
autostartboolean
forceFullScreenOnLandscapeboolean
forceFullScreenboolean
playlist{}

JWPlayerAd

PropType
typestring
schedule{}

JWPlayerAdSchedule

PropType
urlstring
beginnumber

JWPlayerCuePoint

PropType
typestring
textstring
beginnumber

PluginListenerHandle

PropType
remove() => any
5.0.0

8 months ago

0.5.0

10 months ago

0.5.1

10 months ago

0.4.9

2 years ago

0.4.8

2 years ago

0.3.9

2 years ago

0.3.0

2 years ago

0.4.5

2 years ago

0.3.6

2 years ago

0.4.4

2 years ago

0.3.5

2 years ago

0.4.7

2 years ago

0.3.8

2 years ago

0.2.9

2 years ago

0.4.6

2 years ago

0.3.7

2 years ago

0.4.1

2 years ago

0.3.2

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.4.3

2 years ago

0.3.4

2 years ago

0.4.2

2 years ago

0.3.3

2 years ago

0.1.0

2 years ago

0.2.1

2 years ago

0.1.2

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.2.7

2 years ago

0.1.8

2 years ago

0.2.6

2 years ago

0.1.7

2 years ago

0.0.8

2 years ago

0.2.8

2 years ago

0.1.9

2 years ago

0.2.3

2 years ago

0.1.4

2 years ago

0.2.2

2 years ago

0.1.3

2 years ago

0.2.5

2 years ago

0.1.6

2 years ago

0.0.7

2 years ago

0.2.4

2 years ago

0.1.5

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago