Insert the rM video file in the web page

xiaoxiao2021-03-06  62

My earliest thing is to use FrontPage2003 to see if there is a function of directly inserting a video. Create a new web page, search, finally find, insert-> pictures-> video, select the RM format file you want to insert, add the following code segment in the new page HTML: . Where DYNSRC is the address of the RM file. START is the start play mode of the video, one is when the web page is opened, the video automatically starts playback; the other is to play when the mouse moves to the icon displayed by the video file. Width and Height are width and height of video playback. Obviously, in FrontPage 2003, the video is treated as a picture. In this way, when playing video, you can choose to download it to the local, you can pause and continue play. However, it is worth mentioning that in this way, the video is played, not only the size of the video display cannot be controlled, but also the video effect of the display is very poor.

Want to play the effect of RM files, which reminds me of REALONE. If you let the browser call REALONE in the user machine, then play the RM video file, can you. So, online search, find some introducing CODE to play the RM file code. Just insert these code into the HTML of the web page, you can play the RM file. I don't know why, I tried a few, I was not successful. Finally, I have grinded a written one. Add the following code segment in HTML: . In this way, the web page is open, will display a REALONE's main screen on the web, then, when the file is downloaded from the server, it will be automatically played. If you set autostart = "0", it will not be played automatically, and the user must click the right button on the screen to select playback. The RM video played in this way is very good. And users can choose to play this video file in Realone. However, this approach still has its shortcomings. For example, when playing on the web, the user still cannot control the size of the video, and cannot be dragged.

Carefully study the above code, feeling that you can display the main playback interface in the browser, of course, you should also display the REALONE control panel. If you can display, it should be a modified controls = "imagewindow". So continuing to search, finally found, ImageWindow in the statement can replace with ControlPanel. This is just a display control panel, but the main picture is not. So I think of the imageWindow and ControlPanel, display the main screen on the web page, and the control panel is displayed below. So, in the above code, a similar statement was added: . Finally, the playback of the RM file can be dragged and the like. Here, you can also use controls = "all" instead of controls = "controlpanel", so that the web page not only displays the control panel, and the clip information, play time, and the like are displayed. But the problem occurs again, the user can still change the size of the video in the browser, and there is no full screen function. How to make playback in the browser can also watch directly, there should be a related code. Today is too tired, or first temporarily get here.

October 29, 2004

转载请注明原文地址:https://www.9cbs.com/read-87248.html

New Post(0)