multiple media players in one html page

G

Geradeaus

Hello,

anybody an idea why this doesn't work :
http://users.telenet.be/geradeaus/avi/tmp.html

The movies seem to interfere with eachother, sometimes when I want the first
movie to stop, the second one stops, and after a while the browser (Firefox
or Internet explorer) crashes.

Is it not possible to have multiple players in one html page? I tried the
same with the second player in a popup window, but I had the same problem.

Thanks in advance,
Ben
 
G

Geradeaus

David Dorward said:
Because I don't have the plugin, and you fail to provide an alternative
(i.e. a plain old link) that would let me open the media files in a stand
alone player (at least not without digging through the source).

--

I added a param url, maybe this would help you? Beside that, opening it in a
standalone mediaplayer is irrelevant to my question...
 
C

Chaddy2222

Geradeaus said:
now it is...


hopefully you can take a look now
Yeah.but it still made my web browser crap itself!!!!!!!!!!
If you really want to include video in a web page. Don't imbed it in to
the html. It's to much for most web browsers to handle unless you
compress the hell out of what you want to appear on the page. You also
need a seperate link for dial-up users such as myself.
But, I think even a Broadband conection would choke with some video
content.
Also my PC must have got confused, I run Win Media 10 on this system
and your page launched to versions of the same application!. So place
the content as a link and leave at that.
 
G

Geradeaus

Chaddy2222 said:
Yeah.but it still made my web browser crap itself!!!!!!!!!!
If you really want to include video in a web page. Don't imbed it in to
the html. It's to much for most web browsers to handle unless you
compress the hell out of what you want to appear on the page. You also
need a seperate link for dial-up users such as myself.
But, I think even a Broadband conection would choke with some video
content.
Also my PC must have got confused, I run Win Media 10 on this system
and your page launched to versions of the same application!. So place
the content as a link and leave at that.

My browser crashes too, that's part of the problem :eek:) But placing links is
not an option, unfortunately. There must be a reason why the browser
crashes, not? The files are only 280kb and 396kb...
 
J

JDS

My browser crashes too, that's part of the problem :eek:) But placing links is
not an option, unfortunately. There must be a reason why the browser
crashes, not? The files are only 280kb and 396kb...

Why is "placing links" not an option?

There are quite a few ways to embed video into a web page, with varying
degrees of "goodness". Personally, I like the embed-video-in-a-MM-Flash
method, if only for the fact that MM Flash player 7 is available on most
major web browsing platforms. But really, I prefer to just link directly
to the video file and let the viewer's computer do what it is set up to do.
 
G

Geradeaus

JDS said:
Why is "placing links" not an option?

There are quite a few ways to embed video into a web page, with varying
degrees of "goodness". Personally, I like the embed-video-in-a-MM-Flash
method, if only for the fact that MM Flash player 7 is available on most
major web browsing platforms. But really, I prefer to just link directly
to the video file and let the viewer's computer do what it is set up to
do.

--

Why not? Because customer is king... unfortunately (again). I know flash
could be an option, but that's not my question.

An option is to use embedded media players, I chose this option, but
apparently you can not use 2 mediaplayres at the same time?
 
C

cwdjrxyz

Geradeaus said:
Hello,

anybody an idea why this doesn't work :
http://users.telenet.be/geradeaus/avi/tmp.html

The movies seem to interfere with eachother, sometimes when I want the first
movie to stop, the second one stops, and after a while the browser (Firefox
or Internet explorer) crashes.

Is it not possible to have multiple players in one html page? I tried the
same with the second player in a popup window, but I had the same problem.

Your page works just fine for me and both videos start automatically
nearly at once. However I am using SBC/Yahoo Pro DSL which has a
measured download rate of 2.59 Mbps, and I get at least 2.4 when
downloading from my server.

It is likely that others had problems because you have autostarted both
players, and their maximum available download speed can't handle all of
the bandwidth. The first thing you need to do is insert a parameter
into the player object to allow starting only on clicking the player
play buttons. Then you need to decide on your audience and supply
players at different download rates for at least medium DSL speed, and
dialup speed, if you wish. Video on dialup leaves very much to be
desired, even with a very good connection. See my media pages that can
be reached at http://www.cwdjr.info/media/playersRoot.php . If you will
check the scripted player link, you will find over 15 players embedded
on the same page, but none of them start automatically, so there is no
problem. My example is for audio, but the same principle applies for
video. You just have to increase the height of the player enough to
display the image as well as the control bar.Although I am using xhtml
served with the correct mime type application/xhtml+xml with a php
include to convert the page to html 4.01 strict for browsers such as
IE6 that can not handle this mime type, you can write the code in just
html 4.01 strict and avoid the php include, if you wish.
 
T

Travis Newbury

Geradeaus said:
Is it not possible to have multiple players in one html page? I
tried the same with the second player in a popup window, but I
had the same problem.

Thanks in advance,
Ben
 
C

cwdjrxyz

Your page works just fine for me and both videos start automatically
nearly at once. However I am using SBC/Yahoo Pro DSL which has a
measured download rate of 2.59 Mbps, and I get at least 2.4 when
downloading from my server.

It is likely that others had problems because you have autostarted both
players, and their maximum available download speed can't handle all of
the bandwidth. The first thing you need to do is insert a parameter
into the player object to allow starting only on clicking the player
play buttons. Then you need to decide on your audience and supply
players at different download rates for at least medium DSL speed, and
dialup speed, if you wish. Video on dialup leaves very much to be
desired, even with a very good connection. See my media pages that can
be reached at http://www.cwdjr.info/media/playersRoot.php . If you will
check the scripted player link, you will find over 15 players embedded
on the same page, but none of them start automatically, so there is no
problem. My example is for audio, but the same principle applies for
video. You just have to increase the height of the player enough to
display the image as well as the control bar.Although I am using xhtml
served with the correct mime type application/xhtml+xml with a php
include to convert the page to html 4.01 strict for browsers such as
IE6 that can not handle this mime type, you can write the code in just
html 4.01 strict and avoid the php include, if you wish.

I had time to examine your page a bit more. With my high speed
connection, it is working on several recent browsers. However, as I
mentioned earlier, autostarting both players creates a problem for
those with slower connections. In addition, the sounds from both videos
are mixed and playing at the same time because both videos are
autostarted. I do not see any need to autostart either video, although
you could autostart only one.

Although the player objects are working, they use code soup -
unfortunately, very common even in large companies who could afford to
hire those who can write modern, valid code. They use an ActiveX object
with an embed within this object for browsers that can not handle
ActiveX. One embed alone throws 20 errors at the W3C validator. All of
this might be justified if it were the only way. However, as shown on
my media pages and elsewhere, it is quite possible to write a player
object that works on most browsers without using either ActiveX or
embed, and this can be made to completely validate even at xhtml 1.1.

Your page also needs to show what type of character encoding is used.

If you decide to try to give a stream that will work well on dialup as
well as one suitable for broadband, you may find that converting your
video to a wmv at about 30 kbps works best, but as I mentioned before,
video quality will not be very good on dialup. A Real video rm file
also would work about as well, although fewer people have the Real
player installed than have the WMP.
 
M

Mark Parnell

Why not? Because customer is king...

He's paying you because you know how to create web sites and he doesn't.
Explain to him why what he wants is bad.
http://www.spartanicus.utvinternet.ie/embed.htm
An option is to use embedded media players,

It's a very bad option, but yes - it's an option.
I chose this option, but
apparently you can not use 2 mediaplayres at the same time?

Why would you want to? Surely your visitor can only watch one at a time?
 
G

Geradeaus

Mark Parnell said:
He's paying you because you know how to create web sites and he doesn't.
Explain to him why what he wants is bad.
http://www.spartanicus.utvinternet.ie/embed.htm

Believe me, I tried...
It's a very bad option, but yes - it's an option.


Why would you want to? Surely your visitor can only watch one at a time?

Wel, the second movieclip has to be played in a popup, so it is possible
visitors kan watch both at the same time. (if they don't stop the first one
before clicking the popup link).
 
M

Mark Parnell

Wel, the second movieclip has to be played in a popup,

Yikes! It gets worse. You do realise that means that for many people it
won't be played at all?
so it is possible
visitors kan watch both at the same time.

I'm talking about the visitor physically watching, and being able to
concentrate on, both at once - nothing to do with the browser.
(if they don't stop the first one
before clicking the popup link).

And if they don't have popups blocked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top