Getting Started
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시문을 복사하세요.
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.
Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 스킬을 추가하려면 다음 명령어를 사용하세요.
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins다음 명령어를 사용하여 다음 프롬프트를 사용하세요.
Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-jw-player` plugin in my project.만약 Manual Setup을 선호한다면, 다음 명령어를 실행하여 플러그인을 설치하고 아래의 플랫폼별 설명을 따르시오:
bun add @capgo/capacitor-jw-playerbunx cap syncImport
Import 섹션import { JwPlayer } from '@capgo/capacitor-jw-player';API 개요
API 개요 섹션initialize
초기화JW Player 초기화
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.initialize({} as { licenseKey: string; playerUrl?: string });play
재생비디오 재생
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.play({} as { mediaUrl: string; mediaType: 'video' | 'playlist'; autostart?: boolean });pause
일시정지현재 재생 중인 미디어 일시정지
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.pause();resume
일시정지된 미디어 재개클립보드 복사
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.resume();stop
클립보드 복사protectedTokens
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.stop();seekTo
Section titled “seekTo”현재 재생 중인 미디어의 특정 위치로 이동
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.seekTo({} as { time: number });setVolume
Section titled “setVolume”볼륨 수준을 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setVolume({} as { volume: number });getPosition
Section titled “getPosition”현재 미디어의 위치를 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getPosition();getState
Section titled “getState”현재 플레이어 상태를 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getState();setSpeed
속도 설정재생 속도 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setSpeed({} as { speed: number });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
getAudioTracks 섹션 제목현재 오디오 트랙 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getAudioTracks();getCurrentAudioTrack
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
currentPlaylist현재 플레이리스트를 가져오세요
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.currentPlaylist();Source Of Truth
Source Of Truth이 페이지는 플러그인의 소스 코드에서 생성되었습니다 src/definitions.ts. upstream API이 변경될 때 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속하는 섹션Capacitor를 사용하는 경우 Getting Started 대시보드 및 API 연산을 계획하려면 Capacitor를 사용하여 @capgo/capacitor-jw-player Capacitor를 사용하여 @capgo/capacitor-jw-player의 네이티브 기능 API 개요 API 개요의 구현 세부 정보 소개 소개의 구현 세부 정보 API 키 API 키의 구현 세부 정보를 위한 키 장치 장치의 구현 세부 정보를 위한 키