CN113660532A - Multi-webpage video playing method and display equipment - Google Patents

Multi-webpage video playing method and display equipment Download PDF

Info

Publication number
CN113660532A
CN113660532A CN202110917865.4A CN202110917865A CN113660532A CN 113660532 A CN113660532 A CN 113660532A CN 202110917865 A CN202110917865 A CN 202110917865A CN 113660532 A CN113660532 A CN 113660532A
Authority
CN
China
Prior art keywords
webpage
video
state
playing
content
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110917865.4A
Other languages
Chinese (zh)
Inventor
李佰平
李昊天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vidaa Netherlands International Holdings BV
Original Assignee
Hisense Electronic Technology Shenzhen Co ltd
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 Hisense Electronic Technology Shenzhen Co ltd filed Critical Hisense Electronic Technology Shenzhen Co ltd
Priority to CN202110917865.4A priority Critical patent/CN113660532A/en
Publication of CN113660532A publication Critical patent/CN113660532A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

When a first webpage is started, if a second webpage enters a hidden state and a second video in a playing state exists in the second webpage, the playing of the second video is paused at first, and then the content of the first webpage is displayed in a user interface; and when the second video in the playing state does not exist in the second webpage, directly displaying the content of the first webpage in the user interface. Therefore, the method and the display device can dynamically close the video playing of the previous webpage according to the new webpage opened by the user, can dynamically adjust the playing state of the video in the webpage before and after the webpage is switched, avoid the conflict of the video playing in the webpage before and after the webpage is opened, ensure the normal playing of the video in the newly opened webpage, and have good user experience.

Description

Multi-webpage video playing method and display equipment
Technical Field
The present application relates to the field of video playing technologies, and in particular, to a multi-web video playing method and a display device.
Background
Along with the rapid development of display equipment, the functions of the display equipment are more and more abundant, and the performance of the display equipment is more and more powerful, and at present, the display equipment comprises an intelligent television, a mobile phone, a refrigerator, other products with an intelligent display screen and the like. In order to improve the functions of the display device, a browser can be configured in the display device, and browsing of different webpages can be realized through the browser.
When a user watches the video A of the webpage A through the browser, if the user opens the webpage B and watches the video B, the video A is still in a playing state, the newly opened video B is also in a playing state, so that when the browser is switched from the webpage A to the webpage B, the two videos are played simultaneously, the video conflict playing causes that the user cannot watch the video B normally, and the user experience is influenced.
Disclosure of Invention
The application provides a multi-webpage video playing method and display equipment, which are used for solving the problem that videos cannot be played normally when the videos on multiple webpages are played in a conflict manner.
In a first aspect, the present application provides a display device comprising:
a display configured to present a user interface;
a controller connected with the display, the controller configured to:
responding to an instruction for starting the first webpage, and detecting whether a second webpage enters a hidden state or not;
if the second webpage enters the hidden state, judging whether a second video in the playing state exists in the second webpage;
when a second video in a playing state exists in the second webpage, pausing playing of the second video, and displaying the content of the first webpage in the user interface;
and when the second video in the playing state does not exist in the second webpage, displaying the content of the first webpage in the user interface.
In some embodiments of the present application, the controller, in executing the presenting the content of the first web page in the user interface, is further configured to:
if the content is a first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface;
and if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
In some embodiments of the present application, the controller is further configured to:
responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from a hidden state to a displayed state, and switching the state of the first webpage from the displayed state to the hidden state.
In some embodiments of the present application, the controller is further configured to:
when the state of the second webpage is switched from a hidden state to a display state, judging whether a second video in a pause state exists in the second webpage;
if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in a user interface, and restarting to play the second video;
and if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in a user interface.
In some embodiments of the present application, the controller is further configured to:
when the state of the first webpage is switched from a display state to a hidden state, judging whether a first video in a playing state exists in the first webpage or not;
and if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in a user interface.
In a second aspect, the present application further provides a method for playing a video with multiple webpages, where the method includes:
responding to an instruction for starting the first webpage, and detecting whether a second webpage enters a hidden state or not;
if the second webpage enters the hidden state, judging whether a second video in the playing state exists in the second webpage;
when a second video in a playing state exists in the second webpage, pausing playing of the second video, and displaying the content of the first webpage in the user interface;
and when the second video in the playing state does not exist in the second webpage, displaying the content of the first webpage in the user interface.
In some embodiments of the present application, the displaying the content of the first webpage in the user interface includes:
if the content is a first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface;
and if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
In some embodiments of the present application, the method further comprises: responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from a hidden state to a displayed state, and switching the state of the first webpage from the displayed state to the hidden state.
In some embodiments of the present application, the method further comprises:
when the state of the second webpage is switched from a hidden state to a display state, judging whether a second video in a pause state exists in the second webpage;
if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in a user interface, and restarting to play the second video;
and if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in a user interface.
In some embodiments of the present application, the method further comprises:
when the state of the first webpage is switched from a display state to a hidden state, judging whether a first video in a playing state exists in the first webpage or not;
and if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in a user interface.
In a third aspect, the present application further provides a storage medium, where the storage medium may store a program, and when the program is executed, part or all of the steps in the embodiments of the video playing method including multiple webpages provided by the present application may be implemented.
According to the technical scheme, when the first webpage is started, if the second webpage enters the hidden state and the second video in the playing state exists in the second webpage, the playing of the second video is paused at first, and then the content of the first webpage is displayed in the user interface; and when the second video in the playing state does not exist in the second webpage, directly displaying the content of the first webpage in the user interface. Therefore, the method and the display device can dynamically close the video playing of the previous webpage according to the new webpage opened by the user, can dynamically adjust the playing state of the video in the webpage before and after the webpage is switched, avoid the conflict of the video playing in the webpage before and after the webpage is opened, ensure the normal playing of the video in the newly opened webpage, and have good user experience.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates a schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments;
fig. 2 shows a block configuration diagram of the control device 100 according to some embodiments;
fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to some embodiments;
FIG. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments;
FIG. 5 illustrates a flow diagram of a method for video playback of multiple web pages in accordance with some embodiments;
FIG. 6 illustrates a data flow diagram of a video playback method for multiple web pages in accordance with some embodiments;
FIG. 7 illustrates a block flow diagram for opening a new web page to enable video playback, in accordance with some embodiments;
FIG. 8 illustrates a data flow diagram for multi-page switching video playback in accordance with some embodiments;
FIG. 9 illustrates a block flow diagram for multi-page switching video playback, in accordance with some embodiments.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and/or software code that is capable of performing the functionality associated with that element.
Fig. 1 illustrates a schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments. As shown in fig. 1, a user may operate the display apparatus 200 through the smart device 300 or the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and controls the display device 200 in a wireless or wired manner. The user may input a user instruction through a key on a remote controller, voice input, control panel input, etc., to control the display apparatus 200.
In some embodiments, the smart device 300 (e.g., mobile terminal, tablet, computer, laptop, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application program running on the smart device.
In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received by a module configured inside the display device 200 to obtain a voice command, or may be received by a voice control device provided outside the display device 200.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
Fig. 2 shows a block configuration diagram of the control device 100 according to some embodiments. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive by the display device 200, serving as an interaction intermediary between the user and the display device 200.
Fig. 3 illustrates a hardware configuration block diagram of a display device 200 according to some embodiments. Referring to fig. 3, in some embodiments, the display apparatus 200 includes at least one of a tuner demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments the controller comprises a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an nth interface for input/output.
In some embodiments, the display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, performing display of video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
In some embodiments, the display 260 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the external control apparatus 100 or the server 400 through the communicator 220.
In some embodiments, the user interface may be configured to receive control signals for controlling the apparatus 100 (e.g., an infrared remote control, etc.).
In some embodiments, the detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which may be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the detector 230 includes a sound collector, such as a microphone, which is used to receive external sounds.
In some embodiments, the external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. The interface may be a composite input/output interface formed by the plurality of interfaces.
In some embodiments, the tuner demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in different separate devices, that is, the modem 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
In some embodiments, the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory), a first to nth interface for input/output, a communication Bus (Bus), and the like.
A CPU processor. For executing operating system and application program instructions stored in the memory, and executing various application programs, data and contents according to various interactive instructions receiving external input, so as to finally display and play various audio-video contents. The CPU processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In some embodiments, a graphics processor for generating various graphics objects, such as: icons, operation menus, user input instruction display graphics, and the like. The graphic processor comprises an arithmetic unit, which performs operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer for rendering various objects obtained based on the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal that can be displayed or played on the direct display device 200.
In some embodiments, the video processor includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like. And the image synthesis module is used for carrying out superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing by the graphic generator so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as an output RGB data signal.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform noise reduction, digital-to-analog conversion, and amplification processing to obtain an audio signal that can be played in the speaker.
In some embodiments, a user may enter user commands on a Graphical User Interface (GUI) displayed on display 260, and the user input interface receives the user input commands through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
In some embodiments, a system of a display device may include a Kernel (Kernel), a command parser (shell), a file system, and an application program. The kernel, shell, and file system together make up the basic operating system structure that allows users to manage files, run programs, and use the system. After power-on, the kernel is started, kernel space is activated, hardware is abstracted, hardware parameters are initialized, and virtual memory, a scheduler, signals and interprocess communication (IPC) are operated and maintained. And after the kernel is started, loading the Shell and the user application program. The application program is compiled into machine code after being started, and a process is formed.
Fig. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments. As shown in fig. 4, the system of the display device is divided into three layers, i.e., an application layer, a middleware layer and a hardware layer from top to bottom.
The Application layer mainly includes common applications on the television and an Application Framework (Application Framework), wherein the common applications are mainly applications developed based on the Browser, such as: HTML5 APPs; and Native APPs (Native APPs);
an Application Framework (Application Framework) is a complete program model, and has all basic functions required by standard Application software, such as: file access, data exchange, and interfaces to use these functions (toolbars, status lists, menus, dialog boxes).
Native APPs (Native APPs) may support online or offline, message push, or local resource access.
The middleware layer comprises various television protocols, multimedia protocols, system components and other middleware. The middleware can use basic service (function) provided by system software to connect each part of an application system or different applications on a network, and can achieve the purposes of resource sharing and function sharing.
The hardware layer mainly comprises an HAL interface, hardware and a driver, wherein the HAL interface is a unified interface for butting all the television chips, and specific logic is realized by each chip. The driving mainly comprises: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
In some embodiments, to improve the functionality of the display device, a browser may be configured in the display device, browsing of different web pages may be implemented by the browser, and the browser may support simultaneous opening of multiple web page browsing contents. For example, a user inputs the website of the web page a through a browser to open the web page a, and then inputs the website of the web page B to open the web page B, at this time, the web page a is turned into a background and hidden, and the web page B is displayed in a user interface of the display device.
However, if the video a is played in the web page a and the video B is played in the newly opened web page B, at this time, when the browser switches from the web page a to the web page B, the video a is still in a playing state, and the newly opened video B is also in a playing state, so that the two videos are played at the same time. Or, a situation may occur in which the video a is still in a playing state, but the resource is not released, so that the newly opened video B cannot be played.
Therefore, as a common webpage presents videos and can automatically play the videos when being opened, when the browser switches the multiple webpages to play the videos, the videos of the previously opened webpages still play or have a smear phenomenon when the newly opened webpages are newly opened due to the fact that the videos in the previously opened webpages are not paused and resources are not released, and the videos play in a conflict, so that the videos cannot be normally played and user experience is influenced.
Therefore, in order to ensure that the video playing state can be adjusted in time when the web pages are switched, embodiments of the present invention provide a display device, which can dynamically adjust the playing state of the video in the web pages opened before and after switching, release the video resource in the previous web page, and ensure the normal playing of the video in the web page opened after switching, that is, the video playing of the previous web page can be dynamically closed according to the new web page opened by the user, so that the video playing in the web pages opened before and after is prevented from conflicting, and the user experience is good.
FIG. 5 illustrates a flow diagram of a method for video playback of multiple web pages in accordance with some embodiments; FIG. 6 illustrates a data flow diagram of a method of video playback of multiple web pages in accordance with some embodiments. An embodiment of the present invention provides a display device, including: a display configured to present a user interface; a controller connected to the display, the controller being configured to perform the following steps when performing the video playing method for a multi-web page shown in fig. 5 and 6:
s1, responding to the instruction of starting the first webpage, and detecting whether the second webpage enters a hidden state or not.
When a user operates a browser configured in the display device, a website is input to present a webpage and is displayed in a user interface. Therefore, when the user inputs the website of the first webpage, a starting instruction of the first webpage is generated, and at this time, it needs to be judged whether the webpage currently opened by the user is the webpage opened for the first time or the webpage newly opened on the basis of the webpage opened historically.
Therefore, the webpage attributes of the browser are obtained, the webpage attributes are used for representing the state of each opened webpage, the states comprise a hidden state and a display state, the hidden state is switched from being displayed in a user interface to being hidden in a background, and therefore the user cannot see the webpage; the display state refers to a state switched from the background to be displayed in the user interface, namely a state in which the user can see the webpage.
The method comprises the steps of detecting states of all webpages based on webpage attributes, and if the second webpage enters a hidden state, indicating that the first webpage is a webpage newly opened on the basis of historical webpage opening when the first webpage is opened, namely, before the first webpage is opened, the second webpage is opened in a browser, or the second webpage is a webpage being displayed before the first webpage is opened, and the first webpage and the second webpage are in a relationship of being opened twice in an adjacent sequence.
If the second webpage is detected to enter the hidden state, the first webpage is the first webpage opened by the browser when the first webpage is opened, at the moment, the content of the first webpage is directly presented, and the first webpage is in the display state.
And S2, if the second webpage enters the hidden state, judging whether the second webpage has the second video in the playing state.
When the first webpage is opened, if the second webpage enters the hidden state, the content needing to be presented in the user interface needs to be switched from the original content of the second webpage to the content of the first webpage. After the switching is completed, the first webpage is in a display state, and the second webpage is in a hidden state.
When the second webpage is turned into the background hidden state, in order to prevent the played video in the second webpage from affecting the content presentation of the first webpage, it is necessary to first determine whether the second webpage has the second video in the playing state.
And S3, when the second video in the playing state exists in the second webpage, pausing the playing of the second video, and displaying the content of the first webpage in the user interface.
And detecting whether the second video is being played in the content of the second webpage, and if the second video in the playing state exists in the second webpage, pausing the playing of the second video when the second webpage is hidden after being transferred to the background in order to avoid that the second video is still played after the second webpage is transferred to the background. Meanwhile, the resource association occupied by the current playing is released, so that when the video needing to be played exists in the newly opened first webpage, the playing can be automatically started in time, and the video playing conflict is avoided.
And when the second video in the second webpage is paused to be played, displaying the content of the first webpage in the user interface. Because the newly opened first webpage may need to be played with video, or only the image-text information and the like are required to be displayed without video playing, the corresponding content of the first webpage can be automatically displayed according to the display requirement.
In some embodiments, the controller, in executing presenting the content of the first webpage in the user interface, is further configured to execute the steps of:
and 31, if the content is the first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface.
And 32, if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
Since the newly input web address of the user may be the video to be played or only the information search is performed, a different presentation strategy is performed when the first web content is presented.
When the content to be displayed is the first text, at this time, the user only performs information search without performing video playing, and therefore, the first webpage can be directly generated based on the first text and displayed in the user interface. The first text refers to resources which are not played in a video mode and only need to show graphic and text information and the like.
When the content to be displayed is the first video, the video playing is required, so that the first webpage can be generated based on the first video and displayed in the user interface. The first video may be a video that the user selects to search, but may also be a video that is self-contained and automatically played in the home page of the first web page.
In order to ensure the automatic playing of the first video, the playing of the first video can be started in time while the first webpage is displayed in the user interface.
S4, when the second video in the playing state does not exist in the second web page, the content of the first web page is displayed in the user interface.
And detecting whether the second video is being played in the content of the second webpage, wherein if the second video in the playing state does not exist in the second webpage, the second webpage does not influence the content presentation of the first webpage after being turned into a background for hiding, namely, the content presentation of the two webpages does not conflict.
Thus, the content of the first webpage may be directly presented in the user interface. At this time, the first webpage is in a display state, and the second webpage is in a hidden state.
FIG. 7 illustrates a block flow diagram for opening a new web page to enable video playback, in accordance with some embodiments. Referring to fig. 7, the user opens the a-web page and plays the a-video in the a-web page. And the user opens the B webpage again, at the moment, the playing of the video A in the A webpage is suspended, and the video resource is released. And simultaneously, playing the B video of the B webpage.
It can be seen that when a web page is newly opened, if the new web page is the first web page opened by the browser, the content of the new web page can be directly displayed. If the new webpage is a webpage which is opened newly after the webpage is opened based on the history, when the fact that the video playing exists in the history opened webpage is judged, the video playing is paused, the new webpage is displayed, and the video in the new webpage is played. The process can automatically control video pause, resource release and the like of the previous opened webpage according to the opened multiple webpages, avoid content presentation conflict between the new webpage and the previous opened webpage, ensure normal display of the content of the new webpage and ensure good user experience.
In some embodiments, if a plurality of opened webpages exist in the browser, when each webpage is switched to view the content of any webpage, the webpage attribute of each webpage can be changed in real time, so that the video playing state in the corresponding webpage can be controlled in time, and the situation that the videos in the webpages needing to be viewed cannot be played due to the fact that conflicts occur when the videos in two adjacent clicked webpages need to be played is avoided. The opened web page is a web page still existing in the browser, and only the attribute of the web page is in a hidden state, that is, the web page is not closed after being opened.
FIG. 8 illustrates a data flow diagram for multi-page switching video playback, in accordance with some embodiments. Referring to fig. 8, to this end, when the user switches viewing based on a plurality of web pages that have been opened in the browser, the controller is further configured to: and responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from the hidden state to the display state, and switching the state of the first webpage from the display state to the hidden state.
When the content of the first webpage is presented in the user interface at present, and the second webpage is shifted to the background, namely the first webpage is in a display state, and the second webpage is in a hidden state, if the content of the second webpage is required to be viewed again, the second webpage is clicked, and at the moment, a switching instruction is generated.
And responding to the switching instruction, modifying the webpage attribute of the browser, namely switching the state of the second webpage from the hidden state to the display state, and switching the state of the first webpage from the display state to the hidden state to realize switching display from the first webpage to the second webpage.
In some embodiments, when the display is switched among different webpages, the content of the webpage selected for display is automatically displayed, and the content of other webpages is automatically hidden. Accordingly, when the web page is selected for display, the controller is further configured to:
and step 51, when the state of the second webpage is switched from the hidden state to the display state, judging whether a second video in the pause state exists in the second webpage.
And step 52, if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in the user interface, and restarting to play the second video.
And 53, if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in the user interface.
When the switching display is carried out based on a plurality of opened webpages in the browser, if a second webpage originally in a background is clicked and needs to be switched to a foreground for display, at the moment, the state of the second webpage is switched from a hidden state to a display state.
If the content of the second text is originally displayed in the second webpage, the content of the second text can be directly displayed after the second webpage is transferred to the foreground for display. And if the content of the second video is originally displayed in the second webpage, the playing of the second video needs to be started immediately and automatically after the second webpage is switched to the foreground for displaying.
Therefore, in order to ensure that the second video in the second webpage can be automatically played, when the second webpage is shifted to the foreground, it is necessary to first determine whether the second video in the pause state exists in the second webpage. And if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in the user interface when the second webpage is switched to the foreground for display, simultaneously associating the currently played video with the platform resource, and automatically restarting to play the second video.
If the second video in the pause state does not exist in the second webpage, the content in the second webpage is indicated to be the second text, and at the moment, the content of the second webpage can be directly displayed in the user interface without controlling the automatic playing of the second video.
Therefore, when the multi-webpage switching is executed, when the condition that the second webpage originally hidden in the background is switched to the foreground for displaying is monitored, whether the paused video playing exists or not is judged, if yes, the current playing is related to the platform resource, and the playing is resumed. If not, the second webpage of the current switching is continuously displayed.
In some embodiments, when the display is switched among different webpages, the content of the webpage selected for display is automatically displayed, and the content of other webpages is automatically hidden. Thus, when the other web page is hidden, the controller is further configured to perform the steps of:
and step 61, when the state of the first webpage is switched from the display state to the hidden state, judging whether a first video in the playing state exists in the first webpage.
And step 62, if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in the user interface.
When switching display is carried out based on a plurality of opened webpages in a browser, if a first webpage originally in a foreground needs to be switched to a background for hiding, at the moment, the state of the first webpage is switched from a display state to a hidden state.
In order to avoid the influence of the played video on the display of the webpage content to be displayed due to the fact that the video exists in the two webpages switched successively for playing, when the first webpage is switched to be hidden in the background, whether the first video in the playing state exists in the first webpage needs to be judged first.
If the first webpage has the first video in the playing state, when the first webpage is turned into the background to be hidden, the playing of the first video is suspended, the association between the currently played video and the platform resource is released, and meanwhile, the content of the second webpage is displayed in the user interface. At this time, if a second video needs to be played in the second webpage, the platform resource is associated with the second video so as to automatically play the second video which is shifted to be displayed in the foreground.
If the first webpage does not have the first video in the playing state, the content of the first webpage transferred to the background does not influence the content presentation of the second webpage transferred to the foreground, so that the second webpage can be directly transferred to the foreground and displayed in the user interface.
FIG. 9 illustrates a block flow diagram for multi-page switching video playback, in accordance with some embodiments. Referring to fig. 9, when a B-web page and a C-web page are opened in the browser, and the B-web page is switched to the C-web page, video playing corresponding to the B-web page is paused, and resources for playing the video are released. And if the C webpage is currently displayed, if the paused video exists, resuming the video to continue playing.
Therefore, when multi-webpage switching is executed, when the condition that the first webpage originally displayed in the foreground is monitored to be turned into the background to be hidden is monitored, whether a video is played or not is judged, if yes, the current video playing is paused, and the association between the currently played video and the platform resources is released. If not, the second webpage of the current switching is continuously displayed.
As can be seen from the foregoing technical solutions, in the display device provided in the embodiments of the present invention, when a first webpage is started, if a second webpage enters a hidden state and a second video in a playing state exists in the second webpage, the playing of the second video is paused first, and then the content of the first webpage is displayed in a user interface; and when the second video in the playing state does not exist in the second webpage, directly displaying the content of the first webpage in the user interface. Therefore, the display equipment can dynamically close the video playing of the previous webpage according to the new webpage opened by the user, can dynamically adjust the playing state of the video in the webpage before and after the webpage is switched, avoids the conflict of the video playing in the webpage before and after the webpage is opened, ensures the normal playing of the video in the newly opened webpage, and has good user experience.
FIG. 5 illustrates a flow diagram of a method for video playback of multiple web pages in accordance with some embodiments. Referring to fig. 5, the present application further provides a video playing method for multiple webpages, which is executed by the controller in the display device provided in the foregoing embodiment, and the method includes:
s1, responding to the instruction of starting the first webpage, and detecting whether a second webpage enters a hidden state or not;
s2, if the second webpage enters the hidden state, judging whether a second video in the playing state exists in the second webpage;
s3, when a second video in a playing state exists in the second webpage, pausing playing of the second video, and displaying the content of the first webpage in the user interface;
and S4, when the second video in the playing state does not exist in the second webpage, displaying the content of the first webpage in the user interface.
In some embodiments of the present application, the displaying the content of the first webpage in the user interface includes: if the content is a first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface; and if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
In some embodiments of the present application, the method further comprises: responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from a hidden state to a displayed state, and switching the state of the first webpage from the displayed state to the hidden state.
In some embodiments of the present application, the method further comprises: when the state of the second webpage is switched from a hidden state to a display state, judging whether a second video in a pause state exists in the second webpage; if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in a user interface, and restarting to play the second video; and if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in a user interface.
In some embodiments of the present application, the method further comprises: when the state of the first webpage is switched from a display state to a hidden state, judging whether a first video in a playing state exists in the first webpage or not; and if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in a user interface.
According to the technical scheme, when the first webpage is started, if the second webpage enters the hidden state and the second video in the playing state exists in the second webpage, the playing of the second video is paused at first, and then the content of the first webpage is displayed in the user interface; and when the second video in the playing state does not exist in the second webpage, directly displaying the content of the first webpage in the user interface. Therefore, the method and the display device can dynamically close the video playing of the previous webpage according to the new webpage opened by the user, can dynamically adjust the playing state of the video in the webpage before and after the webpage is switched, avoid the conflict of the video playing in the webpage before and after the webpage is opened, ensure the normal playing of the video in the newly opened webpage, and have good user experience.
In a specific implementation, the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program may include some or all of the steps in each embodiment of the multi-web video playing method provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of software products, which may be stored in storage media, such as ROM/RAM, magnetic disk, optical disk, etc., or in the form of portions that contribute to the prior art.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the embodiment of the video playing method of multiple webpages, since it is basically similar to the embodiment of the display device, the description is relatively simple, and the relevant points can be referred to the description in the embodiment of the display device.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, comprising:
a display configured to present a user interface;
a controller connected with the display, the controller configured to:
responding to an instruction for starting the first webpage, and detecting whether a second webpage enters a hidden state or not;
if the second webpage enters the hidden state, judging whether a second video in the playing state exists in the second webpage;
when a second video in a playing state exists in the second webpage, pausing playing of the second video, and displaying the content of the first webpage in the user interface;
and when the second video in the playing state does not exist in the second webpage, displaying the content of the first webpage in the user interface.
2. The display device of claim 1, wherein the controller, in performing the presenting the content of the first web page in the user interface, is further configured to:
if the content is a first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface;
and if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
3. The display device of claim 1, wherein the controller is further configured to:
responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from a hidden state to a displayed state, and switching the state of the first webpage from the displayed state to the hidden state.
4. The display device of claim 3, wherein the controller is further configured to:
when the state of the second webpage is switched from a hidden state to a display state, judging whether a second video in a pause state exists in the second webpage;
if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in a user interface, and restarting to play the second video;
and if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in a user interface.
5. The display device of claim 3, wherein the controller is further configured to:
when the state of the first webpage is switched from a display state to a hidden state, judging whether a first video in a playing state exists in the first webpage or not;
and if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in a user interface.
6. A video playing method of multiple webpages is characterized by comprising the following steps:
responding to an instruction for starting the first webpage, and detecting whether a second webpage enters a hidden state or not;
if the second webpage enters the hidden state, judging whether a second video in the playing state exists in the second webpage;
when a second video in a playing state exists in the second webpage, pausing playing of the second video, and displaying the content of the first webpage in the user interface;
and when the second video in the playing state does not exist in the second webpage, displaying the content of the first webpage in the user interface.
7. The method of claim 6, wherein the presenting the content of the first web page in the user interface comprises:
if the content is a first text, generating a first webpage based on the first text, and displaying the first webpage in the user interface;
and if the content is the first video, generating a first webpage based on the first video, switching and displaying the first webpage in the user interface, and playing the first video.
8. The method of claim 6, further comprising:
responding to a switching instruction for switching the first webpage to the second webpage for displaying, switching the state of the second webpage from a hidden state to a displayed state, and switching the state of the first webpage from the displayed state to the hidden state.
9. The method of claim 8, further comprising:
when the state of the second webpage is switched from a hidden state to a display state, judging whether a second video in a pause state exists in the second webpage;
if the second video in the pause state exists in the second webpage, displaying the content of the second webpage in a user interface, and restarting to play the second video;
and if the second video in the pause state does not exist in the second webpage, displaying the content of the second webpage in a user interface.
10. The method of claim 8, further comprising:
when the state of the first webpage is switched from a display state to a hidden state, judging whether a first video in a playing state exists in the first webpage or not;
and if the first video in the playing state exists in the first webpage, pausing the playing of the first video, and displaying the content of the second webpage in a user interface.
CN202110917865.4A 2021-08-11 2021-08-11 Multi-webpage video playing method and display equipment Pending CN113660532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110917865.4A CN113660532A (en) 2021-08-11 2021-08-11 Multi-webpage video playing method and display equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110917865.4A CN113660532A (en) 2021-08-11 2021-08-11 Multi-webpage video playing method and display equipment

Publications (1)

Publication Number Publication Date
CN113660532A true CN113660532A (en) 2021-11-16

Family

ID=78491341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110917865.4A Pending CN113660532A (en) 2021-08-11 2021-08-11 Multi-webpage video playing method and display equipment

Country Status (1)

Country Link
CN (1) CN113660532A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528735A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Method and device for controlling browser to play media resources
CN110401877A (en) * 2019-07-18 2019-11-01 北京字节跳动网络技术有限公司 Control method, device, electronic equipment and the storage medium of video playing
CN110730384A (en) * 2018-07-17 2020-01-24 腾讯科技(北京)有限公司 Webpage control method and device, terminal equipment and computer storage medium
CN111372137A (en) * 2020-03-13 2020-07-03 青岛海信宽带多媒体技术有限公司 Method and device for automatically correcting player state by browser and display equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528735A (en) * 2016-10-27 2017-03-22 北京小米移动软件有限公司 Method and device for controlling browser to play media resources
CN110730384A (en) * 2018-07-17 2020-01-24 腾讯科技(北京)有限公司 Webpage control method and device, terminal equipment and computer storage medium
CN110401877A (en) * 2019-07-18 2019-11-01 北京字节跳动网络技术有限公司 Control method, device, electronic equipment and the storage medium of video playing
CN111372137A (en) * 2020-03-13 2020-07-03 青岛海信宽带多媒体技术有限公司 Method and device for automatically correcting player state by browser and display equipment

Similar Documents

Publication Publication Date Title
CN113630654B (en) Display equipment and media resource pushing method
CN114302201B (en) Method for automatically switching on and off screen in sound box mode, intelligent terminal and display device
CN115776585A (en) Display device and content presentation method
CN112653906A (en) Video hotspot playing method on display device and display device
CN113360066B (en) Display device and file display method
CN113453052B (en) Sound and picture synchronization method and display device
CN113111214A (en) Display method and display equipment for playing records
CN113163258A (en) Channel switching method and display device
CN113490032A (en) Display device and medium resource display method
CN112836158A (en) Resource loading method on display equipment and display equipment
CN112947888A (en) Display method and display equipment of voice function page
CN112733050A (en) Display method of search results on display device and display device
CN113038255B (en) Channel information updating method and display device
CN113573149B (en) Channel searching method and display device
CN113596559A (en) Method for displaying information in information bar and display equipment
CN112882631A (en) Display method of electronic specification on display device and display device
CN113573112A (en) Display device and remote controller
CN113490030A (en) Display device and channel information display method
CN112911371A (en) Double-channel video resource playing method and display equipment
CN113784203A (en) Display device and channel switching method
CN112732396A (en) Media asset data display method and display device
CN113542901A (en) Display device and fast switching display method of network channels
CN113014977A (en) Display device and volume display method
CN112668546A (en) Video thumbnail display method and display equipment
CN113660532A (en) Multi-webpage video playing method and display equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221031

Address after: 83 Intekte Street, Devon, Netherlands

Applicant after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 9 / F, Hisense south building, 1777 Chuangye Road, Nanshan District, Shenzhen, Guangdong 518000

Applicant before: HISENSE ELECTRONIC TECHNOLOGY (SHENZHEN) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211116