# Interface: PlayerPanoBase
# Hierarchy
PlayerPanoBase
# Table of contents
# Methods
# Methods
# getPan
▸ getPan(): Object
Get the current x/y translation
current x/y translation
player.getPan(); // { x, y }
# Returns
Object
Name | Type |
---|---|
x | number |
y | number |
# getZoom
▸ getZoom(): number
Get the current value of zoom in video
# Returns
number
zoom - point on which video is zoomed
player.getZoom(); // 1
# panBy
▸ panBy(x
, y
, transition?
): void
Pans the video in player by the given x and y coordinates, which are relative to the existing ones.
# Parameters
Name | Type | Description |
---|---|---|
x | number | axisX coordinate |
y | number | axisY coordinate |
transition? | number | transition duration (default is 750) // Translates the video in player to 50px, 100px player.panBy(50, 100) |
# Returns
void
# panTo
▸ panTo(x
, y
): void
Pans the video in player by the given x and y coordinates, which are relative to the existing ones without transition effects.
# Parameters
Name | Type | Description |
---|---|---|
x | number | |
y | number | player.panTo(400, 200); |
# Returns
void
# panToCenter
▸ panToCenter(): void
# Returns
void
# zoomBy
▸ zoomBy(zoomFactor
, transition?
): void
Zooms the video by the given zoomFactor
# Parameters
Name | Type | Description |
---|---|---|
zoomFactor | number | |
transition? | number | transition duration (default is 750) player.getZoom(); // 1 player.zoomBy(2.2); player.getZoom(); // 2.2 |
# Returns
void
# zoomIn
▸ zoomIn(): void
Zooms in the video on zoomFactor
(default is 30 percents)
# Returns
void
# zoomOut
▸ zoomOut(): void
Zooms out the video on zoomFactor
(default is 30 percents)
# Returns
void
# zoomTo
▸ zoomTo(zoomLevel
, transition?
): void
Zooms the video to the given zoomFactor
# Parameters
Name | Type | Description |
---|---|---|
zoomLevel | number | - |
transition? | number | transition duration (default is 750) player.zoomTo(2); |
# Returns
void