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

support dataURI scheme in Flash #4

Closed
AlbanMinassian opened this issue Jan 18, 2013 · 2 comments
Closed

support dataURI scheme in Flash #4

AlbanMinassian opened this issue Jan 18, 2013 · 2 comments

Comments

@AlbanMinassian
Copy link

audio5.load('http://127.0.0.1/test.mp3'); work well. But audio5.load("data:audio/mp3;base64,XXXXXXXXXXXX"); generate Error calling method on NPObject!

Is it be possible to use an audio file encoded in base64 ? How ?
Thank

@zohararad
Copy link
Owner

@Ami44 using dataURI scheme should work with the HTML5 engine but won't work with the SWF engine, due to the way Flash loads and plays audio.

If you're experiencing problems with dataURIs in the HTML engine, please provide details on the browser you're using and the code you wrote so I can try and reproduce.

Although it is possible to convert the dataURI to a real file, I feel that this will be an overkill and might present a new array of problems (eg. memory/cpu consumption) and prefer to avoid it if possible.

My suggestion for now is to selectively provide dataURI or real URL to the player instance based on browser capabilities.

I'm leaving the issue open for now, but am changing the title to "support dataURI scheme in Flash" and if more people wish to add such support I will look into it in more depth.

@AlbanMinassian
Copy link
Author

thank you, I understood the problem.

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