Hide audiolinks from public - html

I'm creating a mediaplayer in my website using html5 audio.
I'm struggling with not allowing the users to download my audiofile. The problem is not in my webpage, as I can simply use the controlslist to disable download. The problem is, if someone gets the link to the source on my server, and opens it in a new tab in chrome, then they have a download-button in the chrome audioplayer.
How can I remove this option? I can not allow the users to download the audiofiles.
Edit:
Or maybe the best way to go around this is to use the javascript Audio-class? Then I won't expose the sourceurl. What do you think? Any downsides/upsides choosing one of them?

Related

Upload multiple camera photos with html input

I have a web application with an upload form.
<input type="file" name="c_files[]" id="c_files" multiple="multiple" />
I can select and upload mutliple files from the gallery but can't make multiple photos from the camera app. Taking the photos first and then uploading them from the gallery is not a good way to go.
I'm using Google Chrome Version 92.0.4515.159 on Android 11.
Firefox for Android and Safari on iOS isn't working either.
Apparently I have to use javascript right or is their an exisiting work around?
There is no such thing as "Out of the Box" that will solve your problem or your scenario, and the truth is that not HTML have at least one way to get there.
But... we have javascript I can think of something that is not exactly what you are looking for but it would be the way to perform this feat:
detect that you are on a mobile device.
allow that if you are on a mobile device when you click on the file field, you directly invoke the camera APP and take multiple photos.
when returning to the form detect the event and make the programmatic trigger of the multiple input type file, but directly open the image gallery...
select multiple images to attach.
As you can see, this is a concept/solution based on the capabilities that we know the mobile environment and the javascript language have. regardless of HTML.
To achieve this you must get each point mentioned above to work.

How do I make a website show up in a Google Chrome Extension Popup

Basically, I have this chatting website.
I want it to open up the web app inside of a popup, and I would also like for it to create a notification when I have unread messages.
I need to know if I can make it so it opens like it's in a website, or if I need to completely rewrite the coding.
You can in principle try to embed an iframe in the popup to show the webapp, but a popup page is completely destroyed when you close it, so it won't stay connected that way.
You would probably need another way.
It does not seem like Hall has any public API that you can use.
So probably your only option is to use a content script to interact with Hall opened in a tab. If you're adventurous, you could try to embed an iframe in your background page and interact with it there, but Hall may disallow framing.
All that said, I'm not so sure Hall will appreciate creating alternative software to interact with it.

Use AS3 to open an swf. in a browser without the browser toolbar (forward / back buttons)

I have developed a very large swf. that will only be accessed in-house. There are over 100 scenes & 10000 frames (I had no idea the project would grow this large). I have developed a navigation system within the swf., but I have found that many users are clicking the forward / back buttons in the browser toolbar (IE8). This is a big issue for me, because the user then has no way to return to the location in the swf. that they were in before hitting the back button. Is there a way to code into the swf. using AS3 to ensure that the browser toolbar is disabled?
Disabling the parts of the user interface that the users are using a lot is a very bad idea.
Instead, simply use the browser buttons for navigation.
SWFAddress let's you do that
You can have deep linking, too. (allows users to send a link of where they are to other people)
Take a look at this answer:
How to make the browser back button work for a Flash-based Website?

How to Clear history in Adobe Air's HTML control

I am using Adobe AIR's html control in my desktop application to let users see web pages. I am using the html.historyBack() and html.historyNext() methods to allow moving back and forth. But I want to clear the history once a specific option is selected, say a click on a button, without restarting the application. I tested both versions of AIR, 1.5.2 and AIR 2.0 Beta but unable to find any way to do so.
Is there any way to fix this problem?
Looking forward to hear from you,
Alex Fisherr
I don't think you can direct modify the history object because it's read-only. The easiest way to clear your history is to create a new HtmlLoader and replace the existing HtmlLoader.
This new HtmlLoader will have no history as desired.
If all you want to do is set the enabled state of the back and forward buttons then have a start point int, which you can reset when needed. Then base the history.length on this.

Open Window that has been put in tab or other options?

I'm hoping that someone may be able to help me out.
My Home page (Home.html) has a link to a mp3player located at (mp3.html)
On the mp3player page there is a link back to Home.html
If the user clicks on the link to the Mp3 player I would like for the music to continue to play even if the link to home.html is pressed.
What I would like to avoid is having multiple tabs from being opened if the user would re-click one of these links.
Also I would like to have the appropriate page to open when it's link is pressed instead of being locked in a tab and not displaying.
The mp3 player isn't affected by being refreshed.
I would prefer not to have different tabs open if at all possible.
This really got me stumped. I've tried different things out only to either be stuck choosing a tab or loosing the music from playing.
Thank you.
You can program your site with AJAX, so index page won't be reloaded but supplemented by content loaded be demand - Google Mail is a good example. Not a task for beginner, though.
You can use HTML frames (see examples) and load index and player at the same time in one tab. Very easy and may fit your needs, but makes your site harder to link to.
I'd go with the AJAX version as well, it's a nicer user experience. If there's a player somewhere in another tab, that's pretty annoying for the user to find if he wants to turn it off or change a track. Check out the Sixtyone and how they're solving the problem.