GithubHelp home page GithubHelp logo

zeega-player's Introduction

Zeega

Zeega Player

This is the chromeless player which is at the heart of anything that playsback a Zeega

Load Files

Two files must be loaded into your page for the player to work correctly.

CSS

<link rel="stylesheet" href="css/zeega.css">

Zeega player script

<script src="js/zeega.js"></script>

Constructor

with a url datasource:

var zp = new Zeega.player({ url: "http://www.zeega.com/api/items/1234" });

with a data object:

var zp = new Zeega.player({ data: dataObject });

Attributes

the player constructor can take the following optional attributes:

  • autoplay - Will render and play the project as soon as it's ready. Default: true
  • cover - Controls how the Player takes over its window. true - full-bleed. false - scales to fit. horizontal - scales so left and right are always in view but may crop or letterbox top and bottom. vertical - scales so top and bottom are always in view but may crop or letterbox left and right. Default: false.
  • data - A json data object to be passed in, parsed, and played. Default: null.
  • debugEvents - Choose which events that are output to the console. true - outputs all events. false - silent. [event name] - outputs only that event (see EVENTS section below). Default: false.
  • layerOptions - Layer specific options to be passed into the player. Default: null.
  • preloadRadius - The number of frames to load ahead (and behind). Default: 2.
  • collectionMode - Defines how a passed in Zeega collection will behave. standard - linear Zeega. slideshow - displays collection as a slideshow. Default: standard.
  • fadeIn - Time in ms that the player takes to fade in upon rendering. Default: 500.
  • fadeOut - Time in ms that the player takes to fade out upon calling destroy(). Default: 500.
  • next - selector of element used to cueNext the Zeega. Default: null.
  • prev - selector of element used to cuePrev the Zeega. Default: null.
  • startFrame - The ID of the frame to start the Zeega on. Default: null.
  • target - The element that the player should render to. Accepts Selector or jQuery. Default: null.
  • url - The url to a data source to be parsed. Default: null.

Events

  • data_loaded - data is loaded and parsed.
  • ready - player is rendered into the dom.
  • layer_loading - layer has been called to preload.
  • layer_preloaded - layer is in the dom and media has preloaded and accounted for.
  • frame_preloaded - frame and all it's layers have been preloaded and are staged but has not started to play.
  • frame_rendered - frame is in view and has started to play.
  • canplay - the project is ready and should be able to play.
  • ended - a time based layer has ended.
  • sequence_enter - a new sequence has started.
  • play - the Zeega has started to play.
  • pause - the Zeega has paused.

Developer Tasks

update submodules

git submodule update --init --recursive

commit changes to submodule

cd [path of submodule]
git commit -am 'message'
git push origin master

copy relevant layer files (html,less) after editing

bbb comp
or
bbb release

zeega-player's People

Contributors

jbergen avatar rwaldron avatar jamesburns avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.