phaser/typescript
photonstorm 5458097006 Renamed createVideoStream to startMediaStream.
Refactored Video constructor significantly - you can no longer create a webcam stream from the constructor, as it doesn't give you time to respond to onAccess and onError signals in Firefox. Instead call startMediaStream directly having set-up your signal listeners first.

startMediaStream now has a chance to dispatch the onError signal if the webcam has been blocked entirely by the browser (auto-block or remembered block). autoPlay attribute removed to stop Firefox throwing a "Invalid URI. Load of media resource failed" error.

Tidied up Video.destroy to properly remove video element from the DOM.
2015-06-10 00:59:24 +01:00
..
p2.d.ts split p2 definitions into its own file 2015-03-18 11:44:11 -07:00
phaser.comments.d.ts fix(typescript): fix Matrix.fromArray definition 2015-04-13 23:11:43 +03:00
phaser.d.ts Renamed createVideoStream to startMediaStream. 2015-06-10 00:59:24 +01:00
pixi.comments.d.ts TypeScript defs with comments update. 2015-03-26 02:59:11 +00:00
pixi.d.ts Handful of updates to the definition files. 2015-05-25 17:09:22 +01:00
readme.md 2.4.0 Definition Updates. 2015-05-09 02:58:55 +01:00

TypeScript Definitions

Reference the phaser.d.ts in your project.

Please use TypeScript 1.4+

  • phaser.d.ts contains a reference to pixi.d.ts and p2.d.ts and so both these files must remain siblings in the same directory.
  • pixi.d.ts has deviated from the official project. If you are a pixi user, pick up the ball over at the official pixi typescript repo.

Contributing

If you find any mistakes in these definitions or you feel they can be improved in any way, please make a pull request against the dev branch.