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.
설치
설치bun add @capgo/capacitor-jw-playerbunx cap syncimport
importimport { JwPlayer } from '@capgo/capacitor-jw-player';API 개요
API 개요initialize
초기화JW 플레이어 초기화
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();현재 재생 중인 미디어를 중지합니다
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
getState 상태 가져오기getState 상태 가져오기
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.getState();setSpeed
setSpeed 재생 속도 설정setSpeed 재생 속도 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setSpeed({} as { speed: number });setPlaylistIndex
setPlaylistIndex 플레이리스트 인덱스 설정setPlaylistIndex 플레이리스트 인덱스 설정
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.setPlaylistIndex({} as { index: number });loadPlaylist
loadPlaylist 플레이리스트 로드loadPlaylist 플레이리스트 로드
import { JwPlayer } from '@capgo/capacitor-jw-player';
await JwPlayer.loadPlaylist({} as { playlistUrl: string });loadPlaylistWithItems
loadPlaylistWithItems 섹션__CAPGO_KEEP_0__을 포함한 플레이리스트를 로드합니다.
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();원본
원본이 페이지는 플러그인의 src/definitions.ts업스트림에서 API가 변경되면 다시 싱크를 실행하세요.
Getting Started에서 계속
Getting Started에서 계속이러한 기능을 사용하고 계신가요? Getting Started 계획 대시보드 및 API 운영을 위해 Using @capgo/capacitor-jw-player Using @capgo/capacitor-jw-player API 개요 API 개요에 대한 구현 세부 정보를 위해 소개 __CAPGO_KEEP_0__ 키에 대한 구현 세부 정보를 위해 API 키 API 키에 대한 구현 세부 정보를 위해 장치 __CAPGO_KEEP_0__에 대한 구현 세부 정보를 위해