CN112333525A - Method for switching video window, electronic equipment and storage medium - Google Patents

Method for switching video window, electronic equipment and storage medium Download PDF

Info

Publication number
CN112333525A
CN112333525A CN202110005158.8A CN202110005158A CN112333525A CN 112333525 A CN112333525 A CN 112333525A CN 202110005158 A CN202110005158 A CN 202110005158A CN 112333525 A CN112333525 A CN 112333525A
Authority
CN
China
Prior art keywords
sensory
window
playing
switching
video
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
CN202110005158.8A
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.)
Jingchen Semiconductor Shenzhen Co ltd
Original Assignee
Jingchen Semiconductor 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 Jingchen Semiconductor Shenzhen Co ltd filed Critical Jingchen Semiconductor Shenzhen Co ltd
Priority to CN202110005158.8A priority Critical patent/CN112333525A/en
Publication of CN112333525A publication Critical patent/CN112333525A/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/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/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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/485End-user interface for client configuration
    • 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/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The invention discloses a method for switching video windows, electronic equipment and a storage medium, wherein the method for switching the video windows comprises the following steps: detecting a video window switching instruction; releasing non-sensory resources and continuously playing sensory resources by a first playing channel corresponding to the current video window; after the first playing channel releases the non-sensory resource, the second playing channel corresponding to the target video window recreates the non-sensory resource; and the second playing channel acquires the sensory resource and plays the sensory resource and the reconstructed non-sensory resource in the target video window. According to the method for switching the video window, the electronic device and the storage medium, only the non-sensory resources need to be reconstructed in the process of switching the video window, the continuous playing of the sensory resources is guaranteed, the time consumption of stopping and starting playing can be reduced, the sensory resources can be continuously played in the process of switching the video window, the phenomena of black screen and the like cannot occur, and the effect of seamless switching is achieved.

Description

Method for switching video window, electronic equipment and storage medium
Technical Field
The present invention relates to the field of television technologies, and in particular, to a method for switching video windows, an electronic device, and a storage medium.
Background
In the technical field of smart televisions, taking an android system as an example, when designing a Launcher UI (Launcher User interface, a User interface of a desktop of the android system), a preview small window is usually added on the desktop of the android system to preview an online video or a television channel picture. An original static interface UI (User interface) is added with a moving picture, so that the interface is more vivid and richer in content.
In the existing mainstream design, if a full-screen window and a navigation window of a television are divided into two applications, the skipping of the two applications has time consumption, the navigation window cannot be seamlessly switched into the full-screen window like a video application, the phenomenon of screen blackness is easy to occur, and the system operation is not smooth.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, an object of the present invention is to provide a method for switching video windows, which can reduce the time consumption during the switching of video windows, achieve the effect of seamless switching of video windows, and improve the smoothness of system operation.
A second object of the present invention is to provide an electronic device.
A third object of the invention is to propose a storage medium.
In order to achieve the above object, a method for switching video windows according to an embodiment of the first aspect of the present invention includes: detecting a video window switching instruction; releasing non-sensory resources and continuously playing sensory resources by a first playing channel corresponding to the current video window; after the first playing channel releases the non-sensory resource, a second playing channel corresponding to a target video window recreates the non-sensory resource; and the second playing channel acquires the sensory resource and plays the sensory resource and the reconstructed non-sensory resource in the target video window.
According to the method for switching the video windows, when the video windows are switched, the first playing channel releases the non-sensory resources and continues to play the sensory resources, the second playing channel continues to play the sensory resources of the original playing channel, only the non-sensory resources need to be rebuilt, the time consumption of stopping and starting playing of the sensory resources is reduced, the sensory resources are continuously played in the process of switching the video windows, the sensory resources are played continuously, the phenomena of black screen and the like are avoided, the video windows achieve the effect of seamless switching, and the smoothness of system operation is improved.
In some embodiments of the present invention, the releasing the non-sensory resource and continuing to play the sensory resource in the first play path corresponding to the current video window includes: the first playing channel enters a release state; obtaining sensory resources and non-sensory resources corresponding to a current video window; detecting that the equipment is set to a window switching state; and continuously keeping playing the sensory resources and releasing the non-sensory resources.
In some embodiments of the invention, detecting that the device is set to the window switching state comprises: and if the release state of the first playing channel and the creation state of the second playing channel are detected to coexist, setting the equipment to be in the window switching state.
In some embodiments of the invention, before detecting the video window switching instruction, the method further comprises: setting a global variable; when a current video window is started, a first play path is created; and assigning the first playing path to the global variable, and starting a current video window to play video resources, wherein the video resources comprise the sensory resources and the non-sensory resources.
In some embodiments of the invention, after detecting the video window switching instruction, the method further comprises: and creating the second playing path, and assigning the second playing path to the global variable.
In some embodiments of the present invention, detecting that the released state of the first playback path and the created state of the second playback path coexist comprises: and if the global variable is detected to be the second playing path, determining that the release state of the first playing path and the creation state of the second playing path coexist.
In some embodiments of the present invention, the current video window is a navigation window of a navigation interface, and the target video window is a full screen window; or, the current video window is a full screen window, and the target video window is a navigation window of a navigation interface.
In some embodiments of the invention, the sensory resource comprises video information and audio information; the non-sensory resource includes at least one of electronic program guide information, subtitle information, and listener information.
In order to achieve the above object, an electronic device according to an embodiment of a second aspect of the present invention includes: at least one processor; a memory coupled to at least one of the processors; wherein, the memory stores a computer program executable by at least one of the processors, and when the computer program is executed by at least one of the processors, the method for switching video windows according to the embodiment of the first aspect is implemented.
According to the electronic equipment provided by the embodiment of the invention, the collected state parameter information of the switched video window can be integrated and analyzed by running the main program in the memory, and the instruction is sent to be executed by the processor, so that the method for switching the video window can be realized, and the seamless switching effect is achieved while the time consumption for stopping and starting playing is reduced.
In order to achieve the above object, a storage medium of an embodiment of a third aspect of the present invention has a computer program stored thereon, and the computer program is executed by a processor to implement the method for switching video windows of the embodiment of the first aspect.
According to the storage medium of the embodiment of the invention, the stored computer program can be executed by the processor, the detection of the window switching state can be realized by acquiring the window switching state, the instruction which can be executed by the processor is sent out in a timely reaction manner, the state information of each part in the video playing process has memorability, the reaction is rapid, the reaction time can be effectively shortened, and the intelligent operation of the method for controlling and switching the video window is ensured.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart of a method of switching video windows according to one embodiment of the invention;
FIG. 2 is a flow chart of a method of switching video windows according to another embodiment of the invention;
FIG. 3 is a flow chart of a method of switching video windows according to yet another embodiment of the invention;
FIG. 4 is a block diagram of an electronic device of one embodiment of the invention.
Reference numerals:
an electronic device 01;
a processor 10, a memory 20.
Detailed Description
Embodiments of the present invention will be described in detail below, the embodiments described with reference to the drawings being illustrative, and the embodiments of the present invention will be described in detail below.
In an Android TIF (Android TV Input frame) architecture, according to a standard flow, a full-screen television window and a navigation window are two independent playing flows. The window creation will start the tv play and the window hiding will stop the play. The navigation window and the full-screen window are two independent paths, however, only one set of hardware resources is provided at the bottom layer, so that according to the standard flow, one window needs to be released, and the next video window can be used. Thus, entering the TV app from the navigation window in the desktop UI of the android system, or returning from the TV app to the desktop UI of the android system, the video window will have a black screen display of about 1.5 seconds or more. Since it usually takes more than 1.5 seconds for the tv channel to start playing at the shortest time, this effect may affect the user experience and even may cause the system to operate unsmoothly.
In order to solve the above problems, embodiments of the present invention provide a method for switching a video window, which can shorten the time consumed for starting and playing a video when the video window is switched, avoid the phenomenon of a black screen, and improve the smoothness of system operation.
A method of switching video windows according to an embodiment of the present invention is described below with reference to fig. 1 to 3.
As shown in FIG. 1, the method for switching video windows according to an embodiment of the present invention includes steps S1-S4.
And S1, detecting a video window switching instruction.
In an embodiment, the video window switching instruction may include an instruction to switch from the navigation window to the full-screen window, an instruction to switch from the full-screen window to the navigation window, and the like.
And S2, releasing the non-sensory resource and continuing to play the sensory resource corresponding to the first playing path of the current video window.
In the embodiment of the invention, the non-sensory resources can be resources with smaller sensory influence on the user, such as subtitles, audio tracks and the like, the sensory resources can be resources with larger sensory influence on the user, such as videos, audios and the like, only the non-sensory resources are released and the sensory resources are continuously played in the process of releasing the first playing channel corresponding to the current video window, so that the sensory resources can be smoothly played to a greater extent, the experience of the user is ensured, and phenomena such as sudden screen blacking and the like cannot occur.
And S3, after the first playing path releases the non-sensory resource, the second playing path corresponding to the target video window recreates the non-sensory resource.
In an embodiment, when the current video window is switched to the target video window, the first play path corresponding to the current video window is released, and the second play path corresponding to the target video window is created at the same time. Since the non-sensory resource is released when the first playing channel is released, the second playing channel can re-create the non-sensory resource, and the non-sensory resource can be released by the first playing channel, and the non-sensory resource can be re-created by the second playing channel.
It can be understood that when the playing state of the player changes, the information will be actively thrown to the upper layer to the application of the corresponding video window, and when the playing state of the player does not change, the information will not be actively thrown to the upper layer. For example, when the playing state of the player is not changed, if the bottom player still continuously throws the state information to the upper layer, the situation that a prompt bar or a state reminder frequently appears in a target video window while the sensory resource is continuously played in the video playing process may affect the viewing experience of the user. In the process of switching the video windows in the prior art, as non-sensory resources and sensory resources are required to be released and reconstructed, the playing state of the player changes, in the process of reconstructing the sensory resources by the player, the player actively throws the change information of the playing state to the application of the corresponding target video window, and after the system reads the information, the playing of the video resources can be realized according to all the read information, which is equivalent to the process of creating the non-sensory resources and the sensory resources when the player is repeatedly played.
In the embodiment of the invention, in the process of recreating the non-sensory resource in the second playing channel, because new sensory resources do not need to be reconstructed, the playing state of the sensory resources is always kept unchanged by the bottom player, and when the video window is switched, the system can simulate the process of reconstructing the non-sensory resources when playing is started, and because the system needs to read the information of the change of the playing state of the player again when the non-sensory resources are reconstructed, the reconstruction of the non-sensory resources is completed. However, since the sensory resources are continuously played, the playing state of the bottom player is not changed, and the information of the change of the playing state of the sensory resources is not thrown to the upper layer, the system needs to actively read the state of the bottom player, and package the state information into a message to inform the application of the target video window corresponding to the second playing channel, thereby completing the reconstruction of the non-sensory resources, ensuring the normal display of interfaces such as a status bar and settings, and ensuring that the experience of sub-functions such as program information, subtitles, audio tracks and the like achieves the same effect as the previous process.
And S4, the second playing path acquires the sensory resource and plays the sensory resource and the reconstructed non-sensory resource in the target video window.
In the embodiment, the first playing path and the second playing path share a set of bottom layer hardware, and when the video window is switched, the first playing path only releases the non-sensory resource and continues to play the sensory resource, so that the player of the bottom layer sensory resource does not stop playing, and after the second playing path is established, the sensory resource does not need to be started again, and the sensory resource can be directly obtained and continues to play, namely the sensory resource which is not released when the first playing path is released and is played with the reconstructed non-sensory resource in the target video window, so that the consumed time for stopping and starting playing of the sensory resource can be reduced when the video window is switched, and the occurrence of a black screen is avoided. After the second playing path is created, it is only necessary to reconstruct non-perceptual resources, such as reset signal states, program information, subtitles, audio tracks, etc., and to transfer these states to the corresponding application, so as to ensure the normal use and display of each function of the television on the current window.
According to the method for switching the video window, when the video window is switched, the first playing channel releases the non-sensory resource and continues to play the sensory resource, the second playing channel continues to play the sensory resource of the original playing channel, only the non-sensory resource needs to be rebuilt, the continuous playing of the sensory resource is ensured, the time consumption of stopping and starting the playing of the sensory resource when the video window is switched can be reduced, the phenomena of black screen and the like can not occur by continuously playing the sensory resource in the process of switching the video window, the seamless switching effect is achieved, and the smoothness of system operation can not be influenced.
In the embodiment of the present invention, in the step S2, a specific implementation process of releasing the non-sensory resource and continuing to play the sensory resource in the first playing path corresponding to the current video window may be specifically described with reference to fig. 2, where a release flow of the first playing path at least includes steps S201 to S204.
S201, the first playing path enters a release state.
It can be understood that in a common android TIF architecture, when a video window or channel is switched, a play window is created or released, and a play path is correspondingly created or released. Therefore, in step S201, when the video window switching instruction is detected, the current video window is switched, and the corresponding first playing path starts to be released.
S202, obtaining sensory resources and non-sensory resources corresponding to the current video window.
Specifically, the video resources played by the current video window include sensory resources and non-sensory resources, when the current video window is switched, the first playing path starts to be released, the sensory resources and the non-sensory resources corresponding to the current video window can be acquired, and along with the release of the first playing path, the system can correspondingly control the playing states of the sensory resources and the non-sensory resources.
S203, detecting that the device is set to be in a window switching state.
Specifically, when the first playback path is released, it is detected that the device is set to the window switching state, and the states of the sensory resources and the non-sensory resources are maintained, created, or released according to a preset running program. For example, it is possible to control release of all sensory resources and non-sensory resources, or release of only non-sensory resources and no sensory resources.
S204, continuing to play the sensory resources and releasing the non-sensory resources.
In step S204, when the system detects that the device is in the window switching state immediately before releasing the non-sensory resource, the system releases the non-sensory resource according to the release flow in the normal mode, and when the system detects that the device is in the window switching state immediately before releasing the sensory resource, the system may ignore the window switching state and continue to maintain the playing state of the sensory resource.
In the embodiment of the invention, when the first playing channel is released, only non-sensory resources are required to be released, and no sensory resources are required to be released, so that the time for releasing and reconstructing the sensory resources is saved, the switching time of a video window can be shortened on the whole, the continuous playing of the sensory resources is realized, the TV playing state is not stopped, the problems of black screen and the like can be avoided, the seamless switching effect is achieved, the influence on the sensory of a user is reduced, and the user experience is greatly improved.
In the embodiment of the present invention, the device is set to the window switching state when detecting that the device is set to the window switching state, including detecting that the release state of the first playback path and the creation state of the second playback path coexist.
Specifically, in the process of switching the video window, the first playing path is released, the second playing path is created, at this time, the release state of the first playing path and the creation state of the second playing path coexist, and in the process of releasing the first playing path and creating the second playing path, the device is always set to be in the window switching state, and the state is always detected in the whole process, so that the control of releasing and reconstructing the non-sensory resources is realized.
In the embodiment of the invention, before a video window switching instruction is detected, a global variable is set, and when a current video window is started, a first play path is created. And assigning the first playing path to the global variable, and starting the current video window to play the video resources, wherein the video resources comprise sensory resources and non-sensory resources.
Specifically, a global variable is set before a video window switching instruction is detected, and the global variable is used for saving a newly created play path. Taking the example of switching from the navigation window to the full-screen window, the navigation window may be generally set as a small window, and the full-screen window may be generally set as a large window. When a user enters a desktop, a navigation window is started, a corresponding playing path is created at the same time, for example, a first playing path is created, the first playing path is assigned to a global variable, and the navigation window plays video resources. Video assets include sensory assets such as video and audio, and also include non-sensory assets such as subtitles, listeners, and audio tracks.
In the embodiment of the invention, after the video window switching instruction is detected, a second playing path is created, and the second playing path is assigned to the global variable.
In the above embodiment, taking the example of switching from the navigation window to the full-screen window, when the video window is switched, the video resource played in the navigation window is switched to be played by the full-screen window, the navigation window is switched while the corresponding first playing path is released, and when the navigation window is switched to be the full-screen window, a new playing path, for example, the second playing path, is correspondingly created. The system may control the second playback path to assign a value to the global variable while creating the second playback path.
In the embodiment of the present invention, detecting that the released state of the first playback path and the created state of the second playback path coexist includes detecting that the global variable is the second playback path, and determining that the released state of the first playback path and the created state of the second playback path coexist.
It can be understood that, in a common android TIF architecture, when a video window or a channel is switched, a play path is created or released correspondingly to the creation or release of a play window, and only one play path exists under the condition of stable play, so that in the process of switching the video window, an original play path needs to be released, a new play path needs to be created, and since the original play path cannot be released instantly, a certain release time is needed. Therefore, in the embodiment, when the second playback path is created, the first playback path is not released completely, so that in the process of switching the video window, there is a case where the released state of the first playback path and the created state of the second playback path coexist for a period of time.
Specifically, in the process of releasing the first playing path, when the system detects that the global variable is not equal to the first playing path, the system may set a "fast _ switch" state, which indicates that the device is in a window switching state, and in the whole process of switching the video window, the "fast _ switch" state may be continuously detected, so as to implement the purpose of keeping playing the sensory resource in the first playing path and releasing the non-sensory resource, and also implement the purpose of obtaining the sensory resource in the original first playing path and keeping playing in the second playing path, so that the new window only reconstructs the non-sensory resource by using the playing state of the old window. And after the second playing channel finishes reconstructing non-sensory resources, canceling the state of 'fast _ switch', and finishing switching the video window. In the whole switching process of the video window, only non-sensory resources are required to be released and rebuilt, and sensory resources are not required to be released and rebuilt, so that the time for releasing and rebuilding the sensory resources is saved, the switching time of the video window can be shortened on the whole, the continuous playing of the sensory resources is realized, the TV playing state is not stopped, the problems of black screen and the like are avoided, the seamless switching effect is achieved, the influence on the sensory of a user is reduced, and the user experience is greatly improved.
In the embodiment of the invention, the current video window is a navigation window of a navigation interface, and the target video window is a full-screen window. Or, the current video window is a full screen window, and the target video window is a navigation window of the navigation interface.
In an embodiment, the navigation window of the navigation interface may be generally set as a small window, and the full-screen window may be generally set as a large window, and in the process of switching the video window, the method for switching the video window provided above may be applied to switching from the navigation window to the full-screen window, and may also be applied to switching from the full-screen window to the navigation window. In the process of switching the video window, the system can refer to the control methods of each part in the process of switching the navigation window to the full-screen window in the above embodiments for the creating and releasing states of the two playing paths, the continuous playing of the sensory resources in the video resources, the reconstruction and releasing of the non-sensory resources, and the like, so as to achieve the effects of shortening the switching time of the video window and seamless switching.
In an embodiment of the invention, the sensory resources comprise video information and audio information, and the non-sensory resources comprise at least one of electronic program guide information, subtitle information, listener information.
It can be understood that, in a general situation, in a process of watching video playing by a user, most of senses of the user mainly come from video and audio, and electronic program guide information, subtitle information, listener information and the like have small influence on the senses of the user, so that in a process of switching a video window, the playing of the audio and the video is not stopped, only non-sensory resources are reset, the switching time of the video window is saved, and meanwhile, the experience of the user can be greatly guaranteed. However, during the switching of the video window, the user can continuously experience the video and audio contents, and since the non-sensory resource needs to be reset, if the control issues an instruction to adjust the program guide information, the subtitle information, the listener information, etc., before the switching state starts to the end of the switching state, the apparatus cannot execute the instruction.
Fig. 3 is a flowchart of a method for switching video windows according to another embodiment of the present invention, which is a flowchart of a method for switching video windows according to time settings, and includes steps S301 to S312.
S301, starting a current video window.
S302, a first playing path is created.
It can be understood that when a new video playing window is created, a playing path is correspondingly created.
S303, video playback is started. It is understood that the video resources played by the video playing window include sensory resources and non-sensory resources.
S304, the first playing path is playing.
S305, detecting a video window switching instruction, and creating a target video window.
In an embodiment, when the first playing channel is playing, a video window switching instruction is detected, and based on the video window switching instruction, a new video playing window needs to be created, and then the current video window is closed. For example, the navigation window of the navigation interface of the current video window, the target video window is a full-screen window, or the current video window is a full-screen window, the target video window is a navigation window of the navigation interface, or the current video window and the target video window may be two windows of other situations in the existing standard process player.
S306, the first playing path is released.
In the embodiment, after the video playing window is switched, the current video window is switched to the target video window, so that the first playing path corresponding to the current video window is released.
S307, a second playback path is created.
In the embodiment, after the video playing window is switched, the current video window is switched to the target video window, so that the second playing path corresponding to the target video window is created.
S308, the system detects whether two playing paths exist.
Specifically, when the second playback path is created, the first playback path is not released completely, so that there is a case where the released state of the first playback path and the created state of the second playback path coexist for a period of time during the switching of the video windows. In step S308, the system detects whether there are two playback paths, and can detect the "fast _ switch" status set by the system.
And S309, if the detection result in the step S308 is yes, the sensory resources are not required to be released, and the playing is continued.
Specifically, during the release of the first play path, both the non-sensory resource and the sensory resource will continue to detect the "fast _ switch" state. When the non-sensory resource detects that the current state is the 'fast _ switch', the release is carried out according to the release flow in the conventional mode, and when the sensory resource at the bottom layer detects that the current state is the 'fast _ switch', the message is ignored, and the playing state is continuously kept.
The time period of steps S306-S309 is the coexistence time of the first playback path and the second playback path.
And S310, the sensory resource is played in the second playing channel.
It can be understood that the sensory resource in step S309 continues to be played in the second playing path, and the whole video playing window switching process is not interrupted, so that the phenomenon of black screen does not occur, and the seamless switching effect is achieved.
And S311, the second playing channel does not need to rebuild the sensory resources.
Specifically, during the process of creating the second playback path, the "fast _ switch" state is also continuously detected, if the non-sensory resource detects that the current state is the "fast _ switch", the state is reconstructed according to the release flow in the normal mode, and when the sensory resource at the bottom layer detects that the current state is the "fast _ switch", it is determined that the reconstruction of the new sensory resource is not needed, and the original playback state is continuously maintained.
S312, the second playback path keeps playing.
And the first playing path is released completely, the second playing path is created completely, and the non-sensory resources are reconstructed, so that the system is in a stable playing state at the moment, only the second playing path exists, and the video resources including the sensory resources and the non-sensory resources are played in the second playing path simultaneously.
According to the method for switching the video window, only non-sensory resources are required to be released and rebuilt in the process of switching the video window, the sensory resources are not required to be released and rebuilt, the time for releasing and rebuilding the sensory resources is saved, the switching time of the video window can be shortened on the whole, the sensory resources are continuously played, the playing state of a TV is not stopped, the problems of black screen and the like are avoided, the seamless switching effect is achieved, the influence on the sensory of a user is reduced, and the user experience is greatly improved.
Fig. 4 shows an electronic device according to an embodiment of the present invention.
The electronic device 01 of the embodiment of the present invention includes at least one processor 10 and a memory 20, wherein the memory 20 is connected to the at least one processor 10. The memory 20 stores a computer program executable by the at least one processor 10, and the at least one processor 10 implements the method for switching video windows in the above embodiments when executing the computer program.
According to the electronic device 01 of the embodiment of the present invention, by running the main program in the memory 20, the collected state parameter information of the switched video window can be integrated and analyzed, and an instruction is sent to be executed by the processor 10, so that a method for switching the video window can be implemented, and the seamless switching effect can be achieved while reducing the time consumption for stopping and starting the playing.
For example, when the collected device is in the window switching state, the computer program in the memory 20 runs and sends an instruction to the processor 10, the processor 10 executes the instruction to control the first playing path to keep playing the sensory resources and release the non-sensory resources, and the second playing path can also be used for obtaining the sensory resources in the original first playing path and keeping playing, so that the new window only rebuilds the non-sensory resources by means of the playing state of the old window, thereby shortening the switching time of the video window, ensuring the playing state of the TV to be uninterrupted, achieving the effect of seamless switching, reducing the influence on the senses of the user, and greatly improving the user experience.
A storage medium of an embodiment of the present invention has a computer program stored thereon, and the computer program, when executed by a processor, implements the method for switching video windows in the above-described embodiments.
According to the storage medium of the embodiment of the invention, the stored computer program can be executed by the processor, the detection of the window switching state can be realized by acquiring the window switching state, the instruction which can be executed by the processor is sent out in a timely reaction manner, the state information of each part in the video playing process has memorability, the reaction is rapid, the reaction time can be effectively shortened, and the intelligent operation of the method for controlling and switching the video window is ensured.
Other configurations and operations of electronic devices according to embodiments of the present invention are known to those of ordinary skill in the art and will not be described in detail herein.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (10)

1. A method for switching video windows, the method comprising:
detecting a video window switching instruction;
releasing non-sensory resources and continuously playing sensory resources by a first playing channel corresponding to the current video window;
after the first playing channel releases the non-sensory resource, a second playing channel corresponding to a target video window recreates the non-sensory resource;
and the second playing channel acquires the sensory resource and plays the sensory resource and the reconstructed non-sensory resource in the target video window.
2. The method for switching video windows according to claim 1, wherein the first playing path corresponding to the current video window releases the non-sensory resource and continues to play the sensory resource, comprising:
the first playing channel enters a release state;
obtaining sensory resources and non-sensory resources corresponding to a current video window;
detecting that the equipment is set to a window switching state;
and continuously keeping playing the sensory resources and releasing the non-sensory resources.
3. The method for switching video windows according to claim 2, wherein detecting that the device is set to the window switching state comprises:
and if the release state of the first playing channel and the creation state of the second playing channel are detected to coexist, setting the equipment to be in the window switching state.
4. The method of switching video windows according to claim 3, wherein before detecting a video window switching instruction, the method further comprises:
setting a global variable;
when a current video window is started, a first play path is created;
and assigning the first playing path to the global variable, and starting a current video window to play video resources, wherein the video resources comprise the sensory resources and the non-sensory resources.
5. The method of switching video windows according to claim 4, wherein after detecting the video window switching instruction, the method further comprises:
and creating the second playing path, and assigning the second playing path to the global variable.
6. The method of claim 5, wherein detecting the coexistence of the release state of the first playback path and the creation state of the second playback path comprises:
and if the global variable is detected to be the second playing path, determining that the release state of the first playing path and the creation state of the second playing path coexist.
7. The method for switching video windows according to any of claims 1 to 6,
the current video window is a navigation window of a navigation interface, and the target video window is a full-screen window;
or, the current video window is a full screen window, and the target video window is a navigation window of a navigation interface.
8. The method for switching video windows according to any of claims 1 to 6,
the sensory resources comprise video information and audio information;
the non-sensory resource includes at least one of electronic program guide information, subtitle information, and listener information.
9. An electronic device, comprising:
at least one processor;
a memory coupled to at least one of the processors;
wherein the memory stores a computer program executable by at least one of the processors, and the at least one of the processors implements the method for switching video windows according to any one of claims 1 to 8 when executing the computer program.
10. A storage medium having stored thereon a computer program which, when executed by a processor, implements the method of switching video windows of any of claims 1-8.
CN202110005158.8A 2021-01-05 2021-01-05 Method for switching video window, electronic equipment and storage medium Pending CN112333525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110005158.8A CN112333525A (en) 2021-01-05 2021-01-05 Method for switching video window, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110005158.8A CN112333525A (en) 2021-01-05 2021-01-05 Method for switching video window, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112333525A true CN112333525A (en) 2021-02-05

Family

ID=74302122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110005158.8A Pending CN112333525A (en) 2021-01-05 2021-01-05 Method for switching video window, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112333525A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302172A (en) * 2021-12-28 2022-04-08 威创集团股份有限公司 Seamless switching method, distributed splicing system, storage medium and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847996A (en) * 2016-05-25 2016-08-10 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN108449638A (en) * 2018-03-15 2018-08-24 广州虎牙信息科技有限公司 A kind of method, apparatus and electronic equipment playing advertisement
CN110149544A (en) * 2018-02-13 2019-08-20 阿里巴巴集团控股有限公司 The method, apparatus and storage medium of video playing
CN110582017A (en) * 2019-09-10 2019-12-17 腾讯科技(深圳)有限公司 video playing method, device, terminal and storage medium
CN111083507A (en) * 2019-12-09 2020-04-28 广州酷狗计算机科技有限公司 Method and system for connecting to wheat, first main broadcasting terminal, audience terminal and computer storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105847996A (en) * 2016-05-25 2016-08-10 腾讯科技(深圳)有限公司 Video playing method and apparatus
CN110149544A (en) * 2018-02-13 2019-08-20 阿里巴巴集团控股有限公司 The method, apparatus and storage medium of video playing
CN108449638A (en) * 2018-03-15 2018-08-24 广州虎牙信息科技有限公司 A kind of method, apparatus and electronic equipment playing advertisement
CN110582017A (en) * 2019-09-10 2019-12-17 腾讯科技(深圳)有限公司 video playing method, device, terminal and storage medium
CN111083507A (en) * 2019-12-09 2020-04-28 广州酷狗计算机科技有限公司 Method and system for connecting to wheat, first main broadcasting terminal, audience terminal and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114302172A (en) * 2021-12-28 2022-04-08 威创集团股份有限公司 Seamless switching method, distributed splicing system, storage medium and computer equipment
CN114302172B (en) * 2021-12-28 2023-08-18 威创集团股份有限公司 Seamless switching method, distributed splicing system, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
US7292769B2 (en) Recording and reproducing apparatus and method
US8472779B2 (en) Concurrently displaying multiple trick streams for video
US8166398B2 (en) Method and system for dynamically displaying a control bar of a multimedia player
US20140337737A1 (en) Method And System For Automatically Associating A Cursor with A Hotspot In A Hypervideo Stream Using A Visual Indicator
US8856652B2 (en) Information storage medium containing interactive graphics stream for change of AV data reproducing state, and reproducing method and apparatus thereof
US8244099B2 (en) Picture reproducing apparatus and method, recording medium, and picture reproducing program
JP2011211481A (en) Video/audio player
JP2008113443A (en) Broadcast reproducing method and broadcast receiving terminal executing the same
CN112333525A (en) Method for switching video window, electronic equipment and storage medium
CN107820127B (en) Video switching method based on multi-channel decoding
CN114356155A (en) Video-based interaction method, device, equipment and storage medium
JP4902669B2 (en) REPRODUCTION DEVICE, CONTROL PROGRAM, RECORDING MEDIUM, AND CONTROL METHOD FOR REPRODUCING CONTENT
US10862946B1 (en) Media player supporting streaming protocol libraries for different media applications on a computer system
US11284153B2 (en) Display apparatus and method for displaying VOD update information in electronic program guide
CN115150667B (en) Display device and advertisement playing method
CN115119022B (en) Control method for skipping video advertisements and display equipment
CN115052176B (en) Display equipment and display control method
CN115086722B (en) Display method and display device for secondary screen content
CN108037683A (en) Onboard system recovers the method and onboard system of application program running state
JP2007193627A (en) Image recording and reproducing apparatus and method for controlling startup image
JP2008182568A (en) Recording and reproducing compound machine
CN117615199A (en) Subtitle display method and display equipment
US20090022482A1 (en) Optical disc reproducing apparatus
KR20070092910A (en) Method for preventing burn-in phenomenon of display device
JP2010183596A (en) Video recording/reproducing device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210205