473,542 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

video

i have a video in a html document.
i have typed <img dynsrc="My Immortal.mpg"/> in to create a video box.
on http://www.acejs.com/scriptsfolder/110003/110003.html it tell me
about adding controls to a box for songs
how do i connect that to my video box?
also when i minimize the page the music on the video stops. how do i
prevent that from happening?

Mar 31 '06 #1
11 2365

chrisdude911 wrote:
i have a video in a html document.
i have typed <img dynsrc="My Immortal.mpg"/> in to create a video box.
on http://www.acejs.com/scriptsfolder/110003/110003.html it tell me
about adding controls to a box for songs
how do i connect that to my video box?
also when i minimize the page the music on the video stops. how do i
prevent that from happening?


If you are using the code in the text box on the page for which you
give the URL, you should be aware that it has several validation
errors. I would guess this code is rather out of date as are many codes
on many of the free JS sites. I would not use such a flawed code or try
to update it, but to each their own.The validation report from the W3C
is below. In addition, the script uses the outmoded document.all only
and not modern getElementBy Id. This means that any of the code that
uses document.all will work only on IE browsers and close relatives as
well as perhaps Opera. It will not work of Firefox, Mozilla, Netscape,
and many other recent browsers.

_______________ _______________ _______________ _______________ _______________

Result: Failed validation, 13 errors
File: upload://Form Submission
Encoding: utf-8
Doctype: HTML 4.01 Transitional

DOCTYPE Override in effect!

The DOCTYPE Declaration for "HTML 4.01 Transitional" has been
inserted at the start of the document, but even if no errors are shown
below the document will not be Valid until you add the new DOCTYPE
Declaration.

This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML
parser.

1. Error Line 6, column 22: document type does not allow element
"STYLE" here .

<STYLE type="text/css">

The element named above was found in a context where it is not
allowed. This could mean that you have incorrectly nested elements --
such as a "style" element in the "body" section instead of inside
"head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in
HTML documents. Due to HTML's rules of implicitly closed elements, this
error can create cascading effects. For instance, using XHTML's
"self-closing" tags for "meta" and "link" in the "head" section of a
HTML document may cause the parser to infer the end of the "head"
section and the beginning of the "body" section (where "link" and
"meta" are not allowed; hence the reported error).


2. Error Line 12, column 38: an attribute value must be a literal
unless it contains only name characters .

<table class=topbox border=0 width=100%>

You have used a character that is not considered a "name
character" in an attribute value. Which characters are considered "name
characters" varies between the different document types, but a good
rule of thumb is that unless the value contains only lower or upper
case letters in the range a-z you must put quotation marks around the
value. In fact, unless you have extreme file size requirements it is a
very very good idea to always put quote marks around your attribute
values. It is never wrong to do so, and very often it is absolutely
necessary.


3. Error Line 15, column 29: required attribute "TYPE" not specified
..

<SCRIPT LANGUAGE="JavaS cript">

The attribute given above is required for an element that you've
used, but you have omitted it. For instance, in most HTML and XHTML
document types the "type" attribute is required on the "script" element
and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and
type="text/javascript" for <script>.


4. Error Line 78, column 111: required attribute "ALT" not specified
..

...Over="music7 ()" onMouseOut="mus ic8()">


5. Error Line 79, column 111: required attribute "ALT" not specified
..

...Over="music1 ()" onMouseOut="mus ic2()">


6. Error Line 80, column 111: required attribute "ALT" not specified
..

...Over="music3 ()" onMouseOut="mus ic4()">


7. Error Line 81, column 112: required attribute "ALT" not specified
..

...Over="music5 ()" onMouseOut="mus ic6()"></CENTER>


8. Error Line 82, column 13: there is no attribute "SRC" .

<bgsound src="#" id=music loop=1 autostart="true "><A
class=movelink style="curso

You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transition al" document type to get the "target" attribute), or by
using vendor proprietary extensions such as "marginheig ht" (this is
usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported
in the document type you are using, as an undefined element will have
no supported attributes; in this case, see the element-undefined error
message for further information.

How to fix: check the spelling and case of the element and
attribute, (Remember XHTML is all lower-case) and/or check that they
are both allowed in the chosen document type, and/or use CSS instead of
this attribute.


9. Error Line 82, column 20: there is no attribute "ID" .

<bgsound src="#" id=music loop=1 autostart="true "><A
class=movelink style="curso


10. Error Line 82, column 31: there is no attribute "LOOP" .

<bgsound src="#" id=music loop=1 autostart="true "><A
class=movelink style="curso


11. Error Line 82, column 43: there is no attribute "AUTOSTART" .

...nd src="#" id=music loop=1 autostart="true "><A class=movelink
style="cursor:m


12. Error Line 82, column 49: element "BGSOUND" undefined .

...="#" id=music loop=1 autostart="true "><A class=movelink
style="cursor:m ove;"

You have used the element named above in your document, but the
document type you are using does not define an element of that name.
This error is often caused by:
* incorrect use of the "Strict" document type with a document
that uses frames (e.g. you must use the "Frameset" document type to get
the "<frameset> " element),
* by using vendor proprietary extensions such as "<spacer>"
or "<marquee>" (this is usually fixed by using CSS to achieve the
desired effect instead).
* by using upper-case tags in XHTML (in XHTML attributes and
elements must be all lower-case.


13. Error Line 88, column 32: required attribute "TYPE" not specified
..

<script language="JavaS cript1.2">



Source Listing

Below is the source input I used for this validation:

1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
2. <HTML>
3. <HEAD><TITLE>Fr ee Scripts And Tools For Webmasters @
www.AceJS.com</TITLE>
4. </HEAD>
5. <BODY>
6. <STYLE type="text/css">
7. .topbox
{background-color:#78D2FF;b order-style:none;font-family:arial;fo nt-size:7px;}
8. .mainL
{width:131px;bo rder-style:ridge;bor der-width:5px;borde r-color:#0022FF;p osition:absolut e;
background-color:#78D2FF;v isibility:show; left:20px; top:20px;
z-index:2;}
9. a.movelink {color:#000000; text-decoration:none ;
font-family:arial; font-size:7px;}
10. </STYLE>
11. <div id="movmenu" class=mainL>
12. <table class=topbox border=0 width=100%>
13. <tr>
14. <td>
15. <SCRIPT LANGUAGE="JavaS cript">
16. var musiccount=1;
17. function playmusic(){
18. if ((musiccount > 10) || (musiccount < 1)){musiccount= 1;}
19. if (musiccount==1) {document.all.m usic.src="1.mid ";} // 1.mid is
the file name of the first music file, 2.mid is the name of the second
music file and so on. Change the file name of to the file name you need
but make sure that you change all occurrences of the file name to the
new name
20. if (musiccount==2) {document.all.m usic.src="2.mid ";}
21. if (musiccount==3) {document.all.m usic.src="3.mid ";}
22. if (musiccount==4) {document.all.m usic.src="4.mid ";}
23. if (musiccount==5) {document.all.m usic.src="5.mid ";}
24. if (musiccount==6) {document.all.m usic.src="6.mid ";}
25. if (musiccount==7) {document.all.m usic.src="7.mid ";}
26. if (musiccount==8) {document.all.m usic.src="8.mid ";}
27. if (musiccount==9) {document.all.m usic.src="9.mid ";}
28. if (musiccount==10 ){document.all. music.src="10.m id";}
29. }
30. function stopmusic(){
31. document.all.mu sic.src='';
32. }
33. function forwardmusic(){
34. musiccount++;
35. if ((musiccount > 10) || (musiccount < 1)){musiccount= 1;}
36. if (musiccount==1) {document.all.m usic.src="1.mid ";}
37. if (musiccount==2) {document.all.m usic.src="2.mid ";}
38. if (musiccount==3) {document.all.m usic.src="3.mid ";}
39. if (musiccount==4) {document.all.m usic.src="4.mid ";}
40. if (musiccount==5) {document.all.m usic.src="5.mid ";}
41. if (musiccount==6) {document.all.m usic.src="6.mid ";}
42. if (musiccount==7) {document.all.m usic.src="7.mid ";}
43. if (musiccount==8) {document.all.m usic.src="8.mid ";}
44. if (musiccount==9) {document.all.m usic.src="9.mid ";}
45. if (musiccount==10 ){document.all. music.src="10.m id";}
46. }
47. function rewindmusic(){
48. musiccount--;
49. if ((musiccount > 10) || (musiccount < 1)){musiccount= 1;}
50. if (musiccount==1) {document.all.m usic.src="1.mid ";}
51. if (musiccount==2) {document.all.m usic.src="2.mid ";}
52. if (musiccount==3) {document.all.m usic.src="3.mid ";}
53. if (musiccount==4) {document.all.m usic.src="4.mid ";}
54. if (musiccount==5) {document.all.m usic.src="5.mid ";}
55. if (musiccount==6) {document.all.m usic.src="6.mid ";}
56. if (musiccount==7) {document.all.m usic.src="7.mid ";}
57. if (musiccount==8) {document.all.m usic.src="8.mid ";}
58. if (musiccount==9) {document.all.m usic.src="9.mid ";}
59. if (musiccount==10 ){document.all. music.src="10.m id";}
60. }
61. function music1(){
62. document.plbtn. src="play2.gif" ;}
63. function music2(){
64. document.plbtn. src="play1.gif" ;}
65. function music3(){
66. document.stbtn. src="stop2.gif" ;}
67. function music4(){
68. document.stbtn. src="stop1.gif" ;}
69. function music5(){
70. document.ffbtn. src="ff2.gif";}
71. function music6(){
72. document.ffbtn. src="ff1.gif";}
73. function music7(){
74. document.rrbtn. src="rr2.gif";}
75. function music8(){
76. document.rrbtn. src="rr1.gif";}
77. </SCRIPT><CENTER>
78. <img src="rr1.gif" BORDER="0" onClick="rewind music()"
name="rrbtn" onMouseOver="mu sic7()" onMouseOut="mus ic8()">
79. <img src="play1.gif" name="plbtn" BORDER="0"
onClick="playmu sic()" onMouseOver="mu sic1()" onMouseOut="mus ic2()">
80. <img src="stop1.gif" onClick="stopmu sic()" name="stbtn"
BORDER="0" onMouseOver="mu sic3()" onMouseOut="mus ic4()">
81. <img src="ff1.gif" BORDER="0" onClick="forwar dmusic()"
name="ffbtn" onMouseOver="mu sic5()" onMouseOut="mus ic6()"></CENTER>
82. <bgsound src="#" id=music loop=1 autostart="true "><A
class=movelink style="cursor:m ove;" onclick="Initia lizeMove()">
83. Click to move, Double Click to stop</A></td>
84. </tr>
85. </table>
86. </div>
87. <div id="emptycell" style="position :absolute; visibility:show ;
left:-70px; top:-70px; z-index:2"></div>
88. <script language="JavaS cript1.2">
89.
90. var XX = -70;
91. var YY = -70;
92. var cur_one = "emptycell"
93. var moving = false;
94. var xpos1 = 20;
95. var ypos1 = 20;
96. var myX = 0;
97. var myY = 0;
98.
99. function InitializeMove( ) {
100. cur_one = "movmenu";
101. XX = eval("xpos1");
102. YY = eval("ypos1");
103. }
104.
105. function CaptureMove() {
106. if (document.layer s) document.captur eEvents(Event.M OUSEMOVE);
107. }
108.
109. function EndMove() {
110. if (document.layer s) document.releas eEvents(Event.M OUSEMOVE);
111.
112. cur_one = "emptycell"
113. moving = false;
114. document.close( );
115. }
116.
117. function WhileMove() {
118.
119. if (document.all) {
120. eval(cur_one+". style.left="+my X);
121. eval(cur_one+". style.top="+myY );
122. }
123.
124. if (document.layer s) {
125. eval("document. "+cur_one+".lef t="+myX);
126. eval("document. "+cur_one+".top ="+myY);
127. }
128. }
129.
130. function MoveHandler(e) {
131.
132. myX = (document.all) ? event.clientX : e.pageX;
133. myY = (document.all) ? event.clientY : e.pageY;
134.
135. if (!moving) {
136. diffX = XX - myX;
137. diffY = YY - myY;
138. moving = true;
139. if (cur_one == "emptycell" ) moving = false;
140. }
141. myX += diffX;
142. myY += diffY;
143.
144. if (moving) {
145. xpos1 = myX;
146. ypos1 = myY;
147. }
148.
149. WhileMove();
150. }
151.
152. function ClearError() {
153. return true;
154. }
155.
156. if (document.layer s) {
157. document.captur eEvents(Event.C LICK);
158. document.captur eEvents(Event.D BLCLICK);
159. }
160. document.onmous emove = MoveHandler;
161. document.onclic k = CaptureMove;
162. document.ondblc lick = EndMove;
163. window.onerror = ClearError;
164. WhileMove();
165. </script>
166. <P>
167. <B><A HREF="http://www.AceJS.com"> AceJS.com</A> The JavaScript
Directory</B>
168. </BODY>
169. </HTML>

Mar 31 '06 #2
so how do i create custom controls for a video player

Mar 31 '06 #3

chrisdude911 wrote:
so how do i create custom controls for a video player


I have answered you several times giving
http://www.cwdjr.info/media/playersRoot.php as a reference that shows
how to create controls for several types of videos. Apparently this is
doing you no good, so I shall refrain from answering you anymore. You
have asked this same general question in this group now, and apparently
you still have not been pleased with any of the answers from several
people.Perhaps you need to try another group. Perhaps you need to
explain exactly what type of videos you want to use, what type of
controls you need, etc, so others will not waste their time giving
answers that do not meet your specific needs.

Mar 31 '06 #4
all it says is about *OTHER* video players.
i would like to *CREATE MY OWN*
so lets change the question
How do i create my own custom video player?

Mar 31 '06 #5
chrisdude911 wrote:
all it says is about *OTHER* video players.
i would like to *CREATE MY OWN*
so lets change the question
How do i create my own custom video player?


This has been answered before, too: You can not. However, you can RTFM,
such as

<URL:http://www.google.com/search?q=Media+ Player+SDK&btnI =I'm%20Feeling% 20Lucky>

and call the methods provided by the corresponding object, if it provides
some. However, since there is no standard about this yet, this will only
work with a specific plugin. But, with an interoperable approach, you do
not know which plugin that would be, so it is a waste of time.
PointedEars
Mar 31 '06 #6
so what language could i use?
just to say that on
http://www.acejs.com/scriptsfolder/110003/110003.html you can make your
own audio player, so why not video?

Mar 31 '06 #7
chrisdude911 wrote:
so
Are you referring to something?
what language could i use?
That does not matter. The problem is the _object interface model_.
just to say that on
http://www.acejs.com/scriptsfolder/110003/110003.html
Eeek.
you can make your own audio player,
No, you can NOT. But you relying on resources like this, it is not
surprising that you do not have a minimum clue yet.
so why not video?


Read my posting again. Slowly, thoroughly. And learn to quote, as
described in the FAQ and *ad nauseam* here, if you expect further
responses.
PointedEars
Mar 31 '06 #8
how do i post properly?
and how do i add controls to my own player?

Mar 31 '06 #9
chrisdude911 wrote:
how do i post properly?
and how do i add controls to my own player?


Please do not feed the troll.
PointedEars
Mar 31 '06 #10

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

Similar topics

1
10321
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...
8
3610
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 __:|(
1
7613
by: richardscheff | last post by:
Video selector works for IE but not other browsers. for not IE <object ID='Player' data="video/dodgeball.wmv" type="video/x-ms-wmv" width="320" height="280"> <param name="filename" value="video/dodgeball.wmv" /> <param name="ShowControls\" value="1" /> <param name="AutoStart\" value="1" /> <param name="PlayCount\" value="1" />
12
4468
by: Pallas | last post by:
Hi all, I've produced some high-def videos and I want people to be able to watch them on my website, but I may want to prevent downloads and I certainly want to prevent them from editing them. How can I impose such limitations? I have asked Google Video if they will ever permit
2
7875
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...
3
2059
by: triplejump24 | last post by:
i LOVE doing c++ programming, but i never can get myself started! Once i figure it out, its fun but anyways here it goes... Im given a file c:\temp\hwk8input.txt, which contains the records of the video collection of a small local library. There are four fields for each video: 1) A unique video ID number without space (v1, v2, etc.); 2) The...
3
2706
by: ghostrider | last post by:
Does anyone know how to recognise the image capture signal from a medical scope such as a video colonoscope? I've got video streaming from the scope to the computer but want my app to recognise when the scopes image capture button is pressed, rather than have to capture the image by pressing a button in my app. Thanks in advance
8
2426
by: Oscar Arreyano | last post by:
I did a website for a friend's company where they wanted a 'downloads' section similar to standard file sharing you see all over the place. Everything works great except for video. I know there are codecs involved, however, if i create a video (I've tried mpg, avi, wma so far) I can watch it on my pc from disk just fine. Since my pc is also my...
1
1629
by: Fuzz13 | last post by:
I have a project that has 4 radio buttons labeled with different animals. There are then 6 buttons and when a button is pressed based off of the radio button selected a picture will display and specific text will fill a label in the window. When the user selects Koala (radio button) and presses Talk (button) it will hide the picture box and...
0
7392
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, well explore What is ONU, What Is Router, ONU & Routers main...
0
7571
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. ...
0
7721
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...
1
7324
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...
0
7670
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...
0
5867
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3380
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...
1
1798
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.