Display device and video switching method

By encapsulating the signal source function into the signal source player, it ensures the mutual exclusive relationship between the signal source and network video playback, solves the black screen problem when switching between signal source video and network video, and achieves stable operation and efficient switching of the device.

CN118828080AActive Publication Date: 2024-10-22JUHAOKAN TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202311661358.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-10-22
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

During the switching process between signal source video and network video, existing technology cannot fully guarantee the mutual exclusion of the signal source and ordinary video playback, resulting in a high probability of black screen or blue screen problems, and even requiring a power outage and restart to recover.

Method used

By encapsulating the function of the signal source into the signal source player, the signal source player and the ordinary player have a mutually exclusive relationship, ensuring that only one player occupies the decoder resources when switching videos, thus preventing the signal source and decoder from being used at the same time. Work.

Benefits of technology

It effectively avoids problems such as black screens caused by the signal source and decoder working at the same time, ensures the stability of the device during the video switching process, and reduces the complexity of fault recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828080A_ABST
    Figure CN118828080A_ABST
Patent Text Reader

Abstract

Some embodiments of the present application show a display device and a video switching method, the method comprising: when playing a first video, in response to a second video playing instruction input by a user, stopping playing the first video by a first player so as to enable the first player to release decoder resources, the first video is a video acquired based on a website or locally stored, and the second video is a video acquired through a signal source; and creating a second player corresponding to the second video to enable the second player to play the second video, the second player being a signal source player. According to the embodiment of the invention, the function of the signal source is packaged in the signal source player, and the signal source player and a common player have a mutual exclusion relationship, so that mutual exclusion of network video playing and signal source video playing is ensured, and the problems of black screen and the like caused by simultaneous working of the signal source and a decoder are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a video switching method. Background Art

[0002] Television refers to a device that uses electronic technology to transmit moving images and audio signals based on the visual persistence characteristics and visual psychology of the human eye. It is an important broadcasting and video communication tool. With the development of television-related technologies, television can provide broadcast programs (signal source video) and online video playback.

[0003] In the process of switching between the signal source video and the network video, it is necessary to add additional complex application management processes to ensure the mutual exclusion of the signal source playback and the network video playback. However, since the switching of the video application, the signal source service, and the player are all asynchronous, and the control of the signal source video is at the application layer, while the network video player is controlled at the multimedia framework layer, they are not at the same level. Even if additional timing control is added, it is impossible to completely guarantee the mutual exclusion of the signal source and ordinary video playback. Once the signal source service and the decoder work at the same time, there is a high probability that the TV will have a black screen or blue screen problem, and it may even have to be powered off and restarted to recover. Summary of the invention

[0004] Some embodiments of the present application provide a display device and a video switching method. By encapsulating the functions of a signal source into a signal source player, the signal source player and an ordinary player itself have a mutually exclusive relationship, thereby ensuring that the network video and the signal source video playback are mutually exclusive, thereby avoiding problems such as a black screen caused by the simultaneous operation of the signal source and the decoder.

[0005] In a first aspect, some embodiments of the present application provide a display device, including:

[0006] monitor;

[0007] The controller is configured as:

[0008] When playing a first video, in response to a user input instruction to play a second video, stopping a first player from playing the first video so that the first player releases decoder resources, wherein the first video is a video obtained based on a website or stored locally, and the second video is a video obtained through a signal source;

[0009] A second player corresponding to the second video is created so that the second player plays the second video, and the second player is a signal source player.

[0010] In some embodiments, the controller includes an application layer and a multimedia framework, and the controller performs playing of the first video and is further configured to:

[0011] Controlling the application layer to respond to a play first video instruction input by a user, and sending the play first video instruction to the multimedia framework;

[0012] After determining that the video address in the instruction to play the first video is in the first format, the multimedia framework is controlled to create a first player so that the first player plays the first video based on the video address, wherein the video address being in the first format indicates that the first player is enabled to play the video.

[0013] In some embodiments, the controller stops the first player from playing the first video, and is further configured to:

[0014] The multimedia framework is controlled to call the release interface of the first player after determining that the decoder resources of the first player have not been released.

[0015] In some embodiments, the controller executes creating a second player corresponding to the second video, and is further configured to:

[0016] Control the multimedia framework to create a second player and record a target signal source after determining that the video address in the instruction to play the second video is in the second format, wherein the video address being in the second format indicates that the second player is enabled to play the video, and the target signal source is obtained by parsing the instruction to play the second video;

[0017] After receiving the start instruction sent by the application layer, the multimedia framework is controlled to call the start interface of the second player, so that the second player sends a switch target signal source instruction to the signal source service, and the switch target signal source instruction is used to instruct the signal source service to occupy signal source resources and switch to the target signal source.

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

[0019] Controlling the application layer to send the stop playing second video instruction to the multimedia framework in response to the stop playing second video instruction input by the user;

[0020] After receiving the instruction to stop playing the second video, the multimedia framework is controlled to call the stop interface of the second player, so that the second player sends a switch empty signal source instruction to the signal source service, and the switch empty signal source instruction is used to instruct the signal source service to release signal source resources.

[0021] In some embodiments, when playing the second video, the controller is configured to:

[0022] In response to a user input instruction to play a third video, stop the second player from playing the second video so that the second player releases signal source resources, wherein the third video is a video obtained based on a URL;

[0023] A first player corresponding to the third video is created so that the first player plays the third video.

[0024] In some embodiments, the controller includes an application layer and a multimedia framework, and the controller executes stopping the second player and is further configured to:

[0025] After determining that the signal source resources of the second player have not been released, the multimedia framework is controlled to call the release interface of the second player so that the second player sends a switch to empty signal source instruction to the signal source service, and the switch to empty signal source instruction is used to instruct the signal source service to release the signal source resources.

[0026] In some embodiments, the controller executes creating a first player corresponding to the third video, and is further configured to:

[0027] Controlling the multimedia framework to create a first player after determining that the video address in the instruction to play the third video is in the first format, wherein the video address being in the first format indicates that the first player is enabled to play the video;

[0028] The multimedia framework is controlled to call the start-up interface of the first player after receiving the start-up instruction sent by the application layer.

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

[0030] Controlling the application layer to send the stop playing third video instruction to the multimedia framework in response to the stop playing third video instruction input by the user;

[0031] After receiving the instruction to stop playing the third video, the multimedia framework is controlled to call the stop interface of the first player so that the first player releases decoder resources.

[0032] In a second aspect, some embodiments of the present application provide a video switching method, including:

[0033] When playing a first video, in response to a user input instruction to play a second video, stopping a first player from playing the first video so that the first player releases decoder resources, wherein the first video is a video obtained based on a website or stored locally, and the second video is a video obtained through a signal source;

[0034] A second player corresponding to the second video is created so that the second player plays the second video, and the second player is a signal source player.

[0035] Some embodiments of the present application provide a display device and a video switching method. When playing a first video, a user input instruction to play a second video is received, and the first player is stopped from playing the first video, so that the first player releases decoder resources. The first video is a video obtained based on a URL or stored locally, and the second video is a video obtained through a signal source. After the first player releases the decoder resources, a second player corresponding to the second video is created, so that the second player plays the second video. The second player is a signal source player. The embodiments of the present application encapsulate the function of the signal source into the signal source player, and the signal source player and the ordinary player themselves have a mutually exclusive relationship, so as to ensure that the network video and the signal source video are played mutually exclusive, thereby avoiding problems such as black screen caused by the simultaneous operation of the signal source and the decoder. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 An operation scenario between a display device and a control device according to some embodiments is shown;

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

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

[0039] Figure 4 shows a software configuration diagram in a display device according to some embodiments;

[0040] Figure 5 A software architecture diagram provided according to some embodiments is shown;

[0041] Figure 6 A flowchart of a video switching method provided according to some embodiments is shown;

[0042] Figure 7 Another software architecture diagram provided according to some embodiments is shown;

[0043] Figure 8 A timing diagram of a video switching method provided according to some embodiments is shown;

[0044] Fig. 9 A flowchart of another video switching method provided according to some embodiments is shown;

[0045] Fig.10A timing diagram of another video switching method provided according to some embodiments is shown. 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" and "second" 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" and any variations thereof are intended to cover but not exclude inclusions, 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 products or devices.

[0050] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.

[0051] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, 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 other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0053] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0054] In some embodiments, the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0055] 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.

[0056] 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.

[0057] 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.

[0058] like Figure 3 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.

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

[0060] 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 the controller, and display video content, image content, and menu control interface components and user control UI interface.

[0061] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0062] The display 260 also includes a touch screen, which is used to receive control instructions input by actions such as sliding or clicking of a user's finger on the touch screen.

[0063] 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 external control device 100 or the server 400 through the communicator 220.

[0064] The user interface can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.).

[0065] The detector 230 is used to collect signals from the external environment or the 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.

[0066] The external device interface 240 may include, but is not limited to, any one or more of the following interfaces: 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.

[0067] 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 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.

[0069] 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.

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

[0071] The user may input a user command through 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 through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0072] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0073] 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.

[0074] 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.

[0075] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. 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.

[0076] like Figure 4 As 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.

[0077] 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.).

[0078] 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.

[0079] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4As 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.

[0080] In the process of switching between the signal source video and the network video, it is necessary to add additional complex application management processes to ensure the mutual exclusion of the signal source playback and the network video playback. However, since the switching of the video application, the signal source service, and the player are all asynchronous, and the control of the signal source video is at the application layer, while the network video player is controlled at the multimedia framework layer, they are not at the same level. Even if additional timing control is added, it is impossible to completely guarantee the mutual exclusion of the signal source and ordinary video playback. Once the signal source service and the decoder work at the same time, there is a high probability that the TV will have a black screen or blue screen problem, and it may even have to be powered off and restarted to recover.

[0081] In some embodiments, Figure 5 As shown, the software architecture includes an application layer, a framework layer and a hardware layer. The application layer includes multiple applications, such as application A, application B and application C. Among them, application A and application B are signal source applications, and the signal source application is provided with a signal source SDK (Software Development Kit) and is connected to the signal source service through a dedicated API (Application Programming Interface). Application C is a network video application. The framework layer includes an application scenario management service and a multimedia framework. The application scenario management service is located in the upper layer of the multimedia framework, that is, the application scenario management service is closer to the application layer. The application scenario management service is used to monitor application switching and perform corresponding operations. The multimedia framework includes a player interface and a player. The player interface includes a create interface, a setDataSource interface, a start interface, a stop interface and a release interface. The multimedia framework can call the player interface to control the player. The hardware layer includes a signal source service and a decoder. The signal source service is connected to the signal source application and the application scenario management service. The decoder is connected to the player.

[0082] In some embodiments, after opening application C, the application layer receives the user input for playing the video M1 in application C, and sends the play instruction to the multimedia framework. The multimedia framework calls the player to create and set the data source interface based on the play instruction to create the player. The player sends a creation success message to the application layer, and the application layer sends a start message to the multimedia framework. The multimedia framework calls the start interface, and the player can obtain the URL (Uniform Resource Locator) of the video M1 from the data source, and obtain the streaming media data corresponding to the video M1 from the URL, and parse the audio and video stream corresponding to the video M1 to obtain the encoding information of the audio and video stream. The player creates a decoder based on the encoding information, that is, occupies the decoder resources, and decodes the audio and video stream data through the decoder to start playing the video M1.

[0083] In some embodiments, when playing video M1, the application layer receives a user input command to stop playing video M1, sends the stop command to the multimedia framework, and the multimedia framework calls the player stop interface to enable the player to release decoder resources.

[0084] In some embodiments, when playing video M1, after receiving the user input to play the video M2 in application C, the play instruction is sent to the multimedia framework. When the multimedia framework determines that the decoder resources of the previous player have not been released, the release interface of the previous player is called to allow the player to release the decoder resources. After the decoder resources are released, the multimedia framework calls the player to create and set the data source interface based on the play instruction to recreate the player. The player sends a creation success message to the application layer, and the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the player can obtain the URL of the video M2 from the data source, and obtain the streaming media data corresponding to the video M2 from the URL, and parse the audio and video stream corresponding to the video M2 to obtain the encoding information of the audio and video stream. The player creates a decoder based on the encoding information, that is, occupies the decoder resources, and decodes the audio and video stream data through the decoder to start playing video M2.

[0085] In some embodiments, when playing video M1, after receiving the user input to exit application C, the application layer sends a stop play instruction to the multimedia framework, and the multimedia framework calls the player stop play interface to enable the player to release decoder resources. After receiving the user input to play video M3 in application A, the application layer sends a play instruction to the signal source service to enable the signal source service to occupy the signal source resources.

[0086] In some embodiments, there may be a situation where two applications are switched directly, that is, there is no need for the user to input instructions to exit the previous application and open the next application. When the application scenario management service detects switching between different applications, it determines whether the video playback types of the applications before and after the switching are the same. If the video playback types of the applications before and after the switching are different, an instruction to release hardware resources is sent; if the video playback types of the applications before and after the switching are the same, the step of sending an instruction to release hardware resources is not executed.

[0087] When you install a video application, the video playback type of the application will be stored in a preset location for viewing and comparison by the application scene management service. The video playback types are signal source video and network video (ordinary video). Network video is a video obtained based on a URL, and signal source video is a video obtained through a signal source.

[0088] Since the embodiment of the present application switches the application C that plays the network video to the application A that plays the signal source video, the application scenario management service sends a hardware resource release instruction to the player after detecting the application switch, so that the player releases the decoder resources.

[0089] However, in the above application switching or video switching process, if the interval between the user inputting the command to exit application C and play the video of application A is very short, so that the player has not completed the release of the decoder resources, the signal source service has begun to occupy the signal source resources. Or, in the process of releasing the decoder resources, the program crashes, so that the decoder resources are not released in time, and the signal source service has begun to occupy the signal source resources. Both of the above scenarios will cause the signal source service and the decoder to work at the same time. In the case where the display device does not support the simultaneous operation of two hardware, there is a high probability that a black screen or a blue screen will appear, and it may even be necessary to power off and restart to recover.

[0090] In some embodiments, after opening application A, the application layer receives a user input instruction to play video M3 in application A, and sends the play instruction to the signal source service, where the play instruction includes the target signal source. After receiving the play instruction, the signal source service occupies the signal source resources and switches to the target signal source to play video M3.

[0091] In some embodiments, when playing video M3, the application layer receives a user input command to stop playing video M3, and sends the stop playing command to the signal source service. After receiving the stop playing command, the signal source service switches to an empty signal source to release signal source resources.

[0092] In some embodiments, when playing video M3, the application layer receives a user input instruction to play video M4 in application A, and sends the play instruction to the signal source service, where the play instruction includes the switched signal source. After receiving the play instruction, the signal source service switches to the switched signal source to play video M4.

[0093] In some embodiments, when playing video M3, after the application layer receives the user input to exit application A, it sends a stop playing instruction to the signal source service. After receiving the stop playing instruction, the signal source service switches to an empty signal source to release the signal source resources. After receiving the user input to play the video M1 in application C, the application layer sends the play instruction to the multimedia framework. The multimedia framework calls the player to create and set the data source interface based on the play instruction to create the player. The player sends a creation success message to the application layer, and the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the player can obtain the URL of the video M1 from the data source, and obtain the streaming media data corresponding to the video M1 from the URL, and parse the audio and video stream corresponding to the video M1 to obtain the encoding information of the audio and video stream. The player creates a decoder based on the encoding information, that is, occupies the decoder resources, and decodes the audio and video stream data through the decoder to start playing video M1.

[0094] In some embodiments, when the application scene management service detects switching between different applications, it determines whether the video playback type of the application before and after the switch is the same. Since the embodiment of the present application switches application A that plays the signal source video to application C that plays the network video, after detecting the application switching, the application scene management service sends a hardware resource release instruction to the signal source service to switch to an empty signal source to release the signal source resources.

[0095] However, in the above application switching or video switching process, if the interval between the user's input of the command to exit application A and play the video of application C is very short, so that the signal source service has not completed the release of the signal source resources, at this time, the player has occupied the decoder resources. Or, in the process of the signal source service releasing the signal source resources, the program crashes, so that the signal source resources are not released in time, and the player has begun to occupy the decoder resources. Both of the above scenarios will cause the signal source service and the decoder to work at the same time. In the case where the display device does not support the simultaneous operation of two hardware, there is a high probability that a black screen or a blue screen will appear, and it may even be necessary to power off and restart to recover.

[0096] In some embodiments, applications that implement different functions are configured in the display device. Among them, some applications can implement a function based on the application itself, while some applications provide multiple services, and different services implement different functions, that is, this application can implement multiple functions. For example, a desktop application is configured in the display device, and the desktop application provides multiple service modules to implement different functions based on the service modules provided by the desktop application. The desktop application can provide a signal source entrance and an installed third-party application entrance (icon), which can directly play network videos or call installed third-party applications to play videos. Third-party applications include live broadcast applications (Live TV). Live broadcast applications are applications for playing cable broadcast programs. The application layer includes desktop applications and live broadcast applications.

[0097] When playing online videos through the desktop application, the desktop application receives a user input to play a cable broadcast program, and sends a stop playback instruction to the multimedia framework, which calls the player stop interface to enable the player to release decoder resources. At the same time, the desktop application enables the live broadcast application, that is, pulls up the user interface of the live broadcast application.

[0098] After the live broadcast application is enabled, the live broadcast application sends a play command to the tuner. The tuner receives the broadcast signal, also known as the bit stream, and tunes the broadcast signal. The demodulator demodulates the tuned bit stream. The demultiplexing module separates the audio data, video data, and data parts different from the audio / video parts contained in the demodulated bit stream. The decoder decodes the audio and video data for the display device to play the decoded audio and video data.

[0099] Similarly, when playing a cable broadcast program through the live broadcast application, the live broadcast application receives a user's instruction to play a network video from the desktop application, and sends a stop playback instruction to the tuner so that the tuner no longer receives the broadcast signal. At the same time, the desktop application sends a play instruction to the player of the multimedia framework so that the player occupies the decoder resources and plays the network video.

[0100] In some embodiments, if the desktop application and the live broadcast application are switched directly, the user does not need to input instructions to exit the desktop application and open the live broadcast application. After exiting the desktop application / live broadcast application, the transition application is called to display the preset screen for a preset time through the transition application. After exiting the transition application, the playback screen of the live broadcast application / desktop application can be directly displayed.

[0101] Since the broadcasting program playback of the live broadcast application is a direct connection between the application layer and the hardware layer, while the video playback of the desktop application is a connection between the application layer and the hardware layer through the multimedia framework. The two have asynchronous workflows, which may cause the hardware for broadcasting program playback and the hardware for network video playback to work at the same time, with a high probability of black screen or blue screen problems, and even require power off and restart to recover.

[0102] In order to solve the above technical problems, the embodiment of the present application provides a display device 200. The structure and functions of each part of the display device 200 can refer to the above embodiment. In addition, based on the display device 200 shown in the above embodiment, this embodiment further improves some functions of the display device 200. Figure 6 As shown, the controller 250 performs the following steps:

[0103] Step S601: Play the first video;

[0104] The first video is a video obtained based on a URL or stored locally, the first video is a video in a first application, and the first application includes a network video application and a desktop application.

[0105] In some embodiments, Figure 7 As shown, the software architecture includes an application layer, a framework layer and a hardware layer. The application layer includes multiple applications. Among them, signal source applications such as application A and application B do not need to be provided with a signal source SDK, nor do they need to be connected to the signal source service through a dedicated API. Application C is a network video application. The framework layer includes a multimedia framework. The multimedia framework includes a player interface, a first player and a second player. The second player is a signal source player. The so-called signal source player refers to a player that encapsulates the signal source function and the technical details related to the signal source. The application layer docking interface is unified as a player interface, that is, a common player interface for the first player and the second player. The player interface includes a creation interface, a data source setting interface, a start interface, a stop interface and a release interface. The multimedia framework can call the player interface to control the first player and the second player. There is a mutually exclusive relationship between the first player and the second player. The hardware layer includes a signal source service and a decoder. The signal source service is connected to the second player. The decoder is connected to the first player.

[0106] The step of playing the first video includes:

[0107] Receiving an instruction input by a user to play a first video;

[0108] In some embodiments, the step of receiving an instruction input by a user to play a first video includes:

[0109] In response to a user input, an instruction to open a network video application;

[0110] Starting the network video application, and controlling the display 260 to display an application homepage, wherein the application homepage includes at least one video control;

[0111] Receive an instruction input from a user to select the first video control, that is, an instruction to play the first video.

[0112] In some embodiments, the step of receiving an instruction input by a user to play a first video includes:

[0113] A voice command collected after the user presses the voice key of the control device 100, or a voice command collected after waking up the voice assistant through a far-field wake-up word, is received, where the voice command is a voice command to play the first video.

[0114] In response to an instruction input by a user to play the first video, the first video is played.

[0115] The controller includes an application layer and a multimedia framework, and the step of playing the first video includes:

[0116] Controlling the application layer to respond to a play first video instruction input by a user, and sending the play first video instruction to the multimedia framework;

[0117] After determining that the video address in the instruction to play the first video is in the first format, the multimedia framework is controlled to create a first player, so that the first player plays the first video based on the video address, wherein the video address being in the first format indicates that the first player is enabled to play the video. The first format includes a URL or a local storage path.

[0118] In order to clarify the process of playing the first video in this application, an embodiment is disclosed below:

[0119] The application layer receives an instruction input by the user to play the first video, and sends the instruction to play the first video to the multimedia framework.

[0120] After determining that the hardware resources of the previous player have been released and the video address in the instruction to play the first video is in the first format, the multimedia framework calls the player creation and data source setting interface to create the first player, that is, the first player is initialized.

[0121] The first player sends a creation success message to the application layer, and the application layer sends a start instruction to the multimedia framework.

[0122] The multimedia framework calls the start interface, and the first player obtains the address of the first video from the data source, that is, the URL, and obtains the streaming media data of the first video from the address, and parses the audio and video stream of the first video to obtain the encoding information of the audio and video stream. The first player creates a decoder based on the encoding information, that is, occupies decoder resources, and decodes the audio and video stream data through the decoder to start playing the first video.

[0123] Step S602: receiving a second video playing instruction input by a user;

[0124] Among them, the second video is a video obtained through a signal source, the second video is a video under a second application, and the second application includes a signal source application and a live broadcast application, etc.

[0125] In some embodiments, the step of receiving a user input instruction to play the second video includes:

[0126] In response to a user inputting an instruction to exit the network video application, closing the network video application;

[0127] An instruction inputted by a user to open a signal source application or to play a second video in the signal source application, ie, an instruction to play a second video, is received.

[0128] In some embodiments, the step of receiving a user input instruction to play the second video includes:

[0129] When playing the first video, a voice command collected after the user presses the voice button of the control device 100 is received, or a voice command collected after waking up the voice assistant through a far-field wake-up word is received, and the voice command is a voice command for playing the second video.

[0130] Step S603: in response to a user input instruction to play the second video, stop the first player from playing the first video, so that the first player releases decoder resources;

[0131] The step of stopping the first player from playing the first video includes:

[0132] The multimedia framework is controlled to call the release interface of the first player after determining that the decoder resources of the first player have not been released.

[0133] In order to clarify the process of stopping the first player from playing the first video in this application, an embodiment is disclosed below:

[0134] The application layer sends the instruction to play the second video to the multimedia framework in response to the user input of the instruction to play the second video.

[0135] The multimedia framework determines whether the previous player hardware resources have been released;

[0136] If the hardware resources of the previous player are not released, the release interface of the previous player is called to make the previous player release the hardware resources.

[0137] If the hardware resources of the previous player have been released, you can directly create a new player.

[0138] If the previous player is in the process of releasing hardware resources, it is possible to wait for a preset time period before continuing to determine whether the hardware resources of the previous player have been released.

[0139] In the embodiment of the present application, if the decoder resources of the first player are not released, the release interface of the first player is called to make the first player release the decoder resources.

[0140] Step S604: Create a second player corresponding to the second video so that the second player plays the second video; wherein the second player is a signal source player.

[0141] The step of creating a second player corresponding to the second video includes:

[0142] Control the multimedia framework to create a second player and record a target signal source after determining that the video address in the instruction to play the second video is in the second format, wherein the video address being in the second format indicates that the second player is enabled to play the video, and the target signal source is obtained by parsing the instruction to play the second video, and the second format includes a signal source address;

[0143] After receiving the start instruction sent by the application layer, the multimedia framework is controlled to call the start interface of the second player, so that the second player sends a switch target signal source instruction to the signal source service, and the switch target signal source instruction is used to instruct the signal source service to occupy signal source resources and switch to the target signal source.

[0144] In order to clarify the process of creating the second player in this application, an embodiment is disclosed below:

[0145] After determining that the decoder resources of the first player have been released, the multimedia framework parses the instruction to play the second video and obtains the video address and the target signal source. After determining that the video address is in the second format, the player creation and data source setting interface is called to create the second player, that is, the second player is initialized, and the target signal source is recorded in the data source.

[0146] The second player sends a message of successful creation to the application layer, and the application layer sends a start instruction to the multimedia framework.

[0147] The multimedia framework calls the start interface of the second player, and the second player obtains the target signal source from the data source and sends the instruction to switch to the target signal source to the signal source service. After receiving the instruction to switch to the target signal source, the signal source service occupies the signal source resources and switches to the target signal source. The second video transmitted by the target signal source is played.

[0148] In some embodiments, while the second video is playing, in response to a user input instruction to stop playing the second video, the second player stops playing the second video.

[0149] The step of stopping the second player from playing the second video includes:

[0150] Controlling the application layer to send the stop playing second video instruction to the multimedia framework in response to the stop playing second video instruction input by the user;

[0151] After receiving the instruction to stop playing the second video, the multimedia framework is controlled to call the stop interface of the second player, so that the second player sends a switch empty signal source instruction to the signal source service, and the switch empty signal source instruction is used to instruct the signal source service to release signal source resources.

[0152] In order to clarify the process of stopping the second player from playing the second video in this application, an embodiment is disclosed below:

[0153] Upon receiving the instruction of stopping playing the second video input by the user, the application layer sends the instruction of stopping playing the second video to the multimedia framework.

[0154] The multimedia framework calls the stop interface of the second player, and the second player sends a switch empty signal source instruction to the signal source service, and the signal source service switches the empty signal source to release the signal source resources.

[0155] In some embodiments, Figure 8 As shown, when the first video is played through the first player, after receiving the user input to play the second video instruction, the play instruction is sent to the multimedia framework. When the multimedia framework determines that the first player has not released the decoder resources, the release interface of the first player is called, and the first player releases the decoder resources. After determining that the decoder resources are released, the multimedia framework calls the interface for creating and setting the data source, and the second player initializes and records the target signal source. After determining that the second player is successfully created, the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the second player sends an instruction to switch to the target signal source to the signal source service. The signal source service occupies the signal source resources. The application layer receives the user input to stop the second video instruction, and sends the stop instruction to the multimedia framework. The multimedia framework calls the stop interface, and the second player sends an instruction to switch to an empty signal source to the signal source service. The signal source service releases the signal source resources.

[0156] In some embodiments, after the desktop application is started, the user input is received to play the network video, and the network video of the desktop application is played through the first player. The user input is received to play the cable broadcast program. The live broadcast application sends the cable broadcast program play command to the multimedia framework. When the multimedia framework determines that the first player has not released the decoder resources, it calls the release interface of the first player, and the first player releases the decoder resources. After determining that the decoder resources are released, the multimedia framework calls the interface for creating and setting the data source, and the second player initializes and records the frequency of the channel to which the cable broadcast program belongs. After determining that the second player is successfully created, the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the second player sends the frequency of the channel to which the cable broadcast program belongs to the tuner. The tuner locks the frequency of the channel to which the program belongs, and then the demodulator demodulates the code stream to the current frequency. The demultiplexing module filters the audio and video data of the program from the code stream of the current frequency and then performs subsequent decoding through the decoder, and displays the decoded video data through the display and plays the decoded audio data through the audio output interface.

[0157] The present application embodiment provides a display device 200. The structure and functions of each part of the display device 200 can refer to the above embodiment. In addition, based on the display device 200 shown in the above embodiment, this embodiment further improves some functions of the display device 200. Fig. 9 As shown, the controller 250 performs the following steps:

[0158] Step S901: Play the second video;

[0159] Signal sources have complex functions and interact with hardware. Application-level development requires relevant technical background and has a high technical threshold. Signal source applications are generally specially customized by the whole machine manufacturer and connected to the signal source-specific API packaged by the whole machine manufacturer. The portability is very poor. When partners want to integrate signal source functions, they usually need to integrate the signal source SDK provided by the whole machine manufacturer for customized development, which is very costly.

[0160] In order to solve the above technical problem, the step of playing the second video includes:

[0161] Receiving a command input by a user to play a second video;

[0162] In some embodiments, the step of receiving an instruction input by a user to play a second video includes:

[0163] An instruction input by a user to open a signal source application is received, and the second video is a broadcast program of a default channel after the signal source application is started.

[0164] In some embodiments, the step of receiving an instruction input by a user to play the second video includes:

[0165] Receive a voice command collected after the user presses the voice key of the control device 100, or receive a voice command collected after waking up the voice assistant through a far-field wake-up word, where the voice command is a voice command to play the second video.

[0166] In response to an instruction input by the user to play the second video, the second video is played.

[0167] The controller includes an application layer and a multimedia framework, and the step of playing the second video includes:

[0168] Controlling the application layer to respond to a play second video instruction input by a user, and sending the play second video instruction to the multimedia framework;

[0169] The multimedia framework is controlled to create a second player after determining that the video address in the second video instruction is in a second format, so that the second player plays the second video.

[0170] In order to clarify the process of playing the second video in this application, an embodiment is disclosed below:

[0171] After receiving the instruction input by the user to play the second video, the application layer sends the instruction to play the second video to the multimedia framework.

[0172] After determining that the hardware resources of the previous player have been released and the video address in the instruction to play the second video is in the second format, the multimedia framework calls the player creation and data source setting interface to create a second player and record the target signal source to the data source.

[0173] The second player sends a creation success message to the application layer, and the application layer sends a start instruction to the multimedia framework.

[0174] The multimedia framework calls the start interface, and the second player obtains the target signal source from the data source and sends the instruction to switch to the target signal source to the signal source service. After receiving the instruction to switch to the target signal source, the signal source service occupies the signal source resources and switches to the target signal source. The second video transmitted by the target signal source is played.

[0175] The embodiment of the present application encapsulates the signal source as a player and uses the player interface disclosed by the Android system to manage the signal source function. Developing a signal source application is similar to developing a common video playback application. It does not rely on the dedicated API of the signal source function, and the application has very good portability.

[0176] Step S902: receiving a third video playing instruction input by a user;

[0177] Among them, the third video is a video obtained based on a URL or stored locally, and the third video is a video under the first application.

[0178] In some embodiments, the step of receiving a user input instruction to play a third video includes:

[0179] In response to a user inputting an instruction to exit the signal source application, closing the signal source application;

[0180] Receive a user input instruction to open a network video application, start the network video application, and control the display 260 to display an application homepage, wherein the application homepage includes at least one video control;

[0181] Receive user input to select a third video control instruction, that is, play the third video instruction.

[0182] In some embodiments, the step of receiving a user input instruction to play a third video includes:

[0183] When playing the second video, a voice command collected after the user presses the voice button of the control device 100 is received, or a voice command collected after waking up the voice assistant through a far-field wake-up word is received, and the voice command is a voice command for playing the third video.

[0184] Step S903: in response to a user input instruction to play the third video, stop the second player from playing the second video, so that the second player releases signal source resources;

[0185] The step of stopping the second player from playing the second video includes:

[0186] After determining that the signal source resources of the second player have not been released, the multimedia framework is controlled to call the release interface of the second player so that the second player sends a switch to empty signal source instruction to the signal source service, and the switch to empty signal source instruction is used to instruct the signal source service to release the signal source resources.

[0187] In order to clarify the process of stopping the second player from playing the second video in this application, an embodiment is disclosed below:

[0188] The application layer receives an instruction from the user to play the third video, and sends the instruction to play the third video to the multimedia framework.

[0189] The multimedia framework determines whether the signal source resources of the second player are released. If the signal source resources of the second player are not released, the release interface of the second player is called, and the second player sends a switch empty signal source instruction to the signal source service. The signal source service switches to an empty signal source to release the signal source resources. If the signal source resources of the second player have been released, the first player can be created directly.

[0190] Step S904: Create a first player corresponding to the third video, so that the first player plays the third video.

[0191] The step of creating a first player corresponding to the third video includes:

[0192] Controlling the multimedia framework to create a first player after determining that the video address in the instruction to play the third video is in a first format;

[0193] The multimedia framework is controlled to call the start-up interface of the first player after receiving the start-up instruction sent by the application layer.

[0194] In order to clarify the process of creating the first player in this application, an embodiment is disclosed below:

[0195] After determining that the decoder resources of the second player have been released, the multimedia framework obtains the video address in the instruction to play the third video, and after determining that the video address is in the first format, calls the player creation and data source setting interface to create the first player.

[0196] The first player sends a message of successful creation to the application layer, and the application layer sends a start instruction to the multimedia framework.

[0197] The multimedia framework will call the start interface of the first player. The first player obtains the address of the third video from the data source, that is, the URL, and obtains the streaming media data of the third video from the address, and parses the audio and video stream of the third video to obtain the encoding information of the audio and video stream. The third player creates a decoder based on the encoding information, that is, occupies the decoder resources, and decodes the audio and video stream data through the decoder to start playing the third video.

[0198] In some embodiments, while the third video is playing, in response to a user input instruction to stop playing the third video, the first player stops playing the third video.

[0199] The step of stopping the first player from playing the third video includes:

[0200] Controlling the application layer to send the stop playing third video instruction to the multimedia framework in response to the stop playing third video instruction input by the user;

[0201] After receiving the instruction to stop playing the third video, the multimedia framework is controlled to call the stop interface of the first player so that the first player releases decoder resources.

[0202] In order to clarify the process of stopping the first player from playing the third video in this application, an embodiment is disclosed below:

[0203] Upon receiving the stop playing third video instruction input by the user, the application layer sends the stop playing third video instruction to the multimedia framework.

[0204] After receiving the instruction to stop playing the third video, the multimedia framework calls the stop interface of the first player, and the first player releases the decoder resources.

[0205] In some embodiments, Fig.10 As shown, when the second video is played through the second player, after receiving the user input to play the third video instruction, the play instruction is sent to the multimedia framework. When the multimedia framework determines that the second player has not released the signal source resources, the release interface of the second player is called, and the second player sends a switch to empty signal source instruction to the signal source service. The signal source service releases the signal source resources. After determining that the signal source resources are released, the multimedia framework calls the create and set data source interface to create the first player, that is, the first player is initialized. After determining that the first player is successfully created, the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the first player occupies the decoder resources. The application layer receives the user input to stop the third video instruction, and sends the stop instruction to the multimedia framework. The multimedia framework calls the stop interface, and the first player releases the decoder resources.

[0206] In some embodiments, a user input is received to play a cable broadcast program, and the cable broadcast program is played through a second player. A user input is received to play a desktop application network video, and the desktop application sends the network video play instruction to the multimedia framework. When the multimedia framework determines that the second player has not released the hardware resources, the second player is called The release interface sends a stop instruction to the tuner so that the tuner no longer receives the broadcast signal. After determining that the hardware resources are released, the multimedia framework calls the creation and setting of the data source interface to create the first player. After determining that the first player is successfully created, the application layer sends a start instruction to the multimedia framework. The multimedia framework calls the start interface, and the first player occupies the decoder resources to play the network video.

[0207] The embodiment of the present application encapsulates the signal source function into a signal source player, and realizes the mutually exclusive relationship between signal source playback and network video playback in the multimedia framework, that is, in the process of video switching, a new player can only be created after the hardware resources of the previous player are determined to be released, and the situation where the signal source service and the decoder work at the same time is eliminated, thereby avoiding problems such as black screen and blue screen caused by video switching. In addition, the embodiment of the present application encapsulates the signal source function into a signal source player, and the application layer development does not need to understand the complex signal source function and system interaction, which is similar to the development of ordinary video playback applications, reducing the development difficulty and improving the development efficiency. The interface docked at the application level is the unified player interface of the Android system, which does not rely on the dedicated API of the signal source function, and the application has good portability. The mutually exclusive relationship between the signal source and the network video player is managed at the multimedia framework layer, and the application level is not perceived. Due to the mutually exclusive relationship between the signal source and the network video player, when switching videos, only the application after switching needs to issue a video playback instruction once to complete the video switching, and there is no need for the application or application scenario management service before switching to issue an instruction to release hardware resources.

[0208] Some embodiments of the present application provide a video switching method, which is applicable to a display device, wherein the display device includes a display and a controller, wherein the controller is configured to: when playing a first video, in response to a user input instruction to play a second video, stop a first player from playing the first video so that the first player releases decoder resources, wherein the first video is a video obtained based on a URL, and the second video is a video obtained through a signal source; create a second player corresponding to the second video so that the second player plays the second video, and the second player is a signal source player. The embodiments of the present application encapsulate the function of the signal source into the signal source player, and the signal source player and the ordinary player themselves have a mutually exclusive relationship, thereby ensuring that the network video and the signal source video are mutually exclusive, thereby avoiding problems such as a black screen caused by the simultaneous operation of the signal source and the decoder.

[0209] 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.

[0210] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: monitor; The controller is configured as: When playing a first video, in response to a user input instruction to play a second video, stopping a first player from playing the first video so that the first player releases decoder resources, wherein the first video is a video obtained based on a website or stored locally, and the second video is a video obtained through a signal source; A second player corresponding to the second video is created so that the second player plays the second video, and the second player is a signal source player.

2. The display device according to claim 1, characterized in that The controller includes an application layer and a multimedia framework, and the controller plays the first video and is further configured to: Controlling the application layer to respond to a play first video instruction input by a user, and sending the play first video instruction to the multimedia framework; After determining that the video address in the instruction to play the first video is in the first format, the multimedia framework is controlled to create a first player so that the first player plays the first video based on the video address, wherein the video address being in the first format indicates that the first player is enabled to play the video.

3. The display device according to claim 2, characterized in that The controller stops the first player from playing the first video, and is further configured to: The multimedia framework is controlled to call the release interface of the first player after determining that the decoder resources of the first player have not been released.

4. The display device according to claim 2, characterized in that The controller executes creation of a second player corresponding to the second video, and is further configured to: Control the multimedia framework to create a second player and record a target signal source after determining that the video address in the instruction to play the second video is in the second format, wherein the video address being in the second format indicates that the second player is enabled to play the video, and the target signal source is obtained by parsing the instruction to play the second video; After receiving the start instruction sent by the application layer, the multimedia framework is controlled to call the start interface of the second player, so that the second player sends a switch target signal source instruction to the signal source service, and the switch target signal source instruction is used to instruct the signal source service to occupy signal source resources and switch to the target signal source.

5. The display device according to claim 2, characterized in that The controller is configured to: Controlling the application layer to send the stop playing second video instruction to the multimedia framework in response to the stop playing second video instruction input by the user; After receiving the instruction to stop playing the second video, the multimedia framework is controlled to call the stop interface of the second player, so that the second player sends a switch empty signal source instruction to the signal source service, and the switch empty signal source instruction is used to instruct the signal source service to release signal source resources.

6. The display device according to claim 1, characterized in that When playing the second video, the controller is configured to: In response to a user input instruction to play a third video, stop the second player from playing the second video so that the second player releases signal source resources, wherein the third video is a video obtained based on a URL; A first player corresponding to the third video is created so that the first player plays the third video.

7. The display device according to claim 6, characterized in that The controller includes an application layer and a multimedia framework, and the controller stops the second player and is further configured to: After determining that the signal source resources of the second player have not been released, the multimedia framework is controlled to call the release interface of the second player so that the second player sends a switch to empty signal source instruction to the signal source service, and the switch to empty signal source instruction is used to instruct the signal source service to release the signal source resources.

8. The display device according to claim 7, characterized in that The controller executes creation of a first player corresponding to the third video, and is further configured to: Controlling the multimedia framework to create a first player after determining that the video address in the instruction to play the third video is in the first format, wherein the video address being in the first format indicates that the first player is enabled to play the video; The multimedia framework is controlled to call the start-up interface of the first player after receiving the start-up instruction sent by the application layer.

9. The display device according to claim 7, characterized in that: The controller is configured to: Controlling the application layer to send the stop playing third video instruction to the multimedia framework in response to the stop playing third video instruction input by the user; After receiving the instruction to stop playing the third video, the multimedia framework is controlled to call the stop interface of the first player so that the first player releases decoder resources.

10. A video switching method, characterized in that: include: When playing a first video, in response to a user input instruction to play a second video, stopping a first player from playing the first video so that the first player releases decoder resources, wherein the first video is a video obtained based on a website or stored locally, and the second video is a video obtained through a signal source; A second player corresponding to the second video is created so that the second player plays the second video, and the second player is a signal source player.

Citation Information

Patent Citations

  • Multimedia play method for switching from first channel to second channel and multimedia play device

    CN103188529A

  • Display terminal information source switching method and device

    CN105872768A

  • Method for quickly switching to play multicast video

    CN110300338A

  • Control method for realizing multi-screen playing on set top box based on IPTV network

    CN111416988A

  • Video window switching method, electronic equipment and storage medium

    CN112333525A