Code Monkey home page Code Monkey logo

airconsole-api's Issues

Uncaught TypeError: Object # has no method 'decompress'

This error is thrown by the screen, but doesn't give much information

Details

Browser: Chrome on Windows
Source: blob:https%3A//game.airconsole.com/70447589-343d-40da-9b65-45023ec4e115:1:undefined
Error: Uncaught TypeError: Object # has no method 'decompress'

AirConsole does not work with itch.io app browser

I'm not sure if this is something you want to support, but embedded games don't run correctly in the itch.io app browser. Behind the scenes it uses Chrome, but for some reason the the client closes the websockets prematurely and it never manages to communicate with server.

Details

Description

When the game is launched, websocket connections are closed:
WebSocket connection to 'wss://server-url' failed: WebSocket is closed before the connection is established.

As a workaround, i display a splash screen of sorts that allows the user to launch the AirConsole game in their default browser:

image

Unable to get property 'x' of undefined or null reference

I think this error is thrown by AirConsole minified code?

Details

Source: https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/screen.html:2:60845
Error: Unable to get property 'x' of undefined or null reference

Stack trace:

TypeError: Unable to get property 'x' of undefined or null reference
at handlerFunc (blob:https://game.airconsole.com/54a5bc7b-1ec0-4426-ade2-1d114748f699:2:60845)
at jsEventHandler (blob:https://game.airconsole.com/54a5bc7b-1ec0-4426-ade2-1d114748f699:2:51619)

Uncaught SyntaxError: Unexpected identifier

I think this is in the AirConsole API screen code, but not 100% sure. I don't think it's limited to Unity plugin so raised here.

Details

Browser: Chrome on Windows
Source: https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/screen.html:100:89011
Error: Uncaught SyntaxError: Unexpected identifier

Stack trace: SyntaxError: Unexpected identifier (?)

InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

The AirConsole API throws this error when initialising AirConsole on the screen.

Details

Source: https://www.airconsole.com/api/airconsole-1.7.0.js:1336:0
Error: InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

Stack trace:

B.get/<@https://www.airconsole.com/api/airconsole-1.7.0.js:1336:53 window.XMLHttpRequest/<.get/<@https://www.airconsole.com/api/airconsole-1.7.0.js:1349:395 n/<@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/Build/UnityLoader.js:1:6778 UnityLoader<.compatibilityCheck@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/Build/UnityLoader.js:1:510 n@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/Build/UnityLoader.js:1:6719 UnityLoader<.instantiate@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/Build/UnityLoader.js:1:8643 App@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/airconsole-unity-plugin.js:33:22 initAirConsole@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/screen.html:61:22 onload@https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/screen.html:1:0

Uncaught TypeError: Cannot redefine property: BetterJsPop

I think this is in the AirConsole API screen code, but not 100% sure. I don't think it's limited to Unity plugin so raised here.

Details

Browser: Chrome on Mac
Source: https://game.airconsole.com/net.eightbitape.dungeoncrawl.cdn.airconsole.com/2018-10-16-14-11-36/screen.html:20:10
Error: Uncaught TypeError: Cannot redefine property: BetterJsPop

Stack trace:

TypeError: Cannot redefine property: BetterJsPop
at Function.defineProperty ()
at inject (:20:10)
at :510:11
at :511:11

Add AirConsole to NPM

I'd love to access the AirConsole API through NPM, the node package manager. A lot of devs use webpack or browserify to compile their javascript dependencies from NPM. Once the api has been registered with NPM, I can call npm install airconsole to get the latest version of the package. :]

Unable to post message

Hey, attempting to start building an AirConsole game, but getting this:

Unable to post message to http://192.168.1.12:3000. Recipient has origin http://www.airconsole.com..

Any fixes? Basically spun up a fairly boilerplate gulp project to host.

Support for Cocos Creator

Hey Air Console Devs,
Would it be possible to support Cocos Creator? It is part of the Cocos 2D-x project and would be awesome if you would support it. :)

Device Orientation Bug in App

In my game I use setOrientation to set the controller orientation to landscape.

This works fine in the browser but in the iOS( iPhone 4 7.x) air console app sometimes get stuck in landscape mode when having to enter the code and experiences trouble changing orientation to fit the device. This is a rear case but does seem to happen when device is in portrait mode first and if you reload the game.

Anyway to fix this?

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.