Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] javascript: session.recordFile


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jonas.gauffin at gmail...
Guest





PostPosted: Tue Apr 21, 2009 6:26 am    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

I'm using session.recordFile in a javascript.

How do I check the length of the recorded file?
Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Apr 21, 2009 12:02 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Tue Apr 21, 2009 1:00 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:


On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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

Back to top
stevecrozz at gmail.com
Guest





PostPosted: Tue Apr 21, 2009 1:09 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:


On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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

Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Apr 21, 2009 1:11 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:


Quote:



On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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

Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Tue Apr 21, 2009 1:43 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

How?

On Tue, Apr 21, 2009 at 8:02 PM, Stephen Crosby <stevecrozz@gmail.com (stevecrozz@gmail.com)> wrote:
Quote:
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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:
Quote:


On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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 (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

Back to top
stevecrozz at gmail.com
Guest





PostPosted: Tue Apr 21, 2009 1:47 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

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 (msc@freeswitch.org)> wrote:
Quote:
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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:


Quote:



On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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 (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

Back to top
anthony.minessale at g...
Guest





PostPosted: Tue Apr 21, 2009 2:46 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:


Quote:



On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Tue Apr 21, 2009 11:54 pm    Post subject: [Freeswitch-users] javascript: session.recordFile Reply with quote

Thanks! Smile

On Tue, Apr 21, 2009 at 9:34 PM, Anthony Minessale <anthony.minessale@gmail.com (anthony.minessale@gmail.com)> wrote:
Quote:
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 (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (msc@freeswitch.org)> wrote:


Quote:



On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin <jonas.gauffin@gmail.com (jonas.gauffin@gmail.com)> wrote:
Quote:
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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services