473,396 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Still want to use javasctipt for video

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*
Thanks
Chris

Mar 30 '06 #1
4 1654
VK

chrisdude911 wrote:
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.

Mar 30 '06 #2
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"

Mar 30 '06 #3
VK

chrisdude911 wrote:
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.

Mar 30 '06 #4
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.

Mar 30 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Google Mike | last post by:
Is there a Linux PHP module so that I can process web cam video with Linux PHP from multiple USB ports? (I'm working on a video surveillance idea since I found out that my office spent a whopping...
4
by: Alan Searle | last post by:
I am running MS-Access 2003 on Win2K (with service packs installed) and keep getting a message telling me that if I don't install Jet SP8, then certain VBA functions won't work. I downloaded and...
1
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of...
8
by: Nehmo | last post by:
When a page has a JavaScript "link" to a video, like http://www.msnbc.msn.com/id/10478942/ . How do you get the URL of the actual video? Isn't it in the source somewhere? -- )|:__ Nehmo __:|(
2
by: hzgt9b | last post by:
Using VS2003, VB.NET, BACKGROUND I have a window forms based application that will be distributed and executed directly from CD media. The app contains a TreeView control and a WebBroswer...
3
by: rojavenkat81 | last post by:
Hi All, Please help me regarding php program for convert video file to .flv file. I searched in many sites but i got only tool to convert video file to .flv file.But I want convert...
3
by: rajibnsu | last post by:
While searching for capturing video with a webcam I god the following code.It gives two errors.Says:The type or namespace name 'WebcamEventArgs' does not exit in the namespace 'WebCam_Capture' (are...
1
by: David Buckley | last post by:
Does anyone have any example code of converting any type of video to flash video at all using asp.net 2.0 c# web applications. God Bless
5
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.