since ‎06-11-2008
‎10-12-2019
DeanXC
Level 2
Re: How to subscribe to a "room is now empty" event?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
HiAre you using the RTCHOOKS.java to receive events? if so, there are 6 methods each of them associated with event type, e.g. receiveNode, receiveNodeDeletion, receiveItem, receiveItemRetraction, receiveNodeConfiguration, and receiveUserRole) each method will take collectionName, roomName as parameters, you should be able to get the type of the event. So for room closing, you should be getting "receiveItemRetraction" on RoomManager collection and roomState node, you should be able to explore the...

Views

28

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,Glad that you are receiving the callbacks, maybe getting the CF to work first than ruby. So hopefully your gateway is setup correctly and you have permission to write to logs.best,Dean

Views

160

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,I have verified that we http post to your endpoint "http://spaceappleyoshi.com/flex2gateway/" on our server. Please verify on your end that you are getting the call. either wire-shark or charles capturing the http traffic.thanksDean

Views

161

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
just want to state the obvious, I am sure you updated the Account URL to reflect your LCCS account through out the example,correct?Dean

Views

161

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,Do you have your LCCS account url and account info? you can send to me at dchen@adobe.comthanksDean

Views

161

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,Did the local build working for you? I only see the "http://collegeonly-honey.heroku.com/amf/" ruby endpoint, not seeing the coldfusion endpoint, but then I could be missing the log entry. Can you use getHookInfo api to query the LCCS server for the hook url? and see if it is returned the same as your input.thanksDean

Views

161

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,Maybe it is a good idea, getting a copy of local CF server and Rail server and get them to work first. Server2Server for Coldfusion is assuming you have the flash remoting configured correctly. You can also post your hook url, so I can double check on our side if we are calling you. Dean

Views

162

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,1) Please make sure that your callback url is proper working, you can use "curl" on command line to see if the post data works and getting back status 200. (also use gethookinfo call to see if it is registered in the server)2) make sure your remoting-config.xml "LCCS.RTCHOOKS" match the directory under your webroot, i.e. LCCS isthe directory name, RTCHOOKS.cfc is the file name3) invoke register hook with hook url (e.g. "http:///flex2gateway/"). If you want to change this url you need to ...

Views

162

Likes

0

Replies

0
Re: server 2 server questions publishItem nodes, listening and push
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Russ,Please refer to the CF readme file (part of SDK) for instruction to setup the listener to catch events of the publishItem (see attached). - RTCHOOKS.cfc is the handler for call back events you might want to look at. As for how you publish the item, you are on the right track.if you created your collectionNode ("ChatPod") and your node ("history"), then your call to publishItem is correct. (you don't need to set publisherID to empty string)best,Dean

Views

161

Like

1

Replies

0
Re: Expanding Fields
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
have you try the textField.autoSize?see following:http://www.webtech.lt/2009/03/03/multiline-text-field-autosize/

Views

63

Likes

0

Replies

0
Re: Error in afcs.php
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi, I ran your example, see following code, and it ran fine (see screen shot). However, I did put the getNodeConfiguration with separate call (separate request), because setNodeConfiguration will take time to update the node, calling it immediately after setNodeConfiguration might not reflecting latest change. Also btw, we are updating more example code.thanks Dean $configuration = array("persistItems"=>"true", "userDependentItems"=>"true", "publishModel"=>10, "allowPrivateMessages"=>"true", "la...

Views

54

Likes

0

Replies

0
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi Ali,I will take a look at your account and let you know.thanksDean

Views

48

Likes

0

Replies

0
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
BTW, thanks for using our Server to Server feature. It is always pleasure to see the feature in use. The reason you don't see item in your room console is because the nodeConfiguration set up for your node does not persist your item (it goes away once your publishItem), so only intended user see it, but your room console does not. You can turn the persistItem flag to true in your room console for your node under "explore" tag and see if your publish goes through. I still can't explain your clien...

Views

47

Likes

0

Replies

0
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
I was able to run your client and receiving the bigMessage using server php code. (please see screen shot of your client). I notice you got a http error in your server log: Can you verify your server http setting for handling larger data?for example:add: ini_set ('user_agent', $_SERVER['HTTP_USER_AGENT']); in your php code or in your php.ini (see http://bugs.php.net/bug.php?id=22937#c64196)[function.fopen]: failed to open stream: HTTP request failed! in D:\xampp\htdocs\xxxxxx\amfphp1_9\services\...

Views

48

Likes

0

Replies

0
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
actually, publishItem will start the room if it is not started. your connection-error might be coming from your php server, any more log from your server will be helpful for diagnosis. You can verify your node is created correctly using the getNodeConfiguration call. But it will be helpful to see your client code for receiveItem.example of using getNodeConfiguration:

Views

48

Likes

0

Replies

0
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
After reading more into your error log, it seems that your room was not launched before you publishing your Item, thus - (Exception 'AFCSError' with message 'connection-failed' in) or your room was not in a good state.I didn't use "USE_CURL", only using the default stream and it works for me.Can you share your client code that subscribe to the same node? (did you subscribe to the node and listening on the receiveItem event?)btw, here is the example code I used: (i did not get error)

Views

48

Likes

0

Replies

0
Re: Error in afcs.php
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Here is the example values that we are setting in those configurations:Again update value based on your need. those values are describe in the ASDocDean

Views

411

Likes

0

Replies

2
Re: Are there any size limits on MessageItem.body in Server to Server API?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
I tried your large message in the moderated chat (sampleApps/Server2Server/ModeratedChat_PHP/server/flashservices/services/ChatModerator.php), it went though ok. Only thing I can see then difference is that followingDean

Views

47

Likes

0

Replies

0
Re: Error in afcs.php
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
I created example based on your data. it works for me. following is the code. Hope it helpsthen I use getNodeConfiguration to see if the node taken what I put in. Which came out the same as what I put in

Views

411

Likes

0

Replies

4
Re: Error in afcs.php
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Also, if you already have the node create or using a default node and you want to update the nodeConfiguration, use the setNodeConfiguration($room, $coll, $node, $configuration) in the AFCS.php. Pass in your configuration map along with room name, collection name and node name.

Views

411

Likes

0

Replies

0
Re: Erase one message from chat
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi julio_ps,If you want to monitor and moderate chat rooms, we are developing a new feature called "sever to server" api where you can insert your logic on a remote server and control the content of the chat room. This is due to come out in April. Dean

Views

93

Likes

0

Replies

0
Re: Login issue turns out to be Audio Publishing issue...
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi,What is the shared id you are publishing the stream to? do you created the node via room owner before publishing to it?Please share your code as well.ThanksDean

Views

93

Likes

0

Replies

0
Re: Error thrown (instead of fault) when user with insufficient permissions tries to subscribe tochatmod
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Adding to Arun's post, from your trace, it seems like your client is trying to connect un-authorized and since your room is not open to public, it throws error (UserManager - createUser). can you share your code?

Views

183

Likes

0

Replies

0
Re: Error thrown (instead of fault) when user with insufficient permissions tries to subscribe tochatmod
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Sorry, missed read your post. However, it is still catchable. I created a child class of SimpleChatModel with override method of following:public class MyChatModel extends SimpleChatModel{ override protected function onSynchronizationChange(p_event:CollectionNodeEvent):void { _myName = (_userManager.getUserDescriptor(_userManager.myUserID) as UserDescriptor).displayName; if (_collectionNode.isSynchronized) { //if the node doesn't exist and I'm a host, create it empty so that viewers can publish ...

Views

182

Likes

0

Replies

0
Re: Error thrown (instead of fault) when user with insufficient permissions tries to subscribe tochatmod
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hihave you try to use "try" and "catch" and parse the error message like following? try{ // your subscrib to chat }catch (error:Error){ if(error.message.indexOf("insufficient permissions") { //do proper handling } }Dean

Views

182

Likes

0

Replies

0
Re: Cannot download SDK
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Hi,looks like we are having a bug in AIR Installer for Ubuntu. Please use following command line to retreive the binary, we are looking into this problem.>wget http://afcs.acrobat.com/download/SDKApp.airopen this app with your latest adobe AIRthanksDean

Views

59

Likes

0

Replies

0
Re: FileUtil problems with FileReference
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Make sure your playerglobal.swc path is correct and maybe hard code the path see if it fix your problem.

Views

28

Likes

0

Replies

0
Re: Can LCCS do this?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Yes, LCCS does provide private one-on-one chat, in your nodeConfiguration set allowPrivateMessages to true and specify a recipientID. import com.adobe.rtc.pods.simpleChatClasses.ChatMessageDescriptor; import com.adobe.rtc.events.ChatEvent; import com.adobe.rtc.pods.simpleChatClasses.SimpleChatModel; // This simple example just shows how this shared model can be made easily bindable for MXML. // See SimpleChatModel for details. [Bindable] public var chatModel:SimpleChatModel; protected function buildModel():void { // Create the model: just calling the constructor won't create the collection node or pass the messages. // Call subscribe and give it a shared ID while creating the model. // The shared ID becomes the name of the collection node. chatModel = new SimpleChatModel(); chatModel.sharedID = "myChat_SimpleChatModel"; chatModel.allowPrivateChat = true; chatModel.subscribe(); chatModel.addEventListener(ChatEvent.HISTORY_CHANGE, onChatMsg); this.addEventListener(KeyboardEvent.KEY_UP, onKeyStroke); } protected function submitChat(str:String😞void { var cmd:ChatMessageDescriptor = new ChatMessageDescriptor(); cmd.displayName = cSession.userManager.getUserDescriptor(cSession.userManager.myUserID).displayName; cmd.msg = str; cmd.recipient = "<pass id of the person you are sending private message to>" chatModel.sendMessage(cmd); chat_mesg_input.text = ""; } protected function clearChat():void { chat_mesg_area.text = ""; chatModel.clear(); } protected function onChatMsg(p_evt:ChatEvent):void { if(p_evt.message != null && p_evt.message.msg != null && p_evt.message.displayName != null) chat_mesg_area.text += "\r\n" + p_evt.message.displayName + ": " + p_evt.message.msg; else chat_mesg_area.text = ""; } protected function onKeyStroke(p_evt:KeyboardEvent):void { if(p_evt.keyCode == Keyboard.ENTER) { submitChat(chat_mesg_input.text); } } private function doLogin() : void { auth.userName = username.text; auth.password = password.text; cSession.login(); loginForm.enabled = false; } private function onAuthSuccess( event : Event ) : void { vs.selectedIndex = 1; buildModel(); } private function onAuthfail( event : Event ) : void { loginForm.enabled = true; }

Views

75

Likes

0

Replies

0
Re: share file don't run , why?
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
Can you run the example in the SDK? does the example run whenyou do file browse? Please make sure the example does run for youfirst.

Views

64

Likes

0

Replies

0
Re: FileShare SDK example and FileShare Pod
Avatar

DeanXC

DeanXC
- Adobe LiveCycle
HI Coulix,Can you post your code? Dean

Views

61

Likes

0

Replies

0
Likes given to
Likes from