VdoPlayer JS www.vdocipher.com
import FrameInterface from 'VdoPlayerJS/vdo/alt-interface.js'
public class | source

FrameInterface

creates and handles interface between the external js interface and the internal players. It expects the internal player to implement a specified interface.

Member Summary

Public Members
public
public
public
public

video: *

Method Summary

Public Methods
public

init(container: HTMLElement, metadata: {hostnames: string[]}): Promise<void>

creates the iframe and setup message exchange

public

message(methodName: string, payload: {})

sends message to the internal player

public

setup the event handler for this interface

Public Members

public errorMessage: * source

public eventHandler: * source

public playBackType: string source

public video: * source

Public Methods

public init(container: HTMLElement, metadata: {hostnames: string[]}): Promise<void> source

creates the iframe and setup message exchange

Params:

NameTypeAttributeDescription
container HTMLElement
metadata {hostnames: string[]}

Return:

Promise<void>

public message(methodName: string, payload: {}) source

sends message to the internal player

Params:

NameTypeAttributeDescription
methodName string
payload {}

public setEventHandler(handler: function) source

setup the event handler for this interface

Params:

NameTypeAttributeDescription
handler function