submitRecordedClip and onClipAdded

Post your questions and bug-reports about the audio/video streaming add-on based on Red5 Media Server.

Moderators: Lapo, Bax

User avatar
od1_fr
Posts: 4
Joined: 18 Mar 2010, 12:00
Location: France
Contact:

submitRecordedClip and onClipAdded

Postby od1_fr » 18 Mar 2010, 13:13

Hello !
I'm trying to make some video recorder with avClipManager, and i have some trouble with the onClipAdded event :
When i submit the recorded clip with submitRecordedClip, it doesn't seems to fire the event, but the clip is well recorded on the server streams folder.

I have no idea why it happen, but here are some stuff i can tell :
- I use a complex clip list, linked with a database, so i don't use the listing methods of avClipManager.
- the flv files are maybe not very well recorded, cause VLC player crash when playing it.

Have any idea ?
Thx a lot !
User avatar
Bax
Site Admin
Posts: 4330
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 19 Mar 2010, 10:05

Actually I have no ideas :)
The submitRecordedClip method stops the a/v clip recording and makes the RedBox server-side extension save the clip properties and add it to the clips list.
Then, if the submission is successful, the server-side extension sends a message to the client which in turn fires the onClipAdded event.
Maybe something is happening on the server-side, causing the "success" message not to be sent to the client. Maybe you can modify the server-side source code adding some log messages to understand what happens.
Paolo Bax
The SmartFoxServer Team
User avatar
od1_fr
Posts: 4
Joined: 18 Mar 2010, 12:00
Location: France
Contact:

Postby od1_fr » 19 Mar 2010, 11:15

Hi Bax, thank you for the answer !
I will try what you suggest to me on the server, but according to what you say :
the RedBox server-side extension save the clip properties and add it to the clips list.
Then, if the submission is successful, the server-side extension sends a message to the client which in turn fires the onClipAdded event.

if i don't use the avClipManager cliplist (for example, i use a database instead of the getClipList() to get my clip list), is it possible that the onClipAdded event isn't fired because of that ?
User avatar
Bax
Site Admin
Posts: 4330
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 19 Mar 2010, 13:33

I'm not sure. The clip list is handled by the RedBox internally. Did you change the RedBox source code?
Paolo Bax
The SmartFoxServer Team
User avatar
od1_fr
Posts: 4
Joined: 18 Mar 2010, 12:00
Location: France
Contact:

Postby od1_fr » 19 Mar 2010, 15:36

No, i didn't.
User avatar
Bax
Site Admin
Posts: 4330
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 19 Mar 2010, 15:52

No other ideas. Try to understand why that event is not fired by monitoring the messages exchanged between the client and the server.
Last edited by Bax on 23 Mar 2010, 08:15, edited 1 time in total.
Paolo Bax
The SmartFoxServer Team
User avatar
od1_fr
Posts: 4
Joined: 18 Mar 2010, 12:00
Location: France
Contact:

Postby od1_fr » 19 Mar 2010, 16:14

Ok i'll investigate that way :)
Thx !
benje
Posts: 2
Joined: 12 Apr 2011, 16:31

Postby benje » 12 Apr 2011, 16:48

I am also having this problem..

I am recording a clip using AVClipManager and then using the submitRecordedClip(properties) function to submit it to the redbox server, however I am not getting a callback event using "onClipAdded". Which I would expect to recieve.

Also the clips are not showing up in the SmartVideoClip Player example provided with the SFS install - despite the FLV and Prop files being generated and playing fine in the redbox streams folder.

Any help with why this is happening would be much appreciated :)
User avatar
Bax
Site Admin
Posts: 4330
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 12 Apr 2011, 22:15

No errors on the server-side, caused by the RedBox extension?
Paolo Bax
The SmartFoxServer Team
benje
Posts: 2
Joined: 12 Apr 2011, 16:31

Postby benje » 13 Apr 2011, 10:43

Nope there wern't any errors on the server side, but I managed to figure out what the problem was..

It wasn't receiving the onClipAdded callback event because you have make a request to view the clip list to be "included" in the users who receive the callback. It's weird and not how any of the other callbacks work, but it seems to fix the problem.

To recap.. if your not getting the "onClipAdded" callback, when you first instantiate the AVClipManager, make this call..

avClipMan.getClipList()

Return to “RedBox”

Who is online

Users browsing this forum: No registered users and 1 guest