WO2015184745A1 - Method and system for displaying hover play window - Google Patents
Method and system for displaying hover play window Download PDFInfo
- Publication number
- WO2015184745A1 WO2015184745A1 PCT/CN2014/092280 CN2014092280W WO2015184745A1 WO 2015184745 A1 WO2015184745 A1 WO 2015184745A1 CN 2014092280 W CN2014092280 W CN 2014092280W WO 2015184745 A1 WO2015184745 A1 WO 2015184745A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- window
- play
- page
- thumbnail
- browsing
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
Definitions
- the present application relates to the field of page play display, and more particularly to a method and system for displaying a floating play window.
- the user can access the on-demand page of the video website through the browser on the terminal to watch various videos that the user wants to watch.
- a play page in a video website is usually composed of a web player area, an interactive communication area (including a comment area, a related video recommendation area, etc.), and the player window is set in the "embedded" manner on the page, that is, When the user scrolls the page, the player window will scroll along with the page.
- the size of the display window is often smaller than the overall area of the page, and the user can only browse the entire content of the page by scrolling the page.
- the technical problem to be solved by the present application is to provide a method and system for displaying a floating play window, so as to solve the problem that the video play window in the page is fixedly embedded in the page, and the following page is scrolled together to the browser window. Problems that cannot be viewed outside the range.
- the present application discloses a method for displaying a floating play window, including:
- the method further comprises:
- the closing prompt information is generated when the position marking of the player window is displayed in the page in the browsing window, and the thumbnail window displayed in suspension is closed according to the closing prompt information.
- the play thumbnail window is moved in the browsing window according to the received drag indication information, the position after the playback thumbnail window is moved, the location data is generated and stored, When the play thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page within the browse window.
- the play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
- the display size of the play thumbnail window is adjusted according to the received size adjustment indication information, and the adjusted size of the play thumbnail window is recorded, and the size data is generated and stored, and the play is abbreviated.
- the window is displayed again, the stored size data is read and displayed in a floating manner in a page within the browsing window.
- the present application further discloses a system for displaying a floating play window, which is coupled to a browser, and the system includes: a marking unit, a monitoring unit, a display unit, and a playing unit, wherein
- the marking unit is configured to generate a position marking line at a bottom edge of the player window on the page in the page displayed in the browsing window;
- the monitoring unit is configured to monitor a position of the position marking line in the browsing window, and generate startup prompt information when detecting that the position marking line is located at a top boundary of the browsing window;
- the playing unit is configured to acquire video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play in the generated play thumbnail window.
- the monitoring unit is further configured to: generate a closing prompt information when the position marking of the player window is displayed in a page in the browsing window;
- the display unit is further configured to: close the thumbnail window displayed in a floating manner according to the closing prompt information.
- the display unit is further configured to move the play thumbnail window in the browsing window according to the received drag indication information, record a position after the play thumbnail window is moved, and generate a position.
- the data is stored and, when the play thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page in the browse window.
- the play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
- the floating play window in the present application can be dragged freely in the page, and the display size can also be adjusted according to the user's preference, and the floating play window is provided with control keys related to the play, and the user can control at any time.
- the playback of the video can give the user a good browsing experience.
- FIG. 2 is a flow chart of a method for displaying a floating play window according to Embodiment 2 of the present application.
- FIG. 3 is a schematic diagram of a player window on a video play page in Embodiment 3 of the present application.
- FIG. 4 is a schematic diagram of a floating play window in the third embodiment of the present application.
- FIG. 5 is a structural block diagram of a system for displaying a floating play window according to Embodiment 4 of the present application.
- first device if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device.
- the description of the specification is intended to be illustrative of the preferred embodiments of the invention. The scope of protection of the application is subject to the definition of the appended claims.
- a method for displaying a floating play window includes:
- Step 101 In the page displayed in the browsing window, a position marking is generated for the bottom edge of the player window on the page.
- the browsing window may be a carrier for displaying a website page in the terminal, which may be a browser running in the terminal, an application (application), etc., wherein the terminal includes but is not limited to: a computer terminal and/or a mobile terminal (including : Tablets, mobile phones and other mobile devices).
- the browsing window is usually the display window of the browser; for the mobile terminal, the browsing window may be a browser window running on the mobile terminal, or an APP window running on the mobile terminal ( The display range of the APP window at this time is the display range of the screen of the mobile terminal, that is, in this case, the browsing window is the screen of the mobile terminal).
- the position marking may be recorded in an HTML (HyperText Mark-up Language) file, a browser information file, or an application source file having a video playing function, and the generated position marking is not Displayed directly on the video playback page, the location marking line is set in the following way: page height coordinate mode, page label, etc.
- HTML HyperText Mark-up Language
- the location marking line is set in the following way: page height coordinate mode, page label, etc.
- Step 102 Monitor a position of the position marking line in the browsing window, and generate startup prompt information when it is detected that the position marking line is located at a top boundary of the browsing window.
- Step 103 Generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window.
- the generated playback thumbnail window has a size of at least 330*195px (Pixel), and the playback thumbnail window is located at the outermost layer of the browsing window, that is, the playback thumbnail window is suspended in other content of the video playing page.
- the play thumbnail window can also be moved according to an operation instruction of the user (eg, click, drag, etc.).
- Step 104 Obtain video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play display in the generated play thumbnail window.
- the terminal where the player window is located obtains the video stream data from the corresponding video server for playing, so in order to play the unified content, after the playback thumbnail window is generated, the same video stream data is also acquired and played in the playback thumbnail window. .
- the user may have watched for a certain period of time in the player window.
- the video played in the playback thumbnail window is also consistent with the playback progress in the player window in time.
- the current video is acquired.
- the time progress data can be synchronized with the player window to display the display.
- a method for displaying a floating play window according to Embodiment 2 of the present application includes:
- Step 201 In the page displayed in the browsing window of the browser, a position marking is generated at the bottom edge of the player window on the page displayed by the browser.
- the browser window in the computer terminal is not limited, and may also be a video application of the mobile terminal.
- the top boundary of the browsing window may be the boundary of the screen of the mobile terminal, in addition to the top border of the browser displaying the page.
- Step 203 Generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window.
- the play thumbnail window may be moved according to the user's drag action, that is, the play thumbnail window is moved in the browse window according to the received drag instruction information, and the play thumbnail is recorded.
- Step 204 Obtain video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play display in the generated play thumbnail window.
- the play thumbnail window is displayed in the page in the browsing window with the initial size of 330*195 pixels.
- the user can adjust the size of the play thumbnail window, that is, adjust the display size of the play thumbnail window according to the received size adjustment indication information, record the adjusted size of the play thumbnail window, generate size data, and perform storage.
- Step 205 Generate a closing prompt message when the position marking of the player window is displayed in a page in the browsing window, and close the floating thumbnail window displayed in a floating manner according to the closing prompt information. .
- the playback thumbnail window is closed.
- the stored location data and size are read.
- the data is then displayed in a floating manner in a page within the browsing window.
- Step 1 The user views the video by accessing the video website in the browser of the computer terminal, displays the playing page of the current video in the display window of the browser, and the browser generates a position marking line at the bottom edge of the player window on the page. L1.
- the bottom edge of the player window in the current page is located at the position of L1 in FIG. 1. If the page scrolls and exceeds the position (L1), the player window will completely disappear from the browser. Browse the window range. The browser needs to monitor the position (L1) in real time to generate a positional line L1.
- position marking line L1 is not displayed in the current playing page, but is written into the HTML file of the browser in the manner of the page height coordinate value.
- Step 2 The user scrolls the current play page, browses the comment area at the bottom of the page, and the player window scrolls along with the page.
- the monitoring thread in the browser monitors the position mark L1 in real time, and monitors the position mark in the current browser.
- the position in the display window generates a startup prompt message when it is detected that the position marking line L1 is located at the top boundary of the browser display window.
- Step 3 The browser generates a play thumbnail window S1 according to the startup prompt information, and as shown in FIG. 4, the play thumbnail window S1 is displayed in a floating manner on the page displayed by the current browser window, and then the player is acquired.
- the video stream data of the video played in the window and the playback progress of the current video are synchronized and displayed in the generated floating playback thumbnail window S1.
- the content displayed in the playback thumbnail window S1 is consistent with the content in the player window, and the playback progress is also the same, so the playback thumbnail window S1 ensures that the user can continue to watch the video content even when viewing the comment area, thereby not The video content will be missed due to user comments, etc.
- the initial position of the play thumbnail window S1 in the page is randomly selected, but usually displayed in the middle position of the page.
- the position of the play thumbnail window S1 can be arbitrarily moved according to the user's drag action, in one In the mode, when the user's mouse pointer moves into the range of the play thumbnail window S1, the video content is no longer displayed in the play thumbnail window S1, but as shown in FIG. 4, the text prompt information is displayed to prompt the user.
- the play thumbnail window S1 can be dragged, thereby increasing the browsing experience of the user.
- the browser After the user drags the play thumbnail window S1, the browser will record the new position of the play thumbnail window S1, and the browser records the position coordinate value in the page, and can also be written into the corresponding HTML file.
- the play thumbnail window S1 will be displayed at the recorded position, and even if the browser is closed, when the user views the video using the browser, the play thumbnail window S1 will still be displayed at the recorded position.
- the size of the playback thumbnail window S1 is the calibration size at the initial display, that is, 330*195px, the user can resize the playback thumbnail window S1, and the adjusted size will also be recorded by the browser, even if The play thumbnail window S1 is generated again, and will also be displayed according to the adjusted size.
- Step 4 When it is detected that the position marking line L1 on the player window appears again in the browser display window, the closing prompt information is generated and the thumbnail window displayed in the floating state is closed according to the closing prompt information.
- the play thumbnail window S1 has the same control key as that on the player window, and the user can directly control the play of the video in the play thumbnail window S1.
- a system for displaying a floating play window is coupled to a browser, and the system includes: a marking unit 501, a monitoring unit 502, a display unit 503, and a playing unit. 504, wherein
- the marking unit 501 is coupled to the browser and the monitoring unit 502 for generating a positional line at a bottom edge of the player window on the page in the page displayed in the browsing window.
- the monitoring unit 502 is coupled to the marking unit 501 and the display unit 503 for monitoring
- the position of the position marking line generated by the marking unit 501 in the browsing window is sent to the display unit 503 when the position marking line is located at the top boundary of the browsing window.
- the display unit 503 is coupled to the monitoring unit 502 and the playing unit 504, and configured to generate a playback thumbnail window according to the startup prompt information, and display the playback thumbnail window in a floating manner on the page in the current browsing window. in.
- the playing unit 504 is configured to acquire video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play in the generated play thumbnail window.
- the monitoring unit 502 is further configured to generate a shutdown prompt message when the position marking of the player window is displayed in a page in the browsing window. Then, the display unit 503 will close the thumbnail window displayed in suspension according to the closing prompt information.
- the generated playback thumbnail window has a size of at least 330*195px (Pixel), that is, the playback thumbnail window is displayed in the page in the browsing window with the initial size of 330*195 pixels, and the playback thumbnail window is located in the browsing window.
- the most superficial layer of the window, that is, the playback thumbnail window is suspended in other content of the video playback page.
- the play thumbnail window can also be moved according to an operation instruction of the user (eg, click, drag, etc.).
- the display unit 503 will move the play thumbnail window in the browsing window according to the received drag instruction information, and record the play thumbnail window movement. After the position, the location data is generated and stored, and when the playback thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page in the browsing window.
- the display unit 503 adjusts the display size of the playback thumbnail window according to the received size adjustment indication information, and records the adjusted size of the playback thumbnail window to generate a size.
- the data is stored and, when the play thumbnail window is displayed again, the stored size data is read and displayed in a floating manner in a page within the browse window.
- This application generates a position marking on the bottom edge of the player window on the page, and monitors the position marking in real time. If the position marking is located at the top boundary of the browsing window, it indicates that the player window has been scrolled. When the display window is outside the display range, the floating play window is displayed in the current browsing window, so that the user can continue to watch the currently played video, effectively solving the problem that the video play window in the page is fixed in the embedded page. The page scrolls together to the point where the browser window is outside the display range and cannot be viewed.
- the floating play window in the present application can be dragged freely in the page, and the display size can also be adjusted according to the user's preference, and the floating play window is provided with control keys related to the play, and the user can control at any time.
- the playback of the video can give the user a good browsing experience.
- embodiments of the present application can be provided as a method, system, or computer program product.
- the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware.
- the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Disclosed are a method and system for displaying a hover play window, the method comprising: on a page displayed in a browser window, generating a position marking line for the bottom edge of a play window on the page; monitoring the position of the position marking line in the browser window, and when detecting that the position marking line is located at the top edge of the browser window, generating activation prompt information; generating a play thumbnail window according to the activation prompt information, and displaying in a hover mode the play thumbnail window on the page in the current browser window; and acquiring the video stream data of a video played in the play window and the time schedule data of the current video, and simultaneously playing the video stream data and the time schedule data in the generated thumbnail play window. The present invention solves the problem that a video playing window cannot be watched when being fixedly embedded in the page and scrolling with the page out of the display range of the browser window.
Description
本申请涉及页面播放显示领域,更具体地,涉及一种显示悬浮式播放窗口的方法和系统。The present application relates to the field of page play display, and more particularly to a method and system for displaying a floating play window.
随着互联网技术的快速发展,人们获取信息的方式已经发生改变:从传统的书籍、报纸、电视、广播等方式,继而变成通过互联网获取。尤其是互联网将影视节目、新闻、广告、聊天视频、游戏视频和监控视频等等丰富的综合性网络视频资源进行共享,从而网络视频已经成为人们学习、社交以及休闲娱乐而不可替代的重要方式。With the rapid development of Internet technology, the way people access information has changed: from traditional books, newspapers, television, radio, etc., and then through the Internet. In particular, the Internet shares rich and comprehensive online video resources such as movies, news, advertisements, chat videos, game videos and surveillance videos, so that online video has become an irreplaceable and important way for people to learn, socialize and entertain.
对于拥有大量视频资源的视频网站而言,用户可以通过终端上的浏览器进行访问视频网站的点播页面,观看用户想要观看的各类视频。For a video website with a large number of video resources, the user can access the on-demand page of the video website through the browser on the terminal to watch various videos that the user wants to watch.
目前,视频网站中的播放页面通常由网页播放器区域、互动交流区域(包括:评论区域、相关视频推荐区域等)组成,播放器窗口以“嵌入”的方式设置于页面中,也就是说,当用户滚动页面时,播放器窗口将跟随页面一同滚动。对于浏览器而言,其显示窗口的尺寸大小往往小于页面的整体面积,用户只能通过滚动页面以浏览页面中的全部内容。例如:用户想要针对当前观看的视频进行评论操作时,必然会进行滚动操作将页面中的评论区域调整到浏览器窗口中,这样,用户便可以通过浏览器显示窗口观看到评论区域,但是,播放器窗口将跟随页面滚动至当前浏览器显示窗口的显示范围之外,用户在浏览评论内容或进行评论时,不能看到当前播放器窗口中所播放的内容,可能导致视频内容的流失,严重影响用户的浏览体验。Currently, a play page in a video website is usually composed of a web player area, an interactive communication area (including a comment area, a related video recommendation area, etc.), and the player window is set in the "embedded" manner on the page, that is, When the user scrolls the page, the player window will scroll along with the page. For the browser, the size of the display window is often smaller than the overall area of the page, and the user can only browse the entire content of the page by scrolling the page. For example, when a user wants to perform a comment operation on a currently viewed video, a scroll operation is inevitably performed to adjust the comment area in the page to the browser window, so that the user can view the comment area through the browser display window, however, The player window will follow the page scrolling to the display range of the current browser display window. When browsing the comment content or making comments, the user cannot see the content played in the current player window, which may result in the loss of video content, which is serious. Affect the user's browsing experience.
发明内容
Summary of the invention
有鉴于此,本申请所要解决的技术问题是提供了一种显示悬浮式播放窗口的方法和系统,以解决由于页面中的视频播放窗口固定嵌入页面中,跟随页面一同滚动至浏览器窗口的显示范围以外便无法观看的问题。In view of this, the technical problem to be solved by the present application is to provide a method and system for displaying a floating play window, so as to solve the problem that the video play window in the page is fixedly embedded in the page, and the following page is scrolled together to the browser window. Problems that cannot be viewed outside the range.
为了解决上述技术问题,本申请公开了一种显示悬浮式播放窗口的方法,包括:In order to solve the above technical problem, the present application discloses a method for displaying a floating play window, including:
在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线;In the page displayed in the browsing window, a position marking is generated at the bottom edge of the player window on the page;
监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息;Monitoring a position of the position marking line in the browsing window, and generating startup prompt information when detecting that the position marking line is located at a top boundary of the browsing window;
根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中;Generating a play thumbnail window according to the startup prompt information, and displaying the play thumbnail window in a floating manner in a page in the current browsing window;
获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放。Obtaining video stream data of the video played in the player window and time progress data of the current video, and performing synchronous play in the generated play thumbnail window.
其中,优选地,还包括:Wherein, preferably, the method further comprises:
在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息,并根据该关闭提示信息将悬浮显示的所述缩略窗口关闭。The closing prompt information is generated when the position marking of the player window is displayed in the page in the browsing window, and the thumbnail window displayed in suspension is closed according to the closing prompt information.
其中,优选地,根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述位置数据并以悬浮方式显示于所述浏览窗口内的页面中。Preferably, the play thumbnail window is moved in the browsing window according to the received drag indication information, the position after the playback thumbnail window is moved, the location data is generated and stored, When the play thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page within the browse window.
其中,优选地,所述播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中。Wherein, preferably, the play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
其中,优选地,根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述尺寸数据并以悬浮方式显示于所述浏览窗口内的页面中。Preferably, the display size of the play thumbnail window is adjusted according to the received size adjustment indication information, and the adjusted size of the play thumbnail window is recorded, and the size data is generated and stored, and the play is abbreviated. When the window is displayed again, the stored size data is read and displayed in a floating manner in a page within the browsing window.
为了解决上述技术问题,本申请还公开了一种显示悬浮式播放窗口的系统,与浏览器相耦接,其特征在于,该系统包括:标记单元、监测单元、显示单元以及播放单元,其中,
In order to solve the above technical problem, the present application further discloses a system for displaying a floating play window, which is coupled to a browser, and the system includes: a marking unit, a monitoring unit, a display unit, and a playing unit, wherein
所述标记单元,用于在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线;The marking unit is configured to generate a position marking line at a bottom edge of the player window on the page in the page displayed in the browsing window;
所述监测单元,用于监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息;The monitoring unit is configured to monitor a position of the position marking line in the browsing window, and generate startup prompt information when detecting that the position marking line is located at a top boundary of the browsing window;
所述显示单元,用于根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中;The display unit is configured to generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window;
所述播放单元,用于获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放。The playing unit is configured to acquire video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play in the generated play thumbnail window.
其中,优选地,所述监测单元,还用于:在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息;Preferably, the monitoring unit is further configured to: generate a closing prompt information when the position marking of the player window is displayed in a page in the browsing window;
所述显示单元,还用于:根据所述关闭提示信息将悬浮显示的所述缩略窗口关闭。The display unit is further configured to: close the thumbnail window displayed in a floating manner according to the closing prompt information.
其中,优选地,所述显示单元,进一步用于根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述位置数据并以悬浮方式显示于所述浏览窗口内的页面中。Preferably, the display unit is further configured to move the play thumbnail window in the browsing window according to the received drag indication information, record a position after the play thumbnail window is moved, and generate a position. The data is stored and, when the play thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page in the browse window.
其中,优选地,所述播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中。Wherein, preferably, the play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
其中,优选地,所述显示单元,进一步还用于:根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述尺寸数据并以悬浮方式显示于所述浏览窗口内的页面中。Preferably, the display unit is further configured to: adjust a display size of the play thumbnail window according to the received size adjustment indication information, record an adjusted size of the play thumbnail window, and generate size data. And storing, when the play thumbnail window is displayed again, reading the stored size data and displaying it in a floating manner in a page in the browsing window.
与现有技术相比,本申请所述的一种显示悬浮式播放窗口的方法和系统,达到了如下效果:Compared with the prior art, a method and system for displaying a floating play window according to the present application achieves the following effects:
1)本申请通过在页面上的播放器窗口的底端边缘处生成位置标线,并对位置标线进行实时监测,若位置标线的位于浏览窗口的顶端边界,则表示播放器窗口已经滚动到了浏览窗口的显示范围之外,便立即在当前的浏览窗口中显示悬浮式播放窗口,从而可以使用户继续观看当前播放的视频,有效
解决了由于页面中的视频播放窗口固定嵌入页面中,跟随页面一同滚动至浏览器窗口的显示范围以外便无法观看的问题。1) This application generates a position marking on the bottom edge of the player window on the page, and monitors the position marking in real time. If the position marking is located at the top boundary of the browsing window, it indicates that the player window has been scrolled. When the display window is outside the display range, the floating play window is displayed in the current browsing window, so that the user can continue to watch the currently played video, which is effective.
It solves the problem that the video play window in the page is fixed in the embedded page, and the following page cannot be viewed after scrolling along the display range of the browser window.
2)本申请中的悬浮式播放窗口的可以在页面中随意拖动,其显示尺寸也可以根据用户喜好进行调整,并且该悬浮式播放窗口上设置有与播放相关的控制键,用户可以随时控制视频的播放,因而可以给予用户良好的浏览体验。2) The floating play window in the present application can be dragged freely in the page, and the display size can also be adjusted according to the user's preference, and the floating play window is provided with control keys related to the play, and the user can control at any time. The playback of the video can give the user a good browsing experience.
3)本申请中的悬浮式播放窗口可以应用与不同的浏览器以及不同的终端中,实用性强。3) The floating play window in this application can be applied to different browsers and different terminals, and is highly practical.
当然,实施本申请的任一产品必不一定需要同时达到以上所述的所有技术效果。Of course, implementing any of the products of the present application necessarily does not necessarily require all of the technical effects described above to be achieved at the same time.
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the present application, and are intended to be a part of this application. In the drawing:
图1是本申请实施例一所述的显示悬浮式播放窗口的方法的流程框图。1 is a flow chart of a method for displaying a floating play window according to Embodiment 1 of the present application.
图2是本申请实施例二所述的显示悬浮式播放窗口的方法的流程框图。2 is a flow chart of a method for displaying a floating play window according to Embodiment 2 of the present application.
图3是本申请实施例三中视频播放页面上的播放器窗口的示意图。3 is a schematic diagram of a player window on a video play page in Embodiment 3 of the present application.
图4是本申请实施例三中悬浮式播放窗口的示意图。4 is a schematic diagram of a floating play window in the third embodiment of the present application.
图5是本申请实施例四所述的显示悬浮式播放窗口的系统的结构框图。FIG. 5 is a structural block diagram of a system for displaying a floating play window according to Embodiment 4 of the present application.
如在说明书及权利要求当中使用了某些词汇来指称特定组件。本领域技术人员应可理解,硬件制造商可能会用不同名词来称呼同一个组件。本说明书及权利要求并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。如在通篇说明书及权利要求当中所提及的“包含”为一开放式用语,故应解释成“包含但不限定于”。“大致”是指在可接收的
误差范围内,本领域技术人员能够在一定误差范围内解决所述技术问题,基本达到所述技术效果。此外,“耦接”一词在此包含任何直接及间接的电性耦接手段。因此,若文中描述一第一装置耦接于一第二装置,则代表所述第一装置可直接电性耦接于所述第二装置,或通过其他装置或耦接手段间接地电性耦接至所述第二装置。说明书后续描述为实施本申请的较佳实施方式,然所述描述乃以说明本申请的一般原则为目的,并非用以限定本申请的范围。本申请的保护范围当视所附权利要求所界定者为准。Certain terms are used throughout the description and claims to refer to particular components. Those skilled in the art will appreciate that hardware manufacturers may refer to the same component by different nouns. The present specification and the claims do not use the difference in the name as the means for distinguishing the components, but the difference in function of the components as the criterion for distinguishing. The word "comprising" as used throughout the specification and claims is an open term and should be interpreted as "including but not limited to". "Approximate" means acceptable
Within the scope of the error, those skilled in the art can solve the technical problem within a certain error range, and basically achieve the technical effects. In addition, the term "coupled" is used herein to include any direct and indirect electrical coupling means. Therefore, if a first device is coupled to a second device, the first device can be directly electrically coupled to the second device, or electrically coupled indirectly through other devices or coupling means. Connected to the second device. The description of the specification is intended to be illustrative of the preferred embodiments of the invention. The scope of protection of the application is subject to the definition of the appended claims.
实施例一Embodiment 1
如图1所示,为本申请实施例一所述的一种显示悬浮式播放窗口的方法,该方法包括:As shown in FIG. 1 , a method for displaying a floating play window according to the first embodiment of the present application, the method includes:
步骤101,在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线。Step 101: In the page displayed in the browsing window, a position marking is generated for the bottom edge of the player window on the page.
浏览窗口可以是终端中用于显示网站页面的载体,其可以是终端中运行的浏览器、APP(Application,应用程序)等,其中,终端包括但不限于:计算机终端和/或移动终端(包括:平板电脑,手机等移动设备)。这里需要指出的是,对于计算机终端,浏览窗口通常就是浏览器的显示窗口;对于移动终端,浏览窗口除了可以是运行在移动终端的浏览器显示窗口,也可以是运行在移动终端的APP窗口(此时的APP窗口的显示范围就是移动终端屏幕的显示范围,即在此情况下,浏览窗口就是移动终端的屏幕)。The browsing window may be a carrier for displaying a website page in the terminal, which may be a browser running in the terminal, an application (application), etc., wherein the terminal includes but is not limited to: a computer terminal and/or a mobile terminal (including : Tablets, mobile phones and other mobile devices). It should be noted here that for a computer terminal, the browsing window is usually the display window of the browser; for the mobile terminal, the browsing window may be a browser window running on the mobile terminal, or an APP window running on the mobile terminal ( The display range of the APP window at this time is the display range of the screen of the mobile terminal, that is, in this case, the browsing window is the screen of the mobile terminal).
在视频播放页面中,并非整个页面对视频进行播放,而是视频在设置于该页面内的播放器窗口中进行播放,在步骤101中可以在播放器窗口的底端边缘设置位置标线,该位置标线与播放器窗口的底端边缘重合,由于播放器窗口的尺寸在页面中通常不会发生变化,即播放器窗口的尺寸不变,而且,播放器窗口嵌入设置在视频播放页面中,所以生成的位置标线具有很强的标定性。本实施例中,位置标线可记录于HTML(HyperText Mark-up Language,超文本标记语言)文件、浏览器信息文件或者具有视频播放功能的应用程序源文件中,生成的位置标线并不会直接显示于视频播放页面中,位置标线设置的方式如:页面高度坐标方式、页面标签等方式,对于上述设
置该位置标线的方式并不构成对本申请的限定。In the video play page, not the entire page plays the video, but the video is played in the player window set in the page, and in step 101, the position mark can be set at the bottom edge of the player window, The position mark coincides with the bottom edge of the player window, since the size of the player window usually does not change in the page, that is, the size of the player window does not change, and the player window is embedded in the video play page. Therefore, the generated position marking has a strong calibration. In this embodiment, the position marking may be recorded in an HTML (HyperText Mark-up Language) file, a browser information file, or an application source file having a video playing function, and the generated position marking is not Displayed directly on the video playback page, the location marking line is set in the following way: page height coordinate mode, page label, etc.
The manner in which the position marking is placed does not constitute a limitation of the present application.
步骤102,监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息。Step 102: Monitor a position of the position marking line in the browsing window, and generate startup prompt information when it is detected that the position marking line is located at a top boundary of the browsing window.
浏览窗口的尺寸通常小于视频播放页面的尺寸,即在通过浏览窗口对视频播放页面进行浏览时,显示在浏览窗口中的页面只是整个视频播放页面的一部分,在视频播放页面中,除了播放器窗口外,还有其他内容(如:评论内容),用户针对视频播放页面进行滚动便可以浏览到该页面中的其他内容,但是,播放器窗口也将跟随视频播放页面一同滚动,在滚动幅度较大时,播放器窗口便消失于当前浏览窗口的显示范围,进而导致用户不能继续观看,故在步骤102中需要实时监测播放器窗口的位置标线,当位置标线与浏览窗口的顶端边界重合时,那么,此时位置标线以上的页面(也包括播放器窗口)都滚动至当前的浏览窗口之外。这种状态便符合本申请中悬浮式播放窗口的启动条件。所以,在步骤102中将生成用于启动悬浮式播放窗口的启动提示信息。The size of the browsing window is usually smaller than the size of the video playing page. That is, when the video playing page is browsed through the browsing window, the page displayed in the browsing window is only a part of the entire video playing page, in the video playing page, except the player window. In addition, there are other content (such as: comment content), the user can scroll to the video playback page to browse to other content on the page, but the player window will also scroll along with the video playback page, which is larger in scrolling. When the player window disappears in the display range of the current browsing window, the user cannot continue to view, so in step 102, the positional line of the player window needs to be monitored in real time, when the position marking coincides with the top boundary of the browsing window. Then, the page above the position mark (including the player window) is scrolled outside the current browse window. This state is in accordance with the start condition of the floating play window in this application. Therefore, in step 102, startup prompt information for launching the floating play window will be generated.
本实施例中,可以由运行于终端中的监视线程生成该启动提示信息。In this embodiment, the startup prompt information may be generated by a monitoring thread running in the terminal.
步骤103,根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中。Step 103: Generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window.
生成的播放缩略窗口的尺寸大小至少为330*195px(Pixel,像素),该播放缩略窗口位于浏览窗口的最表层,即该播放缩略窗口悬浮在视频播放页面的其他内容中。在本实施例中,该播放缩略窗口还可以根据用户的操作指示(如:点击、拖拽等)进行移动。The generated playback thumbnail window has a size of at least 330*195px (Pixel), and the playback thumbnail window is located at the outermost layer of the browsing window, that is, the playback thumbnail window is suspended in other content of the video playing page. In this embodiment, the play thumbnail window can also be moved according to an operation instruction of the user (eg, click, drag, etc.).
步骤104,获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放显示。Step 104: Obtain video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play display in the generated play thumbnail window.
播放器窗口所在的终端从相应的视频服务器中获取视频流数据进行播放,所以为了播放内容的统一,在播放缩略窗口生成后,也会获取同一视频流数据并在该播放缩略窗口中播放。用户在播放器窗口中可能已经观看了一定时间,那么,在播放缩略窗口中所播放的视频在时间上也与播放器窗口中的播放进度保持一致,所述在步骤104中,获取当前视频的时间进度数据,便可以实现与播放器窗口进行同步播放显示。
The terminal where the player window is located obtains the video stream data from the corresponding video server for playing, so in order to play the unified content, after the playback thumbnail window is generated, the same video stream data is also acquired and played in the playback thumbnail window. . The user may have watched for a certain period of time in the player window. Then, the video played in the playback thumbnail window is also consistent with the playback progress in the player window in time. In step 104, the current video is acquired. The time progress data can be synchronized with the player window to display the display.
实施例二 Embodiment 2
如图2所示,为本申请实施例二所述的一种显示悬浮式播放窗口的方法,该方法包括:As shown in FIG. 2, a method for displaying a floating play window according to Embodiment 2 of the present application, the method includes:
步骤201,在浏览器的浏览窗口内显示的页面中,针对该浏览器所显示的页面上的播放器窗口的底端边缘处生成位置标线。Step 201: In the page displayed in the browsing window of the browser, a position marking is generated at the bottom edge of the player window on the page displayed by the browser.
本实施例中并不限定于计算机终端中的浏览器窗口,还可以是移动终端的视频应用程序。In this embodiment, the browser window in the computer terminal is not limited, and may also be a video application of the mobile terminal.
步骤202,监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览器显示窗口的顶端边界时,生成启动提示信息。Step 202: Monitor a position of the position marking in the browsing window, and generate startup prompt information when it is detected that the position marking is located at a top boundary of the browser display window.
对于步骤202,其浏览窗口的顶端边界除了可以是显示页面的浏览器的顶端边界,也可以是移动终端的屏幕的边界。For step 202, the top boundary of the browsing window may be the boundary of the screen of the mobile terminal, in addition to the top border of the browser displaying the page.
步骤203,根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中。Step 203: Generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window.
在步骤203中,该播放缩略窗口可以根据用户的拖动动作进行移动,即根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时。In step 203, the play thumbnail window may be moved according to the user's drag action, that is, the play thumbnail window is moved in the browse window according to the received drag instruction information, and the play thumbnail is recorded. The position after the window is moved, the position data is generated and stored, when the play thumbnail window is displayed again.
步骤204,获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放显示。Step 204: Obtain video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play display in the generated play thumbnail window.
需要说明的是,在首次显示时,播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中。It should be noted that, in the first display, the play thumbnail window is displayed in the page in the browsing window with the initial size of 330*195 pixels.
用户可以对播放缩略窗口的尺寸进行调整,即根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储。The user can adjust the size of the play thumbnail window, that is, adjust the display size of the play thumbnail window according to the received size adjustment indication information, record the adjusted size of the play thumbnail window, generate size data, and perform storage.
步骤205,在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息,并根据该关闭提示信息将悬浮显示的所述播放缩略窗口关闭。
Step 205: Generate a closing prompt message when the position marking of the player window is displayed in a page in the browsing window, and close the floating thumbnail window displayed in a floating manner according to the closing prompt information. .
用户滚动页面使播放器窗口再次显示与浏览窗口中时,播放缩略窗口关闭,当然,在本实施例中,在所述播放缩略窗口再次显示时,读取存储的所述位置数据以及尺寸数据,再以悬浮方式显示于所述浏览窗口内的页面中。When the user scrolls the page to make the player window display and browse the window again, the playback thumbnail window is closed. Of course, in the embodiment, when the playback thumbnail window is displayed again, the stored location data and size are read. The data is then displayed in a floating manner in a page within the browsing window.
实施例三Embodiment 3
下面结合图3和4,对所述显示悬浮式播放窗口的方法的具体应用进行详细说明:The specific application of the method for displaying a floating play window will be described in detail below with reference to FIGS. 3 and 4.
步骤一,用户通过在计算机终端的浏览器访问视频网站观看视频,在浏览器的显示窗口内显示当前视频的播放页面,浏览器针对该页面上的播放器窗口的底端边缘处生成位置标线L1。Step 1: The user views the video by accessing the video website in the browser of the computer terminal, displays the playing page of the current video in the display window of the browser, and the browser generates a position marking line at the bottom edge of the player window on the page. L1.
如图1所示,当前页面中的播放器窗口的底端边缘位于图1中L1的位置处,如果页面滚动并超过该位置(L1)时,则该播放器窗口将完全消失于浏览器的浏览窗口范围。浏览器需要实时地监控该位置(L1),从而生成位置标线L1。As shown in FIG. 1, the bottom edge of the player window in the current page is located at the position of L1 in FIG. 1. If the page scrolls and exceeds the position (L1), the player window will completely disappear from the browser. Browse the window range. The browser needs to monitor the position (L1) in real time to generate a positional line L1.
需要说明的是,位置标线L1不会显示在当前的播放页面中,只是以页面高度坐标值的方式写入浏览器的HTML文件中。It should be noted that the position marking line L1 is not displayed in the current playing page, but is written into the HTML file of the browser in the manner of the page height coordinate value.
步骤二,用户滚动当前的播放页面,浏览该页面下方的评论区域,播放器窗口跟随页面一同滚动,浏览器中的监测线程实时监测该位置标线L1,监测所述位置标线在当前浏览器的显示窗口中的位置,当监测到所述位置标线L1位于该浏览器显示窗口的顶端边界时,生成启动提示信息。Step 2: The user scrolls the current play page, browses the comment area at the bottom of the page, and the player window scrolls along with the page. The monitoring thread in the browser monitors the position mark L1 in real time, and monitors the position mark in the current browser. The position in the display window generates a startup prompt message when it is detected that the position marking line L1 is located at the top boundary of the browser display window.
步骤三,浏览器根据该启动提示信息生成播放缩略窗口S1,并如图4所示,将该播放缩略窗口S1以悬浮方式显示于当前浏览器窗口所显示的页面上,再获取播放器窗口中所播放视频的视频流数据以及当前视频的播放进度,在生成的悬浮式的播放缩略窗口S1中进行同步播放显示。Step 3: The browser generates a play thumbnail window S1 according to the startup prompt information, and as shown in FIG. 4, the play thumbnail window S1 is displayed in a floating manner on the page displayed by the current browser window, and then the player is acquired. The video stream data of the video played in the window and the playback progress of the current video are synchronized and displayed in the generated floating playback thumbnail window S1.
播放缩略窗口S1中播放显示的内容与播放器窗口中的内容一致,并且播放进度也一致,所以播放缩略窗口S1保证了用户即使在观看评论区域时,也可以继续观看视频内容,从而不会因为用户进行评论等操作时错过视频内容。
The content displayed in the playback thumbnail window S1 is consistent with the content in the player window, and the playback progress is also the same, so the playback thumbnail window S1 ensures that the user can continue to watch the video content even when viewing the comment area, thereby not The video content will be missed due to user comments, etc.
播放缩略窗口S1在页面中的初始位置是随机选取的,但通常情况下显示在页面的中间位置,悬浮显示后,播放缩略窗口S1的位置可以根据用户的拖拽动作任意移动,在一种方式下,用户的鼠标指针移动至该播放缩略窗口S1的范围中时,该播放缩略窗口S1中不再显示视频内容,而是如图4所示,显示文字提示信息,以提示用户该播放缩略窗口S1可进行拖动,从而增加了用户的浏览体验。The initial position of the play thumbnail window S1 in the page is randomly selected, but usually displayed in the middle position of the page. After the floating display, the position of the play thumbnail window S1 can be arbitrarily moved according to the user's drag action, in one In the mode, when the user's mouse pointer moves into the range of the play thumbnail window S1, the video content is no longer displayed in the play thumbnail window S1, but as shown in FIG. 4, the text prompt information is displayed to prompt the user. The play thumbnail window S1 can be dragged, thereby increasing the browsing experience of the user.
在用户对播放缩略窗口S1拖动后,浏览器将记录播放缩略窗口S1新的位置,浏览器以页面中的位置坐标值的方式进行记录,同样可以写入至相应的HTML文件中。播放缩略窗口S1将在被记录的位置上显示,即使关闭浏览器,用户再使用浏览器观看视频时,该播放缩略窗口S1仍会在被记录的位置上显示。After the user drags the play thumbnail window S1, the browser will record the new position of the play thumbnail window S1, and the browser records the position coordinate value in the page, and can also be written into the corresponding HTML file. The play thumbnail window S1 will be displayed at the recorded position, and even if the browser is closed, when the user views the video using the browser, the play thumbnail window S1 will still be displayed at the recorded position.
此外,播放缩略窗口S1的尺寸在初始显示时为标定尺寸,即330*195px,用户可以对该播放缩略窗口S1进行尺寸调整,同样,调整后的尺寸也将被浏览器进行记录,即使再次生成该播放缩略窗口S1,也将根据调整后的尺寸进行显示。In addition, the size of the playback thumbnail window S1 is the calibration size at the initial display, that is, 330*195px, the user can resize the playback thumbnail window S1, and the adjusted size will also be recorded by the browser, even if The play thumbnail window S1 is generated again, and will also be displayed according to the adjusted size.
步骤四,在监测到播放器窗口上的位置标线L1再次出现在浏览器显示窗口内时,生成关闭提示信息并根据该关闭提示信息将悬浮显示的所述缩略窗口关闭。Step 4: When it is detected that the position marking line L1 on the player window appears again in the browser display window, the closing prompt information is generated and the thumbnail window displayed in the floating state is closed according to the closing prompt information.
在本实施例中,播放缩略窗口S1上具有与播放器窗口上同样的控制键,用户可以直接在播放缩略窗口S1中对视频的播放进行控制操作。In this embodiment, the play thumbnail window S1 has the same control key as that on the player window, and the user can directly control the play of the video in the play thumbnail window S1.
实施例四Embodiment 4
如图5所示,为本申请实施例四所述的一种显示悬浮式播放窗口的系统,与浏览器相耦接,该系统包括:标记单元501、监测单元502、显示单元503以及播放单元504,其中,As shown in FIG. 5, a system for displaying a floating play window according to Embodiment 4 of the present application is coupled to a browser, and the system includes: a marking unit 501, a monitoring unit 502, a display unit 503, and a playing unit. 504, wherein
所述标记单元501,与浏览器和监测单元502相耦接,用于在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线。The marking unit 501 is coupled to the browser and the monitoring unit 502 for generating a positional line at a bottom edge of the player window on the page in the page displayed in the browsing window.
所述监测单元502,与标记单元501和显示单元503相耦接,用于监测
标记单元501生成的所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息发送至显示单元503。The monitoring unit 502 is coupled to the marking unit 501 and the display unit 503 for monitoring
The position of the position marking line generated by the marking unit 501 in the browsing window is sent to the display unit 503 when the position marking line is located at the top boundary of the browsing window.
所述显示单元503,与监测单元502和播放单元504相耦接,用于根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中。The display unit 503 is coupled to the monitoring unit 502 and the playing unit 504, and configured to generate a playback thumbnail window according to the startup prompt information, and display the playback thumbnail window in a floating manner on the page in the current browsing window. in.
所述播放单元504,用于获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放。The playing unit 504 is configured to acquire video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play in the generated play thumbnail window.
本实施例中,所述监测单元502,具体还用于在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息。那么,显示单元503,将根据所述关闭提示信息将悬浮显示的所述缩略窗口关闭。In this embodiment, the monitoring unit 502 is further configured to generate a shutdown prompt message when the position marking of the player window is displayed in a page in the browsing window. Then, the display unit 503 will close the thumbnail window displayed in suspension according to the closing prompt information.
生成的播放缩略窗口的尺寸大小至少为330*195px(Pixel,像素),即播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中,播放缩略窗口位于浏览窗口的最表层,即该播放缩略窗口悬浮在视频播放页面的其他内容中。在本实施例中,该播放缩略窗口还可以根据用户的操作指示(如:点击、拖拽等)进行移动。The generated playback thumbnail window has a size of at least 330*195px (Pixel), that is, the playback thumbnail window is displayed in the page in the browsing window with the initial size of 330*195 pixels, and the playback thumbnail window is located in the browsing window. The most superficial layer of the window, that is, the playback thumbnail window is suspended in other content of the video playback page. In this embodiment, the play thumbnail window can also be moved according to an operation instruction of the user (eg, click, drag, etc.).
具体而言,用户对播放缩略窗口进行拖动时,显示单元503将根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述位置数据并以悬浮方式显示于所述浏览窗口内的页面中。Specifically, when the user drags the play thumbnail window, the display unit 503 will move the play thumbnail window in the browsing window according to the received drag instruction information, and record the play thumbnail window movement. After the position, the location data is generated and stored, and when the playback thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page in the browsing window.
用户对播放缩略窗口的尺寸进行调整时,显示单元503将根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述尺寸数据并以悬浮方式显示于所述浏览窗口内的页面中。When the user adjusts the size of the playback thumbnail window, the display unit 503 adjusts the display size of the playback thumbnail window according to the received size adjustment indication information, and records the adjusted size of the playback thumbnail window to generate a size. The data is stored and, when the play thumbnail window is displayed again, the stored size data is read and displayed in a floating manner in a page within the browse window.
由于方法部分已经对本申请实施例进行了详细描述,这里对实施例中涉及的系统与方法对应部分的展开描述省略,不再赘述。对于系统中具体内容
的描述可参考方法实施例的内容,这里不再具体限定。The detailed description of the corresponding parts of the system and the method involved in the embodiment is omitted here, and will not be described again. For specific content in the system
For a description, refer to the content of the method embodiment, which is not specifically limited herein.
与现有技术相比,本申请所述的一种显示悬浮式播放窗口的方法和系统,达到了如下效果:Compared with the prior art, a method and system for displaying a floating play window according to the present application achieves the following effects:
1)本申请通过在页面上的播放器窗口的底端边缘处生成位置标线,并对位置标线进行实时监测,若位置标线的位于浏览窗口的顶端边界,则表示播放器窗口已经滚动到了浏览窗口的显示范围之外,便立即在当前的浏览窗口中显示悬浮式播放窗口,从而可以使用户继续观看当前播放的视频,有效解决了由于页面中的视频播放窗口固定嵌入页面中,跟随页面一同滚动至浏览器窗口的显示范围以外便无法观看的问题。1) This application generates a position marking on the bottom edge of the player window on the page, and monitors the position marking in real time. If the position marking is located at the top boundary of the browsing window, it indicates that the player window has been scrolled. When the display window is outside the display range, the floating play window is displayed in the current browsing window, so that the user can continue to watch the currently played video, effectively solving the problem that the video play window in the page is fixed in the embedded page. The page scrolls together to the point where the browser window is outside the display range and cannot be viewed.
2)本申请中的悬浮式播放窗口的可以在页面中随意拖动,其显示尺寸也可以根据用户喜好进行调整,并且该悬浮式播放窗口上设置有与播放相关的控制键,用户可以随时控制视频的播放,因而可以给予用户良好的浏览体验。2) The floating play window in the present application can be dragged freely in the page, and the display size can also be adjusted according to the user's preference, and the floating play window is provided with control keys related to the play, and the user can control at any time. The playback of the video can give the user a good browsing experience.
3)本申请中的悬浮式播放窗口可以应用与不同的浏览器以及不同的终端中,实用性强。3) The floating play window in this application can be applied to different browsers and different terminals, and is highly practical.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者系统中还存在另外的相同要素。It is also to be understood that the terms "comprises", "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, or Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or system. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or system including the element, without further limitation.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system, or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment in combination of software and hardware. Moreover, the application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之
内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。
The above description is only an embodiment of the present application and is not intended to limit the application. Various changes and modifications can be made to the present application by those skilled in the art. Where in the spirit and principle of this application
Any modifications, equivalent substitutions, improvements, etc. made within the scope of the claims are intended to be included within the scope of the appended claims.
Claims (10)
- 一种显示悬浮式播放窗口的方法,其特征在于,包括:A method for displaying a floating play window, comprising:在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线;In the page displayed in the browsing window, a position marking is generated at the bottom edge of the player window on the page;监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息;Monitoring a position of the position marking line in the browsing window, and generating startup prompt information when detecting that the position marking line is located at a top boundary of the browsing window;根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中;Generating a play thumbnail window according to the startup prompt information, and displaying the play thumbnail window in a floating manner in a page in the current browsing window;获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放。Obtaining video stream data of the video played in the player window and time progress data of the current video, and performing synchronous play in the generated play thumbnail window.
- 如权利要求1所述的显示悬浮式播放窗口的方法,其特征在于,还包括:The method of displaying a floating play window according to claim 1, further comprising:在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息,并根据该关闭提示信息将悬浮显示的所述缩略窗口关闭。The closing prompt information is generated when the position marking of the player window is displayed in the page in the browsing window, and the thumbnail window displayed in suspension is closed according to the closing prompt information.
- 如权利要求1所述的显示悬浮式播放窗口的方法,其特征在于,根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述位置数据并以悬浮方式显示于所述浏览窗口内的页面中。The method of displaying a floating play window according to claim 1, wherein the play thumbnail window is moved in the browsing window according to the received drag indication information, and the play thumbnail window is recorded to be moved. After the position, the location data is generated and stored, and when the playback thumbnail window is displayed again, the stored location data is read and displayed in a floating manner in a page in the browsing window.
- 如权利要求1中所述的显示悬浮式播放窗口的方法,其特征在于,所述播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中。The method for displaying a floating play window according to claim 1, wherein the play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
- 如权利要求4所述的显示悬浮式播放窗口的方法,其特征在于,根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录 该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述尺寸数据并以悬浮方式显示于所述浏览窗口内的页面中。The method for displaying a floating play window according to claim 4, wherein the display size of the play thumbnail window is adjusted according to the received size adjustment indication information, and the record is recorded. The size of the thumbnail window is adjusted, and the size data is generated and stored. When the play thumbnail window is displayed again, the stored size data is read and displayed in a floating manner in a page in the browse window. .
- 一种显示悬浮式播放窗口的系统,与浏览器相耦接,其特征在于,该系统包括:标记单元、监测单元、显示单元以及播放单元,其中,A system for displaying a floating play window, coupled to a browser, wherein the system includes: a marking unit, a monitoring unit, a display unit, and a playing unit, wherein所述标记单元,用于在浏览窗口内显示的页面中,针对该页面上的播放器窗口的底端边缘处生成位置标线;The marking unit is configured to generate a position marking line at a bottom edge of the player window on the page in the page displayed in the browsing window;所述监测单元,用于监测所述位置标线在所述浏览窗口中的位置,当监测到所述位置标线位于该浏览窗口的顶端边界时,生成启动提示信息;The monitoring unit is configured to monitor a position of the position marking line in the browsing window, and generate startup prompt information when detecting that the position marking line is located at a top boundary of the browsing window;所述显示单元,用于根据该启动提示信息生成播放缩略窗口并将该播放缩略窗口以悬浮方式显示于当前所述浏览窗口内的页面中;The display unit is configured to generate a play thumbnail window according to the startup prompt information, and display the play thumbnail window in a floating manner in a page in the current browsing window;所述播放单元,用于获取所述播放器窗口中所播放视频的视频流数据以及当前视频的时间进度数据,在生成的所述播放缩略窗口中进行同步播放。The playing unit is configured to acquire video stream data of the video played in the player window and time progress data of the current video, and perform synchronous play in the generated play thumbnail window.
- 如权利要求6所述的显示悬浮式播放窗口的系统,其特征在于,A system for displaying a floating play window as claimed in claim 6 wherein:所述监测单元,还用于:在监测到所述播放器窗口的所述位置标线出现在所述浏览窗口内的页面中时生成关闭提示信息;The monitoring unit is further configured to: generate a shutdown prompt message when the position marking of the player window is displayed in a page in the browsing window;所述显示单元,还用于:根据所述关闭提示信息将悬浮显示的所述缩略窗口关闭。The display unit is further configured to: close the thumbnail window displayed in a floating manner according to the closing prompt information.
- 如权利要求6所述的显示悬浮式播放窗口的系统,其特征在于,所述显示单元,进一步用于根据接收到的拖动指示信息将所述播放缩略窗口在所述浏览窗口内进行移动,记录该播放缩略窗口移动后的位置,生成位置数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述位置数据并以悬浮方式显示于所述浏览窗口内的页面中。The system for displaying a floating play window according to claim 6, wherein the display unit is further configured to move the play thumbnail window within the browsing window according to the received drag indication information Recording the position of the playback thumbnail window after moving, generating location data and storing, and when the playback thumbnail window is displayed again, reading the stored location data and displaying the location data in a floating manner in the browsing window In the page.
- 如权利要求6中所述的显示悬浮式播放窗口的系统,其特征在于, 所述播放缩略窗口以330*195像素为初始尺寸显示于所述浏览窗口内的页面中。A system for displaying a floating play window as claimed in claim 6 wherein: The play thumbnail window is displayed in a page within the browsing window with an initial size of 330*195 pixels.
- 如权利要求9所述的显示悬浮式播放窗口的系统,其特征在于,所述显示单元,进一步还用于:根据接收到的尺寸调整指示信息对所述播放缩略窗口的显示尺寸进行调整,记录该播放缩略窗口调整后的尺寸,生成尺寸数据并进行存储,在所述播放缩略窗口再次显示时,读取存储的所述尺寸数据并以悬浮方式显示于所述浏览窗口内的页面中。 The system for displaying a floating play window according to claim 9, wherein the display unit is further configured to: adjust a display size of the play thumbnail window according to the received size adjustment indication information, Recording the adjusted size of the play thumbnail window, generating size data and storing, when the play thumbnail window is displayed again, reading the stored size data and displaying the page in the browse window in a floating manner in.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410241420.9A CN103986962B (en) | 2014-06-03 | 2014-06-03 | Show the method and system of floated broadcast window |
CN201410241420.9 | 2014-06-03 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015184745A1 true WO2015184745A1 (en) | 2015-12-10 |
Family
ID=51278771
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/092280 WO2015184745A1 (en) | 2014-06-03 | 2014-11-26 | Method and system for displaying hover play window |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103986962B (en) |
WO (1) | WO2015184745A1 (en) |
Families Citing this family (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103986962B (en) * | 2014-06-03 | 2016-03-02 | 合一网络技术(北京)有限公司 | Show the method and system of floated broadcast window |
CN105373368A (en) * | 2014-08-21 | 2016-03-02 | 腾讯科技(北京)有限公司 | Control method and apparatus for audio play window |
CN104965693A (en) | 2014-08-29 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Video processing method and system |
CN104268252A (en) * | 2014-09-30 | 2015-01-07 | 北京奇虎科技有限公司 | Playing method and device of video elements in web page |
CN104268251A (en) * | 2014-09-30 | 2015-01-07 | 北京奇虎科技有限公司 | Playing method and device of video elements in web page |
CN104618817B (en) * | 2015-02-26 | 2018-07-17 | 北京奇艺世纪科技有限公司 | A kind of control method and device of playback website video |
CN108337549B (en) * | 2015-07-20 | 2020-10-27 | 阿里巴巴(中国)有限公司 | Video playing method and device |
CN105117185B (en) * | 2015-08-07 | 2018-02-13 | 东北电力大学 | A kind of auxiliary information display panel system of desktop system |
CN105554553B (en) * | 2015-12-15 | 2019-02-15 | 腾讯科技(深圳)有限公司 | The method and device of video is played by suspension windows |
CN105635788B (en) * | 2015-12-29 | 2019-08-16 | 深圳Tcl数字技术有限公司 | The method and device to break for commercialsy in video display process |
CN105872652A (en) * | 2015-12-31 | 2016-08-17 | 乐视网信息技术(北京)股份有限公司 | Multichannel video stream playing method and device |
CN106254920B (en) * | 2016-08-08 | 2019-06-18 | 暴风集团股份有限公司 | The method and system that playlist is shown |
CN106502497B (en) * | 2016-10-20 | 2019-12-31 | 合一网络技术(北京)有限公司 | Interactive bar transformation method and device |
CN106791180A (en) * | 2017-01-19 | 2017-05-31 | 努比亚技术有限公司 | The method of adjustment and adjusting apparatus of the video window of the application of mobile terminal |
CN107256142B (en) * | 2017-04-21 | 2020-12-29 | 腾讯科技(深圳)有限公司 | Page display method and terminal |
CN107277562B (en) * | 2017-05-05 | 2020-02-11 | 中广热点云科技有限公司 | Method and system for adjusting screen display picture to hide preview scroll bar |
CN107155128A (en) * | 2017-05-23 | 2017-09-12 | 深圳华云新创科技有限公司 | A kind of method of micro- video generation, apparatus and system |
CN107071510A (en) * | 2017-05-23 | 2017-08-18 | 深圳华云新创科技有限公司 | A kind of method of video building sequence, apparatus and system |
CN107797839A (en) * | 2017-10-31 | 2018-03-13 | 北京酷我科技有限公司 | A kind of method of the small window of video when list rolls |
CN109375973B (en) * | 2018-09-20 | 2022-09-02 | 北京城市网邻信息技术有限公司 | Page display method and device, computer equipment and computer readable storage medium |
CN109547838B (en) * | 2018-12-06 | 2021-06-01 | 青岛海信传媒网络技术有限公司 | Video window processing method and device |
CN109640182A (en) * | 2018-12-20 | 2019-04-16 | 深圳创维数字技术有限公司 | Video broadcasting method, device and computer readable storage medium |
CN109618206B (en) * | 2019-01-24 | 2021-11-05 | 海信视像科技股份有限公司 | Method and display device for presenting user interface |
CN110209320B (en) * | 2019-06-06 | 2021-04-02 | 掌阅科技股份有限公司 | Linkage display method for playing progress of audio book in page and electronic equipment |
CN110427150A (en) * | 2019-08-08 | 2019-11-08 | 北京字节跳动网络技术有限公司 | Display methods, device, electronic equipment and the computer-readable medium of application program |
CN111949358A (en) * | 2020-08-18 | 2020-11-17 | 北京字节跳动网络技术有限公司 | Dynamic display method, device, readable medium and electronic equipment |
CN112579932A (en) * | 2020-12-08 | 2021-03-30 | 广州博冠信息科技有限公司 | Page display method and device, electronic equipment and computer readable medium |
CN115002549B (en) | 2021-03-01 | 2024-05-24 | 腾讯科技(深圳)有限公司 | Video picture display method, device, equipment and medium |
CN113867877A (en) * | 2021-10-11 | 2021-12-31 | 上海哔哩哔哩科技有限公司 | Page display method and device |
CN115866314B (en) * | 2022-11-29 | 2024-09-24 | 维沃移动通信有限公司 | Video playing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100332616A1 (en) * | 2009-06-30 | 2010-12-30 | Sinha Mukul Kumar | Web guide |
CN102968509A (en) * | 2012-12-17 | 2013-03-13 | 腾讯科技(深圳)有限公司 | Method and device for multimedia playing in browser |
CN103702214A (en) * | 2013-12-10 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Video playing method and electronic equipment |
CN103986962A (en) * | 2014-06-03 | 2014-08-13 | 合一网络技术(北京)有限公司 | Method and system for displaying suspended playing window |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060104276A1 (en) * | 2004-11-18 | 2006-05-18 | International Business Machines Corporation | Dynamic hover text for HTML table cells |
CN101075265A (en) * | 2007-07-23 | 2007-11-21 | 王文钢 | Method for demonstrating webpage window video in automatically-tracting picture emphasis zone |
CN102360264B (en) * | 2011-09-30 | 2014-05-28 | 奇智软件(北京)有限公司 | Touch control type browser of portable mobile terminal |
CN102799381B (en) * | 2012-07-13 | 2016-08-10 | 优视科技有限公司 | The processing method and processing device of browser window |
CN103677592B (en) * | 2012-09-03 | 2018-01-05 | 腾讯科技(深圳)有限公司 | The method and device for showing web object is slided in webpage |
CN103116856A (en) * | 2013-01-22 | 2013-05-22 | 上海量明科技发展有限公司 | Method and system based on window displacement output advertising information |
-
2014
- 2014-06-03 CN CN201410241420.9A patent/CN103986962B/en active Active
- 2014-11-26 WO PCT/CN2014/092280 patent/WO2015184745A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100332616A1 (en) * | 2009-06-30 | 2010-12-30 | Sinha Mukul Kumar | Web guide |
CN102968509A (en) * | 2012-12-17 | 2013-03-13 | 腾讯科技(深圳)有限公司 | Method and device for multimedia playing in browser |
CN103702214A (en) * | 2013-12-10 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Video playing method and electronic equipment |
CN103986962A (en) * | 2014-06-03 | 2014-08-13 | 合一网络技术(北京)有限公司 | Method and system for displaying suspended playing window |
Also Published As
Publication number | Publication date |
---|---|
CN103986962A (en) | 2014-08-13 |
CN103986962B (en) | 2016-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015184745A1 (en) | Method and system for displaying hover play window | |
US11962836B2 (en) | User interfaces for a media browsing application | |
US10056113B2 (en) | Video processing method and associated electronic device | |
US9538229B2 (en) | Media experience for touch screen devices | |
EP3457295A2 (en) | Method for recording, editing and reproduction of computer session | |
TWI446213B (en) | Presentation of advertisements based on user interactivity with a web page | |
WO2015051716A1 (en) | Method and apparatus for playing back data | |
US9003277B2 (en) | Method and system for presenting web page resources | |
US20130174037A1 (en) | Method and device for adding video information, and method and device for displaying video information | |
US10075544B2 (en) | Information processing apparatus and information processing method | |
BR112018013301B1 (en) | METHOD AND DEVICE FOR FACILITATING ACCESS TO CONTENT ITEMS, AND COMPUTER READABLE STORAGE MEDIUM | |
US20120240036A1 (en) | E-Book Reading Location Indicator | |
US20130198641A1 (en) | Predictive methods for presenting web content on mobile devices | |
US20070006063A1 (en) | Synchronization aspects of interactive multimedia presentation management | |
WO2016095384A1 (en) | Live comment display method and system | |
US8020084B2 (en) | Synchronization aspects of interactive multimedia presentation management | |
WO2017181990A1 (en) | Display method and device for attached media information | |
JP5974241B1 (en) | Movie display frame control device and program | |
US10536752B2 (en) | Acquiring and storing play progress for a multimedia file | |
US9558784B1 (en) | Intelligent video navigation techniques | |
US9564177B1 (en) | Intelligent video navigation techniques | |
EP3256958A1 (en) | Supporting digital ink in markup language documents | |
CN109831688B (en) | Video suspension playing method and device based on iOS system | |
BR112018009836B1 (en) | METHOD, NON-TRAINER COMPUTER READABLE MEDIUM, AND SYSTEM FOR TOUCH GESTURE CONTROL OF VIDEO PLAYBACK | |
CN108810641A (en) | A kind of video broadcasting method, device and electronic equipment |
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: 14893792 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 14893792 Country of ref document: EP Kind code of ref document: A1 |