Display device, video switching method, device and storage medium

By maintaining the decoding and display of the current video source during video switching, and downloading and parsing the next video source in the background, the video switching time and black screen problems are solved, and seamless switching and a better user experience is achieved.

CN115225955BActive Publication Date: 2024-11-22HISENSE VISUAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110410396.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-16
Publication Date
2024-11-22
Estimated Expiration
2041-04-16

AI Technical Summary

Technical Problem

In the prior art, the video switching process takes a long time, and there is a black screen on the TV product when the current video is stopped, resulting in a poor user experience.

Method used

When receiving a video switching request, the controller maintains the decoding and display of the current video source, downloads and parses the next video source in the background, and stops the decoding and display of the current video source until the demultiplexing is completed, realizing the video seamless switching between.

Benefits of technology

Speed ​​up the video switching speed, avoid black screen phenomenon, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115225955B_ABST
    Figure CN115225955B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a display device, a video switching method, an apparatus and a storage medium, wherein the display device comprises: a display; a controller, configured to: in response to a trigger operation for requesting video switching, download and parse the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display; demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source; and playing the next video source according to the demultiplexed data. The present application can solve the problem that the process of switching videos in the prior art takes a relatively long time, and there is a black screen phenomenon on the TV product, which leads to a poor user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of video processing technology, and in particular to a display device, a video switching method, an apparatus, and a storage medium. Background Art

[0002] Smart TVs can provide users with a variety of service types. Through smart TVs, such as players, users can watch different videos. Among them, the player (playing tool) refers to software that can be used to read video or audio files stored in the form of digital signals. With the enhancement of player functions, the application of players is becoming more and more extensive.

[0003] Taking the application of the player in the Android system as an example, when playing a video, the Android system usually goes through operations such as initializing the player, setting the video path, parsing the video file information, and starting the player. If you want to switch to (i.e. play) the next video, you need to stop the current video, and then go through operations such as setting the video path, parsing the video file information, and starting the player. The whole process takes a relatively long time, and when the current video is stopped, a black screen will appear on the TV product, resulting in a poor user experience. Summary of the invention

[0004] The embodiments of the present application provide a display device, a video switching method, an apparatus and a storage medium to solve the problem in the prior art that the process of switching videos takes a relatively long time and there is a black screen phenomenon on the television product, which leads to a poor user experience.

[0005] In a first aspect, an embodiment of the present application provides a display device, including:

[0006] monitor;

[0007] The controller is configured as:

[0008] In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display;

[0009] Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source;

[0010] The next video source is played according to the demultiplexed data.

[0011] In some embodiments, the controller is specifically configured to:

[0012] In response to a trigger operation for requesting a video switch, determining an address of the next video source;

[0013] According to the address of the next video source, the next video source is downloaded and parsed while the decoding and display operations of the current video source are maintained.

[0014] In some embodiments, the controller includes a download and protocol parsing module, a demultiplexing module, and a decoder;

[0015] The controller is further configured to asynchronously process the downloading and protocol parsing operations of the downloading and protocol parsing module, the demultiplexing operation of the demultiplexing module, and the decoding operation of the decoder.

[0016] In some embodiments, the controller is further configured to:

[0017] Before downloading and parsing the next video source for which video switching is requested, controlling the download and protocol parsing module to stop operating the current video source and release resources of the protocol parsing module;

[0018] The demultiplexing module is controlled to stop operating the current video source and release the resources of the demultiplexing module.

[0019] In some embodiments, the controller is specifically configured to:

[0020] Initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data;

[0021] After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

[0022] In some embodiments, the controller is further specifically configured to:

[0023] The demultiplexed data is decoded by the decoder to play the next video source.

[0024] In a second aspect, an embodiment of the present application provides a video switching method, including:

[0025] In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding and displaying the current video source;

[0026] Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source;

[0027] The next video source is played according to the demultiplexed data.

[0028] In a third aspect, an embodiment of the present application provides a video switching device, the device comprising:

[0029] A first processing module, for responding to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding and displaying the current video source;

[0030] The second processing module is used to demultiplex the next video source to obtain demultiplexed data and stop decoding and displaying the current video source;

[0031] The third processing module is used to play the next video source according to the demultiplexed data.

[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a display adjustment program is stored. When the display adjustment program is executed by a processor, the steps of the video switching method described in the second aspect are implemented.

[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the video switching method described in the second aspect above.

[0034] The display device, video switching method, apparatus, and storage medium provided in the present embodiment respond to the trigger operation for requesting video switching through the controller, download and parse the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display, thereby realizing the parallel processing logic of continuing to play the current video source and downloading and parse the protocol of the next video source at the same time, without stopping the current player, and then demultiplexing the next video source to obtain the demultiplexed data, and stopping the decoding and display of the current video source, and playing the next video source, thereby realizing seamless switching between the two videos. Moreover, since the next video can be started without stopping the current player, the starting speed of the next video is accelerated. Therefore, the problem of the relatively long time-consuming process of switching videos in the prior art and the problem of a black screen on the television product due to the need to release the decoder used by the current player during the process of stopping the current video playback is solved, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 is a schematic diagram of a usage scenario of a display device according to an embodiment;

[0037] Figure 2 is a block diagram of a hardware configuration of a control device 100 according to some embodiments;

[0038] Figure 3 is a block diagram of a hardware configuration of a display device 200 according to some embodiments;

[0039] Figure 4 is a diagram of software configuration in the display device 200 according to some embodiments;

[0040] Figure 5A A schematic diagram of a process of playing the next video in the prior art;

[0041] Figure 5B It is a schematic diagram of a process of stopping playback of a player in the prior art;

[0042] Figure 6 A schematic diagram of a flow chart of a video switching method provided in an embodiment of the present application;

[0043] Figure 7 A block diagram of a player provided in this embodiment;

[0044] Figure 8 An application scenario diagram of the video switching method provided in this application;

[0045] Fig. 9 A flowchart of a video switching method provided in yet another embodiment of the present application. DETAILED DESCRIPTION

[0046] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0047] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0048] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0049] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0050] 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 functions associated with that element.

[0051] Figure 1 Schematic diagram of a usage scenario of a display device according to an embodiment. Figure 1 As shown, the display device 200 also performs data communication with the server 400 , and the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0052] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and at least one of other short-range communication methods, to control the display device 200 wirelessly or wired. The user may control the display device 200 by inputting user commands through at least one of buttons on the remote controller, voice input, and control panel input.

[0053] In some embodiments, the smart device 300 may include any one of a mobile terminal, a tablet computer, a computer, a laptop computer, an AR / VR device, etc.

[0054] In some embodiments, the smart device 300 may also be used to control the display device 200. For example, the display device 200 may be controlled using an application running on the smart device.

[0055] In some embodiments, the smart device 300 and the display device may also be used to communicate data.

[0056] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0057] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0058] In some embodiments, the software steps executed by a step execution subject can be migrated to another step execution subject in data communication with it as needed for execution. Exemplarily, the software steps executed by a server can be migrated to a display device in data communication with it as needed for execution, and vice versa.

[0059] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, 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 device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.

[0060] In some embodiments, the communication interface 130 is used for communicating with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module.

[0061] In some embodiments, the user input / output interface 140 includes at least one of a microphone, a touch pad, a sensor, a button, or alternative modules.

[0062] Figure 3 A hardware configuration block diagram of a display device 200 according to an exemplary embodiment is shown.

[0063] In some embodiments, the display apparatus 200 includes at least one of a tuner 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.

[0064] In some embodiments, the controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.

[0065] In some embodiments, the display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from a controller, display video content, image content, and a menu control interface component and a user control UI interface, etc.

[0066] In some embodiments, the display 260 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.

[0067] In some embodiments, the tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0068] In some embodiments, the communicator 220 is a component for communicating with an external device or server 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 device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.

[0069] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0070] In some embodiments, the external device interface 240 may include, but is not limited to, any one or more of the following: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0071] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 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.

[0072] 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 the memory. The controller 250 controls the overall operation of the display device 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 can perform operations related to the object selected by the user command.

[0073] In some embodiments, the object may be any one of the selectable objects, such as a hyperlink, an icon or other operable controls. Operations related to the selected object include: displaying a page, document, image, etc. connected to the hyperlink, or executing a program corresponding to the icon.

[0074] In some embodiments, the controller includes a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), RAM Random Access Memory (RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.

[0075] CPU processor. Used to execute operating system and application instructions stored in the memory, and to execute various applications, data and content according to various interactive instructions received from external input, so as to finally display and play various audio and video content. CPU processor may include multiple processors. For example, it includes a main processor and one or more sub-processors.

[0076] In some embodiments, the graphics processor is used to generate various graphic objects, such as at least one of icons, operation menus, and user input command display graphics. The graphics processor includes an operator, which performs operations by receiving various interactive instructions input by the user and displays various objects according to display attributes; and a renderer, which renders various objects obtained based on the operator, and the rendered objects are used to be displayed on the display.

[0077] In some embodiments, the video processor is used to receive an external video signal and perform at least one of the following video processing operations, 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, to obtain a signal that can be directly displayed or played on the display device 200.

[0078] In some embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, and a display formatting module. The demultiplexing module is used to demultiplex the input audio and video data stream. The video decoding module is used to process the demultiplexed video signal, including decoding and scaling. The image synthesis module, such as an image synthesizer, is used to superimpose and mix the GUI signal generated by the graphics generator according to the user input or itself with the scaled video image to generate an image signal for display. The frame rate conversion module is used to convert the input video frame rate. The display formatting module is used to receive the video output signal after frame rate conversion and change the signal to conform to the display format signal, such as outputting an RGB data signal.

[0079] In some embodiments, the audio processor is used to receive an external audio signal, perform decompression and decoding according to a standard codec protocol of the input signal, and perform at least one of noise reduction, digital-to-analog conversion, and amplification processing to obtain a sound signal that can be played in a speaker.

[0080] In some embodiments, the user may input a user command in a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a 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 a sensor.

[0081] In some embodiments, "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on a display screen of an electronic device, wherein a control may include at least one of icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0082] In some embodiments, the user interface 280 is an interface that can be used to receive control input (such as a physical button on the display device body, or other interfaces).

[0083] In some embodiments, the system of the display device may include a kernel, a command parser (shell), a file system, and an application. The kernel, shell, and file system together constitute the basic operating system structure, which allows users to manage files, run programs, and use the system. After power-on, the kernel starts, activates the kernel space, abstracts hardware, initializes hardware parameters, etc., runs and maintains virtual memory, schedulers, signals, and inter-process communication (IPC). After the kernel starts, the shell and user applications are loaded. After startup, the application is compiled into machine code to form a process.

[0084] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0085] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0086] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0087] like Figure 4As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.

[0088] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).

[0089] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0090] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0091] At present, when playing videos, the Android system usually needs to go through operations such as initializing the player, setting the video path, parsing the video file information, and starting the player. If you want to switch to (i.e. play) the next video, you need to stop the current video, and then go through operations such as setting the video path, parsing the video file information, and starting the player. The whole process takes a relatively long time, and when the current video is stopped, a black screen will appear on the TV product, resulting in a poor user experience.

[0092] Combination Figure 5AThe flowchart of playing the next video in the prior art is shown in FIG. First, stop the current video playback, then set the next video address, prepare to play and obtain media information, then initialize the decoder and configure the decoder, and finally the player starts playing the next video. The operation of stopping the current video playback can be seen in FIG. Figure 5B The flowchart of the player stopping playing is shown in FIG.

[0093] Specifically, first stop downloading and protocol parsing (i.e. stop the download and protocol parsing modules in the player from downloading and parsing the current video), stop demultiplexing (i.e. stop the demultiplexing module in the player from demultiplexing the current video), stop decoding (i.e. stop the decoder in the player from decoding the current video), then release the decoder, and then release other player resources. Different applications may have slight differences in the above logic implementation, but there will be a process of stopping the protocol parsing module, stopping the demultiplexing module, and releasing the decoder. However, releasing the decoder, and Figure 5A The process of initializing the decoder and configuring it will cause a brief black screen on some platforms. Figure 5A The preparation process in the second play requires re-downloading the video to be played for the second time, and Figure 5B To stop the current video playback, it is necessary to stop each module of the player. The two are serial and will take a certain amount of time. Therefore, the whole process takes a long time.

[0094] Therefore, in order to solve the above problems, the technical concept of this application is to change the processing logic of the player from serial to parallel processing through the controller when the film source is switched, that is, the foreground is decoding and displaying the first film source, but the background has downloaded and parsed the second film source, but the decoder does not stop until the demultiplexing module gets the data of the next film source, clears the current cache data of the decoder, and sends the data of the next film source for decoding and display, that is, playing the next film source. This realizes a solution that the next video can be started without stopping the current player, speeds up the start speed of the next video, and can achieve seamless switching between two videos, thereby improving user experience.

[0095] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0096] Combination Figures 1 to 4 As shown, the present application provides a display device, including: a display;

[0097] The controller is configured as:

[0098] In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display;

[0099] Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source;

[0100] The next video source is played according to the demultiplexed data.

[0101] In this embodiment, the display device is a television device as an example. The user can use a remote control or a smart terminal (such as a smart phone) to control the television device to play the next video (the video here refers to the video source), or the television device can automatically switch to the next video when the current video is about to be played. When the next video needs to be played, the television device notifies the player to start processing after receiving the instruction for playing the next video.

[0102] Specifically, after receiving the trigger operation for requesting video switching, the controller in the television device starts downloading and parsing the protocol of the next video source, reading the data of the next video source, and at the same time, does not stop the decoder's decoding operation on the current video to ensure that the current video continues to play.

[0103] In actual applications, when the film source is switched, the processing logic of the installed player is changed from serial to parallel processing through the controller, that is, the foreground is decoding and displaying the first film source, but the background has already downloaded and parsed the second film source.

[0104] After reading the data of the next video source, the demultiplexing module demultiplexes the next video source to obtain the demultiplexed data. The multiplexing / demultiplexing technology here is to aggregate the data on multiple transport connections to one network connection for transmission, so that a network with high throughput, high speed, low transmission delay and high cost can support the user's requirements for low transmission costs. The purpose is to separate different audio and video streams from the audio and video signal source; in addition, demultiplexing is generally an active operation, that is, taking it out from the audio and video signal source.

[0105] Among them, after obtaining the demultiplexed data, the decoding and display of the current video source are stopped, and then the next video is seamlessly switched.

[0106] Based on the demultiplexing module, the demultiplexed data obtained by demultiplexing the next video source is output through the subtitle output module, the video output module and the audio output module to achieve the purpose of playing the next video source.

[0107] The display device provided in this embodiment includes a display and a controller. The controller responds to a trigger operation for requesting video switching, downloads and parses the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display, thereby realizing the parallel processing logic of continuing to play the current video source and downloading and parsing the protocol of the next video source at the same time, without stopping the current player, and then demultiplexing the next video source to obtain the demultiplexed data, and stopping the decoding and displaying of the current video source, and playing the next video source, thereby realizing seamless switching between the two videos. Moreover, since the next video can be started without stopping the current player, the starting speed of the next video is accelerated. Therefore, the problem of the relatively long time-consuming process of switching videos in the prior art and the problem of a black screen on the television product due to the need to release the decoder used by the current player during the process of stopping the current video playback is solved, thereby improving the user experience.

[0108] In some embodiments, the controller is specifically configured to:

[0109] In response to a trigger operation for requesting a video switch, determining an address of the next video source;

[0110] According to the address of the next video source, the next video source is downloaded and parsed while the decoding and display operations of the current video source are maintained.

[0111] In this embodiment, after the controller receives a trigger operation for requesting video switching, it first determines the address of the next video source, and then based on the pre-set address of the next source, downloads and performs protocol analysis on the next video source, and reads the data of the next video source. At the same time, the decoder does not stop the decoding operation of the current video to ensure that the current video continues to play.

[0112] In some embodiments, the controller includes a download and protocol parsing module, a demultiplexing module, and a decoder;

[0113] The controller is further configured to asynchronously process the downloading and protocol parsing operations of the downloading and protocol parsing module, the demultiplexing operation of the demultiplexing module, and the decoding operation of the decoder.

[0114] In this embodiment, the download and protocol parsing and demultiplexing modules in the controller are asynchronously processed with the decoding module. When playing the next source, the download and protocol parsing module and the demultiplexing module stop operating the current source (i.e., the current video source) and release related resources, and then download and parse the next source (i.e., the next video source), but the decoder does not stop, that is, it continues to play the current video source.

[0115] In some embodiments, the controller is further configured to:

[0116] Before downloading and parsing the next video source for which video switching is requested, controlling the download and protocol parsing module to stop operating the current video source and release resources of the protocol parsing module;

[0117] The demultiplexing module is controlled to stop operating the current video source and release the resources of the demultiplexing module.

[0118] In this embodiment, after receiving the trigger operation for requesting video switching, the controller first determines the address of the next video source, and at the same time, the player in the controller automatically stops the download and protocol parsing modules and releases resources, stops the demultiplexing module and releases resources, and does not stop the operation of the decoder. Then, the next source is downloaded and parsed.

[0119] Therefore, the download and protocol parsing module, the demultiplexing module, and the decoding module (ie, decoder) are processed asynchronously, which saves time in the entire video switching process and is less time-consuming.

[0120] In some embodiments, the controller is specifically configured to:

[0121] Initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data;

[0122] After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

[0123] In this embodiment, after the next film source is downloaded and the protocol is parsed, the demultiplexing module is initialized so that the demultiplexing module demultiplexes the next film source until the demultiplexing module obtains the data of the next film source, that is, the demultiplexed data, and then clears the current cache of the decoder, that is, stops the decoding operation of the current video.

[0124] In some embodiments, the controller is further specifically configured to:

[0125] The demultiplexed data is decoded by the decoder to play the next video source.

[0126] In this embodiment, after the demultiplexing module obtains the data of the next film source, the data of the next film source is sent to the decoder, and the decoder decodes the data of the next film source and displays it.

[0127] Figure 6 The flowchart of the video switching method provided in the embodiment of the present application is shown in FIG. Figure 6 As shown, the method may include:

[0128] S601: In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching while maintaining the decoding and display operations of the current video source.

[0129] The following uses a TV device with a player installed as an example to explain in detail how to achieve seamless switching between videos on the TV device.

[0130] In this embodiment, the user can use a remote control or a smart terminal (such as a smart phone) to control the TV device to play the next video (the video here refers to the video source), or the TV device can automatically switch to the next video when the current video is about to be played. When the next video needs to be played, the TV device notifies the player to start processing after receiving the instruction for playing the next video.

[0131] Specifically, after receiving the trigger operation for requesting video switching, the television device starts downloading and parsing the protocol of the next video source, reading the data of the next video source, and at the same time, does not stop the decoder from decoding the current video to ensure that the current video continues to play.

[0132] In actual applications, when the video source is switched, the processing logic of the player is changed from serial to parallel processing, that is, the foreground is decoding and displaying the first video source, but the background has already downloaded and parsed the second video source.

[0133] S602: Demultiplex the next video source to obtain demultiplexed data, and stop decoding and displaying the current video source.

[0134] In this embodiment, after reading the data of the next video source, the next video source is demultiplexed by the demultiplexing module to obtain the demultiplexed data. The multiplexing / demultiplexing technology here is to aggregate the data on multiple transport connections to one network connection for transmission, so that a network with high throughput, high rate, low transmission delay and high cost can support the user's requirements for low transmission costs. The purpose is to divert different audio and video streams from the audio and video signal source; in addition, demultiplexing is generally an active operation, that is, taking it out from the audio and video signal source.

[0135] Among them, after obtaining the demultiplexed data, the decoding and display of the current video source are stopped, and then the next video is seamlessly switched.

[0136] S603: Play the next video source according to the demultiplexed data.

[0137] In this embodiment, based on the demultiplexed data obtained by demultiplexing the next video source by the demultiplexing module, the subtitles, video and audio are output through the subtitle output module, the video output module and the audio output module to achieve the purpose of playing the next video source.

[0138] The video switching method provided in this embodiment first responds to the trigger operation for requesting video switching, downloads and parses the protocol of the next video source for requesting video switching, while maintaining the decoding and display operations of the current video source, thereby realizing the parallel processing logic of continuing to play the current video source and downloading and parsing the protocol of the next video source at the same time, without stopping the current player, and then demultiplexing the next video source to obtain the demultiplexed data, and stopping the decoding and display of the current video source, and playing the next video source, thereby realizing seamless switching between the two videos. Furthermore, since the next video can be started without stopping the current player, the starting speed of the next video is accelerated. Therefore, the problem of the relatively long time-consuming process of switching videos in the prior art and the problem of a black screen on the television product due to the need to release the decoder used by the current player during the process of stopping the current video playback is solved, thereby improving the user experience.

[0139] Among them, see Figure 7 The block diagram of the player provided by the present embodiment is shown. The player may include: a source data reading module, a demultiplexing module, a video parsing module, an audio parsing module, a subtitle parsing module, a subtitle decoding module, a video parsing module, an audio decoding module, a subtitle output module, a video output module, and an audio output module. Therefore, the player at least includes a download and protocol parsing module, a demultiplexing module, and a decoder.

[0140] For example, the display device 200 is a television device, and the control device 100 is a remote controller. Figure 8 As shown, Figure 8 This is an application scenario diagram of the video switching method provided in this application.

[0141] Take the interaction between a user and a television device, and take the example of a user using a remote control to control the television device to play the next video. When the user uses the remote control to control the television device to play the next video, an instruction for indicating the play of the next video source, namely a video switching instruction, is sent to the television device through the remote control. When the television device receives the instruction, it first obtains the address of the next source of the device, then stops the download and protocol parsing modules in the player from operating the current video source and releasing resources, and at the same time stops the demultiplexing module in the player from operating the current video source and releasing resources, and then downloads and parses the protocol of the next video source. However, the decoder in the player does not stop working, and continues to decode and display the current video source. Then, the demultiplexing module is initialized to demultiplex the next video source until the demultiplexing module obtains the data of the next source, clears the current cached data of the decoder, and sends the data of the next video source to the decoder for decoding and display.

[0142] Therefore, the present application provides a video switching method. When the film source is switched, the processing logic of the player is changed from serial to parallel processing. While downloading and parsing the next film source, the decoder does not stop until the demultiplexing module obtains the data of the next film source, clears the current cache data of the decoder, and sends the data of the next film source for decoding and display. The next video can be started without stopping the current player, which speeds up the start of the next video. Since there is no need to release the decoder used by the current player, there will be no black screen on the TV product, and seamless switching between the two videos can be achieved, thereby improving the user experience.

[0143] In some embodiments, this embodiment describes S601 in detail based on the above embodiment. In response to the trigger operation for requesting video switching, downloading and parsing the next video source for requesting video switching while maintaining the decoding and display of the current video source can be achieved by the following steps:

[0144] Step a1: In response to a trigger operation for requesting video switching, determine the address of the next video source.

[0145] Step a2: downloading and parsing the next video source according to the address of the next video source, while maintaining the decoding and display operations of the current video source.

[0146] In this embodiment, after the television device receives a trigger operation for requesting video switching, it first determines the address of the next video source, and then based on the pre-set address of the next source, downloads and performs protocol analysis on the next video source, and reads the data of the next video source. At the same time, the decoder does not stop the decoding operation of the current video to ensure that the current video continues to play.

[0147] In some embodiments, before downloading and parsing the next video source, it is necessary to stop certain modules in the player from operating the current video to release resources and re-enable these modules to operate the next video. The player may include: a download and protocol parsing module, a demultiplexing module, and a decoder. This embodiment describes the video switching method in detail based on the above embodiment. The video switching method can also be implemented by the following steps:

[0148] The downloading and protocol parsing operations of the downloading and protocol parsing module, the demultiplexing operation of the demultiplexing module, and the decoding operation of the decoder are processed asynchronously.

[0149] Specifically, the download and protocol parsing, demultiplexing module and the decoding module are processed asynchronously. When playing the next source, the download and protocol parsing module and the demultiplexing module stop the operation of the current source (i.e. the current video source) and release the related resources, and then download and parse the next source (i.e. the next video source), but the decoder does not stop, that is, it continues to play the current video source.

[0150] In some embodiments, how to implement asynchronous processing can be implemented through the following steps:

[0151] Step b1: before downloading and parsing the next video source for which video switching is requested, control the download and protocol parsing module to stop operating on the current video source and release the resources of the protocol parsing module.

[0152] Step b2: Control the demultiplexing module to stop operating the current video source and release the resources of the demultiplexing module.

[0153] In this embodiment, after receiving the trigger operation for requesting video switching, the TV device first determines the address of the next video source, and at the same time, the player in the TV device automatically stops the download and protocol parsing modules and releases resources, stops the demultiplexing module and releases resources, and does not stop the operation of the decoder. Then, the next source is downloaded and parsed.

[0154] Therefore, the download and protocol parsing module, the demultiplexing module, and the decoding module (ie, decoder) are processed asynchronously, which saves time in the entire video switching process and is less time-consuming.

[0155] In some embodiments, this embodiment describes S602 in detail based on the above embodiment. Demultiplexing the next video source to obtain demultiplexed data and stopping decoding and displaying the current video source can be achieved by the following steps:

[0156] Step c1, initializing the demultiplexing module, demultiplexing the next video source, and obtaining demultiplexed data.

[0157] Step c2: after determining that the demultiplexed data is obtained, clear the current buffer of the decoder to stop decoding and displaying the current video source.

[0158] In this embodiment, after the next film source is downloaded and the protocol is parsed, the demultiplexing module is initialized so that the demultiplexing module demultiplexes the next film source until the demultiplexing module obtains the data of the next film source, that is, the demultiplexed data, and then clears the current cache of the decoder, that is, stops the decoding operation of the current video.

[0159] In some embodiments, this embodiment provides a detailed description of S603 based on the above embodiment. Playing the next video source according to the demultiplexed data can be achieved by the following steps:

[0160] The demultiplexed data is decoded by the decoder to play the next video source.

[0161] In this embodiment, after the demultiplexing module obtains the data of the next film source, the data of the next film source is sent to the decoder, and the decoder decodes the data of the next film source and displays it.

[0162] Specifically, see Fig. 9 As shown, Fig. 9 A flowchart of a video switching method provided for another embodiment of the present application. The video switching process is as follows: after the television device receives a trigger operation for requesting video switching, it first determines the address of the next video source, and at the same time, the player in the television device automatically stops the download and protocol parsing modules and releases resources, stops the demultiplexing module and releases resources, and does not stop the operation of the decoder. Then, the next source is downloaded and the protocol is parsed, and then the demultiplexing module is initialized, so that the demultiplexing module demultiplexes the next source, until the demultiplexing module obtains the data of the next source, clears the current cache of the decoder, and sends the data of the next source to the decoder for decoding and display.

[0163] The present application, by responding to a trigger operation for requesting video switching, downloads and performs protocol parsing on the next video source for requesting video switching while maintaining the decoding and displaying operations on the current video source, thereby realizing the parallel processing logic of continuing to play the current video source and downloading and performing protocol parsing on the next video source at the same time, without stopping the current player, and then demultiplexing the next video source to obtain the demultiplexed data, and stopping decoding and displaying the current video source, and playing the next video source, thereby realizing seamless switching between the two videos. Furthermore, since the next video can be started without stopping the current player, the starting speed of the next video is accelerated. Therefore, the problem of the relatively long time-consuming process of switching videos in the prior art and the problem of a black screen on the television product due to the need to release the decoder used by the current player during the process of stopping the current video playback is solved, thereby improving the user experience.

[0164] Corresponding to the video switching method of the above embodiment, the structural schematic diagram of the video switching device provided by the embodiment of the present application. For the convenience of explanation, only the parts related to the embodiment of the present application are shown. The video switching device includes: a first processing module, a second processing module, and a third processing module; the first processing module is used to respond to the trigger operation for requesting video switching, download and parse the protocol of the next video source requesting video switching, while maintaining the operation of decoding and displaying the current video source; the second processing module is used to demultiplex the next video source, obtain the demultiplexed data, and stop decoding and displaying the current video source; the third processing module is used to play the next video source according to the demultiplexed data.

[0165] The video switching device provided in this embodiment is configured with a first processing module, a second processing module, and a third processing module, which are used to respond to a trigger operation for requesting video switching, download and parse the protocol of the next video source for requesting video switching, while maintaining the decoding and display operations of the current video source, thereby realizing the parallel processing logic of continuing to play the current video source and downloading and parsing the protocol of the next video source at the same time, without stopping the current player, and then demultiplexing the next video source to obtain the demultiplexed data, and stopping the decoding and display of the current video source, and playing the next video source, thereby realizing seamless switching between the two videos. Moreover, since the next video can be started without stopping the current player, the starting speed of the next video is accelerated. Therefore, the problem of the relatively long time-consuming process of switching videos in the prior art and the problem of a black screen on the television product due to the need to release the decoder used by the current player during the process of stopping the current video playback is solved, thereby improving the user experience.

[0166] The device provided in the embodiment of the present application can be used to execute the technical solution of the above-mentioned method embodiment. Its implementation principle and technical effect are similar, and the embodiment of the present application will not be repeated here.

[0167] In some embodiments, the first processing module is specifically used to:

[0168] In response to a trigger operation for requesting a video switch, determining an address of the next video source;

[0169] According to the address of the next video source, the next video source is downloaded and parsed while the decoding and display operations of the current video source are maintained.

[0170] In some embodiments, applied to a player, the player includes: a download and protocol parsing module, a demultiplexing module and a decoder; the video switching device may also include a fourth processing module, the fourth processing module is used to asynchronously process the download and protocol parsing operations of the download and protocol parsing module, the demultiplexing operation of the demultiplexing module and the decoding operation of the decoder.

[0171] In some embodiments, the video switching device may also include a fifth processing module, which is used to control the download and protocol parsing module to stop operating on the current video source and release the resources of the protocol parsing module before downloading and parsing the next video source requesting video switching; and control the demultiplexing module to stop operating on the current video source and release the resources of the demultiplexing module.

[0172] In some embodiments, the second processing module is specifically configured to:

[0173] Initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data;

[0174] After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

[0175] In some embodiments, the third processing unit is specifically configured to:

[0176] The demultiplexed data is decoded by the decoder to play the next video source.

[0177] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the video switching method of the above method embodiment is implemented.

[0178] An embodiment of the present application further provides a computer program product, including a computer program, which implements the video switching method of the above method embodiment when executed by a processor.

[0179] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0180] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0181] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0182] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A display device, characterized in that: include: monitor; The controller is configured as: In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding the current video source and displaying it on the display; Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source; Play the next video source according to the demultiplexed data; The controller includes a download and protocol parsing module, a demultiplexing module and a decoder; The controller is also configured to: In response to a trigger operation for requesting a video switch, determining an address of the next video source; Control the download and protocol analysis module to stop operating the current video source and release the resources of the protocol analysis module; Control the demultiplexing module to stop operating the current video source and release the resources of the demultiplexing module; and do not stop the operation of the decoder; According to the address of the next video source, download and parse the next video source, while maintaining the decoder decoding operation on the current video source and displaying operation on the display; The controller is further specifically configured to: initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data; After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

2. The display device according to claim 1, characterized in that The controller is further specifically configured as: The demultiplexed data is decoded by the decoder to play the next video source.

3. A video switching method, characterized in that: include: In response to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding and displaying the current video source; Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source; Play the next video source according to the demultiplexed data; The operation of downloading and parsing the next video source for requesting video switching while maintaining decoding and displaying the current video source in response to the trigger operation for requesting video switching includes: In response to a trigger operation for requesting a video switch, determining an address of the next video source; Control the download and protocol analysis module to stop operating the current video source and release the resources of the protocol analysis module; Control the demultiplexing module to stop operating the current video source and release the resources of the demultiplexing module; and do not stop the operation of the decoder; According to the address of the next video source, download and parse the next video source, while maintaining the decoder decoding operation on the current video source and displaying operation on the display; Demultiplexing the next video source to obtain demultiplexed data, and stopping decoding and displaying the current video source includes: Initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data; After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

4. A video switching device, characterized in that: The device comprises: A first processing module, for responding to a trigger operation for requesting video switching, downloading and parsing the protocol of the next video source for requesting video switching, while maintaining the operation of decoding and displaying the current video source; The second processing module is used to demultiplex the next video source to obtain demultiplexed data and stop decoding and displaying the current video source; A third processing module, used for playing the next video source according to the demultiplexed data; The first processing module is specifically used for: In response to a trigger operation for requesting a video switch, determining an address of the next video source; Control the download and protocol analysis module to stop operating the current video source and release the resources of the protocol analysis module; Control the demultiplexing module to stop operating the current video source and release the resources of the demultiplexing module; and do not stop the operation of the decoder; According to the address of the next video source, download and parse the next video source, while maintaining the decoder decoding operation on the current video source and displaying operation on the display; The second processing module is specifically used for: Initialize the demultiplexing module, demultiplex the next video source, and obtain demultiplexed data; After determining that the demultiplexed data is obtained, the current buffer of the decoder is cleared to stop decoding and displaying the current video source.

5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a display adjustment program, and when the display adjustment program is executed by the processor, the steps of the video switching method according to claim 3 are implemented.

6. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the video switching method according to claim 3 are implemented.