mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
5458097006
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. |
||
---|---|---|
.. | ||
p2.d.ts | ||
phaser.comments.d.ts | ||
phaser.d.ts | ||
pixi.comments.d.ts | ||
pixi.d.ts | ||
readme.md |
TypeScript Definitions
Reference the phaser.d.ts
in your project.
Please use TypeScript 1.4+
phaser.d.ts
contains a reference topixi.d.ts
andp2.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.