-
Notifications
You must be signed in to change notification settings - Fork 0
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
Protected audio files do not play in the Safari browser #51
Comments
Evaluation of the The I will be appealing to my host provider to configure ALL their Apache servers so apps/websites can use |
Evaluation of the Mobile_Detect package:
|
Evaluation of the WhichBrowser package: This comment will be updated when the evaluation is complete. This appears to be a good candidate. It has a demo website where the latest version can be tested to see if it meets the project's needs (and to help with bug reporting). I haven't tested all platform/browser combinations available to me yet, but the demo was accurate on the ones I tried (which included the 2 Safari cases). I am not certain how one might do automatic updates of the data, but there are hints that it can be done. There are 7 frequent contributors to the project, the last update was 17 days ago, and there are only 3 open Issues. Another good sign is that the team is sharing data with other groups who support browser detection. |
Evaluation of JavaScript browser detection packages: This comment will be updated if There are some JS libraries that do browser detection. I have designed a method of adding a JS script to the footer to alter the name of the token stored in the URL used to invoke the script, and the way the script would parse the token and act on the information. The advantage to this approach is that, in general, client-side browser detection is easier and more reliable than server-side detection. The disadvantage is added complexity for the plugin code. |
The Safari browser downloads the audio file, probably to detect the size and type of the file, but it then invokes the AppleCoreMedia client to play the file. When ACM attempts to download the file for its own use, the token has already been deleted. The script assumes this is an attempt for unauthorized download of the file, and returns the pre-configured message. AppleCoreMedia rejects this content, and reports an error.
The likely solution will require the script to leave the token intact when the browser is Safari. A false positive will allow the user to play the audio, but opens up the possibility that an average hacker could easily steal the entire set of protected files. A false negative prevents the user from playing the audio.
The text was updated successfully, but these errors were encountered: