Re: currentusers always nil for getRoomWithCurrentUsersById

2010-05-29 Thread Sebastian Wagner
Hi Andrey,

I would agree but you should re-check that with a usual SOAP-Client.
I think you have an error or run into a pitfall of PHP and the print_r
methods or its a problem related to the SOAP-Client in PHP.
Cause the Web-Service and its return statement is created with Apache
Axis2. So "I" do not influence the way the return object is done and
the conclusion of your post would be that there is a major Issue with
Apache Axis2 and it XML-Marshalling.

Sebastian

2010/5/29 Andrey :
> Ok. Thank you. Will try to check.
>
> BTW, I tried to use your SOAP call getRoomWithClientObjectsById and have
> some note:
>
> Assume that there is only one broadcasting user. In this case 'roomUser'
> array attribute in response is a hash array:
>
> [roomUser] => Array (
>        [avsettings] => av
>        [broadcastId] => 7
>        [firstname] => test
>        [isBroadCasting] => true
>        [lastname] => test
>        [publicSID] => df3adeb78dbc799546c0fc785a191901
> )
>
> But in case of 2 broadcasters 'roomUser' is an actual array with [0] and [1]
> hash elements:
>
> [roomUser] => Array (
>        [0] => Array (
>                [avsettings] => av
>                [broadcastId] => 7
>                [firstname] => test
>                [isBroadCasting] => true
>                [lastname] => test
>                [publicSID] => df3adeb78dbc799546c0fc785a191901
>        )
>        [1] => Array (
>                [avsettings] => av
>                [broadcastId] => 8
>                [firstname] => testuser
>                [isBroadCasting] => true
>                [lastname] => testuser
>                [publicSID] => 984aa8a0e970a2b20cc95fb1c27c83ef
>        )
> )
>
> So foreach statement works bad in case of one broadcaster.
>
> I guees it is right to return something like that in case of one streaming
> client:
>
>
> [roomUser] => Array (
>        [0] => Array (
>                [avsettings] => av
>                [broadcastId] => 7
>                [firstname] => test
>                [isBroadCasting] => true
>                [lastname] => test
>                [publicSID] => df3adeb78dbc799546c0fc785a191901
>        )
> )
>
> Please correct me if I'm wrong.
>
> With regards, Andrey.
>
> Is it possible to
> 29.05.2010 13:43, Sebastian Wagner пишет:
>>
>> Hi Andrey,
>>
>> sorry I have no JW Player.
>>
>> The url looks like that:
>>
>> rtmp://xxx.xxx.xxx.xxx/openmeetings/
>>
>> and the stream-name is then
>>
>> but you do not attach those params to the URL (excapt JW Player does
>> something magic with it)
>> but for the URL itself it makes no sense to add any additional params.
>>
>> I don't know exactly what command JW Player supports to play a
>> live-stream, cause the way you request the file/stream is a little bit
>> different from playing a stream from VOD.
>>
>> Sebastian
>>
>> 2010/5/28 Andrey:
>>>
>>> Hello,
>>>
>>> Can you please then explain how should rtmp address looks like for the JW
>>> Player?
>>>
>>> I guess it should be
>>>
>>>
>>> so.addParam('flashvars','streamer=rtmp://xxx.xxx.xxx.xxx/openmeetings/&provider=rtmp&file=&...);
>>>
>>> But I can't view stream in JW player.
>>>
>>> I tested it in previous r3087 and it worked. Can you please test?
>>>
>>> Thanks.
>>>
>>> 28.05.2010 01:04, Sebastian Wagner пишет:

 Okay see r3247
 http://code.google.com/p/openmeetings/source/detail?r=3247

 There is a new Function:
 public RoomReturn getRoomWithClientObjectsById(String SID, long
 rooms_id)


 [http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/roomservice/org/openmeetings/axis/services/RoomService.java#289]

 The return Object contains an array of active Users in the Room, look
 like that:
 
 ->>> xmlns:ns="http://services.axis.openmeetings.org";>
 -
 -2010-03-24T12:14:56.000Z
 -
 -public Conference Room
 -
 -av
 -0
 -firstname
 -false
 -lastname
 -03e841d1b1e7b3386c9c5b452e5c8b1b
 
 -2
 
 
 

 Attribute: *room_id*
 =>  the scope-name

 Attribute: *isBroadCasting*
 =>  If that user has published Audio/Video

 Attribute: *avsettings*
 av = Audio + Video
 v = Video
 a = Audio
 n = Nothing

 Attribute: *broadcastId*
 =>  Stream-Name



 Sebastian


 2010/5/27 Andreymailto:waster2...@gmail.com>>

    Hello,

    It will be great because in days I need to put broadcasted
    openmeetings streams on web. Thank you very much!


    27.05.2010 20:54, Sebastian Wagner пишет:

        Hi Andrey,

        I can post a new method tomorrow and you can take one of the next
        Nightly Builds


        Sebastian

        2010/5/27 Andrey>>>          >>


            Thanks for the info. Can we wait th

Re: currentusers always nil for getRoomWithCurrentUsersById

2010-05-29 Thread Sebastian Wagner
Hi Andrey,

sorry I have no JW Player.

The url looks like that:

rtmp://xxx.xxx.xxx.xxx/openmeetings/

and the stream-name is then 

but you do not attach those params to the URL (excapt JW Player does
something magic with it)
but for the URL itself it makes no sense to add any additional params.

I don't know exactly what command JW Player supports to play a
live-stream, cause the way you request the file/stream is a little bit
different from playing a stream from VOD.

Sebastian

2010/5/28 Andrey :
> Hello,
>
> Can you please then explain how should rtmp address looks like for the JW
> Player?
>
> I guess it should be
>
> so.addParam('flashvars','streamer=rtmp://xxx.xxx.xxx.xxx/openmeetings/&provider=rtmp&file=&...);
>
> But I can't view stream in JW player.
>
> I tested it in previous r3087 and it worked. Can you please test?
>
> Thanks.
>
> 28.05.2010 01:04, Sebastian Wagner пишет:
>>
>> Okay see r3247
>> http://code.google.com/p/openmeetings/source/detail?r=3247
>>
>> There is a new Function:
>> public RoomReturn getRoomWithClientObjectsById(String SID, long rooms_id)
>>
>> [http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/roomservice/org/openmeetings/axis/services/RoomService.java#289]
>>
>> The return Object contains an array of active Users in the Room, look
>> like that:
>> 
>> -> xmlns:ns="http://services.axis.openmeetings.org";>
>> -
>> -2010-03-24T12:14:56.000Z
>> -
>> -public Conference Room
>> -
>> -av
>> -0
>> -firstname
>> -false
>> -lastname
>> -03e841d1b1e7b3386c9c5b452e5c8b1b
>> 
>> -2
>> 
>> 
>> 
>>
>> Attribute: *room_id*
>> => the scope-name
>>
>> Attribute: *isBroadCasting*
>> => If that user has published Audio/Video
>>
>> Attribute: *avsettings*
>> av = Audio + Video
>> v = Video
>> a = Audio
>> n = Nothing
>>
>> Attribute: *broadcastId*
>> => Stream-Name
>>
>>
>>
>> Sebastian
>>
>>
>> 2010/5/27 Andrey mailto:waster2...@gmail.com>>
>>
>>    Hello,
>>
>>    It will be great because in days I need to put broadcasted
>>    openmeetings streams on web. Thank you very much!
>>
>>
>>    27.05.2010 20:54, Sebastian Wagner пишет:
>>
>>        Hi Andrey,
>>
>>        I can post a new method tomorrow and you can take one of the next
>>        Nightly Builds
>>
>>
>>        Sebastian
>>
>>        2010/5/27 Andrey >         >        >>
>>
>>
>>            Thanks for the info. Can we wait this SVN commit soon? And
>>            corresponding changes in deb package?
>>
>>
>>            27.05.2010 19:11, Sebastian Wagner пишет:
>>
>>                No I first have to commit a new Method of the
>>        SOAP-Gateway to
>>                the SVN.
>>
>>                Sebastian
>>
>>                2010/5/27 Andrey >        
>>        >
>>        
>>
>>        >
>>
>>                    Hello,
>>
>>                    So unfortunately it is not possilble to get current
>>        users of
>>                room
>>                    via SOAP methods to publish their streams in
>>        JWPlayer, for
>>                example?
>>
>>                    With regards, Andrey.
>>
>>                    27.05.2010 13:59, Sebastian Wagner пишет:
>>
>>                        Hi,
>>
>>                        I have partly reworked those functions.
>>                        The function getRoomWithCurrentUsersById does
>>        not work
>>                as intend
>>                        at the
>>                        moment.
>>                        The Service Method needs to be refactored to be
>>        able to
>>                include the
>>                        attributes of the Room-Client-Object in the
>>        SOAP-Return.
>>
>>                        Sebastian
>>
>>                        2010/5/27 Waster >        
>>        >
>>        
>>        >>
>>        
>>        >
>>
>>        
>>        
>>
>>
>>
>>                            I confirm that. I get empty list of current
>>        users while
>>                        trying to use
>>                            getRoomWithCurrentUsersById via nusoap.php SOAP
>>                client from
>>                            openmeetings SVN even 2 users are currently
>>        in room.
>>
>>                            I need to get broadcastid's for current
>>        users to publish
>>     

Re: currentusers always nil for getRoomWithCurrentUsersById

2010-05-27 Thread Sebastian Wagner
Okay see r3247
http://code.google.com/p/openmeetings/source/detail?r=3247

There is a new Function:
public RoomReturn getRoomWithClientObjectsById(String SID, long rooms_id)
[
http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/roomservice/org/openmeetings/axis/services/RoomService.java#289
]

The return Object contains an array of active Users in the Room, look like
that:

-http://services.axis.openmeetings.org";>
-
-2010-03-24T12:14:56.000Z
-
-public Conference Room
-
-av
-0
-firstname
-false
-lastname
-03e841d1b1e7b3386c9c5b452e5c8b1b

-2




Attribute: *room_id*
=> the scope-name

Attribute: *isBroadCasting*
=> If that user has published Audio/Video

Attribute: *avsettings*
av = Audio + Video
v = Video
a = Audio
n = Nothing

Attribute: *broadcastId*
=> Stream-Name



Sebastian


2010/5/27 Andrey 

> Hello,
>
> It will be great because in days I need to put broadcasted openmeetings
> streams on web. Thank you very much!
>
>
> 27.05.2010 20:54, Sebastian Wagner пишет:
>
>> Hi Andrey,
>>
>> I can post a new method tomorrow and you can take one of the next
>> Nightly Builds
>>
>>
>> Sebastian
>>
>> 2010/5/27 Andrey mailto:waster2...@gmail.com>>
>>
>>
>>Thanks for the info. Can we wait this SVN commit soon? And
>>corresponding changes in deb package?
>>
>>
>>27.05.2010 19:11, Sebastian Wagner пишет:
>>
>>No I first have to commit a new Method of the SOAP-Gateway to
>>the SVN.
>>
>>Sebastian
>>
>>2010/5/27 Andrey > >
>>>>
>>
>>
>>Hello,
>>
>>So unfortunately it is not possilble to get current users of
>>room
>>via SOAP methods to publish their streams in JWPlayer, for
>>example?
>>
>>With regards, Andrey.
>>
>>27.05.2010 13:59, Sebastian Wagner пишет:
>>
>>Hi,
>>
>>I have partly reworked those functions.
>>The function getRoomWithCurrentUsersById does not work
>>as intend
>>at the
>>moment.
>>The Service Method needs to be refactored to be able to
>>include the
>>attributes of the Room-Client-Object in the SOAP-Return.
>>
>>Sebastian
>>
>>2010/5/27 Waster >
>>>
>>
>>
>>>
>>
>>
>>I confirm that. I get empty list of current users while
>>trying to use
>>getRoomWithCurrentUsersById via nusoap.php SOAP
>>client from
>>openmeetings SVN even 2 users are currently in room.
>>
>>I need to get broadcastid's for current users to
>> publish
>>their RTMP
>>streams on the web.
>>
>>Please advice.
>>
>>On Mar 4, 9:32 pm, Sebastian Wagner
>>mailto:seba.wag...@gmail.com>
>>>
>>
>>>
>>wrote:
>> > hi,
>> >
>> > not for the moment, I will have to validate that with a SOAP
>>client
>> > first before I can give you an answer.
>> > There seems to be no problem with the Code itself.
>> >
>> > Sebastian
>> >
>> > On Mar 2, 5:36 am, ike mailto:i...@ini.net>
>>>
>> >> >
>> > > Similar to this discussion.
>> >
>> >
>> >
>> http://groups.google.com/group/openmeetings-user/browse_thread/thread...
>> >
>> > > Regardless of whether users are in the room or not, a SOAP
>>call to
>> > > getRoomWithCurrentUsersById() is always returning
>>"currentusers" as
>> > > nil instead of returning a List.
>> >
>> > > SOAP RESPONSE:
>> > > >xmlns:xsi="http://www.w3.org/2001/XMLSchema-
>> > > instance" xsi:nil="true" />
>> >
>> > > The rest of the response seems to populate ok.
>> >
>> > > Any thoughts?
>> >
>> > > Ike
>>
>>
>>
>>
>>--
>>Sebastian Wagner
>>http://www.webbase-design.de
>>http://openmeetings.googlecode.com
>>http://www.laszlo-forum.de
>>seba.wag...@gmail.com 
>>

Re: currentusers always nil for getRoomWithCurrentUsersById

2010-03-05 Thread 纪宏吴
this function in src\app\org\openmeetings\app\remote\ConferenceService.java

   public Rooms getRoomWithCurrentUsersById(String SID, long rooms_id){
Long users_id = Sessionmanagement.getInstance().checkSession(SID);
Long user_level =
Usermanagement.getInstance().getUserLevelByID(users_id);
return Roommanagement.getInstance().getRoomById(user_level,rooms_id);
}
so currentusers always nil for getRoomWithCurrentUsersById back

i changed the last row to return
Roommanagement.getInstance().getRoomWithCurrentUsersById(user_level,rooms_id);
then the if the room is nil red5 response "
java.lang.reflect.InvocationTargetException ",if the room hava uses
the red5 response the error  "Mapping qname not fond for the
package",has everyone can resolve it?



2010/3/5 Sebastian Wagner :
> hi,
>
> not for the moment, I will have to validate that with a SOAP client
> first before I can give you an answer.
> There seems to be no problem with the Code itself.
>
> Sebastian
>
> On Mar 2, 5:36 am, ike  wrote:
>> Similar to this discussion.
>>
>> http://groups.google.com/group/openmeetings-user/browse_thread/thread...
>>
>> Regardless of whether users are in the room or not, a SOAP call to
>> getRoomWithCurrentUsersById() is always returning "currentusers" as
>> nil instead of returning a List.
>>
>> SOAP RESPONSE:
>>    http://www.w3.org/2001/XMLSchema-
>> instance" xsi:nil="true" />
>>
>> The rest of the response seems to populate ok.
>>
>> Any thoughts?
>>
>> Ike
>
> --
> You received this message because you are subscribed to the Google Groups 
> "OpenMeetings User" group.
> To post to this group, send email to openmeetings-u...@googlegroups.com.
> To unsubscribe from this group, send email to 
> openmeetings-user+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/openmeetings-user?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to openmeetings-u...@googlegroups.com.
To unsubscribe from this group, send email to 
openmeetings-user+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.



Re: currentusers always nil for getRoomWithCurrentUsersById

2010-03-04 Thread Sebastian Wagner
hi,

not for the moment, I will have to validate that with a SOAP client
first before I can give you an answer.
There seems to be no problem with the Code itself.

Sebastian

On Mar 2, 5:36 am, ike  wrote:
> Similar to this discussion.
>
> http://groups.google.com/group/openmeetings-user/browse_thread/thread...
>
> Regardless of whether users are in the room or not, a SOAP call to
> getRoomWithCurrentUsersById() is always returning "currentusers" as
> nil instead of returning a List.
>
> SOAP RESPONSE:
>    http://www.w3.org/2001/XMLSchema-
> instance" xsi:nil="true" />
>
> The rest of the response seems to populate ok.
>
> Any thoughts?
>
> Ike

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to openmeetings-u...@googlegroups.com.
To unsubscribe from this group, send email to 
openmeetings-user+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.