Still want to use javasctipt for video

V

VK

chrisdude911 said:
look at this page
http://www.acejs.com/scriptsfolder/110003/110003.html
is has a custom web button for *audio*
is it possible for me to edit the code to make it *video*

This code doesn't work for audio neither.

Overall there is only one browser (IE) where you can play audio/video
from the page itself and even that is technically tricky. The problem
is that the majority of UA's do not have a tool to "play this media
file in whatever default player you have for this file type". It works
this way just fine if you click a link. It fails though for scripted
"background" playing. For the latter you can only say "play this media
file in *this* media player" (over <object> or <embed>). That means
that if say I have Winamp installed and you embedded MS Media Player,
I'll be prompted to download 10Mb MS Media Player despite I already
have more than enough tools to play your 10Kb MIDI file. The same
picture with video. Very frustrating actually - but stay this way since
Browser Wars.

In IE you still can say "take this file and play on whatever you have"
by using legacy <bgsound> and <img dynsrc...> and by scripting their
src attribute.

Really out of idea for the rest of the Co. Probably Flash is still the
most reliable way to do it.
 
C

chrisdude911

but i have seen on a tutorial that i can add a plain video without any
controls,
mabye the question should be "How do i add controls (play, pause.....)
to a video"
 
V

VK

chrisdude911 said:
but i have seen on a tutorial that i can add a plain video without any
controls,
mabye the question should be "How do i add controls (play, pause.....)
to a video"

That is not a problem - any existing media player has full set of
controls, right opposite you need to take extra steps to *hide* these
controls.

The major and still not resolved problem is to produce a script telling
to browser: "Just play this file on whatever player you have associated
with this media type. I don't give a damn what player is that. Do not
display it, do not download it - just fricken play, I'll tell you when
to top." AFAIK there is no way to achieve it cross-browsely even if
your visitor has all known players installed. You still have to say
"play this in *this* player". Actually the whole situation smells more
than just a technical oops from browser producers, I donno...

In IE just script src attribute for bgsound and dynsrc. Evidently it
leaves you without pause option and "is playing/is not playing" check.

Otherwise just use a Flash movie - will save you a bounch of nerves.
 
V

VK

Also there is an age old hack I mentioned somewhere in another thread.
You can have a hidden iframe on the page and dump media links into it:

<a href="media.wav" target="MyIFRAMEName">blah-blah</a>

I wonder how different browser will react on a *visible* iframe where
you dump your video:

<a href="media.mp2" target="MyIFRAMEName">blah-blah</a>

In any case it gives you only the most primitive control: start play -
stop play - start play over. No pause, no track control.
 

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

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top