# Interface: PlayerPano

PixellotPlayer.PlayerPano

# Hierarchy

# Table of contents

# Methods

# Methods

# getD3ExtentData

getD3ExtentData(): undefined | ID3ExtentData

# Returns

undefined | ID3ExtentData


# 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

# Inherited from

PlayerPanoBase.getPan


# getZoom

getZoom(): number

Get the current value of zoom in video

# Returns

number

zoom - point on which video is zoomed

player.getZoom(); // 1

# Inherited from

PlayerPanoBase.getZoom


# isFullPano

isFullPano(): boolean

# Returns

boolean


# 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

# Inherited from

PlayerPanoBase.panBy


# 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

# Inherited from

PlayerPanoBase.panTo


# panToCenter

panToCenter(): void

# Returns

void

# Inherited from

PlayerPanoBase.panToCenter


# switchToPanoMode

switchToPanoMode(mode): void

# Parameters

Name Type
mode PanoMode

# 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

# Inherited from

PlayerPanoBase.zoomBy


# zoomIn

zoomIn(): void

Zooms in the video on zoomFactor (default is 30 percents)

# Returns

void

# Inherited from

PlayerPanoBase.zoomIn


# zoomOut

zoomOut(): void

Zooms out the video on zoomFactor (default is 30 percents)

# Returns

void

# Inherited from

PlayerPanoBase.zoomOut


# 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

# Inherited from

PlayerPanoBase.zoomTo