In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "Dreamweave how to preset images to the video playback window in the web page". The content in the article is simple and clear, and it is easy to learn and understand. now please follow the editor's ideas slowly and deeply, together to study and learn "Dreamweave how to preset images to the video playback window in the web page"!
Get the image from the video
Get it from the video, mainly to let the video jump to the desired frame, and then pause playback. Take a look at the code examples in wmp and rm:
Window Media Player:
1. First, add the control of wmp to BODY:
2. Secondly, add the js code to HEAD:
Var obj,obj1
Function stopWMVplayer ()
{
If (document. GetElementById ("WMVplayer"). Controls . CurrentPosition > = 1. 1) / / if the current location exceeds 1. 1, stop the playback and clear the execution of the stopWMVplayer function; otherwise, continue to run the stopWMVplayer function.
{
Document . GetElementById ("WMVplayer"). Controls . Pause ()
Window . ClearTimeout (obj)
}
Else
{
Obj=window . SetTimeout ("stopWMVplayer ()", 10)
}
}
3. Add the onload event for body again:
2. Secondly, add the js code to HEAD:
Function stopRMplayer ()
{
If (document. GetElementById ("RMplayer". GetPosition () > = 1100) / / if the current position exceeds 1100, stop the playback and clear the execution of the stopRMplayer function; otherwise continue to run
{
Document . GetElementById ("RMplayer"). DoPause ()
Window . ClearTimeout (obj1)
}
Else
{
Obj1=window . SetTimeout ("stopRMplayer ()", 10)
}
}
3. Add the onload event for body again:
RealOne:
1. First, add the control of rm to BODY:
In fact, the implementation principle of the function in Window Media Player and RealOne is basically the same, but the sentences of some implementation methods are different. I hope you can pay attention to it when using it. The specific instructions on other statements of the two players are no longer a waste of breath here, and you can search through the Internet.
Thank you for your reading, the above is the content of "how Dreamweave presets images to the video playback window in the web page". After the study of this article, I believe you have a deeper understanding of how Dreamweave presets images to the video playback window in the web page, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.