Opening New Windows From Sites With Audio / Video Files?

Apr 13, 2010

My computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.

View 3 Replies


ADVERTISEMENT

Creating An Own Audio/video Player?

Jun 2, 2011

I am not sure whether this requires flash or not, therefore I'd like to ask if it is technically possible to create your own audio/video player with JavaScript/jQuery? If not, could I create something similar just not with full functionality? Like stop, next, previous, etc. buttons?

View 3 Replies View Related

Playing Random Video - Not Just Audio

Aug 3, 2011

I managed to construct a script to play random sound files to make listening tests for students. The audio files were actually taken from video files and I would now like students to be able to see the video too. I have the code below which works fine for my (and the students') needs, except that only the audio is played and not the video (and the mov files definitely do contain video). Can anyone suggest how I might change the code so that the video is shown too, either on the same page, or in a pop-up window? I would have thought it would be a matter of changing the window.doSound lines, but if so I can't figure out how.

Code:

View 1 Replies View Related

HTML5 Video & JS - Only Audio Plays?

Nov 23, 2011

I worked on this website :[URL]and cannot find out why it does not work in IE while it works in other browsers. The small video does not play while the sound does. As far as I can see it works fine in FF and Chrome.

View 1 Replies View Related

Google Video Embed Continues To Play Audio?

May 3, 2011

I'm using VS2008Pro with Master pages. On a child page, I have a modalPopupExtender that calls a panel with an embedded Google video. Everything works great - the popup appears with the video,background greyed.But, when I close the panel,the audio keeps playing in IE 7 & 8. Netscape is fine.I went and tried what Google recommended, but it still continues.

'//In child page header
<script src="../swfObject/swfobject.js" type="text/javascript"></script>
<script type="text/javascript"> [code].....

View 1 Replies View Related

JQuery :: Load Any Resource (well, Popular Ones: Images, Audio, Video) Given A Url?

Mar 20, 2011

Is there an extension or plugin that could take a url to some media -- video, audio, image -- and just load it / display it on the page? I came across jQuery Media [URL]... and it looks like a good start at what I'd need. Although it just focuses on video and audio, not general images.

View 3 Replies View Related

How Can I Play Midi And/or Audio Files?

Mar 24, 2006

How can I play midi and/or audio files using JavaScript?
I'm hoping there are some calls/APIs I can use that I am unaware of. My
JavaScript book from O'Reilly seems rather lacking in this area.

I'm looking for something like:

playMidiNote(pitch, duration);
playSoundFile(soundFileURL);

View 20 Replies View Related

Playing Certain Audio Files - Or Possibly PHP

Jun 10, 2010

I want to use HTML5's audio coding similar to the one below:

In order to play sound files depending on the input. What I'm working on is a text-to-speech webapplication.

What I'd need to happen is for there to be an input and then allow the user to type anything into the input, so if they type in:

Hello, how are you doing?

Javascript or PHP will recognize each character and translate it into an audio sequence.

In example:

It'd detect the "H" in hello and play sound file "H.ogg"

It'd then detect the "E" in hello and play sound file "E.ogg"

View 3 Replies View Related

JQuery :: Load Shoutcast Stream With JMediaelement (jme) Audio Video Plugin?

Jul 19, 2010

im trying to load url for Shoutcast Stream [URL] with jMediaelement plugin[URL],

View 8 Replies View Related

Allow User To Download Mp3 Files When They Click On The Link Rather Than Streaming The Audio In The Browser?

Feb 9, 2011

I need to allow user to download mp3 files when they click on the link rather than streaming the audio in the browser. Need to use only Javascript to download the file.

View 1 Replies View Related

Opening Windows

Dec 17, 2006

I have a company web site where I wish to open a search window with javascript. I do know and have used the window.open( for this.

The window that is opened provides a search function an returns a list of results as hyperlinks. I then want the user to be able to select the link from the list and when the link is clicked the 'poped' search window closes and the hyperlink reference be displayed in the window which referenced it in th efirst place.

View 3 Replies View Related

Opening New Windows Using JS

Mar 23, 2007

Hi I managed to find a way of opening a PDF in a new window using JavaScript.

I warned the user beforehand and opened the new window at 80% height and width of the original window to show it was a new window.

However I can't seem to control XLS, DOC, RTF documents. These are the issues:

1. Firefox: They always seem to open in a new window anyway.

2. Firefox: Firefox opens a blank window as well when the JavaScript is used.

3. IE and Firefox: I can't seem to control the height and width

View 1 Replies View Related

DivX Calculator: Video Bitrate/Audio Bitrate/Resolution

Sep 27, 2003

/*
* var divx_video = new DivXVideo();
*/
function DivXVideo()
{
/*
* default values
*/
this.VideoLength = 0;
this.AspectRatio = 16 / 9;
this.Width = 720;
this.Height = 480;
this.CroppingTop = 0;
this.CroppingRight = 0;
this.CroppingBottom = 0;
this.CroppingLeft = 0;
this.FramesPerSecond = 23.976;
this.OutputFileSize = 703.125;
this.ResXModulus = 4;
this.ResYModulus = 2;
this.AudioBitrateModulus = 16;

/*
* videoLength();
* videoLength( seconds );
* videoLength( minutes, seconds );
* videoLength( hours, minutes, seconds );
*/
this.videoLength = function()
{
if (arguments.length > 2)
this.VideoLength = arguments[0] * 3600 + arguments[1] * 60 + arguments[2];
else if (arguments.length > 1)
this.VideoLength = arguments[0] * 60 + arguments[1];
else if (arguments.length)
this.VideoLength = arguments[0];
return this.VideoLength;
}

/*
* aspectRatio( [ ratio ] );
*/
this.aspectRatio = function()
{
if (arguments.length)
this.AspectRatio = arguments[0];
return this.AspectRatio;
}

/*
* width( [ n ] );
*/
this.width = function()
{
if (arguments.length)
this.Width = arguments[0];
return this.Width;
}

/*
* height( [ n ] );
*/
this.height = function()
{
if (arguments.length)
this.Height = arguments[0];
return this.Height;
}

/*
* croppingTop( [ n ] );
*/
this.croppingTop = function()
{
if (arguments.length)
this.CroppingTop = arguments[0];
return this.CroppingTop;
}

/*
* croppingRight( [ n ] );
*/
this.croppingRight = function()
{
if (arguments.length)
this.CroppingRight = arguments[0];
return this.CroppingRight;
}

/*
* croppingBottom( [ n ] );
*/
this.croppingBottom = function()
{
if (arguments.length)
this.CroppingBottom = arguments[0];
return this.CroppingBottom;
}

/*
* croppingLeft( [ n ] );
*/
this.croppingLeft = function()
{
if (arguments.length)
this.CroppingLeft = arguments[0];
return this.CroppingLeft;
}

/*
* framesPerSecond( [ fps ] );
*/
this.framesPerSecond = function()
{
if (arguments.length)
this.FramesPerSecond = arguments[0];
return this.FramesPerSecond;
}

/*
* outputFileSize( [ MB ] );
*/
this.outputFileSize = function()
{
if (arguments.length)
this.OutputFileSize = arguments[0];
return this.OutputFileSize;
}

/*
* resXModulus( [ modulus ] );
*/
this.resXModulus = function()
{
if (arguments.length)
this.ResXModulus = arguments[0];
return this.ResXModulus;
}

/*
* resYModulus( [ modulus ] );
*/
this.resYModulus = function()
{
if (arguments.length)
this.ResYModulus = arguments[0];
return this.ResYModulus;
}

/*
* audioBitrateModulus( [ modulus ] );
*/
this.audioBitrateModulus = function()
{
if (arguments.length)
this.AudioBitrateModulus = arguments[0];
return this.AudioBitrateModulus;
}

/*
* audioBitrate();
*
* Assume MP3 compression.
* Variable dependencies:
* - outputFileSize
* - videoLength
* - audioBitrateModulus
*/
this.audioBitrate = function()
{
var kbps = Math.round(this.OutputFileSize * 8192 / (this.VideoLength * 7.09375));
kbps -= kbps % this.AudioBitrateModulus;
return kbps > 128 ? 128 : kbps;
}

/*
* videoBitrate();
*
* Variable dependencies:
* - outputFileSize
* - videoLength
* - audioBitrateModulus
*/
this.videoBitrate = function()
{
return Math.floor((this.OutputFileSize - this.kbps2MB(this.audioBitrate(), this.VideoLength)) * 8192 / this.VideoLength);
}

/*
* resX();
*
* Variable dependencies:
* - width
* - croppingLeft
* - croppingRight
* - height
* - croppingTop
* - croppingBottom
* - aspectRatio
* - outputFileSize
* - videoLength
* - audioBitrateModulus
* - framesPerSecond
* - resXModulus
*/
this.resX = function()
{
var x = this.Width - this.CroppingLeft - this.CroppingRight;
var y = this.Height - this.CroppingTop - this.CroppingBottom;
if (Math.round(this.Width / this.AspectRatio) > this.Height)
x /= this.Width / Math.round(this.Height * this.AspectRatio)
else
y /= this.Height / Math.round(this.Width / this.AspectRatio);
var optimum_res_x = Math.sqrt(1024 * this.videoBitrate() * (x / y) / (.2 * this.FramesPerSecond));
if (optimum_res_x < x)
x = optimum_res_x;
x = Math.round(x);
x -= x % this.ResXModulus;
return x;
}

/*
* resY();
*
* Variable dependencies:
* - width
* - croppingLeft
* - croppingRight
* - height
* - croppingTop
* - croppingBottom
* - aspectRatio
* - outputFileSize
* - videoLength
* - audioBitrateModulus
* - framesPerSecond
* - resXModulus
* - resYModulus
*/
this.resY = function()
{
var x = this.Width - this.CroppingLeft - this.CroppingRight;
var y = this.Height - this.CroppingTop - this.CroppingBottom;
if (Math.round(this.Width / this.AspectRatio) > this.Height)
x /= this.Width / Math.round(this.Height * this.AspectRatio)
else
y /= this.Height / Math.round(this.Width / this.AspectRatio);
y = Math.round(this.resX() / (x / y));
y -= y % this.ResYModulus;
return y
}

/*
* kbps2MB( bitrate, seconds );
*
* Convert kbps for a given number of seconds to file size in MB.
*/
this.kbps2MB = function(bitrate, seconds)
{
return bitrate * seconds / 8192;
}
}

View 3 Replies View Related

Opening New Windows/Tabs

Nov 18, 2006

How can I make this script I generated with HomeSite, open links in new
windows/tab instead of the same? ....

View 4 Replies View Related

Opening 2 Separate Windows ?

Feb 18, 2011

I am opening a new small window through javascript.

Here is the code:

But on the same page I have another link for a new window which is essentially the same code:

As you can see in the red text, one link should open map.asp and the other should open pofull.asp... but they BOTH open in pofull. So I have tried to change the function name for one of them but then it doesnt work at all.

I have tried everything to separate the two scripts but nothing has worked.

View 2 Replies View Related

Opening Multiple Windows ?

Nov 3, 2010

I have a JavaScript that allows you to open 5 additional windows when you click on the button. It works properly when using Mozilla, but when you use IE7, only 1 window pops up not 5.

Code:

View 3 Replies View Related

Opening 2 Windows For 1 Click In IE6

Jul 20, 2006

I have problems with opening new windows in IE6, in Firefox and Opera it is working fine, but IE6 gives warning and open only one link. Code:

View 1 Replies View Related

Opening New Browser Windows

Feb 26, 2003

I have a question about opening new pages when a link is clicked on a webpage. What I want to happen is this:

On the main webpage, I would like to have links to other websites. For example:

Link 1
Link 2
Link 3

Now, if I was to click links 1,2 and 3, I would have 4 browser windows open: The window containing the original webpage, plus the 3 windows that were opened by clicking on the 3 links. (I am using a href="www.,,,,," target="_blank"></A>)

Now, what I want to happen is this, I only want the mainpage to have ONE child window so that at any given time, there will be at most 2 browser windows open, the main page window and one child that is opened by clicking on a link. If I click on Link 1 followed immediately by Link 2, I don't want 2 child windows to pop up. What I need to happen is when I click Link 1, it needs to open a window. When I click link 2, the browser window that contains the webpage from link 1 now needs to show the webpage that from link 2. Is there a way to do this using javascript window.open? Code:

View 1 Replies View Related

Keep Pop-up From Opening In Same (opened) Windows?

Jan 22, 2011

I have a function that opens a new window when the link is clicked. The pop-up window contains a customer's info. Each time I click the link, my pop-up is opening in the same (popped-up) window, but I'd like it to create a new window each time.

View 1 Replies View Related

After Login Opening App In A New Windows?

Jan 5, 2010

i m making a web app. after login i want the app run in a 1280*800 size window. i saw many tuts on how to make a popup window but what i don't get it where should i post the code? in the login page or the main home page and so on?

View 3 Replies View Related

Opening Windows: Combining Two Functions?

May 19, 2010

Doing a bit of window-opening: the idea is, when a link is clicked, it selects a random one from an array of urls, and then opens it with certain toolbars missing. Got a script for each part, but not sure how to combine them: 'location' seems to be talking about different things in each script.

the random script:

var single = new Array ("a.htm","b.htm","z.htm")
function choose(){
window.location=choose[Math.floor(Math.random()*single.length)] }

[code].....

View 2 Replies View Related

Opening Windows On Secondary Monitors

Oct 15, 2010

I am working on an application (for internal company use) that is meant to be viewed over three monitors. I'm wondering how to accurately position windows on the secondary and tertiary monitors. If they all have the same resolution (say 1280x1024), can we assume that the second monitor begins at 1281, and the third begins at 2561?

View 2 Replies View Related

Opening Multiple Windows Or Tabs

Aug 4, 2011

I am currently designing a website for our public library. I have added a card catalog search bar on the side of every page. Our catalog software company has supplied the code. After embedding it, I previewed each page to make sure it was working properly. At the time, it worked fine. Since then, I have added other elements to the homepage such as a Twitter feed and a Flickr slideshow. Now, when I attempt to search in the catalog search bar on the homepage, it opens two tabs, but only in Firefox.

Our IT person from the software company suggested I make a copy of the page and strip the code down to see what the problem is. After doing this, I have made no headway. Even with the catalog as the only code left on the page, other than text, it still opens two tabs.

[Code]...

View 3 Replies View Related

Retrieve Jwplayer Video Player Files From The Database?

Jul 11, 2011

i am trying to load video to jwplayer you can do it from by putting the name of the files directly into the script like this

Code:
<a href="#" onClick="jwplayer().load({'file': 'video_SD.mp4', 'hd.file': 'video_HD.mp4'})">

but now i want the names to come from the database so i tried it like this

Code:
echo "<td><a href="#" onClick="jwplayer().load('file':" . $row['first_vidoe'] . "'file.hd':" . $row['2ndvideo_HD'] . "' )">" . $row['FirstName'] . "<a/></td>"; echo "<td>" . $row['Age'] . "</td>";

View 1 Replies View Related

No-Block PopUp Window - If Users Open My Sites Another Sites Show Or Opens For Them?

Jul 30, 2010

I need "No-Block PopUp Window" for my web site.. for example if users open my sites another sites show or opens for them.. even a full page site like full pages ads..and it be like One time per hour or more..I found some script like that but some of them being blocked by IE or other browsers..

View 3 Replies View Related

Php Files Inside DHTML Windows

Jan 10, 2010

ive downloaded the DHTML window script from here :

[URL]

and have it running on my site.

i also have a DTHML / ajax chat running on the site which is currently on the main page in an iframe. im trying to put this iframe inside the DHTML window, i have tried all 4 of the window types and for each one i either get the items in the directory or the source code eg

if i put the link as test/ i get the list of files in that directory, if i put test/index.php i get <php? source code blah blah ?>

it works fine with .html files i assume its because they are .php ?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved