
How to add a multimedia file |
Video or music files embedded to your web pages
To add a multimedia file embedded to your web pages you need to activate the option Add also to this paragraph and select A video / music file. A new tab named "Multimedia file" will be added to your paragraph from where you will be able to update the height and width of the embedded multimedia player and its position. As multimedia file can be large and take a long time to download we recommended this embedded solution only for small multimedia files like MIDI music file or small videos. If your multimedia file is big prefer the other downloadable file solution described in this page.
|
|
|
Macromedia Flash animations
If you have a Flash file click first click on the Add also to this paragraph and then on A flash animation to select it. A new tab called Flash file will appear in your paragraph from where you will be able to change width, height and other parameters of your animation. If the Flash animation you want to use is located on another website, you need to add A link (instead of A flash animation) to the URL of this file and activate the option named: Embed into this paragraph. For more information see the example of our Flash clocks.
|
|
Downloadable files
If you video file is very big or if you want you visitor to download it you need to click on A file to download and select it. And if you want the link to your file to be more visible, then from the Download file tab, you may Place the link on a button or on the image if you use one in your paragraph.
|
|
Important remarks
- depending on the web browser and the multimedia player plugin installed on computers some multimedia files may not play correctly. To avoid such problems you may prefer to make your downloadable instead of embedded so that your visitors can download and play your multimedia file directly in the multimedia player installed on their computers.
- the animated GIF files are not considered as multimedia files but as images, so you can directly add them as a normal picture in your paragraphs.
|
|

The programming by scripts |
This solution consists is not recommend but for programmers only who desire a specific HTML code or script. It is more complicated and requires the use of HTML code with the TOWeb script fields. Based on the HTML tags <OBJECT> or <EMBED>, the following code is an example on how you may include multimedia files into TOWeb.
Script for a music: Beware that depending on your visitors' machines and configuration the music or video may be played differently or not correctly by all web browsers. |
|
First, you need to create a new field by following the procedure below :
1) Make a right click on the text of your paragraph and from the popup menu select the entry Field editor.... 2) Click on the Add a new Field button and change its default name NEW_FIELD to the one of your choice (eg. MY_MUSIC) 3) Select the option HTML script for the Field type 4) Replace all the Field script content with the following lines (use a copy/paste) : |
|
|
<div align="center">
<embed src="music.mp3" autoplay=true loop=false width=240 height=64></embed>
</div>
|
|
|
|
5) Replace the "music.mp3" located in this script with the name of your music file 6) Click on the tab Additional script file and add your music file to the list 7) Validate and save your changes with the OK button
Now you have created your script, you can insert it anywhere in your paragraph :
1) make a right click in your text and select the name of your script MY_MUSIC from the popup menu. This will add your script name like this : %MY_MUSIC% 2) Generate and preview your website to verify your result and you should get something similar to the example below. |
|
| Script for a video : The procedure below present the basis to create video script with the example of the Microsoft MediaPlayer plugin : |
|
First, you need to create a new field by following the procedure below : 1) Make a right click on the text of your paragraph and from the popup menu select the entry Field editor.... 2) Click on the Add a new Field button and change its default name NEW_FIELD to the one of your choice (eg. MY_VIDEO) 3) Select the option HTML script for the Field type 4) Replace all the Field script content with the following lines (use a copy/paste):
|
|
|
<div align="center">
<OBJECT id='mediaPlayer2' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<PARAM name='fileName' value='myvideo.avi'>
<PARAM name='autoStart' value='1'>
<PARAM name='ShowControls' value='true'>
<PARAM name='EnableContextMenu' value='true'>
<PARAM name='EnableMarkerCount' value='true'>
<PARAM name='ShowGoToBar' value='true'>
<PARAM name='ShowStatusBar' value='true'>
<PARAM name='ShowTracker' value='true'>
<EMBED src="myvideo.avi"
width="320"
height="300"
filename="myvideo.avi"
enablemarkercount="1" enablecontextmenu="1" enablefullscreencontrols="1" enabletracker="1"
showcontrols="1" showaudiocontrols="1" showdisplay="1" showgotobar="1" showpositioncontrols="1"
showstatusbar="1" showtracker="1" allowchangedisplaysize="0" autorewind="0" balance="0"
bufferingtime="3" videobordercolor="1" videoborderwidth="1" volume="-500" >
</EMBED> </OBJECT>
</div> |
|
|
|
5) Replace all the three "myvideo.avi" located in this script with the name of your video file 6) Click on the tab Additional script file and add your music file to the list 7) Validate and save your changes with the OK button
Now you have created your script, you can insert it anywhere in your paragraph :
1) make a right click in your text and select the name of your script MY_VIDEO from the popup menu. This will add your script name like this : %MY_VIDEO% 2) Generate and preview your website to verify your result and you should get something similar to the example below.
|
|
|
|