Sie sind auf Seite 1von 1

FLASHVARS STRUCTURE JAVASCRIPT API

config (undefined) Get variables:


Player getConfig()
author (undefined) composites getPlaylist()
captions (undefined)
Configger (loads flashvars) Subscribe to events:
description (undefined)
Skinner (loads skin) addModelListener(event,function)
duration (10)
file (undefined) addControllerListener(event,function)
image (undefined) addViewListener(event,function)
link (undefined) ModelEvent: ControllerEvent:
start (0) BUFFER, percentage
Model CAPTION, state
Send (view) events:
title (undefined) ERROR, message composites ERROR, message ply.sendEvent(event,value)
type (undefined) LOADED, loaded, total, offset ITEM, index
CameraModel
META, value1, value2, .. MUTE, state
STATE, newstate,oldstate ImageModel PLAY, state
controlbar (below) Note that there’s no fullscreen event
TIME, position, duration HTTPModel PLAYLIST, array
logo (undefined) in javascript.
SoundModel QUALITY, state
playlist (none) RTMPModel RESIZE, fullscreen, height, width
playlistsize (200) SEEK, position
VideoModel
skin (undefined) STOP
YoutubeModel VOLUME, percentage

autostart (false)
bufferlength (1) MISCELLANEOUS
caption (true)
displayclick (play) View Controller
fullscreen (false) ViewEvent: Instead of declaring a list of flashvars
composites composites
item (0) CAPTION, state in HTML, one could also use an XML
CaptionsView ERROR, message Playlister (loads playlist) file that contains all flashvars in nodes
mute (true)
ControlbarView FULLSCREEN, state and assign this to the player with the
quality (true)
DisplayView LINK, index
config flashvar.
repeat (false) LOAD, object
ExternalView
shuffle (false) MUTE, state
PlaylistView The state event can have the values
stretching (fill) NEXT
RightclickView ITEM, index IDLE, BUFFERING, PLAYING,
volume (80)
PLAY, state PAUSED and COMPLETED in its
PREV
abouttext (About JW Player 4.0...) newstate and oldstate variables.
QUALITY, state
aboutlink (jw.com/?page=about) RESIZE, width, height
linktarget (_self) SEEK, position The load event’s object can be a
plugins (undefined) STOP single url string, an object with playlist
VOLUME, percentage elements (file,title,author,etc.) or a
tracecall (undefined)
streamscript (undefined) complete playlist array with objects.

Das könnte Ihnen auch gefallen