Git Product home page Git Product logo

playahater's Introduction

PlayaHater code examples

Simply provide the following parameters

  • Parent container that the player will be loaded into e.g. this
  • X position of the player within its parent container.
  • Y position of the player within its parent container.
  • Name of the media file to load, this is a String within an Array. If the media is to be played progressively then use the full file path and extension e.g. 'http://example-nonstreaming.com/mymovie.flv', alternatively if the media is streamed for example via Flash Media Server then simply provide the file name e.g. 'mymovie'.
  • URL parameter to be supplied if the media content is to be streamed e.g. path to server application: 'rtmp://example-streaming.com/app/'. If the content is to be played progressively then simply leave as an empty string.
  • Log function name e.g. protected function logHandlerMethod(msg:String):void{};.
  • Autoplay Boolean.
  • ObjectEncoding for the NetConnection (please read: http://goo.gl/RESQ4).

STREAMING:

new PlayaHater(this, 0, 0, [mymovie], 'rtmp://example-streaming.com/app/', logHandlerMethod, true, ObjectEncoding.AMF0);

PROGRESSIVE:

new PlayaHater(this, 0, 0, ['http://media.newtriks.com/flvs/lif.flv']);

Full running examples with source code

playahater's People

Contributors

newtriks avatar

Stargazers

Matteo Ronchi avatar

Watchers

James Cloos 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.