Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I change the file name to the desired data? #16

Open
soyeon1 opened this issue Mar 5, 2018 · 1 comment
Open

How can I change the file name to the desired data? #16

soyeon1 opened this issue Mar 5, 2018 · 1 comment

Comments

@soyeon1
Copy link

soyeon1 commented Mar 5, 2018

I want to save the file name as the value of the data passed in the client page. (index.html (convert to index.ejs))
What should I do?

@noamtcohen
Copy link
Owner

On this line:

bStream = client.createStream({sampleRate: resampleRate});

change to: {sampleRate: resampleRate,fileName:"my_file_name"}
and you will have it available in meta param here:
client.on('stream', function(stream, meta) {

meta.fileName

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants