We are using FMOD inside an ActiveX control. And this ActiveX control is embedded in a HTTP page. The Internet Explorer shows this page.
This page also resides in a basic username and password protected site. When the Internet Explorer navigate to this page it requres login. After login all the files under this site are accessable without username and password. However we get problem on FMOD. When I call createSound it returns FMOD_ERR_HTTP_ACCESS. To further check is it the really reason I try to download the file first with Win32 APIs like InternetOpen, InternetOpenUrl and InternetReadFile. I find I can download it to hard disk. So I assume the protection is NOT there. Correct me if I am wrong. I guess is it possible a bug in streaming the audio over Internet on basic protected site like that case?
Because we use cookie so is it possible to streaming the audio using cookie instead of username and password? Or it will be very helpful if you can provide me the steps to stream the audio from basic protected site which is already login.
- tomfang2000 asked 11 years ago
I’ve test on https:// which does not require username and password. But I give FMOD_ERR_FILE_NOTFOUND. However the file is there becuase if I input the same URL to Internet Explorer it can playback the mp3 files. How can I stream it with https://?
If I use the username:password@url:port format it works fine. The problem is that if I do not use this format, and just use the original string URL it will failed with error FMOD_ERR_HTTP_ACCESS. At same time I can download the file to hard disk without authenticate to the site.
In general because I already login into the site so I can access the file by download it. But I can not stream it just use the regular format of URL.
I guess I have to use username:password@url:port every time I want to stream the autio from a basic protected site. Is it right?
Please login first to submit.