__CAPGO_KEEP_6__
이 플러그인에 대한 설치 단계와 전체 마크다운 가이드를 포함한 설정 프롬프트를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-jw-player`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/jw-player/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치bun add @capgo/capacitor-jw-playerbunx cap syncImport
Importimport { JwPlayer } from '@capgo/capacitor-jw-player';API 개요
API 개요 제목initialize
__CAPGO_KEEP_0__ 초기화JW 플레이어 초기화
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.initialize({} as { licenseKey: string; playerUrl?: string });비디오 재생
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.play({} as { mediaUrl: string; mediaType: 'video' | 'playlist'; autostart?: boolean });현재 재생 중인 미디어 일시정지
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.pause();resume
이력서현재 일시정지된 미디어를 재개합니다.
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.resume();stop
일시정지현재 재생 중인 미디어를 중지합니다.
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.stop();클립보드에 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.seekTo({} as { time: number });setVolume
클립보드에 복사__CAPGO_KEEP_0__
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setVolume({} as { volume: number });getPosition
getPosition 위치 가져오기미디어의 현재 위치 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getPosition();getState
getState 상태 가져오기플레이어의 현재 상태 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getState();setSpeed
setSpeed 속도 설정재생 속도 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setSpeed({} as { speed: number });setPlaylistIndex
setPlaylistIndex 플레이리스트 인덱스 설정플레이리스트의 현재 항목 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setPlaylistIndex({} as { index: number });loadPlaylist
플레이리스트 로드플레이리스트 로드
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.loadPlaylist({} as { playlistUrl: string });loadPlaylistWithItems
플레이리스트와 아이템 로드플레이리스트와 아이템 로드
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.loadPlaylistWithItems({} as { playlist: any[] });getAudioTracks
사용 가능한 오디오 트랙 가져오기클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getAudioTracks();getCurrentAudioTrack
클립보드 복사클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCurrentAudioTrack();setCurrentAudioTrack
setCurrentAudioTrack 섹션현재 오디오 트랙 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setCurrentAudioTrack({} as { index: number });getCaptions
getCaptions 섹션가용 캡션/자막 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCaptions();getCurrentCaptions
getCurrentCaptions 섹션현재 캡션/자막 트랙 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getCurrentCaptions();setCurrentCaptions
setCurrentCaptions 섹션현재 캡션/자막 트랙 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setCurrentCaptions({} as { index: number });currentPlaylist
현재 플레이리스트 섹션현재 플레이리스트 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.currentPlaylist();진실의 근원
진실의 근원 섹션이 페이지는 플러그인의 데이터를 사용하여 생성되었습니다. src/definitions.ts공개 API이 업스트림에서 변경되면 다시 싱크를 실행하세요.