{"action":"created","issue":{"url":"https://api.github.com/repos/xjsframework/xjs/issues/84","repository_url":"https://api.github.com/repos/xjsframework/xjs","labels_url":"https://api.github.com/repos/xjsframework/xjs/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/xjsframework/xjs/issues/84/comments","events_url":"https://api.github.com/repos/xjsframework/xjs/issues/84/events","html_url":"https://github.com/xjsframework/xjs/issues/84","id":142105768,"number":84,"title":"Question on a \"Hello World\" Start Up ","user":{"login":"QRMarketing","id":11709591,"avatar_url":"https://avatars.githubusercontent.com/u/11709591?v=3","gravatar_id":"","url":"https://api.github.com/users/QRMarketing","html_url":"https://github.com/QRMarketing","followers_url":"https://api.github.com/users/QRMarketing/followers","following_url":"https://api.github.com/users/QRMarketing/following{/other_user}","gists_url":"https://api.github.com/users/QRMarketing/gists{/gist_id}","starred_url":"https://api.github.com/users/QRMarketing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QRMarketing/subscriptions","organizations_url":"https://api.github.com/users/QRMarketing/orgs","repos_url":"https://api.github.com/users/QRMarketing/repos","events_url":"https://api.github.com/users/QRMarketing/events{/privacy}","received_events_url":"https://api.github.com/users/QRMarketing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-19T22:14:18Z","updated_at":"2016-03-21T08:57:04Z","closed_at":null,"body":"I have my own web app (HTML/Javascript) I have added the webpage URL to a scene. At start up it does seem to read the sceneID by number and can set the mic enabled or not. But only upon scence start-up. Throughout the application when I call the following code nothing happens. When doing it in the DOM it comes back with \"PromiseStatus\" Pending. It is like it needs a refresh or something to get it to see the command. I tried source.refresh();, but no go. What am I missing?\r\n\r\nApp = new xjs.App();\r\n\r\nI place this somewhere in my code:\r\nApp.setPrimaryMicEnabled(true).then(function(val) {\r\n            var isSet = val;\r\n        });"},"comment":{"url":"https://api.github.com/repos/xjsframework/xjs/issues/comments/199181840","html_url":"https://github.com/xjsframework/xjs/issues/84#issuecomment-199181840","issue_url":"https://api.github.com/repos/xjsframework/xjs/issues/84","id":199181840,"user":{"login":"dcefram","id":687325,"avatar_url":"https://avatars.githubusercontent.com/u/687325?v=3","gravatar_id":"","url":"https://api.github.com/users/dcefram","html_url":"https://github.com/dcefram","followers_url":"https://api.github.com/users/dcefram/followers","following_url":"https://api.github.com/users/dcefram/following{/other_user}","gists_url":"https://api.github.com/users/dcefram/gists{/gist_id}","starred_url":"https://api.github.com/users/dcefram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcefram/subscriptions","organizations_url":"https://api.github.com/users/dcefram/orgs","repos_url":"https://api.github.com/users/dcefram/repos","events_url":"https://api.github.com/users/dcefram/events{/privacy}","received_events_url":"https://api.github.com/users/dcefram/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T08:57:04Z","updated_at":"2016-03-21T08:57:04Z","body":"Great thing that it worked. I'll try my best to reply some of the issues that you mentioned.\r\n\r\n> I guess you need to run the url of my app as an extension, which is not so good, because you can not do stuff as in Chrome (for example audio tags don't work, no debug, etc...)\r\n\r\nYes, this is required since you can only use \"XSplit\" features inside XSplit. As far as I know, audio tags should work in the latest version of XBC. It's just that you cannot play .mp4 files due to license restrictions (http://stackoverflow.com/a/8372306).\r\n\r\nThere are ways to connect to XSplit externally though, and one way to think of it is to create some sort of extension plugin that is design to just accept commands through web sockets and then execute those commands. Then you could create your normal web app that is designed to be opened in an ordinary browser, which would connect to the same websocket as the extension plugin so that the two can communicate with each other.\r\n\r\n> Perhaps this needed to be encapsulated in the xjs.ready() context. But this is a bit of a bonehead way of doing it. Perhaps it could be done better.\r\n\r\nThis is required since the framework needs to initialize itself before you can use it. `xjs.ready()` would just ensure that when you execute xjs related methods, it would work as it should. \r\n\r\nYou can imagine it as what `window.addEventListener('load', function() {});` is for in the DOM. (The equivalent of this is `$(document).ready(function() {});` in jQuery).\r\n\r\nI made a version that should do almost exactly as your code: https://gist.github.com/dcefram/47a69a0e507560ba39dc\r\n\r\n> I am surprised that there is no nice plugin or JQuery plugin to do this better\r\n\r\nI'm not sure if there would be one. But just in case you find one, jQuery should work with our framework too :) (just in case you didn't know that :P)\r\n\r\n> Perhaps a collaboration project if interested (with a demo if you like)\r\n\r\nWell, we are actually open for collabs and plugin proposals... You can fill up our plugin proposal form [here](http://developers.xsplit.dev/#proposal). We'll make sure that we reply to you :D"}}