WO2010097026A1 - Playing method and processing device for internet video in multi-page browser - Google Patents

Playing method and processing device for internet video in multi-page browser Download PDF

Info

Publication number
WO2010097026A1
WO2010097026A1 PCT/CN2010/070494 CN2010070494W WO2010097026A1 WO 2010097026 A1 WO2010097026 A1 WO 2010097026A1 CN 2010070494 W CN2010070494 W CN 2010070494W WO 2010097026 A1 WO2010097026 A1 WO 2010097026A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
video
control
page browser
sub
Prior art date
Application number
PCT/CN2010/070494
Other languages
French (fr)
Chinese (zh)
Inventor
刘斌
严峻
金刚铭
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to SG2011056975A priority Critical patent/SG173590A1/en
Publication of WO2010097026A1 publication Critical patent/WO2010097026A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Definitions

  • the present invention relates to a display technology of network video, and more particularly to a method and a processing apparatus for playing a network video in a multi-page browser. Background of the invention
  • the prior art provides a method for dividing the browser window, in which the browser window can only be separated from left to right or up and down, so that the left and right or upper and lower windows can be made.
  • the browser window can only be separated from left to right or up and down, so that the left and right or upper and lower windows can be made.
  • One of them is a window for browsing video, and the other is a window for browsing other pages, as shown in FIG.
  • the overall window is the browser window
  • the left child window is the window for browsing the video
  • the right is the window for browsing other pages.
  • Embodiments of the present invention provide a method and a processing apparatus for playing a network video in a multi-page browser, so as to fully utilize window space resources when viewing a video and browsing other pages by using a multi-page browser.
  • the embodiment of the invention further provides a device for processing network video in a multi-page browser, comprising:
  • a decision module configured to determine whether a video window exists in a window where the multi-page browser is located
  • a window creating module configured to: when the video window is a target video window, create a separate display window for the video window when the determination result of the decision module is YES; and a redirection module, configured to utilize the independent The show window plays the video.
  • the embodiment of the present invention when there is a video window in the window where the multi-page browser is located and is a target video window, an independent display window is created for the target video window, and the independent display window is utilized.
  • the show window plays the video. That is to say, the embodiment of the present invention redirects the video in the webpage to the newly created independent display window by playing a new independent display window, so that the user can perform other operations simultaneously without affecting the video window while watching the video. The effect of watching.
  • the present invention plays the video in the newly created dialog window, it does not occupy other space of the single window, thereby making full use of the space of the original single window.
  • FIG. 1 is a schematic diagram of left and right segmentation of a browser window in the prior art
  • 2a is a basic flow diagram of a method for playing a network video in a multi-page browser of the present invention
  • 2b is a detailed flowchart of a method for playing a network video in a multi-page browser of the present invention
  • FIG. 3 is a block diagram showing the basic structure of a network video processing apparatus in a multi-page browser of the present invention
  • FIG. 4 is a block diagram showing the detailed structure of a network video processing apparatus in the multi-page browser of the present invention. Mode for carrying out the invention
  • the video in the web page is extracted and played in a new window.
  • the video in the web page is played in a specific playback mode (for example, flash playback mode), which is displayed by a player of a specified type in the web page and a file of a specified type.
  • the player is the network player specified by the website in most cases (the video window in the webpage is essentially a network player), and the file is downloaded from the network to the local video file to be played.
  • the video file is usually a flv file in a network.
  • the flv file Since playing the flv file, it is usually necessary to first convert the ID of the video file to be played into the network address where the video file is located, and then download the video file to play, from the ID to the network.
  • the process of the address is implemented by the network player, and the local player cannot implement the process, that is, playing the video file with the local player will not succeed. Based on this, the local player needs to construct a playback environment similar to the network, so that the video in the extracted webpage is successfully played.
  • FIG. 2a is a basic flowchart of an embodiment of the present invention. As shown in Figure 2a The process can include the following steps:
  • Step 201a Determine whether a video window exists in the window where the multi-page browser is located, and if yes, perform step 202a; otherwise, end the current process.
  • Step 202a When the video window is a target video window, create a separate display window for the video window, and play the video by using the independent display window.
  • FIG. 2b is a detailed flowchart of an embodiment of the present invention.
  • the method for playing the network video in the multi-page browser disclosed by the present invention mainly includes three parts: video search, extraction, and creation of a new window independent display port.
  • each page is usually displayed through a sub-window in a single window.
  • first find out whether there is a video to be extracted by each page of the multi-page browser by the following steps: traversing each sub-window in the current window of the multi-page browser, if the control is found in each sub-window, according to the control identifier It is checked whether a video window exists in the sub-window (step 201b). Since the video is usually implemented by a control, when the control identifier of the control is obtained, the type of the control can be known, which is: determining whether the obtained control identifier is a flashID for representing the video, and if so, determining that the current webpage exists. A flash that is playing.
  • step 202b check whether the video window is a target video window according to a predetermined rule (step 202b); here, the target video window refers to a video window that the user wants to extract to a new independent display window for viewing, and determine the video window.
  • the predetermined rule of the target video window can be preset according to different requirements, for example, whether the video window is a video window currently triggered by the user's mouse or a video window that the user right-clicks or drags is used as a predetermined rule.
  • step 203b After finding the target video window through the above process, it is next necessary to construct a new independent display window (step 203b), so that the target video is from the original target video window. Extract it out. Since the parent window of a window can be reassigned through the API function SetParent of the windows SDK (of course, other functions that can re-specify the parent window are not excluded), so when the target video window is extracted from the original window, the present invention
  • the parent window of the target video window is designated as a newly created independent display window (step 204b), and the video is displayed on the new independent display window.
  • the specific implementation of step 204b may include: A window handle of the target video window, the parent window of the target video window is designated as the independent display window according to the window handle.
  • control identifier in step 201b refers to any identification information indicating the type of the control of the control. Taking the Windows operating system as an example, the type of the control is identified by the control identifier CLASSID on the Windows platform. In addition, for the control implemented by the Embed object, the Type property is used to indicate the type of the control.
  • the window is not really separated from the original single window, that is, the video does not change the playback progress during the two window switching processes.
  • the present invention also provides a method of converting a non-windowed video into a windowed video. This is achieved in order to apply the above described solution of the present invention.
  • the video control running on the webpage has a parameter to indicate whether the control has a corresponding window.
  • This parameter can be wmode or other implementation parameters when implemented. It is not limited here. When the value of this parameter is a predetermined value.
  • the flash object in the web page obtains the class factory interface for creating the object through the following functions:
  • a hook when a multi-page browser creates a control, a hook can be used to monitor the creation of a control running in the browser.
  • Hook is a kind of Windows provided to replace the "interrupt" under DOS.
  • System mechanism translated into Chinese as “hook” or "hook”.
  • the program that hooks the event is notified by the system, and the program can respond to the event at the first time. Since the system function of the hook mechanism in a process is usually shared globally, it is mainly reflected that the entry address is unique within the process, and if the library file containing the above function is loaded before the program is run, the function is loaded into the process.
  • FIG. 3 is a structural diagram of a network video processing apparatus in a multi-page browser according to an embodiment of the present invention.
  • the device corresponds to the playing method of the network video in the multi-page browser.
  • the device includes a decision module, a window creating module connected to the decision module, and a redirecting module connected to the window creating module.
  • the determining module is configured to determine whether a video window exists in a window where the multi-page browser is located;
  • a window creating module configured to create an independent display window for the video window when the video window is the target video window when the determination result of the decision module is YES;
  • a redirection module configured to play a video by using the independent display window.
  • the present invention also provides a detailed structure of a network video processing apparatus in a multi-page browser, as specifically shown in FIG.
  • the device includes: a decision module, a window creation module, and a redirection module.
  • the functions of the three modules are similar to those of the corresponding modules shown in FIG. 3, and are not described again.
  • the determining module may include:
  • a sub-window obtaining unit configured to acquire each sub-window of the window where the multi-page browser is located
  • a determining unit configured to traverse each sub-window, and determine, according to the control identifier, whether there is a video window in each sub-window, if yes, determining that a video window exists in the window where the multi-page browser is located; otherwise, completing the multi-page After the traversal of the child window in the window where the browser is located, If there is no video window in all the sub-windows in the window where the multi-page browser is located, it is determined that the video window does not exist in the window where the multi-page browser is located.
  • the replaying module playing the video by using the independent display window specifically includes: acquiring a window handle of the target video window, and designating a parent window of the target video window as the independent display window according to the window handle.
  • the control creating module and the monitoring module may also be included.
  • the control creation module creates the control in the multi-page browser
  • the monitoring module monitors the created control by means of a hook; determines whether the control is a video control according to the control identifier; if yes, the wmode parameter of the video control The value is set to a predetermined value.

Abstract

A playing method and processing device for internet video in a multi-page browser. The method includes: judging whether a video window exists in windows of the multi-page browser; if it is, establishing an independent displaying window for the objective video window when the video window is an objective video window, and playing the video using the independent displaying window. This solution realizes the purpose for making full use of the window space when watching video and browsing the other pages using the multi-page browser.

Description

多页面浏览器中网络视频的播放方法及处理装置 技术领域  Network video playing method and processing device in multi-page browser
本发明涉及网络视频的显示技术, 尤其涉及多页面浏览器中网络视 频的播放方法及处理装置。 发明背景  The present invention relates to a display technology of network video, and more particularly to a method and a processing apparatus for playing a network video in a multi-page browser. Background of the invention
在网络带宽不断增长的今天, 网络视频以便捷的访问体验、 多样性 的影片来源、 实时的更新速度吸引了广大的网民, 成为大众网络生活不 可或缺的重要部分。 目前, 中国网络上有 ^艮多专业的视频网站, 比如, 土豆网 ( www.tudou.com )、 优酷网 ( www.vouku.com )、 酷 6 网 ( www.ku6.com )等, 都是在一个页面中提供一个可以观看的视频。  Today, with the continuous increase of network bandwidth, network video attracts a large number of netizens with convenient access experience, diverse video sources, and real-time update speed, becoming an indispensable part of the mass network life. At present, there are many professional video websites on the Chinese network, such as Tudou.com (www.tudou.com), Youku (www.vouku.com), and Cool6.com (www.ku6.com). Provide a video to watch on one page.
通常, 当用户在利用多页面浏览器观看视频时也会有浏览页面的需 求, 比如, 在用户观看视频时, 如果需要浏览视频窗口之下用户对该视 频的评价, 则需要下拉到用户评价, 这样, 视频就无法被完整观看, 影 响了视频观看的效果。 基于此, 为了实现用户同时观看视频和浏览页面 的需求, 现有技术提供了分割浏览器窗口的方法, 该方法中, 只能是左 右或者上下分离浏览器窗口, 如此, 可以使左右或者上下窗口中的一个 为浏览视频的窗口, 相应地, 另一个是浏览其他页面的窗口, 具体如图 1所示。 在图 1中, 整体窗口为浏览器的窗口, 左边子窗口是浏览视频 的窗口, 右边是浏览其他页面的窗口。  Generally, when a user views a video using a multi-page browser, there is also a need to browse the page. For example, when the user views the video, if the user needs to browse the evaluation of the video under the video window, the user evaluation is required to be pulled down. In this way, the video cannot be viewed in its entirety, which affects the effect of video viewing. Based on this, in order to realize the requirement of the user to simultaneously watch the video and browse the page, the prior art provides a method for dividing the browser window, in which the browser window can only be separated from left to right or up and down, so that the left and right or upper and lower windows can be made. One of them is a window for browsing video, and the other is a window for browsing other pages, as shown in FIG. In Figure 1, the overall window is the browser window, the left child window is the window for browsing the video, and the right is the window for browsing other pages.
可以看出, 通过上述分割浏览器窗口的方法能够实现用户同时观看 视频和浏览其他页面的需求, 但是, 通常, 视频窗口 ^艮难布满在分离出 来的窗口里, 如此, 导致分离出来的窗口不能被充分利用, 比如图 1中 在左边子窗口下方的空间。 这大大浪费了窗口空间资源。 发明内容 It can be seen that the above method of dividing the browser window enables the user to simultaneously watch the video and browse other pages. However, in general, the video window is difficult to be covered in the separated window, thus causing the separated window. Can not be fully utilized, such as the space below the left sub-window in Figure 1. This greatly wastes window space resources. Summary of the invention
本发明实施例提供了一种多页面浏览器中网络视频的播放方法及 处理装置, 以便实现在利用多页面浏览器观看视频和浏览其他页面时充 分利用窗口空间资源。  Embodiments of the present invention provide a method and a processing apparatus for playing a network video in a multi-page browser, so as to fully utilize window space resources when viewing a video and browsing other pages by using a multi-page browser.
本发明实施例提供的多页面浏览器中网络视频的播放方法, 包括步 骤:  The method for playing network video in a multi-page browser provided by the embodiment of the invention includes the following steps:
判断所述多页面浏览器所在窗口中是否存在视频窗口; 如果是, 在 所述视频窗口为目标视频窗口时, 为所述目标视频窗口创建独立的展示 窗口, 利用所述独立的展示窗口播放视频。  Determining whether there is a video window in the window where the multi-page browser is located; if yes, when the video window is the target video window, creating an independent display window for the target video window, and playing the video by using the independent display window .
本发明实施例还提供了一种多页面浏览器中网络视频的处理装置, 包括:  The embodiment of the invention further provides a device for processing network video in a multi-page browser, comprising:
判决模块, 用于判断所述多页面浏览器所在窗口中是否存在视频窗 口;  a decision module, configured to determine whether a video window exists in a window where the multi-page browser is located;
窗口创建模块, 用于在所述判决模块的判断结果为是时, 在所述视 频窗口为目标视频窗口时, 为所述视频窗口创建独立的展示窗口; 重定向模块, 用于利用所述独立的展示窗口播放视频。  a window creating module, configured to: when the video window is a target video window, create a separate display window for the video window when the determination result of the decision module is YES; and a redirection module, configured to utilize the independent The show window plays the video.
综上所述, 可以看出, 本发明实施例中, 在多页面浏览器所在窗口 中存在视频窗口、 且为目标视频窗口时, 为所述目标视频窗口创建独立 的展示窗口, 利用所述独立的展示窗口播放视频。 也就是说, 本发明实 施例通过新建独立的展示窗口, 将网页中的视频重定向到新建的独立的 展示窗口中进行播放, 从而使得用户在观看视频时可以同时进行其他操 作而不影响视频窗口观看的效果。 同时, 由于本发明在新建的对话窗口 中播放视频, 因此不占用单一窗口的其他空间, 从而充分利用了原来的 单一窗口的空间。 附图简要说明 In summary, it can be seen that, in the embodiment of the present invention, when there is a video window in the window where the multi-page browser is located and is a target video window, an independent display window is created for the target video window, and the independent display window is utilized. The show window plays the video. That is to say, the embodiment of the present invention redirects the video in the webpage to the newly created independent display window by playing a new independent display window, so that the user can perform other operations simultaneously without affecting the video window while watching the video. The effect of watching. At the same time, since the present invention plays the video in the newly created dialog window, it does not occupy other space of the single window, thereby making full use of the space of the original single window. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为现有技术中浏览器窗口左右分割的示意图;  1 is a schematic diagram of left and right segmentation of a browser window in the prior art;
图 2a 为本发明的多页面浏览器中的网络视频的播放方法的基本流 程图;  2a is a basic flow diagram of a method for playing a network video in a multi-page browser of the present invention;
图 2b 为本发明的多页面浏览器中的网络视频的播放方法的详细流 程图;  2b is a detailed flowchart of a method for playing a network video in a multi-page browser of the present invention;
图 3为本发明的多页面浏览器中的网络视频的处理装置的基本结构 框图;  3 is a block diagram showing the basic structure of a network video processing apparatus in a multi-page browser of the present invention;
图 4为本发明的多页面浏览器中的网络视频的处理装置的详细结构 框图。 实施本发明的方式  4 is a block diagram showing the detailed structure of a network video processing apparatus in the multi-page browser of the present invention. Mode for carrying out the invention
本发明中, 为了实现在同时观看视频和浏览其他页面时充分利用窗 口空间资源, 将网页中的视频提取出来在新的窗口中进行播放。 通常, 网页中的视频是采用特定的播放方式(例如 flash播放方式), 它是由在 网页中指定类型的播放器和指定类型的文件来显示的。 其中, 播放器多 数情况下是网站指定的网络播放器(网页中的视频窗口实质上就是一个 网络播放器), 文件是从网络上下载到本地待播放的视频文件。 这里, 视频文件通常是是一个网络中的 flv文件,由于播放该 flv文件通常需要 先将待播放视频文件的 ID转化为视频文件所在的网络地址, 然后下载 这个视频文件来播放, 从 ID到网络地址的过程是网络播放器来实现的, 而本地播放器无法实现该过程, 也就是说, 用本地的播放器来播放该视 频文件则不会成功。 基于此, 本地播放器就需要构造与网络类似的播放 环境, 以使提取出的网页中的视频成功播放。  In the present invention, in order to make full use of the window space resources while watching video and browsing other pages at the same time, the video in the web page is extracted and played in a new window. Usually, the video in the web page is played in a specific playback mode (for example, flash playback mode), which is displayed by a player of a specified type in the web page and a file of a specified type. Among them, the player is the network player specified by the website in most cases (the video window in the webpage is essentially a network player), and the file is downloaded from the network to the local video file to be played. Here, the video file is usually a flv file in a network. Since playing the flv file, it is usually necessary to first convert the ID of the video file to be played into the network address where the video file is located, and then download the video file to play, from the ID to the network. The process of the address is implemented by the network player, and the local player cannot implement the process, that is, playing the video file with the local player will not succeed. Based on this, the local player needs to construct a playback environment similar to the network, so that the video in the extracted webpage is successfully played.
请参见图 2a, 图 2a为本发明实施例提供的基本流程图。 如图 2a所 示, 该流程可包括以下步骤: Referring to FIG. 2a, FIG. 2a is a basic flowchart of an embodiment of the present invention. As shown in Figure 2a The process can include the following steps:
步骤 201a, 判断所述多页面浏览器所在窗口中是否存在视频窗口, 如果是, 执行步骤 202a; 否则, 结束当前流程。  Step 201a: Determine whether a video window exists in the window where the multi-page browser is located, and if yes, perform step 202a; otherwise, end the current process.
步骤 202a, 在所述视频窗口为目标视频窗口时, 为所述视频窗口创 建独立的展示窗口, 利用所述独立的展示窗口播放视频。  Step 202a: When the video window is a target video window, create a separate display window for the video window, and play the video by using the independent display window.
上述是对本发明实施例提供的流程进行的筒单描述, 下面结合附图 对本发明实施例提供的方法进行详细描述。  The above is a description of the process of the embodiment of the present invention. The method provided by the embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
参见图 2b, 图 2b为本发明实施例提供的详细流程图。 这里, 本发 明揭示的多页面浏览器中的网络视频的播放方法主要包括视频的查找、 提取和新窗独立的展示口的创建三个部分。  Referring to FIG. 2b, FIG. 2b is a detailed flowchart of an embodiment of the present invention. Here, the method for playing the network video in the multi-page browser disclosed by the present invention mainly includes three parts: video search, extraction, and creation of a new window independent display port.
对于多页面浏览器而言, 通常是通过单一窗口中的各子窗口显示各 页面。 使用本发明, 首先通过以下步骤查找多页面浏览器的各页面是否 存在欲提取的视频: 遍历多页面浏览器当前窗口中的各个子窗口, 如果 在各子窗口中查找到控件, 则根据控件标识检查该子窗口中是否存在视 频窗口 (步骤 201b )。 由于视频通常是通过控件实现的, 当获取到控件 的控件标识即可获知控件的类型, 具体为: 判断获取的控件标识是否为 用于表示视频的 flashID,如果是,则判断出当前的网页存在一个正在播 放的 flash。如果存在, 则根据预定规则检查所述视频窗口是否为目标视 频窗口 (步骤 202b ); 这里, 目标视频窗口是指用户欲将其提取到新的 独立的展示窗口进行观看的视频窗口,确定视频窗口是否是目标视频窗 口的预定规则可以根据不同的需求预先设置, 例如, 可以将该视频窗口 是否是用户鼠标当前触发的视频窗口或者用户鼠标右键点击或拖动的 视频窗口等作为预定规则。  For multi-page browsers, each page is usually displayed through a sub-window in a single window. Using the present invention, first find out whether there is a video to be extracted by each page of the multi-page browser by the following steps: traversing each sub-window in the current window of the multi-page browser, if the control is found in each sub-window, according to the control identifier It is checked whether a video window exists in the sub-window (step 201b). Since the video is usually implemented by a control, when the control identifier of the control is obtained, the type of the control can be known, which is: determining whether the obtained control identifier is a flashID for representing the video, and if so, determining that the current webpage exists. A flash that is playing. If yes, check whether the video window is a target video window according to a predetermined rule (step 202b); here, the target video window refers to a video window that the user wants to extract to a new independent display window for viewing, and determine the video window. Whether the predetermined rule of the target video window can be preset according to different requirements, for example, whether the video window is a video window currently triggered by the user's mouse or a video window that the user right-clicks or drags is used as a predetermined rule.
当通过上述过程查找到目标视频窗口后, 接下来需要构建新的独立 的展示窗口 (步骤 203b ), 以便在将目标视频从原有的目标视频窗口中 提取出来。 由于通过 windows SDK 的 API函数 SetParent, 可以将一个 窗口的父窗口重新指定(当然不排除其他可以将父窗口重新进行指定的 函数), 因此本发明当将目标视频窗口从原来的窗口中提取时, 将所述 目标视频窗口的父窗口指定为新建好的独立的展示窗口 (步骤 204b ), 即可将视频显示在新的独立的展示窗口上, 其中, 步骤 204b具体实现 时, 可包括: 所述目标视频窗口的窗口句柄, 根据所述窗口句柄将所述 目标视频窗口的父窗口指定为所述独立的展示窗口。 After finding the target video window through the above process, it is next necessary to construct a new independent display window (step 203b), so that the target video is from the original target video window. Extract it out. Since the parent window of a window can be reassigned through the API function SetParent of the windows SDK (of course, other functions that can re-specify the parent window are not excluded), so when the target video window is extracted from the original window, the present invention The parent window of the target video window is designated as a newly created independent display window (step 204b), and the video is displayed on the new independent display window. The specific implementation of step 204b may include: A window handle of the target video window, the parent window of the target video window is designated as the independent display window according to the window handle.
值得指出的是, 对于步骤 201b 中的控件标识是指任何可以指明该 控件的控件类型的标识信息, 以 windows操作系统为例, 控件的类型在 windows平台上是以控件标识 CLASSID为标识的。 另夕卜, 对于 Embed 对象实现的控件, 则是以 Type属性来指明该控件的类型的。  It is worth noting that the control identifier in step 201b refers to any identification information indicating the type of the control of the control. Taking the Windows operating system as an example, the type of the control is identified by the control identifier CLASSID on the Windows platform. In addition, for the control implemented by the Embed object, the Type property is used to indicate the type of the control.
由于本发明采用的是视频窗口的重定向方法, 因此窗口没有真正与 原单一窗口分离, 也就是视频在两个窗口切换过程中不会产生播放进度 的变化。  Since the present invention adopts the redirection method of the video window, the window is not really separated from the original single window, that is, the video does not change the playback progress during the two window switching processes.
由于目前网页中的视频存在的类型除了上述窗口式的视频以外, 还 有通过 Object对象以及 Embed对象等方式实现的视频, 因此, 本发明 还提供了将非窗口式的视频转化为窗口式视频的实现方式, 以适用本发 明的上述方案。 网页中运行的视频控件有一个参数用来说明该控件是否 存在一个对应的窗口,这个参数是具体实现时可以是 wmode或者其他实 现参数, 这里不进行限定, 当这个参数的值为某个预定值时, 网页中的 视频就有对应的窗口, 例如, 在目前的现有技术中, 当 wmode= window 的时候, 网页中的视频就有对应的窗口。 另外, 网页中的 flash对象是通 过如下的函数获取创建对象的类厂接口:  Since the type of the video in the current webpage exists in addition to the above windowed video, there is also a video implemented by an Object object and an Embed object, and therefore, the present invention also provides a method of converting a non-windowed video into a windowed video. This is achieved in order to apply the above described solution of the present invention. The video control running on the webpage has a parameter to indicate whether the control has a corresponding window. This parameter can be wmode or other implementation parameters when implemented. It is not limited here. When the value of this parameter is a predetermined value. When the video in the webpage has a corresponding window, for example, in the current prior art, when wmode=window, the video in the webpage has a corresponding window. In addition, the flash object in the web page obtains the class factory interface for creating the object through the following functions:
HRESULT CoGetClassObjectFromURL( REFCLSID rclsid, //待创建的 activex控件 classid, 通过它可以判定 创建的是否为视频控件 HRESULT CoGetClassObjectFromURL( REFCLSID rclsid, // The activex control classid to be created, through which it can be determined whether the video control is created.
LPCWSTR szCodeURL,  LPCWSTR szCodeURL,
DWORD dwFileVersionMS,  DWORD dwFileVersionMS,
DWORD dwFileVersionLS,  DWORD dwFileVersionLS,
LPCWSTR szContentType,  LPCWSTR szContentType,
LPBINDCTX pBindCtx, DWORD dwClsContext, LPVOID pvReserved, REFIID riid,//  LPBINDCTX pBindCtx, DWORD dwClsContext, LPVOID pvReserved, REFIID riid,//
VOID**ppv//返回值, 对象类厂接口, 接下来会通过这个接口来创 建对象 VOID**ppv//return value, object class factory interface, then the object will be created through this interface
); );
作为本发明的一个实施例, 在多页面浏览器创建控件时, 可以通过 hook的方式来监控浏览器内运行的控件的创建, Hook是 Windows中提 供的一种用以替换 DOS下"中断"的系统机制,中文译为"挂钩"或"钩子"。 在对特定的系统事件进行 hook后, 一旦发生已 hook事件, 对该事件进 行 hook 的程序就会受到系统的通知, 这时程序就能在第一时间对该事 件做出响应。 由于 hook机制在一个进程中的系统函数通常是全局共享 的, 主要体现在入口地址是进程内唯一的, 而在程序运行的时候如果我 们事先加载包含上述函数的库文件, 函数加载到进程后, 就可以获知这 个函数的入口地址, 把保存这个入口地址的位置上替换成另一个同该函 数参数列表完全一致的全局函数的地址, 并保存原函数地址, 当原调用 路径调用上述函数时, 会调用到我们的那个函数。 也就是说, 在创建的 时候, 根据控件标识判断所要创建的控件是否为视频控件, 如果是视频 控件,就将该视频控件的 wmode参数的值设置为预定值,该预定值可以 为 window, 但不排除其他表示该控件有窗口的预定值。 这样就可以实 现将无窗口的视频控件转化成带窗口的视频控件。 As an embodiment of the present invention, when a multi-page browser creates a control, a hook can be used to monitor the creation of a control running in the browser. Hook is a kind of Windows provided to replace the "interrupt" under DOS. System mechanism, translated into Chinese as "hook" or "hook". After a specific system event is hooked, once a hook event occurs, the program that hooks the event is notified by the system, and the program can respond to the event at the first time. Since the system function of the hook mechanism in a process is usually shared globally, it is mainly reflected that the entry address is unique within the process, and if the library file containing the above function is loaded before the program is run, the function is loaded into the process. You can know the entry address of this function, replace the location where the entry address is saved with another address of the global function that is exactly the same as the function parameter list, and save the original function address. When the original call path calls the above function, Call that function to us. That is, in the creation Time, according to the control identifier to determine whether the control to be created is a video control, if it is a video control, the value of the wmode parameter of the video control is set to a predetermined value, the predetermined value can be window, but does not exclude other means that the control has The predetermined value of the window. This allows you to convert a windowless video control into a video control with a window.
上述对本发明实施例提供的方法进行了描述, 下面结合具体实施例 对本发明提供的装置进行详细描述。  The method provided by the embodiment of the present invention has been described above, and the device provided by the present invention will be described in detail below with reference to specific embodiments.
参见图 3 , 图 3为本发明实施例提供的多页面浏览器中网络视频的 处理装置结构图。 该装置与上述多页面浏览器中的网络视频的播放方法 相对应, 如图 3所示, 包括判决模块、 与判决模块连接的窗口创建模块 以及与所述窗口创建模块连接的重定向模块。  Referring to FIG. 3, FIG. 3 is a structural diagram of a network video processing apparatus in a multi-page browser according to an embodiment of the present invention. The device corresponds to the playing method of the network video in the multi-page browser. As shown in FIG. 3, the device includes a decision module, a window creating module connected to the decision module, and a redirecting module connected to the window creating module.
其中, 判决模块, 用于判断所述多页面浏览器所在窗口中是否存在 视频窗口;  The determining module is configured to determine whether a video window exists in a window where the multi-page browser is located;
窗口创建模块, 用于在所述判决模块的判断结果为是时, 在所述视 频窗口为目标视频窗口时, 为所述视频窗口创建独立的展示窗口;  a window creating module, configured to create an independent display window for the video window when the video window is the target video window when the determination result of the decision module is YES;
重定向模块, 用于利用所述独立的展示窗口播放视频。  a redirection module, configured to play a video by using the independent display window.
为使本发明更加清楚, 本发明还提供了多页面浏览器中网络视频的 处理装置的详细结构, 具体参见图 4。 如图所示, 该装置包括: 判决模 块、 窗口创建模块和重定向模块, 这三个模块的功能分别与图 3所示的 对应模块的功能类似, 不再赘述。  In order to make the present invention clearer, the present invention also provides a detailed structure of a network video processing apparatus in a multi-page browser, as specifically shown in FIG. As shown in the figure, the device includes: a decision module, a window creation module, and a redirection module. The functions of the three modules are similar to those of the corresponding modules shown in FIG. 3, and are not described again.
优选地, 如图 4所示, 所述判决模块可包括:  Preferably, as shown in FIG. 4, the determining module may include:
子窗口获取单元, 用于获取所述多页面浏览器所在窗口的各个子窗 口;  a sub-window obtaining unit, configured to acquire each sub-window of the window where the multi-page browser is located;
判决单元, 用于遍历各子窗口, 并根据控件标识判断各子窗口中是 否存在视频窗口, 如果存在, 则确定所述多页面浏览器所在窗口中存在 视频窗口; 否则,在完成所述多页面浏览器所在窗口中子窗口的遍历后, 如果所述多页面浏览器所在窗口中的所有子窗口中都不存在视频窗口, 则确定所述多页面浏览器所在窗口中不存在视频窗口。 a determining unit, configured to traverse each sub-window, and determine, according to the control identifier, whether there is a video window in each sub-window, if yes, determining that a video window exists in the window where the multi-page browser is located; otherwise, completing the multi-page After the traversal of the child window in the window where the browser is located, If there is no video window in all the sub-windows in the window where the multi-page browser is located, it is determined that the video window does not exist in the window where the multi-page browser is located.
重定向模块利用所述独立的展示窗口播放视频具体包括: 获取所述 目标视频窗口的窗口句柄, 根据所述窗口句柄将所述目标视频窗口的父 窗口指定为所述独立的展示窗口。  The replaying module playing the video by using the independent display window specifically includes: acquiring a window handle of the target video window, and designating a parent window of the target video window as the independent display window according to the window handle.
作为本发明的进一步改进, 与上文所述的上述多页面浏览器中的网 络视频的播放方法相对应, 为了将无窗口的视频转换为有窗口的视频, 还可以包括控件创建模块以及监控模块, 控件创建模块在多页面浏览器 中创建控件时监控模块通过 hook 的方式对所创建的控件进行监控; 根 据控件标识判断所述控件是否为视频控件; 如果是, 则将视频控件的 wmode参数的值置为预定值。  As a further improvement of the present invention, corresponding to the playing method of the network video in the multi-page browser described above, in order to convert the windowless video into the video with the window, the control creating module and the monitoring module may also be included. When the control creation module creates the control in the multi-page browser, the monitoring module monitors the created control by means of a hook; determines whether the control is a video control according to the control identifier; if yes, the wmode parameter of the video control The value is set to a predetermined value.
以上所述的本发明实施方式, 并不构成对本发明保护范围的限定。 任何在本发明的精神和原则之内所作的修改、 等同替换和改进等, 均应 包含在本发明的权利要求保护范围之内。  The embodiments of the present invention described above are not intended to limit the scope of the present invention. Any modifications, equivalents, and improvements made within the spirit and scope of the present invention are intended to be included within the scope of the appended claims.

Claims

权利要求书 Claim
1、 多页面浏览器中网络视频的播放方法, 其特征在于, 该方法包 括:  1. A method for playing a network video in a multi-page browser, wherein the method comprises:
判断所述多页面浏览器所在窗口中是否存在视频窗口; 如果是, 在 所述视频窗口为目标视频窗口时, 为所述目标视频窗口创建独立的展示 窗口, 利用所述独立的展示窗口播放视频。  Determining whether there is a video window in the window where the multi-page browser is located; if yes, when the video window is the target video window, creating an independent display window for the target video window, and playing the video by using the independent display window .
2、 根据权利要求 1所述的方法, 其特征在于, 所述判断包括: 遍历所述多页面浏览器所在窗口中的子窗口, 根据该子窗口对应的 控件标识检查该子窗口中是否存在视频窗口, 如果是, 则确定所述多页 面浏览器所在窗口中存在视频窗口; 否则, 在完成所述多页面浏览器所 在窗口中子窗口的遍历后, 如果所述多页面浏览器所在窗口中的所有子 窗口中都不存在视频窗口, 则确定所述多页面浏览器所在窗口中不存在 视频窗口。  The method according to claim 1, wherein the determining comprises: traversing a sub-window in a window where the multi-page browser is located, and checking whether a video exists in the sub-window according to a control identifier corresponding to the sub-window a window, if yes, determining that a video window exists in the window where the multi-page browser is located; otherwise, after completing the traversal of the sub-window in the window where the multi-page browser is located, if the multi-page browser is in the window If there is no video window in all the sub-windows, it is determined that there is no video window in the window where the multi-page browser is located.
3、 根据权利要求 1 所述的方法, 其特征在于, 所述视频窗口为目 标视频窗口包括:  3. The method according to claim 1, wherein the video window is a target video window comprising:
判断所述视频窗口是否为鼠标触发的视频窗口, 如果是, 则确定所 述视频窗口为目标视频窗口。  Determining whether the video window is a mouse-triggered video window, and if so, determining that the video window is a target video window.
4、 根据权利要求 2所述的方法, 其特征在于, 执行所述遍历所述 多页面浏览器所在窗口的各个子窗口步骤之前还包括:  The method according to claim 2, wherein before the step of performing the traversing the window of the multi-page browser, the method further comprises:
当所述多页面浏览器创建控件时, 通过 hook 的方式对所述控件进 行监控; 根据所述控件的标识判断所述控件是否为视频控件; 如果是, 则将所述视频控件的 wmode参数的值置为窗口 window。  When the multi-page browser creates a control, the control is monitored by means of a hook; determining whether the control is a video control according to the identifier of the control; if yes, setting the wmode parameter of the video control The value is set to the window window.
5、 根据权利要求 1 所述的方法, 其特征在于, 所述利用独立的展 示窗口播放视频包括: 获取所述目标视频窗口的窗口句柄; 根据获取的窗口句柄将所述目 标视频窗口的父窗口指定为所述独立的展示窗口。 5. The method according to claim 1, wherein the playing the video by using the independent display window comprises: Obtaining a window handle of the target video window; designating a parent window of the target video window as the independent display window according to the obtained window handle.
6、 根据权利要求 1至 5 中任一项所述的方法, 其特征在于, 所述 控件标识包括 CLASSID或 type属性值。  The method according to any one of claims 1 to 5, wherein the control identifier comprises a CLASSID or a type attribute value.
7、 一种多页面浏览器中网络视频的处理装置, 其特征在于, 包括: 判决模块, 用于判断所述多页面浏览器所在窗口中是否存在视频窗 口;  A device for processing a network video in a multi-page browser, comprising: a determination module, configured to determine whether a video window exists in a window where the multi-page browser is located;
窗口创建模块, 用于在所述判决模块的判断结果为是时, 在所述视 频窗口为目标视频窗口时, 为所述视频窗口创建独立的展示窗口;  a window creating module, configured to create an independent display window for the video window when the video window is the target video window when the determination result of the decision module is YES;
重定向模块, 用于利用所述独立的展示窗口播放视频。  a redirection module, configured to play a video by using the independent display window.
8、 根据权利要求 7所述的装置, 其特征在于, 所述判决模块包括: 子窗口获取单元, 用于获取所述多页面浏览器所在窗口的各个子窗 口;  The device according to claim 7, wherein the decision module comprises: a sub-window obtaining unit, configured to acquire each sub-window of the window in which the multi-page browser is located;
判决单元, 用于遍历所述多页面浏览器所在窗口中的子窗口, 根据 该子窗口对应的控件标识检查该子窗口中是否存在视频窗口, 如果是, 则确定所述多页面浏览器所在窗口中存在视频窗口; 否则, 在完成所述 多页面浏览器所在窗口中子窗口的遍历后, 如果所述多页面浏览器所在 窗口中的所有子窗口中都不存在视频窗口, 则确定所述多页面浏览器所 在窗口中不存在视频窗口。  a determining unit, configured to traverse a sub-window in a window where the multi-page browser is located, and check whether a video window exists in the sub-window according to a control identifier corresponding to the sub-window, and if yes, determine a window where the multi-page browser is located There is a video window; otherwise, after completing the traversal of the sub-window in the window where the multi-page browser is located, if there is no video window in all the sub-windows in the window where the multi-page browser is located, it is determined that the There is no video window in the window where the page browser is located.
9、 根据权利要求 7所述的装置, 其特征在于, 该装置还包括: 控 件创建模块, 用于在所述多页面浏览器中创建控件, 以及  9. The apparatus according to claim 7, wherein the apparatus further comprises: a control creating module, configured to create a control in the multi-page browser, and
监控模块, 用于通过 hook 的方式对所述控件进行监控; 根据所述 控件的标识判断所述控件是否为视频控件; 如果是, 则将所述视频控件 的 wmode参数的值置为窗口 window。  a monitoring module, configured to monitor the control by means of a hook; determine, according to the identifier of the control, whether the control is a video control; if yes, set a value of a wmode parameter of the video control to a window window.
10、 根据权利要求 7所述的装置, 其特征在于, 所述重定向模块获 取所述目标视频窗口的窗口句柄, 根据所述窗口句柄将所述目标视频窗 口的父窗口指定为所述独立的展示窗口。 10. The apparatus according to claim 7, wherein the redirection module obtains Taking a window handle of the target video window, and designating a parent window of the target video window as the independent display window according to the window handle.
PCT/CN2010/070494 2009-02-25 2010-02-03 Playing method and processing device for internet video in multi-page browser WO2010097026A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SG2011056975A SG173590A1 (en) 2009-02-25 2010-02-03 Method and apparatus for playing online video on multi-page browser

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910037395.1 2009-02-25
CN2009100373951A CN101493837B (en) 2009-02-25 2009-02-25 Network video playing method in multi-page browser and processing device

Publications (1)

Publication Number Publication Date
WO2010097026A1 true WO2010097026A1 (en) 2010-09-02

Family

ID=40924439

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070494 WO2010097026A1 (en) 2009-02-25 2010-02-03 Playing method and processing device for internet video in multi-page browser

Country Status (3)

Country Link
CN (1) CN101493837B (en)
SG (1) SG173590A1 (en)
WO (1) WO2010097026A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10572567B2 (en) 2009-06-19 2020-02-25 Microsoft Technology Licensing, Llc Persistent media playback

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101493837B (en) * 2009-02-25 2012-06-27 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device
US9069374B2 (en) 2012-01-04 2015-06-30 International Business Machines Corporation Web video occlusion: a method for rendering the videos watched over multiple windows
CN103514202B (en) * 2012-06-25 2017-05-17 北京新媒传信科技有限公司 Method and device for achieving webpage display
CN102830972A (en) * 2012-08-14 2012-12-19 管重 Multi-webpage browsing device of internet browser
CN104216925A (en) * 2013-06-05 2014-12-17 中国科学院声学研究所 Repetition deleting processing method for video content
CN104090820B (en) * 2013-11-26 2017-08-04 腾讯科技(深圳)有限公司 A kind of player method and device of Web-page Multi-media file
CN103914327A (en) * 2014-04-25 2014-07-09 广东威创视讯科技股份有限公司 Plug-in loading method and plug-in loading module
CN107967156A (en) * 2016-10-18 2018-04-27 北京众纳鑫海网络技术有限公司 The background video control method and device of computer video desktop
CN108008935B (en) * 2016-10-27 2021-05-14 北京国双科技有限公司 Media resource processing method and device
CN107728997B (en) * 2017-10-31 2020-09-11 万兴科技股份有限公司 Video player rendering system
CN111556353B (en) * 2020-04-15 2022-07-26 重庆锐明信息技术有限公司 Video playing method, video playing management device and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001082621A1 (en) * 2000-04-20 2001-11-01 Yahoo! Inc. Media and information display systems and methods
CN101183386A (en) * 2007-12-07 2008-05-21 腾讯科技(深圳)有限公司 Multi-page browsers web page sub-windows process method and multi-page browsers
CN101299220A (en) * 2008-06-24 2008-11-05 腾讯科技(深圳)有限公司 Method for disassembling and combining multiple-page browser window and multiple-page browser
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001082621A1 (en) * 2000-04-20 2001-11-01 Yahoo! Inc. Media and information display systems and methods
CN101183386A (en) * 2007-12-07 2008-05-21 腾讯科技(深圳)有限公司 Multi-page browsers web page sub-windows process method and multi-page browsers
CN101299220A (en) * 2008-06-24 2008-11-05 腾讯科技(深圳)有限公司 Method for disassembling and combining multiple-page browser window and multiple-page browser
CN101493837A (en) * 2009-02-25 2009-07-29 腾讯科技(深圳)有限公司 Network video playing method in multi-page browser and processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10572567B2 (en) 2009-06-19 2020-02-25 Microsoft Technology Licensing, Llc Persistent media playback

Also Published As

Publication number Publication date
SG173590A1 (en) 2011-09-29
CN101493837A (en) 2009-07-29
CN101493837B (en) 2012-06-27

Similar Documents

Publication Publication Date Title
WO2010097026A1 (en) Playing method and processing device for internet video in multi-page browser
US9832253B2 (en) Content pre-render and pre-fetch techniques
US10839027B2 (en) System and apparatus for providing, via conventional web browsing, browsing capability for search engine web crawlers between remote/virtual windows and from remote/virtual windows to conventional hypertext documents
US9600400B1 (en) Performance testing of web application components using image differentiation
KR20220127887A (en) Method and apparatus for displaying live broadcast data, device and storage medium
CN108804707B (en) Page processing method and device and related equipment
US7676581B2 (en) Web application resource management
CN111198730B (en) Method, device, terminal and computer storage medium for starting sub-application program
JP5575897B2 (en) Dynamic media content preview
US8566442B2 (en) Test environment for audio/video playback
CN103713891A (en) Method and device for graphic rendering on mobile device
CN108319708B (en) Video playing method and device, storage medium and electronic equipment
US11169665B2 (en) Game console user interface with application previews
WO2017030306A1 (en) Method and system for bookmarking a webpage
US20140359408A1 (en) Invoking an Application from a Web Page or other Application
WO2015003663A1 (en) Method, device, server, and client device for video processing
WO2014101486A1 (en) Method and device for playing plug-in in browser
CN108062336B (en) Media information processing method and device
WO2017113857A1 (en) Processing method for video associated music clips and video playing device
WO2015143854A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
JP2001022879A (en) Method and device for information processing and computer-readable medium
WO2015000290A1 (en) Method for one-click internet access of hid device and hid device using same
CN111031117B (en) Multimedia file downloading method and related device
TWI493362B (en) Service in support of browser for multi-media content
WO2016086736A1 (en) Input method based website information providing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10745810

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 5952/CHENP/2011

Country of ref document: IN

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.02.12)

122 Ep: pct application non-entry in european phase

Ref document number: 10745810

Country of ref document: EP

Kind code of ref document: A1