javascript: session.recordFile
I'm using session.recordFile in a javascript. How do I check the length of the recorded file?
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
You can make a really close estimation based on the size of the recorded file. That's what I've been doing. --Stephen 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
How? On Tue, Apr 21, 2009 at 8:02 PM, Stephen Crosby <stevecrozz@gmail.com>wrote:
You can make a really close estimation based on the size of the recorded file. That's what I've been doing.
--Stephen
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
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
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
update to trunk and you should have record_ms and record_samples chanvars also playback_ms and playback_samples for playing On Tue, Apr 21, 2009 at 12:58 PM, 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Thanks! :) On Tue, Apr 21, 2009 at 9:34 PM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
update to trunk and you should have
record_ms and record_samples chanvars
also playback_ms and playback_samples for playing
On Tue, Apr 21, 2009 at 12:58 PM, 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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
_______________________________________________ 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
participants (4)
-
Anthony Minessale
-
Jonas Gauffin
-
Michael Collins
-
Stephen Crosby