473,785 Members | 2,919 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1670
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="MyIFRAM EName">blah-blah</a>

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

<a href="media.mp2 " target="MyIFRAM EName">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
3804
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 $30K on their 8 camera system and were told it would cost $13K for 3 more cameras to be added. If that inspires you to do your own system, please do so -- I love it when people can make big cash with Linux!) For discussions here, realize that...
4
1482
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 installed the SP and restarted the PC but I still keep getting this message. I then checked in the control panel and see that, yes, the SP is installed. But I still get the message. Can anyone help me with this?
1
10335
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 technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best technologies to be used, in terms of...
8
3665
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
7892
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 (AxSHDocVw.AxWebBrowse) control. The TreeView is populated with nodes that when clicked play an audio clip that is stored on the CD and navigate the browser control to a specified web URL (also stored on the CD). All the web URLs are html documents...
3
25917
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 video file to .flv file by using PHP code. Thanks RojaVenkat
3
18298
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 you missing an assembly reference?) using System; using System.Collections; using System.ComponentModel; using System.Drawing; using System.Data; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WebCam_Capture
1
2808
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
3365
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 project.......... plz help me.. thanks & regards Prabhat
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10319
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10087
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9947
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7496
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5380
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.