Adding media and videos using VBScript

Thread Solved
Reply

Join Date: Jul 2004
Posts: 8
Reputation: kittystitches is an unknown quantity at this point 
Solved Threads: 0
kittystitches's Avatar
kittystitches kittystitches is offline Offline
Newbie Poster

Adding media and videos using VBScript

 
0
  #1
Jul 15th, 2004
whats goin guys? I wanted to know how you would add in videos or music into your website using VBScript. If anyone can help me out I'tll be great thank you
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 141
Reputation: meabed is on a distinguished road 
Solved Threads: 2
Team Colleague
meabed's Avatar
meabed meabed is offline Offline
Junior Poster

Re: Adding media and videos using VBScript

 
0
  #2
Jul 17th, 2004
Embedding the Windows Media Player
this is for IE ..only .. ther is another ways for if u r using another browser .. just PM me
There are two ways to play a streaming media file. The first one is through an external Media Player. If you haven't install it yet on your computer, this link will connect you immediately to the download area:
http://www.microsoft.com/windows/win...a/default.aspx
To invoke the external Media Player, just place a link to an asf or ASX file in your Web page. To see a live demo of a streaming media, try this story about a turtle. The minimum modem baud rate should be 28.8K. The video stream will look more like still pictures with lower-rate communication link.

The second method to play a streaming media is to embed the Media Player in the Web page. The way to do it is by embedding an ActiveX control. As the subject of ActiveX controls needs much more attention than we can give it here, we won't dive into it in this column (we will dedicate a column to it in the near future). For now, it is sufficient to view ActiveX controls as objects that we embed in Web pages. Each object type supports a set of properties, methods, and events that is relevant to its role on the page. It is not a coincident that the HTML tag that embeds ActiveX controls is the <OBJECT> tag. Here is how the Media Player ActiveX control looks like:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. <OBJECT
  2. ID="mediaPlayer"
  3. CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
  4. CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/
  5. nsmp2inf.cab#Version=5,1,52,701"
  6. // (The above two lines should be joined as one line.
  7. // They have been split for formatting purposes.)
  8. STANDBY="Loading Microsoft Windows Media Player components..."
  9. TYPE="application/x-oleobject">
  10. <PARAM NAME="fileName" VALUE="http://msdn.microsoft.com/
  11. downloads/samples/Internet/imedia/netshow/smedia/NS3/JavaScript/
  12. Buttons/control.asx">
  13. // (The above three lines should be joined as one line.
  14. // They have been split for formatting purposes.)
  15. <PARAM NAME="animationatStart" VALUE="true">
  16. <PARAM NAME="transparentatStart" VALUE="true">
  17. <PARAM NAME="autoStart" VALUE="true">
  18. <PARAM NAME="showControls" VALUE="true">
  19. </OBJECT>
  20.  
  21. Let's examine the components of this tag:
  22.  
  23. Attribute Description
  24.  
  25. ID :- Object ID. Can be assigned any string constant.
  26. CLASS ID: - Media Player ActiveX control registration number. Must be copied and pasted as is.
  27. CODEBASE: - URL of the decompression application. Must be copied and pasted as is.
  28. STANDBY:- A message to be displayed while loading the Media Player.
  29. TYPE:- ActiveX control type specification. Must be copied and pasted as is.
  30.  
  31. The <OBJECT> tag is accompanied with several parameter specifications:
  32.  
  33. NAME Type Description
  34.  
  35. fileName:- String URL of the ASF or ASX file. Can reside on an HTTP server (http://), MultiMedia Server (mms://), local hard drive (u:), or on a network drive (p://).
  36. animationAtStart:- Boolean Specifies whether to activate the Microsoft animation show while the ASF or ASX file buffers. Default is true; ignored if transparentAtStart is true.
  37. autoStart :- Boolean Specifies whether to start the ASF file when the page loads.
  38. showControls:- Integer Specifies whether to show the player's control buttons. A value of true shows the controls, while a value of false means no controls.
  39. clickToPlay :- Boolean Specifies whether to start the ASF when the user clicks on the player's display area.
  40. transparentAtStart:- Boolean Specifies whether to make the player transparent at the start of the play. Default is false. Takes precedence over animationAtStart.
Real Eyes Realize Real Lies
My Resume
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 8
Reputation: kittystitches is an unknown quantity at this point 
Solved Threads: 0
kittystitches's Avatar
kittystitches kittystitches is offline Offline
Newbie Poster

Re: Adding media and videos using VBScript

 
0
  #3
Jul 17th, 2004
thank you VERY much! I think I'm going to go with the first way of doing a media file. I dont acutally want it embeded in my web page. Thank you VERY VERY much! If I have anymore questions I will ask you!
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 2
Reputation: vishalmishra2k is an unknown quantity at this point 
Solved Threads: 0
vishalmishra2k vishalmishra2k is offline Offline
Newbie Poster

Re: Adding media and videos using VBScript

 
0
  #4
May 4th, 2005
hiii meabed

saw your post n thought u may help me..

i ve embedded a Windows Media Player component in the ASP.NET Web Application interface.. but dunno how to play a media(audio/video) file in it...

i m using VB.NET as the frontend and oracle9i as the backend...on Windows 2000 Advanced Server..
saw your post n thought u may help me...

i ve tried giving a URL path to a Hyperlink, when this Hyperlink is clicked, another Windows Media Player pops up and plays that media file... but i want the embedded media player(on the interface) to play the file..

how to do this.. ??

and also how to go for dynamic URL path for the media files.. like when a user clicks on any file, its URL shud be invoked n played in the Embedded Windows Media Player(on interface)...

can you help me ???

badly need the help
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC