You can do a timestamp comparison, but over some long recorded sessions (30+ minutes), I've run into some type of "drift" in the past that made this method inaccurate enough for me to not use.

--Stephen

On Tue, Apr 21, 2009 at 11:06 AM, Michael Collins <msc@freeswitch.org> wrote:
Just curious - could you not set a variable with the value of getTime() right before recording starts and then compare that to getTime() as soon as the recording ends?

-MC


On Tue, Apr 21, 2009 at 10:58 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
Yes, to be able to determine if it's too short or not.

On Tue, Apr 21, 2009 at 7:01 PM, Michael Collins <msc@freeswitch.org> wrote:


On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com> wrote:
I'm using session.recordFile in a javascript.

How do I check the length of the recorded file?

You mean once the file is recorded you want to know how many minutes/seconds long it is?

-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org