HTML - Undetectable Audio file - html

I'm adding audio tag in my HTML file. But somehow download manager showing download panel for downloading the audio file.
I'm using this code :
<audio id="BildirimSes">
<source src="/inc/beep3.mp3" type="audio/mpeg"><source src="/inc/beep3.ogg" type="audio/ogg">
<embed height="0" width="0" src="/inc/beep3.mp3" type="audio/mpeg" autoplay="false" controller="false">
<embed height="0" width="0" src="/inc/beep3.ogg" type="audio/ogg" autoplay="false" controller="false">
</audio>
My question is, how can I hide(undetectably) my audio file from download manager like IDM?

Here's a solution I found:
Download this swf player from Google :
Put this file in the same folder as the html file
Put your mp3 in the same folder
Put this below code in your html
<object type="application/x-shockwave-flash" data="player_mp3_1.0.0.swf"
width="200" height="30">
<param name="movie" value="player_mp3_1.0.0.swf" />
<param name="FlashVars" value="mp3=file.mp3" />
</object>
It will use google swf player instead and will stop IDM from detecting the audio file.

Related

How can I embed my own .mov in to a web page ?

I just exported a .mov file from Final Cut Pro.
I want to embed that video into my HTML.
I tried :
<object width="800" height="600"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="FRIEND.mov">
<param name="autoplay" value="true">
<param name="controller" value="false">
<embed src="FRIEND.mov" width="160" height="144"
autoplay="true" controller="false"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>
I got :
Then, I tried :
<video width="800" height="600" src="FRIEND.mov" controls ></video>
I got this :
Then, when I press the play btn, I got the sound to play, but not the video. ??? Curious ?
What is the most efficient way to achieve something like that ?
First of all you can check the video format which are supported by html5 video tag from here.
.mov format does not have support by any browser.
So you need to do this with object tag. At your object tag you are using quicktime player plugin which is not exists on your browser.
install quick time player plugin to your browser. if you using chrome check this

Embed Flash player in a PHP page for live streaming

I want to play live RTMP streaming video in my PHP application. I have tried the code below for that purpose:
<object width="400" height="409" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="SRC" value="rtmp://111.111.11.1/live">
<param name="allowscriptaccess" value="always"></param>
<embed src="rtmp://111.111.11.1/live" width="400" height="409"></embed>
</object>
But it is not working. When I replace rtmp://111.111.11.1/live with some 3gp files, then the code is working. What is the problem here? Is there any other code to play live streaming video?
Note: rtmp://111.111.11.1/live is a sample URL.

Adding sound on clicking a image in HTML 5

I have a image on my html page and i want it to play a sound effect when i click on it.
Here's the image code:
<img src="images/button1.png" width="32" height="32" onclick="alert();">
I want to change the alert box into the sound effect that i load in. How do i do it?
Well, it is not so easy, actually it is difficult to be accomplished ONLY with HTML. See here for more details.
You`ll face a various problems like:
Different browsers have different audio format support.
If a browser
does not support the file format, the audio will not play without a
plug-in.
If the plug-in is not installed on the users' computer, the
audio will not play.
If you convert the file to another formats, it
will still not play in all browsers.
Using A Hyperlink
If a web page includes a hyperlink to a media file, most browsers will use a "helper application" to play the file.
The following code fragment displays a link to an mp3 file. If a user clicks on the link, the browser will launch a helper application to play the file:
Play the sound
The best solution by my opinion is to use a Flash for playing sounds, i.e. make your links as Flash objects/buttons/text and assign sounds to them inside Adobe Flash on hover/click/etc.
Use SoundManager and will free up from a lot of headaches. Even more it will fallback nicely to flash if audio is not supported natively by browser.
However if you don't want to relay on a third party library there is another solution, a little bit daunting and exhausting but functional in every browser supporting the audio tag.
The first thing you need to do is to populate the audio tag with the source content. You can do this with the following lines of code:
<audio id = 'audio'>
<source src="test.mp3" type="audio/mpeg" />
<source src="test.ogg" type="audio/ogg" />
<object class="playerpreview" type="application/x-shockwave-flash"
data="player_mp3_mini.swf" width="200" height="20">
<param name="movie" value="player_mp3_mini.swf" />
<param name="bgcolor" value="#085c68" />
<param name="FlashVars" value="mp3=test.mp3" />
<embed href="player_mp3_mini.swf" bgcolor="#085c68" width="200"
height="20" name="movie" align=""
type="application/x-shockwave-flash" flashvars="mp3=test.mp3">
</embed>
</object>
</audio>
Because there is not a common agreement between different browser vendors regarding the supported audio format we need to include each supported ones. If one browser does not support it, then will skip it and fallback to the next one. If none of them is supported then you can use flash as a fallback. Google AJAX Libraries API will facilitate much our work. Below is the full source code:
<script src="http://www.google.com/jsapi"></script>
<script>google.load("swfobject", "2.2");</script>
<img src="http://www.kafkabrigade.org.uk/wp-content/uploads/2011/07/button-pic.jpg" onclick="playSound();">
<div id="fallback"></div>
<audio id = 'audio'>
<source src="http://www.hellopixel.net/click.mp3" type="audio/mpeg" />
<source src="http://www.hellopixel.net/click.ogg" type="audio/ogg" />
<object class="playerpreview" type="application/x-shockwave-flash"
data="player_mp3_mini.swf" width="200" height="20">
<param name="movie" value="player_mp3_mini.swf" />
<param name="bgcolor" value="#085c68" />
<param name="FlashVars" value="mp3=test.mp3" />
<embed href="player_mp3_mini.swf" bgcolor="#085c68" width="200"
height="20" name="movie" align=""
type="application/x-shockwave-flash" flashvars="mp3=test.mp3">
</embed>
</object>
</audio>
<script>
function playSound() {
if (document.getElementById('audio').canPlayType) {
if (!document.getElementById('audio').canPlayType('audio/mpeg')) {
document.getElementById('audio').style.display = 'none';
swfobject.embedSWF(
"player_mp3_mini.swf",
"fallback",
"200",
"20",
"9.0.0",
"",
{"mp3":"http://www.hellopixel.net/click.mp3"},
{"bgcolor":"#085c68"});
} else {
document.getElementById('audio').play();
document.getElementById('fallback').style.display = 'none';
}
}
}
</script>​
Fiddle: http://jsfiddle.net/SMR4V/
Note: I have not created the ogg file, so won't work in firefox, because FF is using ogg files.

How to remove missing plugin error while using embed tag

As I am using embed tag in my html file but in browser it is showing missing plugin. To solve this plugin problem what can I do?
For playing FLV in html, you should use the tag. For example:
<object type="application/x-shockwave-flash"
width="320" height="240"
wmode="transparent"
data="player.swf?file=video.flv&autoStart=false">
<param name="movie"
value="player.swf?file=video.flv&autoStart=false"/>
<param name="wmode" value="transparent"/>
</object>
Player.swf is player swf file and filename is the file attribute.

playing video by embed tag in window xp

while playing video by embed tag in src mp4 and swf file are working but playing flv is not working in any browser on my window xp . please help .
<embed src="videoplayback.flv" bgcolor="#000"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="mainflash1" autostart="false" loop="false" height="450" width="450" allowscriptaccess="samedomain"
>
<noembed>Sorry, your browser doesn't support the embedding of multimedia.</noembed>
</embed>
For playing FLV in html, you should use the <object> tag. For example:
<object type="application/x-shockwave-flash"
width="320" height="240"
wmode="transparent"
data="player.swf?file=video.flv&autoStart=false">
<param name="movie"
value="player.swf?file=video.flv&autoStart=false"/>
<param name="wmode" value="transparent"/>
</object>
Player.swf is player swf file and filename is the file attribute.