WO2022033153A1 - Display method and display device - Google Patents

Display method and display device Download PDF

Info

Publication number
WO2022033153A1
WO2022033153A1 PCT/CN2021/099392 CN2021099392W WO2022033153A1 WO 2022033153 A1 WO2022033153 A1 WO 2022033153A1 CN 2021099392 W CN2021099392 W CN 2021099392W WO 2022033153 A1 WO2022033153 A1 WO 2022033153A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel
switching
request queue
display device
hdmi
Prior art date
Application number
PCT/CN2021/099392
Other languages
French (fr)
Chinese (zh)
Inventor
李建军
李明
孙立庆
Original Assignee
海信视像科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202010815022.9A external-priority patent/CN111954044B/en
Priority claimed from CN202010857714.XA external-priority patent/CN112040307A/en
Priority claimed from CN202010934814.8A external-priority patent/CN112040309B/en
Application filed by 海信视像科技股份有限公司 filed Critical 海信视像科技股份有限公司
Publication of WO2022033153A1 publication Critical patent/WO2022033153A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving MPEG packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV

Definitions

  • the present application relates to the technical field of smart TVs, and in particular, to a display method and a display device.
  • OTT Over The Top
  • OTT devices include streaming media boxes, TV sticks, and smart TVs.
  • Smart TVs can be connected to set-top boxes and OTT devices at the same time, so as to watch digital television (Digital Television, DTV) channels and Internet TV channels (ie, OTT channels).
  • DTV Digital Television
  • OTT channels Internet TV channels
  • a channel list is usually maintained in a smart TV, and the channel list records the channel information of DTV channels and OTT channels, and DTV channels and OTT channels are generally stored in the channel list crosswise, so that when the user clicks the channel switch button, it switches to The next channel of 's may be a DTV channel, or it may be an OTT channel.
  • the present application provides a display method and a display device.
  • the display device provided by the first aspect includes:
  • the user interface is connected to a controller configured to perform:
  • the channel switching method provided by the second aspect includes:
  • FIG. 1 exemplarily shows a schematic diagram of an operation scene between the display device 200 and the control apparatus 100;
  • FIG. 2 exemplarily shows the hardware configuration block diagram of the display device 200 in FIG. 1;
  • FIG. 3 exemplarily shows the hardware configuration block diagram of the control device 100 in FIG. 1;
  • FIG. 4 exemplarily shows a schematic diagram of the software configuration in the display device 200 in FIG. 1;
  • FIG. 5 exemplarily shows a schematic diagram of the icon control interface display of the application program in the display device 200
  • FIG. 6 exemplarily shows a schematic diagram of the dynamic adjustment of each queue in the process of switching channels
  • Fig. 7 exemplarily shows the flow chart of the channel switching method
  • FIG. 8 exemplarily shows a flowchart of a playback control method provided by an embodiment of the present application
  • FIG. 9 exemplarily shows an implementation flowchart of step S41 provided by the embodiment of the present application.
  • FIG. 10 exemplarily shows an implementation flowchart of step S42 provided by the embodiment of the present application.
  • FIG. 11 exemplarily shows a flowchart of a channel switching method according to some embodiments.
  • FIG. 12 exemplarily shows the implementation flow chart of step 101 according to some embodiments.
  • FIG. 13 exemplarily shows an implementation flowchart of another step 101 according to some embodiments.
  • step 301 An implementation flowchart of step 301 according to some embodiments is exemplarily shown in FIG. 14 .
  • module refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware or/and software code capable of performing the function associated with that element.
  • remote control refers to a component of an electronic device, such as the display device disclosed in this application, that can wirelessly control the electronic device, usually over a short distance.
  • infrared and/or radio frequency (RF) signals and/or Bluetooth are used to connect with electronic devices, and functional modules such as WiFi, wireless USB, Bluetooth, and motion sensors may also be included.
  • RF radio frequency
  • a hand-held touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.
  • gesture used in this application refers to a user's behavior that is used by a user to express an expected thought, action, purpose/or result through an action such as a change of hand shape or hand movement.
  • FIG. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in FIG. 1 , a user can operate the display device 200 through the smart device 300 or the control device 100 .
  • the control apparatus 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-distance communication methods, and the display device 200 is controlled wirelessly or wiredly.
  • the user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, and the like.
  • a smart device 300 eg, a mobile terminal, a tablet computer, a computer, a notebook computer, etc.
  • the display device 200 is controlled using an application running on the smart device.
  • the display device 200 can also be controlled in a manner other than the control apparatus 100 and the smart device 300.
  • the module for acquiring voice commands configured inside the display device 200 can directly receive the user's voice command for control.
  • the user's voice command control can also be received through a voice control device provided outside the display device 200 device.
  • the display device 200 is also in data communication with the server 400 .
  • the display device 200 may be allowed to communicate via local area network (LAN), wireless local area network (WLAN), and other networks.
  • the server 400 may provide various contents and interactions to the display device 200.
  • FIG. 2 exemplarily shows a configuration block diagram of the control apparatus 100 according to an exemplary embodiment.
  • the control device 100 includes a controller 110 , a communication interface 130 , a user input/output interface 140 , a memory 190 , and a power supply 180 .
  • the control device 100 can receive the user's input operation instruction, and convert the operation instruction into an instruction that the display device 200 can recognize and respond to, and play an intermediary role between the user and the display device 200 .
  • FIG. 2 is a block diagram showing a hardware configuration of a display device 200 according to an exemplary embodiment.
  • the display device 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 275 , an audio output interface 285 , a memory 260 , a power supply 290 , and a user interface 265 .
  • the display 275 includes a display screen component for presenting pictures, and a driving component for driving image display, for receiving image signals output from the controller, components for displaying video content, image content, and menu manipulation interfaces, and user manipulation UI interfaces .
  • the display 275 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
  • the communicator 220 is a component for communicating with external devices or servers according to various communication protocol types.
  • 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 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220 .
  • the user interface can be used to receive control signals from the control device 100 (eg, an infrared remote control, etc.).
  • control device 100 eg, an infrared remote control, etc.
  • the detector 230 is used to collect external environment or external interaction signals.
  • the detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which can be used to collect external environmental scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, for receiving external sound.
  • the external device interface 240 may include, but is not limited to, the following: any one of high-definition multimedia interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. or multiple interfaces. It may also be a composite input/output interface formed by a plurality of the above-mentioned interfaces.
  • HDMI high-definition multimedia interface
  • component analog or data high-definition component input interface
  • CVBS composite video input interface
  • USB USB input interface
  • RGB port etc.
  • It may also be a composite input/output interface formed by a plurality of the above-mentioned interfaces.
  • the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 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.
  • the controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory 260 .
  • the controller 250 controls the overall operation of the display apparatus 200 . For example, in response to receiving a user command for selecting a UI object to be displayed on the display 275, the controller 250 may perform an operation related to the object selected by the user command.
  • Objects can be any of the optional objects, such as hyperlinks, icons, or other actionable controls.
  • the operations related to the selected object include: displaying operations connected to hyperlinked pages, documents, images, etc., or executing operations of programs corresponding to the icons.
  • the user may input user commands on a graphical user interface (GUI) displayed on the display 275, and the user input interface receives the user input commands through the graphical user interface (GUI).
  • GUI graphical user interface
  • the user may input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.
  • GUI Graphical User Interface
  • control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. visual interface elements.
  • the system is divided into four layers, from top to bottom, they are an application layer (referred to as “application layer”), an application framework layer (referred to as “framework layer”) ”), the Android runtime and the system library layer (referred to as the “system runtime layer”), and the kernel layer.
  • application layer an application layer
  • frame layer an application framework layer
  • Android runtime the Android runtime
  • system library layer the system library layer
  • kernel layer the kernel layer
  • At least one application program runs in the application program layer, and these application programs may be a Window program, a system setting program, a clock program, a camera application, etc. built into the operating system; they may also be developed by a third party
  • the application programs developed by the author such as the Hijian program, the K song program, the magic mirror program, etc.
  • the application package in the application layer is not limited to the above examples, and may actually include other application packages, which is not limited in this embodiment of the present application.
  • the framework layer provides an application programming interface (API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer is equivalent to a processing center, which decides to let the applications in the application layer take action.
  • the application program can access the resources in the system and obtain the services of the system during execution through the API interface.
  • the application framework layer in the embodiment of the present application includes managers (Managers), content providers (Content Provider), etc., wherein the manager includes at least one of the following modules: an activity manager (Activity Manager) uses Interacts with all activities running in the system; Location Manager is used to provide system services or applications with access to system location services; Package Manager is used to retrieve files currently installed on the device Various information related to the application package; Notification Manager (Notification Manager) is used to control the display and clearing of notification messages; Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers on the user interface and desktop widgets.
  • an activity manager uses Interacts with all activities running in the system
  • Location Manager is used to provide system services or applications with access to system location services
  • Package Manager is used to retrieve files currently installed on the device Various information related to the application package
  • Notification Manager Notification Manager
  • Window Manager Window Manager
  • the activity manager is used to: manage the life cycle of each application and the usual navigation and fallback functions, such as controlling the exit of the application (including switching the user interface currently displayed in the display window to the system desktop), opening the , back (including switching the currently displayed user interface in the display window to the upper-level user interface of the currently displayed user interface), and the like.
  • the window manager is used to manage all window programs, such as obtaining the size of the display screen, judging whether there is a status bar, locking the screen, capturing the screen, and controlling the change of the display window (such as reducing the display window, shaking the display, twisting the display) deformation display, etc.), etc.
  • the system runtime layer provides support for the upper layer, that is, the framework layer.
  • the Android operating system will run the C/C++ library included in the system runtime layer to implement the functions to be implemented by the framework layer.
  • the kernel layer is the layer between hardware and software. As shown in Figure 4, the kernel layer at least 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, touch sensors, pressure sensors, etc.), etc.
  • the kernel layer at least 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, touch sensors, pressure sensors, etc.), etc.
  • the kernel layer further includes a power driver module for power management.
  • software programs and/or modules corresponding to the software architecture in FIG. 4 are stored in the first memory or the second memory shown in FIG. 2 or FIG. 3 .
  • the remote control receiving device receives the input operation of the remote control
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes the input operation into the original input event (including the value of the input operation, the timestamp of the input operation and other information).
  • Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, identifies the control corresponding to the input event according to the current position of the focus, and regards the input operation as a confirmation operation, and the control corresponding to the confirmation operation is the control of the magic mirror application icon.
  • the mirror application calls the interface of the application framework layer, starts the mirror application, and then starts the camera driver by calling the kernel layer to capture still images or videos through the camera.
  • the display device receives an input operation (such as a split-screen operation) performed by the user on the display screen, and the kernel layer can generate corresponding input operations according to the input operation. Enter an event and report the event to the application framework layer.
  • the window mode (such as multi-window mode) and window position and size corresponding to the input operation are set by the activity manager of the application framework layer.
  • the window management of the application framework layer draws the window according to the settings of the activity manager, and then sends the drawn window data to the display driver of the kernel layer, and the display driver displays the corresponding application interface in different display areas of the display screen.
  • the application layer contains at least one application that can display corresponding icon controls in the display, such as: live TV application icon control, video on demand application icon control, media center application Program icon controls, application center icon controls, game application icon controls, etc.
  • the live TV application may provide live TV from different sources.
  • a live TV application may provide a TV signal using input from cable, over-the-air, satellite services, or other types of live TV services.
  • the live TV application may display the video of the live TV signal on the display device 200 .
  • a video-on-demand application may provide video from various storage sources. Unlike live TV applications, video-on-demand provides a display of video from certain storage sources. For example, video-on-demand can come from the server side of cloud storage, from local hard disk storage containing existing video programs.
  • the media center application may provide various multimedia content playback applications.
  • a media center may provide services other than live TV or video-on-demand, where users can access various images or audio through a media center application.
  • the application center may provide storage of various applications.
  • An application can be a game, an application, or some other application that is related to a computer system or other device but can be run on a Smart TV.
  • the application center can obtain these applications from various sources, store them in local storage, and then run them on the display device 200 .
  • the above embodiments describe the hardware/software architecture and function implementation of the display device.
  • the user can switch the channel through the channel switch button on the remote control.
  • the channel switch button generally includes "+ button” and "- button”.
  • “+ button” can switch channels backward.
  • the direction in which the channel number in the channel list increases; the "-key” realizes the forward (ie backward) switching of channels, and forward can refer to the direction in which the channel number in the channel list decreases.
  • the user can tune the channel to the channel he wants to watch by operating the switching direction and the number of clicks of the channel switching key.
  • the channel type of the channel can be a DTV channel or an OTT channel. Clicking the channel switch button generally realizes fast and continuous channel switching.
  • the user can also directly input the channel serial number to directly locate and switch to the desired channel. In this case, the channel switching may be discontinuous in serial numbers. .
  • the OTT channel Since OTT services are inseparable from the Internet, the OTT channel starts the browser application in the state of network connection, and realizes the playback of channel audio and video resources through the built-in player in the browser application. Therefore, the time-consuming to switch to the OTT channel generally includes audio and video resources. Time-consuming video resource loading + time-consuming browser application startup; DTV channels can be played only by connecting the display device to the set-top box, and there is no need to connect to the network and start the browser application. Therefore, the time-consuming switching to DTV channels is to load the channel audio and video. resource consumption.
  • the channel type is not limited in this application, and the solution of the application for fast channel switching can also be applied to other types, and the specific signal source actually connected to the display device shall prevail.
  • Table 1 exemplarily shows a channel list, each row in the channel list represents channel information corresponding to a channel, and the channel information includes a channel number, a channel ID, a channel name, and a channel type.
  • the channel number is used to mark the sorting position of a certain channel in the channel list, which is convenient for the positioning of the channel;
  • the channel ID is used to identify and distinguish each channel, each channel has a unique ID value, and the IDs of any two channels are different ;
  • the channel name indicates the actual real name of the channel; the channel type is used to mark whether the channel is DTV or OTT, which is equivalent to marking the signal source of the channel.
  • DTV channels and OTT channels are uniformly recorded in the same channel list, and DTV channels and OTT channels can be mixed and sorted. Focus on watching a single type of channel. For example, the channel the user is currently watching is CCTV-2 with serial number 002. If the user presses the "+ button" of the channel switching key once, he needs to switch to BBC sports with serial number 003, that is, the channel type is switched from DTV channel to OTT. For example, if the user continuously clicks the "+ button" of the channel switching key again, the latest switching target is CCTV-3 with serial number 004. At this time, the channel type is switched from OTT channel to DTV channel. This kind of channel cross-ordering will be frequent The switching of the channel type appears.
  • the two-way switching between DTV channels and OTT channels is essentially a switching between physical sources and browser applications. Resource management is required for each switching, that is, a process of waiting for application resources to be released. When switching between different types of channels quickly, the switching speed is slow, and it takes a long time to wait for each switching request to be responded to, and it is impossible to quickly switch to the latest channel, which affects the user's viewing experience.
  • a corresponding channel switching request will be generated every time the user operates to switch a channel.
  • several queues may be set, such as Switch request queues, pending request queues, and destination queues, etc.
  • the switching request queue records the channel information of the channel currently being switched;
  • the pending request queue records the channel information of the currently to-be-switched channel, and the current to-be-switched channel is located by the channel switching operation currently input by the user Channel;
  • the channel information of the channel that has been switched is recorded in the destination queue.
  • the channel information recorded in the above-mentioned types of queues may include a channel ID.
  • the setting form and function configuration of the multi-queue are not limited to those described in this embodiment.
  • the destination queue may not be set.
  • the controller 250 when the controller 250 receives the switching request of DTVChannel1, it starts the switching task of DTVChannel1 and adds DTVChannel1 to the switching request queue ; After that, the switching request of DTVChannel2 is received. Since the switching of DTVChannel1 has not been completed at this time, DTVChannel2 is added to the pending request queue and waits for a response; the switching request of OTTChannel1 is continuously received in a short period of time, and DTVChannel1 is still switching at this time.
  • OTTChannel1 is waiting, that is, OTTChannel1 needs to be added to the pending request queue, because the latest channel is no longer DTVChannel2, but OTTChannel1, that is, based on the user's switching operation in time, the request of DTVChannel2 It is equivalent to expired, so DTVChannel2 can be removed from the pending request queue.
  • the purpose of this processing is that if DTVChannel1 is switched over, DTVChannel2 can be skipped, and then quickly respond and switch to OTTChannel1; after that, the switch of OTTChannel2 is received.
  • the switching of DTVChannel1 has not ended, then remove OTTChannel1 from the pending request queue in the same way, and add OTTChannel2 to the pending request queue; when the switching task of DTVChannel1 ends, move DTVChannel1 from the switching request queue.
  • the controller needs to continue to monitor whether it receives the switching request of the next channel, and so on.
  • the pending request queue can actually store the channel ID corresponding to the switching request generated when the user switches channels quickly and multiple times, but in this application, the pending request queue only saves the current latest positioning.
  • the channel to be switched (OTTChannel2), remove the expired channels (DTVChannel2 and OTTChannel1) between OTTChannel2 and the channel currently being switched (DTVChannel2 and OTTChannel1), and then switch directly to OTTChannel2 after the switching of DTVChannel1 is completed, thereby eliminating DTVChannel2 and OTTChannel1
  • the time-consuming switching between DTVChannel1 and OTTChannel2 is compressed, so that the display device can display the latest positioned channel more quickly and improve the user's viewing experience.
  • the multi-queue may be empty or non-empty. Empty means that the queue does not include any channel ID. When the queue includes at least one channel ID, the queue is not empty. When the switching request queue is empty, it means that there is no channel being switched. At this time, if the controller monitors the switching request of the channel, it can directly add the channel to the switching request queue and start the switching task; when the switching request queue When it is non-empty, that is, there is currently a channel being switched and processed, the subsequent channel needs to be added to the pending request queue.
  • the queue of pending requests When the queue of pending requests is empty, it includes two situations: one is that after the channel currently being switched, the controller 250 has not received a switching request from other channels, that is, the user is waiting to watch the channel currently being switched, Without switching other channels, in this case, if a channel switching request is received, it will directly transfer to the pending request queue and wait for the switching request queue to become empty; The channel to be switched. At this time, the pending request queue and the switching request queue are both empty.
  • the channel switching method provided in FIG. 7 can be configured and executed by the controller 250 in the display device, that is, the controller 250 is the execution subject of the method, and the method includes the following program steps:
  • Step S10 in response to the channel switching operation, determine whether the switching request queue is empty. If the handover request queue is not empty, execute step S20; otherwise, if the handover request queue is empty, execute step S60.
  • Step S20 it is determined whether the pending request queue is empty. If the to-be-processed request queue is not empty, step S30 is performed; otherwise, if the to-be-processed request queue is empty, step S50 is performed.
  • step S30 all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue.
  • Step S30 is to add the current channel information to be switched (that is, the ID of the newly positioned channel to be switched) into the pending request queue, and at the same time delete all the previously expired channel information, so as to skip the expired channel and directly switch to the latest positioned channel. channel to improve the speed and efficiency of channel switching.
  • Step S40 when the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
  • step S40 that is, when the switching of the channel currently being switched is completed, the channel information currently existing in the pending request queue is transferred to the switching request queue, and the switching task of the currently pending channel is started, so that it is in the next channel.
  • the channel of the waiting bit changes to the channel in switching.
  • Step S50 Store the channel information to be switched currently in the pending request queue, and wait for the switching request queue to become empty.
  • the switching request queue is not empty and the pending request queue is empty, it is not necessary to clear the pending request queue, but directly store the received channel information to be switched in the pending request queue.
  • Step S60 directly start and execute the switching task of the channel to be switched currently, and store the information of the channel to be switched currently in the switching request queue.
  • the switching request queue is empty, if a channel switching request is received, the channel information corresponding to the channel switching request is directly stored in the switching request queue, and the corresponding switching task can be started directly in response to the channel switching request.
  • a destination queue may be set, and the destination queue includes the channel information of the channel that has been switched, then after step S40, when the switching request is made After the execution of the switching task of the channels in the queue is completed, the channel information in the switching request queue is moved to the destination queue, so as to ensure that the switching process of the corresponding channel has reached the end point and the switching task has been completed.
  • the channel corresponding to the channel switching operation and its channel information can be located in the channel list as shown in Table 1, and the method further includes: in response to receiving In the channel switching operation, locate the current channel to be switched corresponding to the channel switching operation in the channel list, and obtain the current channel information to be switched; wherein the channel information includes channel type and channel ID.
  • a flag bit for identifying the channel type may be set in the channel ID. Taking the channel ID as DTVChannel1 as an example, the flag bit reserved in the header of the channel ID identifies the DTV, indicating that it belongs to a DTV channel. In this manner, the channel type can be automatically identified when the channel ID is identified.
  • the channel information stored in the multiple queues may include the channel ID. If the channel ID does not carry the channel type information, the channel information stored in the multiple queues may include the channel ID and the channel type.
  • the switching request queue when the switching request queue is not empty, it means that there is currently a channel being switched. If a new channel switching request is received, the switching task of the channel corresponding to the channel switching request cannot be started immediately. To transfer the channel switching request to pending processing, it is necessary to first determine the channel type of the channel to be transferred. If the channel type of the channel to be switched currently is a DTV channel, the first path can be created. The first path is The DTV channel path is equivalent to establishing a DTV TV flow (TV flow) to receive audio and video resources of a certain DTV channel from the TV flow of the first path when the switching task is performed subsequently; if the channel type of the channel to be switched is currently If it is an OTT channel, the second path is established.
  • a DTV TV flow TV flow
  • the second path is the OTT channel path, which is equivalent to establishing an OTT flow of the OTT channel, which is used to receive OTT from the OTT flow of the second path during subsequent switching tasks.
  • the audio and video resources of the channel Before starting the switching task, each channel needs to establish its own channel path, so as to facilitate the subsequent reception of audio and video streams through the path, which is equivalent to making preparations before switching in the pending stage.
  • When starting the switching task from The corresponding path receives audio and video resources, and then loads the audio and video resources into the UI to play.
  • a TV service (TV Service) application and a browser (browser) application are generally preset in the controller 250 .
  • the controller 250 sends a channel switching request to the TV service application, and the TV service application receives the audio and video resources of the DTV channel from the first path, and then loads the audio and video resources to the user interface UI, and the loading is successful After the channel switching completion indication information is fed back, the switching task ends.
  • the controller 250 when switching to an OTT channel, sends a channel switching request to the TV service application, and the TV service application receives the audio and video resources of the OTT channel from the second path, and the audio and video resources of the OTT channel may be URL (Uniform Resource Locator, Uniform Resource Locator), URL is the network address of audio and video resources, and then start the browser application, the browser application built-in player loads the audio and video resource URL, so as to play on the display user interface The audio and video resources of the OTT channel and the status information of the browser application being opened are fed back, and the switching task ends.
  • URL Uniform Resource Locator
  • the switching task of the channel ends, that is, when the switching request queue is transformed into an empty queue, it is determined whether the pending request queue is empty. If the pending request queue is empty, the controller 250 does not continue to perform other switching tasks, and the controller continues Monitor the channel processing request until the new incoming channel processing request is monitored, and then the channel switching task corresponding to the new request can be directly processed; if the pending request queue is not empty, indicating that there is a channel waiting to be switched, the pending request will be started. The switching task of the channel corresponding to the channel information currently existing in the queue.
  • a switching request queue, a pending request queue and a destination queue are set, and the switching process and status of each channel can be adjusted according to the switching process and status of each channel. , dynamically update and adjust the channel information in each queue.
  • the switching request queue is empty. If the switching request queue is not empty, it means that there is a task in the process of channel switching, and then it is further judged whether the pending request queue is empty. If the user has quickly switched multiple channels before, there will be channel information (that is, not empty) in the pending request queue.
  • this application chooses to remove all channel information in the pending request queue, that is, clear the pending request queue. request queue, and store the latest currently positioned channel information in the pending request queue.
  • the purpose of this setting is to skip the channel between the channel currently being switched and the channel currently When the channel switching is completed, it directly switches to the latest channel to be switched, thereby avoiding a lot of time-consuming caused by switching other channels one by one.
  • the channel information in the pending request queue is moved to the switching request queue, and the switching task of the latest pending channel is started. It can be seen from the above discussion that the present application can make the pending request queue retain only the latest channel information to be switched, skip the previously backlogged channel switching requests, and compress the time-consuming switching between channels when the user switches channels quickly, so as to quickly Switching to the latest channel improves channel switching efficiency and significantly improves user viewing experience.
  • Embodiments of the present application provide a playback control method and a display device, which are used to control playback of an external device connected to an HDMI channel when switching between a certain HDMI channel and other signal source channels.
  • a first key control instruction is sent to the external device connected to the first HDMI channel, and the first key control instruction carries a first value used to instruct the external device to pause playback, To make the external device pause playback;
  • the target channel includes a second HDMI channel different from the first HDMI channel, or a non-HDMI channel;
  • a second key control command is sent to the external device connected to the first HDMI channel, and the second key control command carries the second value used to instruct the external device to start playback, so that all The external device described above starts playback.
  • the embodiment of the present application also provides a playback control method, which is applied to a display device, including:
  • the target channel When switching from the HDMI channel of the first high-definition multimedia interface to the target channel, send a first key control instruction to the external device accessing the first HDMI channel, and the first key control instruction carries the first key control instruction used to instruct the external device to pause playback value to make the external device pause playback;
  • the target channel includes a second HDMI channel different from the first HDMI channel, or a non-HDMI channel;
  • the display device when the display device switches between multiple signal source channels, after switching from a certain HDMI channel to another signal source channel, the external device connected to the HDMI channel still continues to play, the The situation may cause the playback content of the display device after switching from other signal source channels back to the HDMI channel to be discontinuous with the playback content before switching from the HDMI channel to other signal source channels, and may also lead to an increase in the number of external devices connected to the HDMI channel. Loss of equipment, increased power consumption of the external equipment, etc.
  • the current playback content of the display device is the DVD The player's currently playing content.
  • the display device switches from the first HDMI channel to the TV channel, the display device switches to play the content transmitted by the TV channel, and the DVD player Movie A continues to play.
  • the display device If the display device returns from the TV channel to the first HDMI channel 10 minutes after switching to the TV channel, the display device switches to playing the currently playing content of the DVD player. At this time, the DVD device has played to the 30th minute of movie A, and the content played by the display device is also the content of the 30th minute of movie A. This playback content is the same as before the display device switches from the first HDMI channel to the TV channel. The playback content is discontinuous.
  • an embodiment of the present application provides a playback control method, which can be applied to a display device such as a smart TV, so that when the display device switches between a certain HDMI channel and other signal source channels, it controls access to the HDMI channel playback of external devices.
  • the playback control method may include: when switching from the first HDMI channel to the target channel, controlling the external device connected to the first HDMI channel to pause playback.
  • the above-mentioned first HDMI channel may be any HDMI channel in the display device.
  • the HDMI channel can be used as the first HDMI channel, and the playback control method provided by this application is applied.
  • the above-mentioned target channel may be any signal source channel other than the first HDMI channel.
  • the target channel may be a non-HDMI channel, such as a TV channel.
  • the target channel may be another HDMI channel other than the first HDMI channel. For example, if there are three HDMI channels in the display device: HDMI1, HDMI2 and HDMI3, when switching from the current HDMI1 to HDMI2, HDMI1 can be used as the first HDMI channel and HDMI2 can be used as the target channel.
  • the playback control method may further include: when restoring from the target channel to the first HDMI channel, controlling an external device connected to the first HDMI channel to start playback.
  • FIG. 8 exemplarily shows a flowchart of a playback control method provided by an embodiment of the present application. As shown in Figure 8, the process may include the following steps:
  • Step S41 when switching from the first HDMI channel to the target channel, send a first key control instruction to the external device accessing the first HDMI channel, and the first key control instruction carries the first key for instructing the external device to pause playback. value to make the external device connected to the first HDMI channel pause playback.
  • This step S41 is to switch from the first HDMI channel to the target channel, so it is easy to understand that, before performing this step S41, the current channel of the display device is the first HDMI channel.
  • the display device Before switching from the first HDMI channel to the target channel, the display device can play the playback content transmitted through the first HDMI channel, that is, play the playback content provided by the external device connected to the first HDMI channel; After the channel is switched to the target channel, the display device can play the playback content transmitted through the target channel.
  • the display device may switch from the first HDMI channel to the target channel when receiving the first switching instruction input from the external.
  • the first switching instruction here is used to instruct switching from the first HDMI channel to the target channel.
  • the first switching instruction can be input by a user operating the control device.
  • the display device may display at least one signal source channel in response to a key input command corresponding to an "INPUT" key on the control device, and switch to the target channel in response to a selection command of the target channel input through the control device. the target channel.
  • the selection command input through the control device is directed to the current first HDMI channel, the switching operation may not be performed; the selection command input through the control device is directed to signal source channels other than the current first HDMI channel
  • switch to the target channel is executed.
  • the first switching instruction can be automatically issued by the display device when a preset condition is satisfied.
  • the preset condition here may include reaching a preset time and the like.
  • both the display device and the external device connected to the first HDMI channel are enabled with a configured Consumer Electronics Control (CEC) function.
  • the CEC function allows the user to use one control device to control multiple devices supporting the CEC function on the same CEC bus, where the multiple devices supporting the CEC function may include: a display device and at least one external device connected to the display device through an HDMI interface .
  • the first key control instruction sent to the external device in this step S41 may be the User Control Pressed instruction and the User Control Released instruction in the CEC function, and these two instructions both carry the first value Pause (pause playback ) to instruct the external device to pause playback.
  • the two commands both carry the key parameter key, and the key parameter key is the first value of Pause.
  • the first value here is named for the convenience of distinguishing it from the second value in the following, and has nothing to do with the actual value.
  • the User Control Pressed command and the User Control Released command are mainly used to transmit the user's key operation on the control device, and the key parameters ( key) to pass different key operations.
  • the User Control Pressed command is mainly used to transmit the user's pressing operation on the keys on the control device
  • the User Control Released command is mainly used to transmit the user's release operation of the keys on the control device.
  • These two commands are usually used in pairs; common control
  • the buttons on the device include: fast forward, fast backward, start playback (Play), pause playback (Pause), previous channel, next channel, stop, exit, up, down, left, right, confirm and so on.
  • Step S42 when restoring from the target channel to the first HDMI channel, send a second key control command to the external device accessing the first HDMI channel, the second key control command carrying the second key for instructing the external device to start playing. value, so that the external device connected to the first HDMI channel starts playback.
  • the target channel is restored to the first HDMI channel, so it is easy to understand that when this step S42 is executed, the current channel of the display device is the target channel.
  • the display device may switch from the target channel to the first HDMI channel when receiving the second switching instruction input from the external.
  • the second switching instruction here is used to instruct switching from the target channel to the first HDMI channel.
  • the second switching instruction can also be input by the user operating the control device.
  • the display device may automatically issue a second switching instruction to restore from the target channel to the first HDMI channel when the preset condition is satisfied.
  • the second key input command sent to the external device in this step S42 may be the User Control Pressed command and the User Control Released command, and both of these two commands carry the second value Play (start playing), which is used for Instructs the external device to start playback.
  • the User Control Pressed instruction and the User Control Released instruction can both carry the key parameter key, and the key parameter key is the second value of Play.
  • the User Control Pressed command and the User Control Released command with the value of the key parameter key carried by the external device are sent to the external device to simulate the user's pressing and releasing operations on the Play key on the control device, so that the external device starts playing .
  • the target channel is the second HDMI channel
  • the first button controls the instruction to make the external device connected to the second HDMI channel pause the playback.
  • the display device can control the external device connected to the first HDMI channel to pause playback when switching from the first HDMI channel to the target channel, and can control the external device connected to the first HDMI channel to pause playback when switching from the target channel to the first HDMI channel.
  • An external device connected to the first HDMI channel starts playback.
  • the second key control instruction when restoring from the target channel to the first HDMI channel, may not be sent to the external device connected to the first HDMI channel, so that the external device responds to the external input
  • the instruction to start playback starts playback.
  • the second HDMI channel may be sent to the external device connected to the first HDMI channel.
  • Button control command to control the external device to start playing.
  • the process of switching from the first HDMI channel to the target channel in the above step S41 may include multiple steps.
  • the target channel as the TV channel as an example, the process of switching from the first HDMI channel to the TV channel and when to send the first key control command to the external device accessing the first HDMI channel in this process are carried out with reference to FIG. 9 . describe.
  • FIG. 9 exemplarily shows an implementation flowchart of step S41 provided by this embodiment of the present application. As shown in Figure 9, the process may include the following steps:
  • Step S51 releasing the resources occupied by the first HDMI channel.
  • releasing the resources occupied by the first HDMI channel may include: releasing the connection between the terminal occupied by the first HDMI channel and the player corresponding to the terminal, and releasing the connection of the first HDMI channel to the terminal occupied.
  • the video decoder corresponding to the window terminal can be stopped, If the terminal occupied by the first HDMI channel is an audio terminal (audio terminal), the audio decoder corresponding to the audio terminal can be stopped.
  • the above-mentioned audio terminal may be an earphone, a speaker, etc., and the window terminal may be a display or the like.
  • the path established between the HDMI channel and the terminal can be destroyed. If the terminal occupied by the first HDMI channel is a window terminal, the video corresponding to the window terminal can be closed. Decoder, if the terminal occupied by the first HDMI channel is an audio terminal, the audio decoder corresponding to the audio terminal can be turned off.
  • Step S52 Send a first key control instruction to the external device connected to the first HDMI channel, where the first key control instruction carries a first value used to instruct the external device to pause playback.
  • Step S53 Allocate required resources for the TV channel.
  • a path may be established between the TV channel and a terminal required by the TV channel, so that the TV channel occupies the terminal.
  • a connection between the terminal required for the TV channel and the player corresponding to the terminal can be established, and the player corresponding to the terminal can be started. For example, when the terminal occupied by the TV channel is a window terminal, the video decoder corresponding to the window terminal is activated, and when the terminal occupied by the TV channel is an audio terminal, the audio decoder corresponding to the audio terminal is activated.
  • the process shown in FIG. 9 can be executed when switching from the first HDMI channel to the target channel is required, for example, when an instruction inputted by a user to instruct to switch to the target channel is received.
  • the process of switching from the target channel to the first HDMI channel in the above step S42 includes multiple steps.
  • the following takes the target channel as the TV channel as an example, combined with the process shown in FIG. 10, the process of switching from the TV channel to the first HDMI channel, and when to send the second HDMI channel to the external device connected to the first HDMI channel in the process. Button control commands are described.
  • FIG. 10 exemplarily shows a flowchart of the implementation of step S42 provided in this embodiment of the present application. As shown in Figure 10, the process may include the following steps:
  • Step S61 release the resources occupied by the TV channel.
  • this step S61 is similar to the above-mentioned step S51.
  • Step S62 Allocate required resources for the first HDMI channel.
  • this step S62 is similar to the above-mentioned step S53.
  • Step S63 Send a second key control instruction to the external device connected to the first HDMI channel, where the second key control instruction carries a second value used to instruct the external device to start playing.
  • the process shown in FIG. 10 can be executed when switching from the target channel to the first HDMI channel is required.
  • the processes shown in FIG. 9 and FIG. 10 may be completed by one or more modules in the display device.
  • FIG. 9 and FIG. 10 are only examples, and are not used to specifically limit the present application. In practical application, there may be other processes of switching from the first HDMI channel to the target channel and from the target channel to the first HDMI channel, which will not be described in detail here.
  • the display device can control the external device connected to the first HDMI channel to pause playback when switching from the first HDMI channel to the target channel, and can also control the external device connected to the first HDMI channel to pause playback when switching from the target channel to the first HDMI channel.
  • An external device connected to the first HDMI channel starts playback. In this way, it can be avoided that when switching from the first HDMI channel to the target channel, the external device connected to the first HDMI channel continues to play, resulting in the playback content after restoring from the target channel to the first HDMI channel and the playback content from the first HDMI channel.
  • the playback content is discontinuous before the channel is switched to the target channel.
  • the third aspect is a first aspect:
  • An embodiment of the present application provides a display device, including: a display; at least one HDMI port for connecting to an external device that provides multimedia content, wherein the external device is in a standby state;
  • the power management module is used to control the display device to be turned off or turned on;
  • the target external device according to the port parameters of the target external device connected to the target HDMI port of the display device, configure the power-on wake-up reason for the display device to enter the power-on state from the off state, so that after the display device enters the power-on state, according to the configured
  • the said power-on wake-up cause switches the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port.
  • An embodiment of the present application provides a display device, including: a display; at least one HDMI port for connecting an external device, wherein the external device is a device for providing multimedia services; and a controller.
  • the controller is configured to execute: when the display device is in a power-off state, receive a power-on wake-up command sent by a connected external device, and switch the display device from the power-off state to the power-on state according to the power-on wake-up command Determine the target external device that sends the power-on wake-up command during the state of the display device, and configure the power-on wake-up reason for the display device to enter the power-on state from the off state according to the port parameters of the target external device connected to the target HDMI port of the display device, so that the display device can be turned on. After entering the power-on state, switch the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port according to the configured wake-up reason.
  • the embodiment of the present application also provides a channel switching method, which is applied to a display device, and the method includes:
  • the target external device according to the port parameters of the target external device connecting to the target HDMI port of the display device, configure the wake-up reason for the display device to enter the power-on state from the off state, so that the display device enters the power-on state.
  • the reason for power-on wake-up is to switch the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port.
  • FIG. 11 is a schematic flowchart of a channel switching method provided by an embodiment of the present application.
  • the process may include the following steps:
  • Step 101 Receive the power-on wake-up command sent by the connected external device when the display device is in the off state, and determine the target of sending the power-on wake-up command in the process of switching the display device from the power-off state to the power-on state according to the power-on wake-up command external device.
  • the external device may be in a standby state, and in response to a power-on command for instructing the external device to enter a power-on state from a standby state, the external device sends the power-on wake-up command described in step 101 to the display device.
  • the external device may be in a power-off state, in response to a power-on command for instructing the external device to enter a power-on state from a power-off state, and then send the power-on wake-up command described in step 101 to the display device.
  • the power-on wake-up command does not carry relevant information that can be used to identify the external device and the target HDMI port to which the external device is connected. Therefore, after receiving the power-on wake-up command sent by the external device, the display device can neither determine the target external device to send the power-on wake-up command according to the power-on wake-up command, nor determine whether the target external device is in the local display device according to the power-on wake-up command. Displays the target HDMI port plugged into the device. As for how to determine the port parameters of the target external device and the target HDMI port in this step 101, it will be described below in conjunction with Figure 12 and Figure 13, and will not be repeated here.
  • the HDMI port parameter can be used to identify the HDMI channel, such as the port identification of the HDMI port.
  • Step 102 Configure the reason for the display device to wake up from the power-off state to the power-on state according to the port parameters of the target HDMI port of the target external device connected to the display device, so that the display device enters the power-on state and wakes up according to the configured power-on state.
  • Step 102 Configure the reason for the display device to wake up from the power-off state to the power-on state according to the port parameters of the target HDMI port of the target external device connected to the display device, so that the display device enters the power-on state and wakes up according to the configured power-on state.
  • the reason for wake-up at power-on may include port parameters.
  • the wake-up reason may be configured based on the port parameters, for example, the port parameters determined in the above step 101 may be written into the wake-up reason.
  • the port parameter of the reason for power-on wake-up is the port parameter of the first HDMI port, it means that the display device is turned off from the power-off state by the power-on wake-up command sent by the external device received via the first HDMI port.
  • the display device needs to switch the playback channel to the first HDMI channel corresponding to the aforementioned first HDMI port after the display device is turned on, so as to play the multimedia content provided by the external device through the first HDMI channel;
  • the parameter is the port parameter of the second HDMI port, it means that the display device is turned on by the power-on wake-up command sent by the external device received through the second HDMI port to make the display device enter the power-on state from the off state, indicating that the display device is in the power-on state.
  • the playback channel needs to be switched to the second HDMI channel corresponding to the aforementioned second HDMI port, so as to play the multimedia content provided by the external device through the second HDMI channel.
  • the power-on wake-up reason can be sent to the TV Service.
  • the TV Service will parse out the port parameters configured in the wake-up cause, and generate a playback channel switching instruction based on the port parameters.
  • the playback channel switching instruction is used to instruct the playback channel control module to switch the playback channel to the HDMI corresponding to the target HDMI port. aisle.
  • the TV Service detects that the display device has entered the power-on state, it will immediately send the playback channel switching instruction to the playback channel control module, and the playback channel control module will switch the playback channel to the target in response to the playback channel switching instruction.
  • the display device When the display device enters the power-on state from the power-off state, it will directly switch the playback channel to the target HDMI channel corresponding to the target HDMI port according to the port parameters in the above-configured power-on wake-up reason.
  • the display device when the display device receives a power-on wake-up command sent by an external device, it no longer only controls the display device to enter the power-on state from a power-off state, but additionally acquires and sends the power-on wake-up command.
  • the port parameter of the target HDMI port that the external device is connected to, and the wake-up reason is generated according to the port parameter, and then when the display device enters the power-on state, the playback channel can be switched to the external device directly according to the wake-up reason.
  • the HDMI channel corresponding to the HDMI port does not need to wait for the channel switching command sent by the external device before switching, nor will the playback channel be switched to the default channel or the channel used before shutdown, which fundamentally avoids TV playback. Problems such as splash screen and black screen appear due to channel switching.
  • the following describes how to determine the target external device that sends the power-on wake-up command in the above step 101 .
  • FIG. 12 is a flowchart for realizing step 101 provided in this embodiment of the present application. As shown in Figure 12, the process may include the following steps:
  • Step 201 Send a probe message to each preset logical address.
  • logical addresses may be set locally in the display device in advance, and the logical addresses are used to allocate the external device when the external device accesses the display device, so as to distinguish and communicate with different external devices.
  • the logical addresses corresponding to the DVD device may be 4, 8, and 11. Then, when assigning a logical address to the DVD device, one of the above 4, 8, and 11 may be selected for assignment. It should be noted here that if the display device is connected to multiple external devices of the same type, the logical addresses of these external devices of the same type are different.
  • the logical address of the DVD terminal can only be set to 4, 8, and 11 in advance, then the logical address of one DVD terminal is 4, and the logical address of the other DVD terminal can only be 8 or 11.
  • the logical addresses of other types of terminals will not be duplicated with the logical addresses of DVDs, thus ensuring that the logical addresses of each external device are unique.
  • a probe message may be sent to each preset logical address through a device polling thread.
  • the display device after the display device receives the wake-up power-on instruction, the display device first starts a device polling thread.
  • the device polling thread is used for polling and sending a probe message to each preset logical address, so as to detect whether the logical address corresponds to an external device. Since the number of pre-configured logical addresses of the display device is fixed, the logical address of each external device connected to the display device must be one of the above-mentioned pre-configured logical addresses.
  • the logical address sends the probe message, which can send the probe message to each external device connected to the display device.
  • Step 202 when a response message in response to any probe message is received, obtain the target logical address from the specified response message, where the target logical address is used to identify the target external device that sends the power-on wake-up command.
  • the detection message is used to detect whether the external device that has received the message has sent a wake-up power-on instruction within a specified period of time.
  • the external device that receives the probe message does not send a wake-up power-on command within a specified period of time, the external device will send an unspecified response message in response to the probe message.
  • the unspecified response message may carry a HUI_CEC_RF string, which is used to identify the message as an unspecified response message.
  • the external device that receives the probe message sends a wake-up power-on command within a specified period of time
  • the external device will send a specified response message in response to the probe message.
  • the specified response message may carry a HUI_CEC_TX_SUCCESS string, which is used to identify that the message is an unspecified response message.
  • the response message After receiving the response message, if the response message carries a character string used to identify the response message as a designated response message, such as HUI_CEC_TX_SUCCESS, it can be determined that the response message is a designated response message. After that, the logical address of the sender carried in the received designated response message may be determined as the target logical address, that is, the logical address of the target external device that sends the wake-up power-on command. Since the logical address can be used to uniquely identify an external device, after determining the target logical address of the target device, it is equivalent to determining the target device.
  • the above describes how to determine the target external device that sends the power-on wake-up command in the above step 101 .
  • the following describes how to obtain the port parameters of the target HDMI port to which the target external device is connected to the display device in the above step 101 .
  • FIG. 13 is a flowchart for realizing step 101 provided in this embodiment of the present application. As shown in Figure 13, the process may include the following steps:
  • Step 301 Determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address.
  • this step 301 there are multiple implementations for determining the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address.
  • One of the implementations will be described below with reference to the process shown in FIG. 14 , and details will not be described here.
  • the physical address can uniquely identify an HDMI channel, and an HDMI channel is fixedly corresponding to a physical address.
  • the display device has 3 HDMI channels.
  • the physical address of the first HDMI channel is 0x1000
  • the physical address of the second HDMI channel is 0x2000
  • the physical address of the third HDMI channel is 0x3000.
  • the physical addresses of the three are fixed and unique. .
  • Step 302 Obtain port parameters of the target HDMI port according to the target physical address.
  • the corresponding relationship between the physical address of the HDMI channel and the port parameter of the HDMI port corresponding to the HDMI channel is pre-stored in the display device. Based on this, the port parameter corresponding to the target physical address can be found from the above correspondence, and the found port parameter is determined as the port parameter of the target HDMI port.
  • the above describes how to obtain the port parameters of the target HDMI port to which the target external device is connected to the display device in the above step 101 .
  • the following describes how to determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address in the above step 301 .
  • FIG. 14 is a flowchart for realizing step 301 provided in this embodiment of the present application. As shown in Figure 14, the process may include the following steps:
  • Step 401 check whether the target logical address is the logical address pre-allocated by the display device; if so, go to step 402 ; if not, go to step 403 .
  • the display device when an external device is connected to the display device, the display device will assign a logical address to the external device.
  • the display device allocates a logical address to an external device, it will set the allocation status of the logical address to allocated, otherwise, it will set the allocation status of the logical address to unallocated by default.
  • the display device is in a standby state or a shutdown state when an external device is connected to the display device, since the display device cannot detect the access of the external device, it cannot assign a logical address to the external device.
  • the logical address of the external device is still the logical address assigned to it by the connected display device. Based on this, although the target external device can receive the probe message and send the specified response message, the target logical address is in an unassigned state.
  • Step 402 Determine the physical address corresponding to the target logical address according to the locally stored logical address-physical address correspondence, and determine the physical address corresponding to the determined target logical address as the target physical address.
  • This step 402 is executed on the premise that the target logical address is a logical address pre-allocated by the display device.
  • a logical address-physical address correspondence relationship is pre-stored in the display device.
  • the physical address refers to the physical address of the HDMI channel in the display device
  • the logical address corresponding to the physical address depends on whether the HDMI channel corresponding to the physical address is connected to an external device, and whether the display device is allocated to the external device. the logical address. For example, if the HDMI channel corresponding to the physical address is connected to an external device, and a logical address is allocated to the external device, the logical address corresponding to the physical address is the logical address allocated to the external device.
  • the logical address corresponding to the physical address is the default.
  • the default logical address refers to other logical addresses other than the pre-set logical addresses allocated to external devices.
  • the target logical address is a pre-allocated logical address
  • the physical address corresponding to the target logical address is recorded in the logical address-physical address correspondence, so it can be obtained from the logical address-physical address correspondence
  • the target physical address corresponding to the target logical address is found.
  • the target logical address may be used as a key, and a target correspondence including the key may be found in the logical address-physical address correspondence. After that, the physical address recorded in the target correspondence is determined as the target physical address corresponding to the target logical address.
  • Step 403 Send a physical address acquisition message to the target logical address.
  • This step 403 is executed on the premise that the target logical address is not the logical address pre-allocated by the display device.
  • the target logical address of the external device is not the allocated logical address, it means that the corresponding relationship between the logical address and the physical address stored in the display device does not exist the target logical address, and naturally it cannot be based on the target logical address.
  • the target physical address is found from the logical address-physical address correspondence. Based on this, it is necessary to actively send a physical address acquisition message to the target external device, so as to acquire the physical address of the HDMI channel to which the target external device is connected.
  • Step 404 Receive a physical address response message sent by the target external device in response to the physical address acquisition message, where the physical address response message carries a physical address.
  • the target external device When the target external device receives the physical address acquisition message sent by the display device, it will respond to the message, carry the physical address of the HDMI channel it stores itself into the physical address response message, and send it to the display device. , so that the display device receives the physical address response message sent by the target external device.
  • the level of the HPD signal of the connected HDMI interface will be pulled up, so that the external device detects a hot-plug event.
  • the external device will actively read the EDID data (including the physical address of the HDMI channel) of the HDMI channel to which it is connected based on the hot-plug event, and store it locally.
  • the display device is in standby or off state, when some external devices are connected to the HDMI channel, the HPD signal will not change. Therefore, since the external device cannot detect the hot-plug event, it will not read
  • the EDID data of the currently connected HDMI channel causes the physical address of the last connected HDMI channel to be stored in the external device.
  • the physical address carried in the physical address response message received in step 404 is not necessarily the physical address of the HDMI channel to which the target external device is connected to the display device.
  • Step 405 If there is no address conflict between the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address, determine the physical address carried in the physical address reply message as the target physical address.
  • the physical address carried in the physical address response message is not necessarily the physical address of the HDMI channel to which the target external device is connected to the display device. Based on this, it is necessary to detect whether there is an address conflict between the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address.
  • There are multiple implementations for detecting whether there is an address conflict as one of the implementations:
  • the logical address corresponding to the physical address carried in the physical address response message (referred to as a reference logical address) can be found in the above-mentioned logical address-physical address correspondence.
  • the reference logical address is the default logical address. If the reference logical address is not the default logical address, it means that the HDMI channel corresponding to the physical address carried in the physical address response message has been connected to an external device, and the external device is not There is an address conflict between the target external device, that is, the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address.
  • the reference logical address is the default logical address, it means that the HDMI channel was not connected to an external device before, and combined with the current HDMI channel connected to an external device, it can be determined that the HDMI channel is currently connected to the external device.
  • the external device is the target external device, then the physical address carried in the physical address response message is the correct physical address, and the HDMI channel corresponding to the physical address is the HDMI channel connected to the target external device, that is, the physical address response message.
  • the physical address carried in the physical address reply message can be determined as the target physical address.
  • the above describes how to determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address in the above step 301 .
  • the present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the computer storage medium is located in the display device, the program may include the channel switching configured by the aforementioned controller 250 when executed. All procedural steps involved in the method.
  • the computer storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).

Abstract

Disclosed are a display method and a display device. The method comprises: in response to a channel switching operation, if a switching request queue is non-empty, determining whether a request queue to be processed is empty; if it is determined that the request queue to be processed is non-empty, removing all channel information from the request queue to be processed, and storing, in the request queue to be processed, channel information that is currently to be subjected to switching; and when the switching request queue becomes empty, starting to execute a switching task of a channel in the request queue to be processed, and moving, to the switching request queue, the channel information in the request queue to be processed.

Description

一种显示方法及显示设备A display method and display device
本申请要求在2020年9月8日提交中国专利局、申请号为202010934814.8申请名称为“一种频道切换方法及显示设备”的优先权;其全部内容通过引用结合在本申请中;本申请要求在2020年8月24日提交中国专利局、申请号为202010857714.X申请名称为“一种播放控制方法及显示设备”的优先权;其全部内容通过引用结合在本申请中;本申请要求在2020年8月13日提交中国专利局、申请号为202010815022.9申请名称为“通道切换方法和显示设备”的优先权;其全部内容通过引用结合在本申请中。This application claims the priority of the application titled "A Channel Switching Method and Display Device" filed with the China Patent Office on September 8, 2020, with the application number of 202010934814.8; the entire contents of which are incorporated into this application by reference; the application requires Submitted to the China Patent Office on August 24, 2020, with the application number of 202010857714.X, the application titled "A playback control method and display device" has priority; its entire contents are incorporated into this application by reference; this application requires The priority of the application titled "Channel Switching Method and Display Device" filed with the China Patent Office on August 13, 2020, with the application number of 202010815022.9; the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及智能电视技术领域,尤其涉及一种显示方法及显示设备。The present application relates to the technical field of smart TVs, and in particular, to a display method and a display device.
背景技术Background technique
OTT(Over The Top)是指通过互联网向用户提供各种应用服务,目前常用的OTT设备比如包括流媒体盒子、电视棒和智能TV等。智能电视可以同时连接机顶盒和OTT设备,从而观看数字电视(Digital Television,DTV)频道以及网络电视频道(即OTT频道)。OTT (Over The Top) refers to providing various application services to users through the Internet. Currently, commonly used OTT devices include streaming media boxes, TV sticks, and smart TVs. Smart TVs can be connected to set-top boxes and OTT devices at the same time, so as to watch digital television (Digital Television, DTV) channels and Internet TV channels (ie, OTT channels).
智能电视中通常会维护一个频道列表,频道列表中记录着DTV频道和OTT频道的频道信息,而DTV频道和OTT频道一般是交叉存储在频道列表中,这样当用户点击频道切换按键时,切换到的下一个频道可能是DTV频道,也可能是OTT频道。A channel list is usually maintained in a smart TV, and the channel list records the channel information of DTV channels and OTT channels, and DTV channels and OTT channels are generally stored in the channel list crosswise, so that when the user clicks the channel switch button, it switches to The next channel of 's may be a DTV channel, or it may be an OTT channel.
发明内容SUMMARY OF THE INVENTION
本申请提供一种显示方法及显示设备。The present application provides a display method and a display device.
第一方面提供的显示设备,包括:The display device provided by the first aspect includes:
用户接口,用于接收用户输入的操作;User interface for receiving user input operations;
所述用户接口连接的控制器,被配置为执行:The user interface is connected to a controller configured to perform:
响应于切换频道操作,如果切换请求队列为非空,则确定待处理请求队列是否为空;In response to the switching channel operation, if the switching request queue is not empty, determine whether the pending request queue is empty;
如果确定待处理请求队列为非空,则将所述待处理请求队列中的全部频道信息移除,并将当前待切换的频道信息存入所述待处理请求队列中;If it is determined that the pending request queue is not empty, then all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue;
当所述切换请求队列转变为空时,启动执行所述待处理请求队列中的频道的切换任务,并将所述待处理请求队列中的频道信息移动至所述切换请求队列。When the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
第二方面提供的频道切换方法,包括:The channel switching method provided by the second aspect includes:
响应于切换频道操作,如果切换请求队列为非空,则确定待处理请求队列是否为空;In response to the switching channel operation, if the switching request queue is not empty, determine whether the pending request queue is empty;
如果确定待处理请求队列为非空,则将所述待处理请求队列中的全部频道信息移除,并将当前待切换的频道信息存入所述待处理请求队列中;If it is determined that the pending request queue is not empty, then all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue;
当所述切换请求队列转变为空时,启动执行所述待处理请求队列中的频道的切换任务,并将所述待处理请求队列中的频道信息移动至所述切换请求队列。When the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例中所需要访问的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the accompanying drawings that need to be accessed in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some of the present application. In the embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1中示例性示出了显示设备200与控制装置100之间操作场景的示意图;FIG. 1 exemplarily shows a schematic diagram of an operation scene between the display device 200 and the control apparatus 100;
图2中示例性示出了图1中显示设备200的硬件配置框图;FIG. 2 exemplarily shows the hardware configuration block diagram of the display device 200 in FIG. 1;
图3中示例性示出了图1中控制装置100的硬件配置框图;FIG. 3 exemplarily shows the hardware configuration block diagram of the control device 100 in FIG. 1;
图4中示例性示出了图1中显示设备200中软件配置示意图;FIG. 4 exemplarily shows a schematic diagram of the software configuration in the display device 200 in FIG. 1;
图5中示例性示出了显示设备200中应用程序的图标控件界面显示示意图;FIG. 5 exemplarily shows a schematic diagram of the icon control interface display of the application program in the display device 200;
图6示例性示出了切换频道过程中各队列的动态调整的示意图;FIG. 6 exemplarily shows a schematic diagram of the dynamic adjustment of each queue in the process of switching channels;
图7中示例性示出了频道切换方法的流程图;Fig. 7 exemplarily shows the flow chart of the channel switching method;
图8中示例性示出了本申请实施例提供的播放控制方法的流程图;FIG. 8 exemplarily shows a flowchart of a playback control method provided by an embodiment of the present application;
图9中示例性示出了本申请实施例提供的步骤S41的实现流程图;FIG. 9 exemplarily shows an implementation flowchart of step S41 provided by the embodiment of the present application;
图10中示例性示出了本申请实施例提供的步骤S42的实现流程图;FIG. 10 exemplarily shows an implementation flowchart of step S42 provided by the embodiment of the present application;
图11中示例性示出了根据一些实施例的通道切换方法的流程图;FIG. 11 exemplarily shows a flowchart of a channel switching method according to some embodiments;
图12中示例性示出了根据一些实施例的步骤101的实现流程图;FIG. 12 exemplarily shows the implementation flow chart of step 101 according to some embodiments;
图13中示例性示出了根据一些实施例的另一种步骤101的实现流程图;FIG. 13 exemplarily shows an implementation flowchart of another step 101 according to some embodiments;
图14中示例性示出了根据一些实施例的步骤301的实现流程图。An implementation flowchart of step 301 according to some embodiments is exemplarily shown in FIG. 14 .
具体实施方式detailed description
为使本申请的目的、实施方式和优点更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,所描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the objectives, implementations and advantages of the present application clearer, the exemplary embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the exemplary embodiments of the present application. Obviously, the exemplary embodiments described It is only a part of the embodiments of the present application, but not all of the embodiments.
基于本申请描述的示例性实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请所附权利要求保护的范围。此外,虽然 本申请中公开内容按照示范性一个或几个实例来介绍,但应理解,可以就这些公开内容的各个方面也可以单独构成一个完整实施方式。Based on the exemplary embodiments described in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the appended claims of this application. Furthermore, while the disclosures in this application have been presented in terms of one or more illustrative examples, it should be understood that various aspects of this disclosure may also constitute a complete embodiment in isolation.
需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the embodiments described below, rather than intended to limit the embodiments of the present application. Unless otherwise specified, these terms are to be understood according to their ordinary and ordinary meanings.
本申请中说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”等是用于区别类似或同类的对象或实体,而不必然意味着限定特定的顺序或先后次序,除非另外注明(Unless otherwise indicated)。应该理解这样使用的用语在适当情况下可以互换,例如能够根据本申请实施例图示或描述中给出那些以外的顺序实施。The terms "first", "second", "third", etc. in the description and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and are not necessarily meant to limit specific Order or precedence unless otherwise indicated. It should be understood that the terms so used are interchangeable under appropriate circumstances, eg, can be implemented in an order other than those given in the illustration or description of the embodiments of the present application.
此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖但不排他的包含,例如,包含了一系列组件的产品或设备不必限于清楚地列出的那些组件,而是可包括没有清楚地列出的或对于这些产品或设备固有的其它组件。Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover but not exclusively include, for example, a product or device incorporating a series of components is not necessarily limited to those explicitly listed, but may include No other components are expressly listed or inherent to these products or devices.
本申请中使用的术语“模块”,是指任何已知或后来开发的硬件、软件、固件、人工智能、模糊逻辑或硬件或/和软件代码的组合,能够执行与该元件相关的功能。The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware or/and software code capable of performing the function associated with that element.
本申请中使用的术语“遥控器”,是指电子设备(如本申请中公开的显示设备)的一个组件,通常可在较短的距离范围内无线控制电子设备。一般使用红外线和/或射频(RF)信号和/或蓝牙与电子设备连接,也可以包括WiFi、无线USB、蓝牙、动作传感器等功能模块。例如:手持式触摸遥控器,是以触摸屏中用户界面取代一般遥控装置中的大部分物理内置硬键。As used in this application, the term "remote control" refers to a component of an electronic device, such as the display device disclosed in this application, that can wirelessly control the electronic device, usually over a short distance. Generally, infrared and/or radio frequency (RF) signals and/or Bluetooth are used to connect with electronic devices, and functional modules such as WiFi, wireless USB, Bluetooth, and motion sensors may also be included. For example, a hand-held touch remote control replaces most of the physical built-in hard keys in a general remote control device with a user interface in a touch screen.
本申请中使用的术语“手势”,是指用户通过一种手型的变化或手部运动等动作,用于表达预期想法、动作、目的/或结果的用户行为。The term "gesture" used in this application refers to a user's behavior that is used by a user to express an expected thought, action, purpose/or result through an action such as a change of hand shape or hand movement.
图1为根据实施例中显示设备与控制装置之间操作场景的示意图。如图1所示,用户可通过智能设备300或控制装置100操作显示设备200。FIG. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in FIG. 1 , a user can operate the display device 200 through the smart device 300 or the control device 100 .
控制装置100可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式,通过无线或有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。The control apparatus 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-distance communication methods, and the display device 200 is controlled wirelessly or wiredly. The user can control the display device 200 by inputting user instructions through keys on the remote control, voice input, control panel input, and the like.
在一些实施例中,也可以使用智能设备300(如移动终端、平板电脑、计算机、笔记本电脑等)以控制显示设备200。例如,使用在智能设备上运行的应用程序控制显示设备200。In some embodiments, a smart device 300 (eg, a mobile terminal, a tablet computer, a computer, a notebook computer, etc.) can 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.
在一些实施例中,显示设备200还可以采用除了控制装置100和智能设备300之外的方式进行控制,例如,可以通过显示设备200设备内部配置的获取语音指令的模块直接接收用户的语音指令控制,也可以通过显示设备200设备外部设置的语音控制设备来接收用户的语音指令控制。In some embodiments, the display device 200 can also be controlled in a manner other than the control apparatus 100 and the smart device 300. For example, the module for acquiring voice commands configured inside the display device 200 can directly receive the user's voice command for control. , the user's voice command control can also be received through a voice control device provided outside the display device 200 device.
在一些实施例中,显示设备200还与服务器400进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可 以向显示设备200提供各种内容和互动。In some embodiments, the display device 200 is also in data communication with the server 400 . The display device 200 may be allowed to communicate via local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200.
图2示例性示出了根据示例性实施例中控制装置100的配置框图。如图3所示,控制装置100包括控制器110、通信接口130、用户输入/输出接口140、存储器190、供电电源180。控制装置100可接收用户的输入操作指令,且将操作指令转换为显示设备200可识别和响应的指令,起用用户与显示设备200之间交互中介作用。FIG. 2 exemplarily shows a configuration block diagram of the control apparatus 100 according to an exemplary embodiment. As shown in FIG. 3 , the control device 100 includes a controller 110 , a communication interface 130 , a user input/output interface 140 , a memory 190 , and a power supply 180 . The control device 100 can receive the user's input operation instruction, and convert the operation instruction into an instruction that the display device 200 can recognize and respond to, and play an intermediary role between the user and the display device 200 .
图2示出了根据示例性实施例中显示设备200的硬件配置框图。FIG. 2 is a block diagram showing a hardware configuration of a display device 200 according to an exemplary embodiment.
显示设备200包括调谐解调器210、通信器220、检测器230、外部装置接口240、控制器250、显示器275、音频输出接口285、存储器260、供电电源290、用户接口265中的至少一种。The display device 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 275 , an audio output interface 285 , a memory 260 , a power supply 290 , and a user interface 265 .
显示器275包括用于呈现画面的显示屏组件,以及驱动图像显示的驱动组件,用于接收源自控制器输出的图像信号,进行显示视频内容、图像内容以及菜单操控界面的组件以及用户操控UI界面。The display 275 includes a display screen component for presenting pictures, and a driving component for driving image display, for receiving image signals output from the controller, components for displaying video content, image content, and menu manipulation interfaces, and user manipulation UI interfaces .
显示器275可为液晶显示器、OLED显示器、以及投影显示器,还可以为一种投影装置和投影屏幕。The display 275 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
通信器220是用于根据各种通信协议类型与外部设备或服务器进行通信的组件。例如:通信器可以包括Wifi模块,蓝牙模块,有线以太网模块等其他网络通信协议芯片或近场通信协议芯片,以及红外接收器中的至少一种。显示设备200可以通过通信器220与外部控制设备100或服务器400建立控制信号和数据信号的发送和接收。The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220 .
用户接口,可用于接收控制装置100(如:红外遥控器等)的控制信号。The user interface can be used to receive control signals from the control device 100 (eg, an infrared remote control, etc.).
检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。The detector 230 is used to collect external environment or external interaction signals. For example, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity; alternatively, the detector 230 includes an image collector, such as a camera, which can be used to collect external environmental scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, for receiving external sound.
外部装置接口240可以包括但不限于如下:高清多媒体接口(HDMI)、模拟或数据高清分量输入接口(分量)、复合视频输入接口(CVBS)、USB输入接口(USB)、RGB端口等任一个或多个接口。也可以是上述多个接口形成的复合性的输入/输出接口。The external device interface 240 may include, but is not limited to, the following: any one of high-definition multimedia interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc. or multiple interfaces. It may also be a composite input/output interface formed by a plurality of the above-mentioned interfaces.
控制器250和调谐解调器210可以位于不同的分体设备中,即调谐解调器210也可在控制器250所在的主体设备的外置设备中,如外置机顶盒等。The controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 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.
控制器250,通过存储在存储器260上中各种软件控制程序,来控制显示设备的工作和响应用户的操作。控制器250控制显示设备200的整体操作。例如:响应于接收到用于选择在显示器275上显示UI对象的用户命令,控制器250便可以执行与由用户命令选择的对象有关的操作。The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory 260 . The controller 250 controls the overall operation of the display apparatus 200 . For example, in response to receiving a user command for selecting a UI object to be displayed on the display 275, the controller 250 may perform an operation related to the object selected by the user command.
对象可以是可选对象中的任何一个,例如超链接、图标或其他可操作的控件。与所选择的对象有关操作有:显示连接到超链接页面、文档、图像等操作,或者执行与所述图标相对应程序的操作。Objects can be any of the optional objects, such as hyperlinks, icons, or other actionable controls. The operations related to the selected object include: displaying operations connected to hyperlinked pages, documents, images, etc., or executing operations of programs corresponding to the icons.
在一些实施例中,用户可在显示器275上显示的图形用户界面(GUI)输入用户命令,则用户输入接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户输入接口通过传感器识别出声音或手势,来接收用户输入命令。In some embodiments, the user may input user commands on a graphical user interface (GUI) displayed on the display 275, and the user input interface receives the user input commands 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 recognizes the sound or gesture through a sensor to receive the user input command.
“用户界面”可以指应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(Graphic User Interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。"User interface" can refer to the medium interface for interaction and information exchange between application programs or operating systems and users, which realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is Graphical User Interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of the electronic device, wherein the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. visual interface elements.
参见图4,在一些实施例中,将系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。Referring to FIG. 4 , in some embodiments, the system is divided into four layers, from top to bottom, they are an application layer (referred to as “application layer”), an application framework layer (referred to as “framework layer”) ”), the Android runtime and the system library layer (referred to as the “system runtime layer”), and the kernel layer.
在一些实施例中,应用程序层中运行有至少一个应用程序,这些应用程序可以是操作系统自带的窗口(Window)程序、系统设置程序、时钟程序、相机应用等;也可以是第三方开发者所开发的应用程序,比如嗨见程序、K歌程序、魔镜程序等。在具体实施时,应用程序层中的应用程序包不限于以上举例,实际还可以包括其它应用程序包,本申请实施例对此不做限制。In some embodiments, at least one application program runs in the application program layer, and these application programs may be a Window program, a system setting program, a clock program, a camera application, etc. built into the operating system; they may also be developed by a third party The application programs developed by the author, such as the Hijian program, the K song program, the magic mirror program, etc. During specific implementation, the application package in the application layer is not limited to the above examples, and may actually include other application packages, which is not limited in this embodiment of the present application.
框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。应用程序框架层相当于一个处理中心,这个中心决定让应用层中的应用程序做出动作。应用程序通过API接口,可在执行中访问系统中的资源和取得系统的服务。The framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center, which decides to let the applications in the application layer take action. The application program can access the resources in the system and obtain the services of the system during execution through the API interface.
如图4所示,本申请实施例中应用程序框架层包括管理器(Managers),内容提供者(Content Provider)等,其中管理器包括以下模块中的至少一个:活动管理器(Activity Manager)用与和系统中正在运行的所有活动进行交互;位置管理器(Location Manager)用于给系统服务或应用提供了系统位置服务的访问;文件包管理器(Package Manager)用于检索当前安装在设备上的应用程序包相关的各种信息;通知管理器(Notification Manager)用于控制通知消息的显示和清除;窗口管理器(Window Manager)用于管理用户界面上的括图标、窗口、工具栏、壁纸和桌面部件。As shown in FIG. 4 , the application framework layer in the embodiment of the present application includes managers (Managers), content providers (Content Provider), etc., wherein the manager includes at least one of the following modules: an activity manager (Activity Manager) uses Interacts with all activities running in the system; Location Manager is used to provide system services or applications with access to system location services; Package Manager is used to retrieve files currently installed on the device Various information related to the application package; Notification Manager (Notification Manager) is used to control the display and clearing of notification messages; Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers on the user interface and desktop widgets.
在一些实施例中,活动管理器用于:管理各个应用程序的生命周期以及通常的导航回退功能,比如控制应用程序的退出(包括将显示窗口中当前显示的用户界面切换到系统桌面)、打开、后退(包括将显示窗口中当前显示的用户界面切换到当前显示的用户界面的上一级用户界面)等。In some embodiments, the activity manager is used to: manage the life cycle of each application and the usual navigation and fallback functions, such as controlling the exit of the application (including switching the user interface currently displayed in the display window to the system desktop), opening the , back (including switching the currently displayed user interface in the display window to the upper-level user interface of the currently displayed user interface), and the like.
在一些实施例中,窗口管理器用于管理所有的窗口程序,比如获取显示屏大小, 判断是否有状态栏,锁定屏幕,截取屏幕,控制显示窗口变化(例如将显示窗口缩小显示、抖动显示、扭曲变形显示等)等。In some embodiments, the window manager is used to manage all window programs, such as obtaining the size of the display screen, judging whether there is a status bar, locking the screen, capturing the screen, and controlling the change of the display window (such as reducing the display window, shaking the display, twisting the display) deformation display, etc.), etc.
在一些实施例中,系统运行库层为上层即框架层提供支撑,当框架层被使用时,安卓操作系统会运行系统运行库层中包含的C/C++库以实现框架层要实现的功能。In some embodiments, the system runtime layer provides support for the upper layer, that is, the framework layer. When the framework layer is used, the Android operating system will run the C/C++ library included in the system runtime layer to implement the functions to be implemented by the framework layer.
在一些实施例中,内核层是硬件和软件之间的层。如图4所示,内核层至少包含以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,触摸传感器、压力传感器等)等。In some embodiments, the kernel layer is the layer between hardware and software. As shown in Figure 4, the kernel layer at least 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, touch sensors, pressure sensors, etc.), etc.
在一些实施例中,内核层还包括用于进行电源管理的电源驱动模块。In some embodiments, the kernel layer further includes a power driver module for power management.
在一些实施例中,图4中的软件架构对应的软件程序和/或模块存储在图2或图3所示的第一存储器或第二存储器中。In some embodiments, software programs and/or modules corresponding to the software architecture in FIG. 4 are stored in the first memory or the second memory shown in FIG. 2 or FIG. 3 .
在一些实施例中,以魔镜应用(拍照应用)为例,当遥控接收装置接收到遥控器输入操作,相应的硬件中断被发给内核层。内核层将输入操作加工成原始输入事件(包括输入操作的值,输入操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,根据焦点当前的位置识别该输入事件所对应的控件以及以该输入操作是确认操作,该确认操作所对应的控件为魔镜应用图标的控件,魔镜应用调用应用框架层的接口,启动魔镜应用,进而通过调用内核层启动摄像头驱动,实现通过摄像头捕获静态图像或视频。In some embodiments, taking the magic mirror application (photography application) as an example, when the remote control receiving device receives the input operation of the remote control, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the input operation into the original input event (including the value of the input operation, the timestamp of the input operation and other information). Raw input events are stored at the kernel layer. The application framework layer obtains the original input event from the kernel layer, identifies the control corresponding to the input event according to the current position of the focus, and regards the input operation as a confirmation operation, and the control corresponding to the confirmation operation is the control of the magic mirror application icon. The mirror application calls the interface of the application framework layer, starts the mirror application, and then starts the camera driver by calling the kernel layer to capture still images or videos through the camera.
在一些实施例中,对于具备触控功能的显示设备,以分屏操作为例,显示设备接收用户作用于显示屏上的输入操作(如分屏操作),内核层可以根据输入操作产生相应的输入事件,并向应用程序框架层上报该事件。由应用程序框架层的活动管理器设置与该输入操作对应的窗口模式(如多窗口模式)以及窗口位置和大小等。应用程序框架层的窗口管理根据活动管理器的设置绘制窗口,然后将绘制的窗口数据发送给内核层的显示驱动,由显示驱动在显示屏的不同显示区域显示与之对应的应用界面。In some embodiments, for a display device with a touch function, taking a split-screen operation as an example, the display device receives an input operation (such as a split-screen operation) performed by the user on the display screen, and the kernel layer can generate corresponding input operations according to the input operation. Enter an event and report the event to the application framework layer. The window mode (such as multi-window mode) and window position and size corresponding to the input operation are set by the activity manager of the application framework layer. The window management of the application framework layer draws the window according to the settings of the activity manager, and then sends the drawn window data to the display driver of the kernel layer, and the display driver displays the corresponding application interface in different display areas of the display screen.
在一些实施例中,如图5中所示,应用程序层包含至少一个应用程序可以在显示器中显示对应的图标控件,如:直播电视应用程序图标控件、视频点播应用程序图标控件、媒体中心应用程序图标控件、应用程序中心图标控件、游戏应用图标控件等。In some embodiments, as shown in FIG. 5, the application layer contains at least one application that can display corresponding icon controls in the display, such as: live TV application icon control, video on demand application icon control, media center application Program icon controls, application center icon controls, game application icon controls, etc.
在一些实施例中,直播电视应用程序,可以通过不同的信号源提供直播电视。例如,直播电视应用程可以使用来自有线电视、无线广播、卫星服务或其他类型的直播电视服务的输入提供电视信号。以及,直播电视应用程序可在显示设备200上显示直播电视信号的视频。In some embodiments, the live TV application may provide live TV from different sources. For example, a live TV application may provide a TV signal using input from cable, over-the-air, satellite services, or other types of live TV services. And, the live TV application may display the video of the live TV signal on the display device 200 .
在一些实施例中,视频点播应用程序,可以提供来自不同存储源的视频。不同于直播电视应用程序,视频点播提供来自某些存储源的视频显示。例如,视频点播可以来自云存储的服务器端、来自包含已存视频节目的本地硬盘储存器。In some embodiments, a video-on-demand application may provide video from various storage sources. Unlike live TV applications, video-on-demand provides a display of video from certain storage sources. For example, video-on-demand can come from the server side of cloud storage, from local hard disk storage containing existing video programs.
在一些实施例中,媒体中心应用程序,可以提供各种多媒体内容播放的应用程序。例如,媒体中心,可以为不同于直播电视或视频点播,用户可通过媒体中心应用程序 访问各种图像或音频所提供服务。In some embodiments, the media center application may provide various multimedia content playback applications. For example, a media center may provide services other than live TV or video-on-demand, where users can access various images or audio through a media center application.
在一些实施例中,应用程序中心,可以提供储存各种应用程序。应用程序可以是一种游戏、应用程序,或某些和计算机系统或其他设备相关但可以在智能电视中运行的其他应用程序。应用程序中心可从不同来源获得这些应用程序,将它们储存在本地储存器中,然后在显示设备200上可运行。In some embodiments, the application center may provide storage of various applications. An application can be a game, an application, or some other application that is related to a computer system or other device but can be run on a Smart TV. The application center can obtain these applications from various sources, store them in local storage, and then run them on the display device 200 .
第一方面:first:
以上实施例介绍了显示设备的硬件/软件架构以及功能实现等内容。在一些应用场景中,用户可以通过遥控器上的频道切换键去换台,频道切换键一般包括“+键”和“-键”,“+键”实现向后切换频道,向后可以是指频道列表中频道序号递增的方向;“-键”实现向前(即后退)切换频道,向前可以是指频道列表中频道序号递减的方向。用户通过操作频道切换键的切换方向和按击次数,即可调台到想要观看的频道,该频道的频道类型可以是DTV频道或者OTT频道。点击频道切换键一般实现的是快速且连续地换台,在其他实施例中,用户也可以直接输入频道序号,来直接定位和切换到期望观看的频道,这时频道切换可能是序号不连续的。The above embodiments describe the hardware/software architecture and function implementation of the display device. In some application scenarios, the user can switch the channel through the channel switch button on the remote control. The channel switch button generally includes "+ button" and "- button". "+ button" can switch channels backward. The direction in which the channel number in the channel list increases; the "-key" realizes the forward (ie backward) switching of channels, and forward can refer to the direction in which the channel number in the channel list decreases. The user can tune the channel to the channel he wants to watch by operating the switching direction and the number of clicks of the channel switching key. The channel type of the channel can be a DTV channel or an OTT channel. Clicking the channel switch button generally realizes fast and continuous channel switching. In other embodiments, the user can also directly input the channel serial number to directly locate and switch to the desired channel. In this case, the channel switching may be discontinuous in serial numbers. .
由于OTT服务离不开互联网,因此OTT频道是在网络连接状态下启动浏览器应用,通过浏览器应用中内置的播放器实现频道音视频资源的播放,所以切换到OTT频道的耗时一般包括音视频资源加载耗时+浏览器应用启动耗时;而DTV频道只需显示设备连接机顶盒即可播放,无需连接网络和启动浏览器应用这些要求,因此切换到DTV频道的耗时是加载频道音视频资源的耗时。本申请中频道类型不作限定,对于其他类型也可适用本申请快速切换频道的方案,具体以显示设备实际连接的信号源为准。Since OTT services are inseparable from the Internet, the OTT channel starts the browser application in the state of network connection, and realizes the playback of channel audio and video resources through the built-in player in the browser application. Therefore, the time-consuming to switch to the OTT channel generally includes audio and video resources. Time-consuming video resource loading + time-consuming browser application startup; DTV channels can be played only by connecting the display device to the set-top box, and there is no need to connect to the network and start the browser application. Therefore, the time-consuming switching to DTV channels is to load the channel audio and video. resource consumption. The channel type is not limited in this application, and the solution of the application for fast channel switching can also be applied to other types, and the specific signal source actually connected to the display device shall prevail.
表1Table 1
频道序号channel number 频道IDchannel id 频道名称channel name 频道类型channel type
001001 DTVChannel1DTVChannel1 CCTV-1CCTV-1 DTV频道DTV channel
002002 DTVChannel2DTVChannel2 CCTV-2CCTV-2 DTV频道DTV channel
003003 OTTChannel1OTTChannel1 BBC sportsBBC sports OTT频道OTT channel
004004 DTVChannel3DTVChannel3 CCTV-3CCTV-3 DTV频道DTV channel
005005 OTTChannel2OTTChannel2 Leeds NewsLeeds News OTT频道OTT channel
在一些实施例中,表1示例性示出了频道列表,频道列表中每行代表一个频道对应的频道信息,频道信息中包括频道序号、频道ID、频道名称和频道类型。其中,频道序号用于标记某个频道在频道列表中的排序位置,便于实现频道的定位;频道ID用于标识和区分各个频道,每个频道具有唯一的ID值,任意两个频道的ID不同;频道名称指示该频道实际的真实名称;频道类型用于标记频道是DTV或是OTT,相当于标记频道的信号源。In some embodiments, Table 1 exemplarily shows a channel list, each row in the channel list represents channel information corresponding to a channel, and the channel information includes a channel number, a channel ID, a channel name, and a channel type. Among them, the channel number is used to mark the sorting position of a certain channel in the channel list, which is convenient for the positioning of the channel; the channel ID is used to identify and distinguish each channel, each channel has a unique ID value, and the IDs of any two channels are different ; The channel name indicates the actual real name of the channel; the channel type is used to mark whether the channel is DTV or OTT, which is equivalent to marking the signal source of the channel.
由表1可以看出,DTV频道和OTT频道统一记录在同一个频道列表中,并且DTV频道和OTT频道可以是混合排序的,这种记录方式使用户能够交叉观看DTV频道和OTT频道,避免用户集中观看单一类型的频道。比如,用户当前观看的频道是序号为002的CCTV-2,如果用户按击一次频道切换键的“+键”,则需要切换到序号为003的BBC sports,即频道类型由DTV频道切换为OTT频道,又比如用户再次连续点击一次频道切换键的“+键”,则最新的切换目标为序号004的CCTV-3,这时频道类型由OTT频道切换为DTV频道,这种频道交叉排序会频繁出现频道类型的切换。As can be seen from Table 1, DTV channels and OTT channels are uniformly recorded in the same channel list, and DTV channels and OTT channels can be mixed and sorted. Focus on watching a single type of channel. For example, the channel the user is currently watching is CCTV-2 with serial number 002. If the user presses the "+ button" of the channel switching key once, he needs to switch to BBC sports with serial number 003, that is, the channel type is switched from DTV channel to OTT. For example, if the user continuously clicks the "+ button" of the channel switching key again, the latest switching target is CCTV-3 with serial number 004. At this time, the channel type is switched from OTT channel to DTV channel. This kind of channel cross-ordering will be frequent The switching of the channel type appears.
DTV频道和OTT频道之间的双向切换,本质上是物理源与浏览器应用之间的切换,每次切换时都需要进行资源管理,即等待应用资源释放的一个过程。当在不同类型的频道之间进行快速切换时,切换速度慢,等待响应各个切换请求的耗时长,无法快速地切换到最新频道,影响用户的观看体验。The two-way switching between DTV channels and OTT channels is essentially a switching between physical sources and browser applications. Resource management is required for each switching, that is, a process of waiting for application resources to be released. When switching between different types of channels quickly, the switching speed is slow, and it takes a long time to wait for each switching request to be responded to, and it is impossible to quickly switch to the latest channel, which affects the user's viewing experience.
对此在一些实施例中,用户每操作切换一个频道都会生成对应的频道切换请求,在用户快速多次切换频道时,为便于准确管理频道切换请求及其任务进程,可以设置几种队列,比如切换请求队列、待处理请求队列和终点队列等。其中,切换请求队列记录有当前正在切换中的频道的频道信息;待处理请求队列中则记录当前待切换频道的频道信息,所述当前待切换频道是用户当前输入的切换频道操作所定位到的频道;终点队列中记录已完成切换的频道的频道信息。上述几个类型的队列中记录的频道信息可包括频道ID。需要说明的是,多队列的设置形式和功能配置不限于本实施例所述,比如可以不设置终点队列,当切换任务完成时,将切换请求队列中对应的频道信息删除即可。In this regard, in some embodiments, a corresponding channel switching request will be generated every time the user operates to switch a channel. When the user switches channels multiple times quickly, in order to facilitate accurate management of the channel switching request and its task process, several queues may be set, such as Switch request queues, pending request queues, and destination queues, etc. Wherein, the switching request queue records the channel information of the channel currently being switched; the pending request queue records the channel information of the currently to-be-switched channel, and the current to-be-switched channel is located by the channel switching operation currently input by the user Channel; the channel information of the channel that has been switched is recorded in the destination queue. The channel information recorded in the above-mentioned types of queues may include a channel ID. It should be noted that the setting form and function configuration of the multi-queue are not limited to those described in this embodiment. For example, the destination queue may not be set. When the switching task is completed, the corresponding channel information in the switching request queue may be deleted.
当用户快速切换频道时,即当前的一个频道尚未切换完成,就在短时间内又接收到多个频道切换请求,由于频道切换是动态过程,因此各个队列也会随每个频道切换进程的变化而动态更新。When the user switches channels quickly, that is, the current channel has not been switched, multiple channel switching requests are received in a short period of time. Since channel switching is a dynamic process, each queue will also change with each channel switching process. And dynamic update.
在一些实施例中,以表1示出的频道列表为例,如图6所示,当控制器250接收到DTVChannel1的切换请求时,启动DTVChannel1的切换任务,并将DTVChannel1加入到切换请求队列中;之后又接收到DTVChannel2的切换请求,由于此时DTVChannel1尚未切换完成,因此将DTVChannel2加入到待处理请求队列中等待响应;在短时间内又连续接收到OTTChannel1的切换请求,此时DTVChannel1仍然处于切换中,因此OTTChannel1要处于等待中,即需要将OTTChannel1也加入到待处理请求队列,由于当前最新定位的频道已经不再是DTVChannel2,而是OTTChannel1,即基于用户在时间上的切换操作,DTVChannel2的请求相当于已经过期,因此可以将DTVChannel2从待处理请求队列中移除,这样处理的目的在于如果DTVChannel1切换完毕,就可跳过DTVChannel2,转而快速响应和切换到OTTChannel1;之后又接收到OTTChannel2的切换请求,此时DTVChannel1仍未切换结束,则同理将OTTChannel1从待处理请求队列中移除,并将OTTChannel2加入到待处理请求队列中;当 DTVChannel1的切换任务结束时,将DTVChannel1从切换请求队列移至终点队列,以及将OTTChannel2从待处理请求队列移至切换请求队列,同时启动OTTChannel2的切换任务即可,控制器则还需继续监听是否接收到一下个频道的切换请求,并以此类推。In some embodiments, taking the channel list shown in Table 1 as an example, as shown in FIG. 6 , when the controller 250 receives the switching request of DTVChannel1, it starts the switching task of DTVChannel1 and adds DTVChannel1 to the switching request queue ; After that, the switching request of DTVChannel2 is received. Since the switching of DTVChannel1 has not been completed at this time, DTVChannel2 is added to the pending request queue and waits for a response; the switching request of OTTChannel1 is continuously received in a short period of time, and DTVChannel1 is still switching at this time. , so OTTChannel1 is waiting, that is, OTTChannel1 needs to be added to the pending request queue, because the latest channel is no longer DTVChannel2, but OTTChannel1, that is, based on the user's switching operation in time, the request of DTVChannel2 It is equivalent to expired, so DTVChannel2 can be removed from the pending request queue. The purpose of this processing is that if DTVChannel1 is switched over, DTVChannel2 can be skipped, and then quickly respond and switch to OTTChannel1; after that, the switch of OTTChannel2 is received. At this time, the switching of DTVChannel1 has not ended, then remove OTTChannel1 from the pending request queue in the same way, and add OTTChannel2 to the pending request queue; when the switching task of DTVChannel1 ends, move DTVChannel1 from the switching request queue. To the end queue, and move OTTChannel2 from the pending request queue to the switching request queue, and start the switching task of OTTChannel2 at the same time, the controller needs to continue to monitor whether it receives the switching request of the next channel, and so on.
由以上多队列动态更新和调整的过程可知,待处理请求队列实际可存储用户快速多次切换频道时产生的切换请求对应的频道ID,但是在本申请中使待处理请求队列仅保存当前最新定位的待切换频道(OTTChannel2),将OTTChannel2与当前正在切换中的频道DTVChannel1之间的过期频道(DTVChannel2和OTTChannel1)给移除,即可在DTVChannel1切换完成后,直接切换到OTTChannel2,从而消除DTVChannel2和OTTChannel1的切换耗时,压缩了DTVChannel1与OTTChannel2之间的切换耗时,使得显示设备能够更快速地显示最新定位的频道,提高用户的观看体验。From the above process of dynamic update and adjustment of multiple queues, it can be seen that the pending request queue can actually store the channel ID corresponding to the switching request generated when the user switches channels quickly and multiple times, but in this application, the pending request queue only saves the current latest positioning. The channel to be switched (OTTChannel2), remove the expired channels (DTVChannel2 and OTTChannel1) between OTTChannel2 and the channel currently being switched (DTVChannel2 and OTTChannel1), and then switch directly to OTTChannel2 after the switching of DTVChannel1 is completed, thereby eliminating DTVChannel2 and OTTChannel1 The time-consuming switching between DTVChannel1 and OTTChannel2 is compressed, so that the display device can display the latest positioned channel more quickly and improve the user's viewing experience.
多队列可能为空或者非空,空则表示队列中不包括任何一个频道ID,当队列中至少包括一个频道ID时队列为非空。当切换请求队列为空时,说明当前无正在切换中的频道,这时如果控制器监听到频道的切换请求,即可直接将该频道加入到切换请求队列中并启动切换任务;当切换请求队列为非空时,即当前存在正在切换处理中的频道,则需要将之后的频道加入到待处理请求队列。The multi-queue may be empty or non-empty. Empty means that the queue does not include any channel ID. When the queue includes at least one channel ID, the queue is not empty. When the switching request queue is empty, it means that there is no channel being switched. At this time, if the controller monitors the switching request of the channel, it can directly add the channel to the switching request queue and start the switching task; when the switching request queue When it is non-empty, that is, there is currently a channel being switched and processed, the subsequent channel needs to be added to the pending request queue.
当待处理请求队列中为空时,包括两种情况:一种是在当前正在切换中的频道之后,控制器250还未接收到其他频道的切换请求,即用户等待观看当前切换中的频道,而没有再切换其他频道,这种情况下如果接收到频道切换请求,则直接转入待处理请求队列,等待切换请求队列转变为空;另一种是当前既无正在切换中的频道,也无待切换的频道,此时待处理请求队列和切换请求队列都为空。When the queue of pending requests is empty, it includes two situations: one is that after the channel currently being switched, the controller 250 has not received a switching request from other channels, that is, the user is waiting to watch the channel currently being switched, Without switching other channels, in this case, if a channel switching request is received, it will directly transfer to the pending request queue and wait for the switching request queue to become empty; The channel to be switched. At this time, the pending request queue and the switching request queue are both empty.
如图7提供的频道切换方法,该方法可由显示设备中的控制器250被配置执行,即控制器250为方法的执行主体,所述方法包括如下程序步骤:The channel switching method provided in FIG. 7 can be configured and executed by the controller 250 in the display device, that is, the controller 250 is the execution subject of the method, and the method includes the following program steps:
步骤S10,响应于切换频道操作,确定切换请求队列是否为空。如果切换请求队列为非空,则执行步骤S20;反之,若切换请求队列为空,则执行步骤S60。Step S10, in response to the channel switching operation, determine whether the switching request queue is empty. If the handover request queue is not empty, execute step S20; otherwise, if the handover request queue is empty, execute step S60.
步骤S20,确定待处理请求队列是否为空。如果待处理请求队列为非空,则执行步骤S30;反之,若待处理请求队列为空,则执行步骤S50。Step S20, it is determined whether the pending request queue is empty. If the to-be-processed request queue is not empty, step S30 is performed; otherwise, if the to-be-processed request queue is empty, step S50 is performed.
在步骤S30中,将所述待处理请求队列中的全部频道信息移除,并将当前待切换的频道信息存入所述待处理请求队列中。In step S30, all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue.
步骤S30就是将当前待切换的频道信息(即最新定位的待切换频道的ID)加入待处理请求队列,同时删掉之前所有过期的频道信息,以便后续跳过过期频道,直接切换到最新定位的频道,以提高频道切换的速度和效率。Step S30 is to add the current channel information to be switched (that is, the ID of the newly positioned channel to be switched) into the pending request queue, and at the same time delete all the previously expired channel information, so as to skip the expired channel and directly switch to the latest positioned channel. channel to improve the speed and efficiency of channel switching.
步骤S40,当所述切换请求队列转变为空时,启动执行所述待处理请求队列中的频道的切换任务,并将所述待处理请求队列中的频道信息移动至所述切换请求队列。Step S40, when the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
在步骤S40中,即在之前处于切换中的频道切换完成时,将待处理请求队列中当 前存在的频道信息转入切换请求队列,以及启动当前待处理的频道的切换任务,使原来处于下一等待位的频道转变为切换中的频道。In step S40, that is, when the switching of the channel currently being switched is completed, the channel information currently existing in the pending request queue is transferred to the switching request queue, and the switching task of the currently pending channel is started, so that it is in the next channel. The channel of the waiting bit changes to the channel in switching.
步骤S50,将当前待切换的频道信息存入所述待处理请求队列中,等待所述切换请求队列转变为空。当切换请求队列为非空,待处理请求队列为空时,无需清空待处理请求队列,而是将接收到的当前待切换的频道信息直接存到待处理请求队列中即可。Step S50: Store the channel information to be switched currently in the pending request queue, and wait for the switching request queue to become empty. When the switching request queue is not empty and the pending request queue is empty, it is not necessary to clear the pending request queue, but directly store the received channel information to be switched in the pending request queue.
步骤S60,直接启动执行当前待切换的频道的切换任务,并将当前待切换的频道信息存入所述切换请求队列。当切换请求队列为空时,如果接收到一个频道切换请求,则直接将该频道切换请求对应的频道信息存入切换请求队列,并直接启动响应该频道切换请求启动对应的切换任务即可。Step S60, directly start and execute the switching task of the channel to be switched currently, and store the information of the channel to be switched currently in the switching request queue. When the switching request queue is empty, if a channel switching request is received, the channel information corresponding to the channel switching request is directly stored in the switching request queue, and the corresponding switching task can be started directly in response to the channel switching request.
为了更清晰各个频道的切换进程,以及管理历史切换过的频道信息,在一些实施例中,可以设置终点队列,终点队列中包括切换完成的频道的频道信息,则在步骤S40之后,当切换请求队列中的频道的切换任务执行完成,将切换请求队列中的频道信息移动至终点队列中,从而保证相应频道的切换进程已经到达终点,切换任务已完成。In order to make the switching process of each channel clearer and manage the channel information that has been switched in history, in some embodiments, a destination queue may be set, and the destination queue includes the channel information of the channel that has been switched, then after step S40, when the switching request is made After the execution of the switching task of the channels in the queue is completed, the channel information in the switching request queue is moved to the destination queue, so as to ensure that the switching process of the corresponding channel has reached the end point and the switching task has been completed.
在一些实施例中,基于用户输入的切换频道操作,都可以在如表1所示的频道列表中定位到与切换频道操作对应的频道及其频道信息,则所述方法还包括:响应于接收到切换频道操作,在频道列表中定位与所述切换频道操作对应的当前待切换的频道,并获取所述当前待切换的频道信息;其中,所述频道信息包括频道类型和频道ID。In some embodiments, based on the channel switching operation input by the user, the channel corresponding to the channel switching operation and its channel information can be located in the channel list as shown in Table 1, and the method further includes: in response to receiving In the channel switching operation, locate the current channel to be switched corresponding to the channel switching operation in the channel list, and obtain the current channel information to be switched; wherein the channel information includes channel type and channel ID.
在一些实施例中,频道ID中可以设置用于标识频道类型的标志位,以频道ID为DTVChannel1为例,该频道ID中头部预留的标志位标识了DTV,说明其属于DTV频道,这种方式在识别频道ID时即可自动识别出频道类型,这种实现方式下多个队列保存的频道信息可以包括频道ID。如果频道ID未携带频道类型信息,则多个队列保存的频道信息可以包括频道ID以及频道类型。In some embodiments, a flag bit for identifying the channel type may be set in the channel ID. Taking the channel ID as DTVChannel1 as an example, the flag bit reserved in the header of the channel ID identifies the DTV, indicating that it belongs to a DTV channel. In this manner, the channel type can be automatically identified when the channel ID is identified. In this implementation manner, the channel information stored in the multiple queues may include the channel ID. If the channel ID does not carry the channel type information, the channel information stored in the multiple queues may include the channel ID and the channel type.
在一些实施例中,当切换请求队列为非空时,说明当前存在正在切换处理中的频道,如果新接收到一个频道切换请求,则无法即时启动该频道切换请求对应的频道的切换任务,需要将该频道切换请求转入待处理,这时需要先确定转入待处理的频道的频道类型,如果当前待切换的频道的频道类型为DTV频道,则可以创建第一路径,第一路径即为DTV频道路径,相当于建立起DTV的电视流(TV flow),用以在后续执行切换任务时从第一路径的电视流接收某DTV频道的音视频资源;如果当前待切换的频道的频道类型为OTT频道,则建立第二路径,第二路径即为OTT频道路径,相当于建立起OTT频道的OTT流(OTT flow),用以在后续执行切换任务时从第二路径的OTT流接收OTT频道的音视频资源。在启动执行切换任务之前,每个频道都需要对应建立自身的频道路径,便于后续通过路径接收音视频流,相当于在待处理阶段预先做好切换前的准备工作,当启动切换任务时,从对应路径接收音视频资源,然后将音视频资源加载到UI上去播放。In some embodiments, when the switching request queue is not empty, it means that there is currently a channel being switched. If a new channel switching request is received, the switching task of the channel corresponding to the channel switching request cannot be started immediately. To transfer the channel switching request to pending processing, it is necessary to first determine the channel type of the channel to be transferred. If the channel type of the channel to be switched currently is a DTV channel, the first path can be created. The first path is The DTV channel path is equivalent to establishing a DTV TV flow (TV flow) to receive audio and video resources of a certain DTV channel from the TV flow of the first path when the switching task is performed subsequently; if the channel type of the channel to be switched is currently If it is an OTT channel, the second path is established. The second path is the OTT channel path, which is equivalent to establishing an OTT flow of the OTT channel, which is used to receive OTT from the OTT flow of the second path during subsequent switching tasks. The audio and video resources of the channel. Before starting the switching task, each channel needs to establish its own channel path, so as to facilitate the subsequent reception of audio and video streams through the path, which is equivalent to making preparations before switching in the pending stage. When starting the switching task, from The corresponding path receives audio and video resources, and then loads the audio and video resources into the UI to play.
在一些实施例中,控制器250中一般预置有电视服务(TV Service)应用和浏览器 (browser)应用。当切换为DTV频道时,控制器250将频道切换请求发送给电视服务应用,电视服务应用从第一路径接收到DTV频道的音视频资源,然后将音视频资源加载到用户界面UI上,加载成功后向反馈频道切换完成指示信息,则切换任务结束。In some embodiments, a TV service (TV Service) application and a browser (browser) application are generally preset in the controller 250 . When switching to a DTV channel, the controller 250 sends a channel switching request to the TV service application, and the TV service application receives the audio and video resources of the DTV channel from the first path, and then loads the audio and video resources to the user interface UI, and the loading is successful After the channel switching completion indication information is fed back, the switching task ends.
在一些实施例中,当切换为OTT频道时,控制器250将频道切换请求发送给电视服务应用,电视服务应用从第二路径接收到OTT频道的音视频资源,OTT频道的音视频资源可以是URL(Uniform Resource Locator,统一资源定位符)的形式,URL是音视频资源的网络地址,然后启动浏览器应用,由浏览器应用内置的播放器加载音视频资源URL,从而在显示器用户界面上播放OTT频道的音视频资源,并反馈浏览器应用开启的状态信息,则切换任务结束。In some embodiments, when switching to an OTT channel, the controller 250 sends a channel switching request to the TV service application, and the TV service application receives the audio and video resources of the OTT channel from the second path, and the audio and video resources of the OTT channel may be URL (Uniform Resource Locator, Uniform Resource Locator), URL is the network address of audio and video resources, and then start the browser application, the browser application built-in player loads the audio and video resource URL, so as to play on the display user interface The audio and video resources of the OTT channel and the status information of the browser application being opened are fed back, and the switching task ends.
当频道的切换任务结束,即切换请求队列转变为空队列时,则确定待处理请求队列是否为空,如果待处理请求队列为空,则控制器250不再继续执行其他切换任务,控制器继续监听频道处理请求,直至监听到新到来的频道处理请求后,即可直接处理新请求对应的频道的切换任务;如果待处理请求队列为非空,说明存在等待切换的频道,则启动待处理请求队列内当前存在的频道信息对应的频道的切换任务。When the switching task of the channel ends, that is, when the switching request queue is transformed into an empty queue, it is determined whether the pending request queue is empty. If the pending request queue is empty, the controller 250 does not continue to perform other switching tasks, and the controller continues Monitor the channel processing request until the new incoming channel processing request is monitored, and then the channel switching task corresponding to the new request can be directly processed; if the pending request queue is not empty, indicating that there is a channel waiting to be switched, the pending request will be started. The switching task of the channel corresponding to the channel information currently existing in the queue.
由以上技术方案可知,在用户快速多次切换频道时,为便于准确管理频道切换的任务流程,设置了切换请求队列、待处理请求队列和终点队列,并可根据每个频道的切换进程和状态,动态更新和调整各个队列内的频道信息。当用户输入切换频道操作时,首先要判断切换请求队列是否为空,如果切换请求队列为非空,说明当前存在进行频道切换中的任务,那么进一步判断待处理请求队列是否为空。如果用户之前快速地切换了多个频道,那么待处理请求队列中就会存在频道信息(即非空),对此本申请选择将待处理请求队列中的全部频道信息移除,即清空待处理请求队列,并将当前最新定位的频道信息存入待处理请求队列中,这样设置的目的在于跳过当前处于切换中的频道与当前最新待切换的频道之间的频道,使得当前处于切换中的频道切换完成时,直接切换到当前最新待切换的频道,从而避免之前其他频道逐个切换产生的大量耗时。It can be seen from the above technical solutions that when a user switches channels quickly and multiple times, in order to facilitate accurate management of the task flow of channel switching, a switching request queue, a pending request queue and a destination queue are set, and the switching process and status of each channel can be adjusted according to the switching process and status of each channel. , dynamically update and adjust the channel information in each queue. When the user enters a channel switching operation, it is first necessary to judge whether the switching request queue is empty. If the switching request queue is not empty, it means that there is a task in the process of channel switching, and then it is further judged whether the pending request queue is empty. If the user has quickly switched multiple channels before, there will be channel information (that is, not empty) in the pending request queue. For this purpose, this application chooses to remove all channel information in the pending request queue, that is, clear the pending request queue. request queue, and store the latest currently positioned channel information in the pending request queue. The purpose of this setting is to skip the channel between the channel currently being switched and the channel currently When the channel switching is completed, it directly switches to the latest channel to be switched, thereby avoiding a lot of time-consuming caused by switching other channels one by one.
当切换请求队列转变为空时,说明当前已经无正在切换中的频道,则将待处理请求队列中的频道信息移到切换请求队列,启动当前最新待处理频道的切换任务。由以上论述可见,本申请能够在用户快速切换频道时,使待处理请求队列仅保留当前最新待切换的频道信息,跳过之前被积压的频道切换请求,压缩频道间的切换耗时,从而快速切换至最新频道,提高了频道切换效率,用户观看体验显著提升。When the switching request queue becomes empty, indicating that there is no channel being switched at present, the channel information in the pending request queue is moved to the switching request queue, and the switching task of the latest pending channel is started. It can be seen from the above discussion that the present application can make the pending request queue retain only the latest channel information to be switched, skip the previously backlogged channel switching requests, and compress the time-consuming switching between channels when the user switches channels quickly, so as to quickly Switching to the latest channel improves channel switching efficiency and significantly improves user viewing experience.
第二方面:Second aspect:
本申请实施例提供一种播放控制方法及显示设备,用以在某一HDMI通道与其他信号源通道间切换时,控制接入该HDMI通道的外部设备的播放。Embodiments of the present application provide a playback control method and a display device, which are used to control playback of an external device connected to an HDMI channel when switching between a certain HDMI channel and other signal source channels.
包括:显示器;与所述显示器耦合的控制器,用于执行:Comprising: a display; a controller coupled to the display for performing:
当从第一高清多媒体接口HDMI通道切换至目标通道时,向接入第一HDMI通道的外部设备发送第一按键控制指令,第一按键控制指令携带用于指示外部设备暂停播 放的第一值,以使外部设备暂停播放;目标通道包括不同于所述第一HDMI通道的第二HDMI通道,或者非HDMI通道;When switching from the first high-definition multimedia interface HDMI channel to the target channel, a first key control instruction is sent to the external device connected to the first HDMI channel, and the first key control instruction carries a first value used to instruct the external device to pause playback, To make the external device pause playback; the target channel includes a second HDMI channel different from the first HDMI channel, or a non-HDMI channel;
当从目标通道恢复至第一HDMI通道时,向接入第一HDMI通道的外部设备发送第二按键控制指令,第二按键控制指令携带用于指示外部设备启动播放的第二值,以使所述外部设备启动播放。When restoring from the target channel to the first HDMI channel, a second key control command is sent to the external device connected to the first HDMI channel, and the second key control command carries the second value used to instruct the external device to start playback, so that all The external device described above starts playback.
本申请实施例还提供一种播放控制方法,应用于显示设备,包括:The embodiment of the present application also provides a playback control method, which is applied to a display device, including:
当从第一高清多媒体接口HDMI通道切换至目标通道时,向接入所述第一HDMI通道的外部设备发送第一按键控制指令,第一按键控制指令携带用于指示外部设备暂停播放的第一值,以使外部设备暂停播放;目标通道包括不同于第一HDMI通道的第二HDMI通道,或者非HDMI通道;When switching from the HDMI channel of the first high-definition multimedia interface to the target channel, send a first key control instruction to the external device accessing the first HDMI channel, and the first key control instruction carries the first key control instruction used to instruct the external device to pause playback value to make the external device pause playback; the target channel includes a second HDMI channel different from the first HDMI channel, or a non-HDMI channel;
当从目标通道恢复至第一HDMI通道时,向接入第一HDMI通道的外部设备发送第二按键控制指令,第二按键控制指令携带用于指示外部设备启动播放的第二值,以使外部设备启动播放。When restoring from the target channel to the first HDMI channel, send a second key control command to the external device connected to the first HDMI channel, and the second key control command carries the second value used to instruct the external device to start playing, so that the external device can start playing. The device starts playback.
在一些实施例中,当显示设备在多个信号源通道间进行切换时,会出现从某一HDMI通道切换至其他信号源通道后,接入该HDMI通道的外部设备仍持续播放的情况,该情况可能导致显示设备从其他信号源通道切换回该HDMI通道后的播放内容,与从该HDMI通道切换至其他信号源通道前的播放内容不连续,还可能导致加大接入该HDMI通道的外部设备的损耗、增加该外部设备的耗电等问题。In some embodiments, when the display device switches between multiple signal source channels, after switching from a certain HDMI channel to another signal source channel, the external device connected to the HDMI channel still continues to play, the The situation may cause the playback content of the display device after switching from other signal source channels back to the HDMI channel to be discontinuous with the playback content before switching from the HDMI channel to other signal source channels, and may also lead to an increase in the number of external devices connected to the HDMI channel. Loss of equipment, increased power consumption of the external equipment, etc.
为便于理解上述情况,下面举一个简单的例子:To understand the above situation, here is a simple example:
以显示设备的当前信号源通道为第一HDMI通道,接入该第一HDMI通道的外部设备为数字视频光盘(Digital Video Disc,DVD)播放机为例,则显示设备的当前播放内容为该DVD播放机的当前播放内容。Taking the current signal source channel of the display device as the first HDMI channel, and the external device accessing the first HDMI channel as a digital video disc (Digital Video Disc, DVD) player as an example, the current playback content of the display device is the DVD The player's currently playing content.
当该DVD播放机当前播放电影A且播放到电影A的第20分钟时,若显示设备从第一HDMI通道切换至TV通道,则显示设备转为播放TV通道传输的内容,而该DVD播放机仍持续播放电影A。When the DVD player is currently playing Movie A and the 20th minute of Movie A is played, if the display device switches from the first HDMI channel to the TV channel, the display device switches to play the content transmitted by the TV channel, and the DVD player Movie A continues to play.
若显示设备在切换至TV通道10分钟后,从TV通道恢复至第一HDMI通道,则显示设备转为播放该DVD播放机的当前播放内容。而此时该DVD设备已经播放到电影A的第30分钟,则显示设备的播放内容也为电影A的第30分钟的内容,这一播放内容与显示设备从第一HDMI通道切换至TV通道前的播放内容不连续。If the display device returns from the TV channel to the first HDMI channel 10 minutes after switching to the TV channel, the display device switches to playing the currently playing content of the DVD player. At this time, the DVD device has played to the 30th minute of movie A, and the content played by the display device is also the content of the 30th minute of movie A. This playback content is the same as before the display device switches from the first HDMI channel to the TV channel. The playback content is discontinuous.
针对上述问题,本申请实施例提供一种播放控制方法,该方法可应用于显示设备如智能电视等,使显示设备在某一HDMI通道与其他信号源通道间切换时,控制接入该HDMI通道的外部设备的播放。In view of the above problems, an embodiment of the present application provides a playback control method, which can be applied to a display device such as a smart TV, so that when the display device switches between a certain HDMI channel and other signal source channels, it controls access to the HDMI channel playback of external devices.
在一个例子中,该播放控制方法可包括:当从第一HDMI通道切换至目标通道时,控制接入该第一HDMI通道的外部设备暂停播放。In one example, the playback control method may include: when switching from the first HDMI channel to the target channel, controlling the external device connected to the first HDMI channel to pause playback.
上述第一HDMI通道可为显示设备中的任一HDMI通道。作为一个实施例,若当前信号源通道为一HDMI通道,则可将该HDMI通道作为第一HDMI通道,并应用本 申请提供的播放控制方法。The above-mentioned first HDMI channel may be any HDMI channel in the display device. As an embodiment, if the current signal source channel is an HDMI channel, the HDMI channel can be used as the first HDMI channel, and the playback control method provided by this application is applied.
上述目标通道可为第一HDMI通道之外的任一信号源通道,作为一个实施例,目标通道可为非HDMI通道,比如TV通道。作为一个实施例,目标通道可为第一HDMI通道之外的其他HDMI通道。例如,若显示设备中存在三个HDMI通道:HDMI1、HDMI2和HDMI3,则在从当前的HDMI1切换至HDMI2时,可将HDMI1作为第一HDMI通道,将HDMI2作为目标通道。The above-mentioned target channel may be any signal source channel other than the first HDMI channel. As an embodiment, the target channel may be a non-HDMI channel, such as a TV channel. As an embodiment, the target channel may be another HDMI channel other than the first HDMI channel. For example, if there are three HDMI channels in the display device: HDMI1, HDMI2 and HDMI3, when switching from the current HDMI1 to HDMI2, HDMI1 can be used as the first HDMI channel and HDMI2 can be used as the target channel.
在一个实施例中,该播放控制方法还可包括:当从目标通道恢复至第一HDMI通道时,控制接入该第一HDMI通道的外部设备启动播放。In one embodiment, the playback control method may further include: when restoring from the target channel to the first HDMI channel, controlling an external device connected to the first HDMI channel to start playback.
为使本领域技术人员便于理解本申请实施例提供的播放控制方法,下面结合图8所示流程对该播放控制方法进行举例描述:In order to make it easier for those skilled in the art to understand the playback control method provided by the embodiments of the present application, the playback control method is described below with an example in conjunction with the flow shown in FIG. 8 :
参见图8,图8中示例性示出了本申请实施例提供的播放控制方法的流程图。如图8所示,该流程可包括如下步骤:Referring to FIG. 8, FIG. 8 exemplarily shows a flowchart of a playback control method provided by an embodiment of the present application. As shown in Figure 8, the process may include the following steps:
步骤S41,当从第一HDMI通道切换至目标通道时,向接入该第一HDMI通道的外部设备发送第一按键控制指令,该第一按键控制指令携带用于指示外部设备暂停播放的第一值,以使接入该第一HDMI通道的外部设备暂停播放。Step S41, when switching from the first HDMI channel to the target channel, send a first key control instruction to the external device accessing the first HDMI channel, and the first key control instruction carries the first key for instructing the external device to pause playback. value to make the external device connected to the first HDMI channel pause playback.
本步骤S41中是从第一HDMI通道切换至目标通道,所以容易理解的是,在执行本步骤S41前,显示设备的当前通道为第一HDMI通道。在从第一HDMI通道切换至目标通道前,显示设备可播放通过该第一HDMI通道传输的播放内容,也就是播放接入第一HDMI通道的外部设备所提供的播放内容;在从第一HDMI通道切换至目标通道后,显示设备可播放通过该目标通道传输的播放内容。This step S41 is to switch from the first HDMI channel to the target channel, so it is easy to understand that, before performing this step S41, the current channel of the display device is the first HDMI channel. Before switching from the first HDMI channel to the target channel, the display device can play the playback content transmitted through the first HDMI channel, that is, play the playback content provided by the external device connected to the first HDMI channel; After the channel is switched to the target channel, the display device can play the playback content transmitted through the target channel.
在一个例子中,显示设备可在接收到外部输入的第一切换指令时,从第一HDMI通道切换至目标通道。这里的第一切换指令用于指示从第一HDMI通道切换至目标通道。In one example, the display device may switch from the first HDMI channel to the target channel when receiving the first switching instruction input from the external. The first switching instruction here is used to instruct switching from the first HDMI channel to the target channel.
作为一个实施例,该第一切换指令可由用户操作控制装置输入。例如,显示设备可响应于控制装置上的“INPUT(输入)”键对应的按键输入指令,显示至少一个信号源通道,并响应于通过控制装置输入的对其中的目标通道的选中指令,切换至该目标通道。具体的,若通过控制装置输入的选中指令针对的是当前的第一HDMI通道,则可不执行切换操作;在通过控制装置输入的选中指令针对的是当前的第一HDMI通道之外的信号源通道时,将该信号源通道作为目标通道,执行切换至该目标通道。As an embodiment, the first switching instruction can be input by a user operating the control device. For example, the display device may display at least one signal source channel in response to a key input command corresponding to an "INPUT" key on the control device, and switch to the target channel in response to a selection command of the target channel input through the control device. the target channel. Specifically, if the selection command input through the control device is directed to the current first HDMI channel, the switching operation may not be performed; the selection command input through the control device is directed to signal source channels other than the current first HDMI channel When the signal source channel is used as the target channel, switch to the target channel is executed.
在另一个例子中,该第一切换指令可由显示设备在满足预设条件时自动下发。作为一个实施例,这里的预设条件可包括到达预设时间等。In another example, the first switching instruction can be automatically issued by the display device when a preset condition is satisfied. As an embodiment, the preset condition here may include reaching a preset time and the like.
在一个例子中,显示设备和接入第一HDMI通道的外部设备均使能了已配置的消费电子控制(Consumer Electronics Control,CEC)功能。CEC功能允许用户使用一个控制装置控制同一CEC总线上的多个支持CEC功能的设备,这里的多个支持CEC功能的设备可包括:显示设备以及通过HDMI接口接入该显示设备的至少一个外部设备。In one example, both the display device and the external device connected to the first HDMI channel are enabled with a configured Consumer Electronics Control (CEC) function. The CEC function allows the user to use one control device to control multiple devices supporting the CEC function on the same CEC bus, where the multiple devices supporting the CEC function may include: a display device and at least one external device connected to the display device through an HDMI interface .
作为一个实施例,本步骤S41中向外部设备发送的第一按键控制指令可为CEC功 能中的User Control Pressed指令、User Control Released指令,且这两个指令均携带有第一值Pause(暂停播放),用于指示外部设备暂停播放。具体的,这两个指令均携带按键参数key,且按键参数key为第一值为Pause。需要注意的是,这里的第一值为便于与后文中的第二值进行区分而进行的命名,与实际的取值无关。As an embodiment, the first key control instruction sent to the external device in this step S41 may be the User Control Pressed instruction and the User Control Released instruction in the CEC function, and these two instructions both carry the first value Pause (pause playback ) to instruct the external device to pause playback. Specifically, the two commands both carry the key parameter key, and the key parameter key is the first value of Pause. It should be noted that the first value here is named for the convenience of distinguishing it from the second value in the following, and has nothing to do with the actual value.
在现有的CEC功能的远程控制透传(Remote Control Pass Through)功能中,User Control Pressed指令、User Control Released指令主要用于传递用户对控制装置的按键操作,并通过该命令携带的按键参数(key)的不同取值来传递不同的按键操作。其中,User Control Pressed指令主要用于传递用户对控制装置上按键的按压操作,User Control Released指令主要用于传递用户对控制装置上按键的释放操作,这两个指令通常成对使用;常见的控制装置上的按键课包括:快进、快退、启动播放(Play)、暂停播放(Pause)、上一频道、下一频道、停止、退出、上、下、左、右、确认等。本实施例中,通过向外部设备发送携带的按键参数key的取值为Pause的User Control Pressed指令、User Control Released指令,模拟用户对控制装置上Pause键的按压和释放操作,使外部设备暂停播放。In the existing Remote Control Pass Through function of the CEC function, the User Control Pressed command and the User Control Released command are mainly used to transmit the user's key operation on the control device, and the key parameters ( key) to pass different key operations. Among them, the User Control Pressed command is mainly used to transmit the user's pressing operation on the keys on the control device, and the User Control Released command is mainly used to transmit the user's release operation of the keys on the control device. These two commands are usually used in pairs; common control The buttons on the device include: fast forward, fast backward, start playback (Play), pause playback (Pause), previous channel, next channel, stop, exit, up, down, left, right, confirm and so on. In this embodiment, by sending the User Control Pressed command and User Control Released command with the value of the key parameter key carried as Pause to the external device, the user's pressing and releasing operations on the Pause key on the control device are simulated, so that the external device pauses playback .
步骤S42,当从目标通道恢复至第一HDMI通道时,向接入该第一HDMI通道的外部设备发送第二按键控制指令,该第二按键控制指令携带用于指示外部设备启动播放的第二值,以使接入该第一HDMI通道的外部设备启动播放。Step S42, when restoring from the target channel to the first HDMI channel, send a second key control command to the external device accessing the first HDMI channel, the second key control command carrying the second key for instructing the external device to start playing. value, so that the external device connected to the first HDMI channel starts playback.
本步骤S42中是从目标通道恢复至第一HDMI通道,所以容易理解的是,在执行本步骤S42时,显示设备的当前通道为目标通道。In this step S42, the target channel is restored to the first HDMI channel, so it is easy to understand that when this step S42 is executed, the current channel of the display device is the target channel.
在一个例子中,显示设备可在接收到外部输入的第二切换指令时,从目标通道切换至第一HDMI通道。这里的第二切换指令用于指示从目标通道切换至第一HDMI通道。In one example, the display device may switch from the target channel to the first HDMI channel when receiving the second switching instruction input from the external. The second switching instruction here is used to instruct switching from the target channel to the first HDMI channel.
作为一个实施例,与上文描述的第一切换指令类似的,该第二切换指令也可由用户操作控制装置输入。作为另一个实施例,显示设备可在满足预设条件时,自动下发第二切换指令,以从目标通道恢复至第一HDMI通道。As an embodiment, similar to the first switching instruction described above, the second switching instruction can also be input by the user operating the control device. As another embodiment, the display device may automatically issue a second switching instruction to restore from the target channel to the first HDMI channel when the preset condition is satisfied.
作为一个实施例,本步骤S42中向外部设备发送的第二按键输入指令可为User Control Pressed指令、User Control Released指令,且这两个指令均携带有第二值Play(启动播放),用于指示外部设备启动播放。具体的,User Control Pressed指令、User Control Released指令可均携带按键参数key,且按键参数key为第二值为Play。本实施例中,通过向外部设备发送携带的按键参数key的取值为Play的User Control Pressed指令、User Control Released指令,模拟用户对控制装置上Play键的按压和释放操作,使外部设备启动播放。As an embodiment, the second key input command sent to the external device in this step S42 may be the User Control Pressed command and the User Control Released command, and both of these two commands carry the second value Play (start playing), which is used for Instructs the external device to start playback. Specifically, the User Control Pressed instruction and the User Control Released instruction can both carry the key parameter key, and the key parameter key is the second value of Play. In this embodiment, the User Control Pressed command and the User Control Released command with the value of the key parameter key carried by the external device are sent to the external device to simulate the user's pressing and releasing operations on the Play key on the control device, so that the external device starts playing .
作为一个实施例,当目标通道为第二HDMI通道时,在从第二HDMI通道恢复至第一HDMI通道时,可与从第一HDMI通道切换至目标通道类似的,向该第二HDMI通道发送第一按键控制指令,以使接入第二HDMI通道的外部设备暂停播放。As an example, when the target channel is the second HDMI channel, when restoring from the second HDMI channel to the first HDMI channel, similar to switching from the first HDMI channel to the target channel, sending a message to the second HDMI channel The first button controls the instruction to make the external device connected to the second HDMI channel pause the playback.
至此,完成图8所示流程。So far, the process shown in FIG. 8 is completed.
通过图8所示流程,显示设备可在从第一HDMI通道切换至目标通道时,控制接入第一HDMI通道的外部设备暂停播放,以及可在从目标通道切换至第一HDMI通道时,控制接入第一HDMI通道的外部设备启动播放。Through the process shown in FIG. 8, the display device can control the external device connected to the first HDMI channel to pause playback when switching from the first HDMI channel to the target channel, and can control the external device connected to the first HDMI channel to pause playback when switching from the target channel to the first HDMI channel. An external device connected to the first HDMI channel starts playback.
在一个实施例中,上述步骤S42中,从目标通道恢复至第一HDMI通道时,也可不向接入该第一HDMI通道的外部设备发送第二按键控制指令,以由该外部设备响应外部输入的指示启动播放的指令启动播放。In one embodiment, in the above step S42, when restoring from the target channel to the first HDMI channel, the second key control instruction may not be sent to the external device connected to the first HDMI channel, so that the external device responds to the external input The instruction to start playback starts playback.
在一个实施例中,在之前并未从第一HDMI通道切换至目标通道的情况下,也可在从目标通道切换至第一HDMI通道时,向接入第一HDMI通道的外部设备发送第二按键控制指令,以控制该外部设备启动播放。In one embodiment, in the case of not switching from the first HDMI channel to the target channel before, when switching from the target channel to the first HDMI channel, the second HDMI channel may be sent to the external device connected to the first HDMI channel. Button control command to control the external device to start playing.
在一些实施例中,上述步骤S41中从第一HDMI通道切换至目标通道的过程包括可多个步骤。下面以目标通道为TV通道为例,结合图9对从第一HDMI通道切换至TV通道的过程,以及该过程中何时向接入该第一HDMI通道的外部设备发送第一按键控制指令进行描述。In some embodiments, the process of switching from the first HDMI channel to the target channel in the above step S41 may include multiple steps. Taking the target channel as the TV channel as an example, the process of switching from the first HDMI channel to the TV channel and when to send the first key control command to the external device accessing the first HDMI channel in this process are carried out with reference to FIG. 9 . describe.
参见图9,图9中示例性示出了本申请实施例提供的步骤S41的实现流程图。如图9所示,该流程可包括如下步骤:Referring to FIG. 9 , FIG. 9 exemplarily shows an implementation flowchart of step S41 provided by this embodiment of the present application. As shown in Figure 9, the process may include the following steps:
步骤S51,释放第一HDMI通道所占用的资源。Step S51, releasing the resources occupied by the first HDMI channel.
作为一个实施例,释放第一HDMI通道所占用的资源可包括:释放第一HDMI通道所占用的终端(terminal)与该终端对应的播放器之间的连接,并解除第一HDMI通道对终端的占用。As an embodiment, releasing the resources occupied by the first HDMI channel may include: releasing the connection between the terminal occupied by the first HDMI channel and the player corresponding to the terminal, and releasing the connection of the first HDMI channel to the terminal occupied.
具体的,释放第一HDMI通道所占用的终端与播放器之间的连接时,若第一HDMI通道所占用的终端为视窗终端(window terminal),则可停止该视窗终端对应的视频解码器,若第一HDMI通道所占用的终端为音频终端(audio terminal)时,则可停止该音频终端对应的音频解码器。上述音频终端可为耳机、扬声器等,视窗终端可为显示器等。Specifically, when releasing the connection between the terminal occupied by the first HDMI channel and the player, if the terminal occupied by the first HDMI channel is a window terminal, the video decoder corresponding to the window terminal can be stopped, If the terminal occupied by the first HDMI channel is an audio terminal (audio terminal), the audio decoder corresponding to the audio terminal can be stopped. The above-mentioned audio terminal may be an earphone, a speaker, etc., and the window terminal may be a display or the like.
具体的,解除第一HDMI通道对终端的占用时,可销毁该HDMI通道与终端间建立的路径(path),若第一HDMI通道占用的终端为视窗终端,则可关闭该视窗终端对应的视频解码器,若第一HDMI通道占用的终端为音频终端,则可关闭该音频终端对应的音频解码器。Specifically, when the terminal occupied by the first HDMI channel is released, the path established between the HDMI channel and the terminal can be destroyed. If the terminal occupied by the first HDMI channel is a window terminal, the video corresponding to the window terminal can be closed. Decoder, if the terminal occupied by the first HDMI channel is an audio terminal, the audio decoder corresponding to the audio terminal can be turned off.
步骤S52,向接入该第一HDMI通道的外部设备发送第一按键控制指令,该第一按键控制指令携带用于指示外部设备暂停播放的第一值。Step S52: Send a first key control instruction to the external device connected to the first HDMI channel, where the first key control instruction carries a first value used to instruct the external device to pause playback.
本步骤S52的具体实现可参考上文描述的实施例,在此不再重复举例描述。For the specific implementation of this step S52, reference may be made to the embodiments described above, and the example description will not be repeated here.
步骤S53,为TV通道分配所需的资源。Step S53: Allocate required resources for the TV channel.
作为一个实施例,本步骤S53可在TV通道与该TV通道所需的终端之间建立路径,以使TV通道占用该终端。作为一个实施例,在建立TV通道与所需的终端之间的路径后,可建立TV通道所需的终端与该终端对应的播放器间的连接,并启动终端对应的播放器。比如,当TV通道占用的终端为视窗终端时,启动该视窗终端对应的 视频解码器,当TV通道占用的终端为音频终端时,启动该音频终端对应的音频解码器。As an embodiment, in this step S53, a path may be established between the TV channel and a terminal required by the TV channel, so that the TV channel occupies the terminal. As an embodiment, after the path between the TV channel and the required terminal is established, a connection between the terminal required for the TV channel and the player corresponding to the terminal can be established, and the player corresponding to the terminal can be started. For example, when the terminal occupied by the TV channel is a window terminal, the video decoder corresponding to the window terminal is activated, and when the terminal occupied by the TV channel is an audio terminal, the audio decoder corresponding to the audio terminal is activated.
至此,完成图9所示流程。图9所示流程可在需要从第一HDMI通道切换至目标通道时执行,比如可在接收到用户输入的指示切换至目标通道的指令时执行。So far, the process shown in FIG. 9 is completed. The process shown in FIG. 9 can be executed when switching from the first HDMI channel to the target channel is required, for example, when an instruction inputted by a user to instruct to switch to the target channel is received.
在一些实施例中,上述步骤S42中从目标通道切换至第一HDMI通道的过程包括多个步骤。下面以目标通道为TV通道为例,结合图10所示流程,对从TV通道切换至第一HDMI通道的过程,以及该过程中何时向接入该第一HDMI通道的外部设备发送第二按键控制指令进行描述。In some embodiments, the process of switching from the target channel to the first HDMI channel in the above step S42 includes multiple steps. The following takes the target channel as the TV channel as an example, combined with the process shown in FIG. 10, the process of switching from the TV channel to the first HDMI channel, and when to send the second HDMI channel to the external device connected to the first HDMI channel in the process. Button control commands are described.
参见图10,图10中示例性示出了本申请实施例提供的步骤S42的实现流程图。如图10所示,该流程可包括如下步骤:Referring to FIG. 10 , FIG. 10 exemplarily shows a flowchart of the implementation of step S42 provided in this embodiment of the present application. As shown in Figure 10, the process may include the following steps:
步骤S61,释放TV通道所占用的资源。Step S61, release the resources occupied by the TV channel.
本步骤S61的具体实现与上述步骤S51类似,具体可参考上述步骤S51,在此不再重复描述。The specific implementation of this step S61 is similar to the above-mentioned step S51. For details, reference may be made to the above-mentioned step S51, and the description will not be repeated here.
步骤S62,为第一HDMI通道分配所需资源。Step S62: Allocate required resources for the first HDMI channel.
本步骤S62的具体实现与上述步骤S53类似,具体可参考上述步骤S52,在此不再重复描述。The specific implementation of this step S62 is similar to the above-mentioned step S53. For details, reference may be made to the above-mentioned step S52, and the description will not be repeated here.
步骤S63,向接入第一HDMI通道的外部设备发送第二按键控制指令,该第二按键控制指令携带用于指示外部设备启动播放的第二值。Step S63: Send a second key control instruction to the external device connected to the first HDMI channel, where the second key control instruction carries a second value used to instruct the external device to start playing.
至此,完成对图10所示流程的描述。图10所示流程可在需要从目标通道切换至第一HDMI通道时执行。So far, the description of the flow shown in FIG. 10 is completed. The process shown in FIG. 10 can be executed when switching from the target channel to the first HDMI channel is required.
在一个实施例中,图9、图10所示流程可由显示设备中的一个或多个模块完成。In one embodiment, the processes shown in FIG. 9 and FIG. 10 may be completed by one or more modules in the display device.
需要注意的是,图9、图10所示流程只是示例,并不用于具体限制本申请。实际应用时可能存在其他从第一HDMI通道切换至目标通道、从目标通道切换至第一HDMI通道的过程,在此不再一一详述。It should be noted that the processes shown in FIG. 9 and FIG. 10 are only examples, and are not used to specifically limit the present application. In practical application, there may be other processes of switching from the first HDMI channel to the target channel and from the target channel to the first HDMI channel, which will not be described in detail here.
如上面实施例所述,显示设备能够在从第一HDMI通道切换至目标通道时,控制接入第一HDMI通道的外部设备暂停播放,也能够在从目标通道恢复至第一HDMI通道时,控制接入第一HDMI通道的外部设备启动播放。由此,可以避免由于从第一HDMI通道切换至目标通道时,接入该第一HDMI通道的外部设备仍持续播放,导致从目标通道恢复至第一HDMI通道后的播放内容与从第一HDMI通道切换至目标通道前的播放内容不连续等问题。As described in the above embodiment, the display device can control the external device connected to the first HDMI channel to pause playback when switching from the first HDMI channel to the target channel, and can also control the external device connected to the first HDMI channel to pause playback when switching from the target channel to the first HDMI channel. An external device connected to the first HDMI channel starts playback. In this way, it can be avoided that when switching from the first HDMI channel to the target channel, the external device connected to the first HDMI channel continues to play, resulting in the playback content after restoring from the target channel to the first HDMI channel and the playback content from the first HDMI channel. The playback content is discontinuous before the channel is switched to the target channel.
第三方面:The third aspect:
本申请实施例提供一种显示设备,包括:显示器;至少一个HDMI端口,用于连接提供多媒体内容的外部设备,其中,外部设备处于待机状态;An embodiment of the present application provides a display device, including: a display; at least one HDMI port for connecting to an external device that provides multimedia content, wherein the external device is in a standby state;
电源管理模块,用于控制本显示设备处于关机或开机状态;The power management module is used to control the display device to be turned off or turned on;
控制器,用于执行:Controller, which executes:
在本显示设备处于关机状态的情况下接收已连接的外部设备发送的开机唤醒指 令,依据所述开机唤醒指令将本显示设备由关机状态切换为开机状态的过程中确定发送所述开机唤醒指令的目标外部设备,依据所述目标外部设备接入本显示设备的目标HDMI端口的端口参数配置本显示设备从关机状态进入开机状态的开机唤醒原因,以使本显示设备进入开机状态后,根据已配置的所述开机唤醒原因将本显示设备的播放通道切换至所述目标HDMI端口对应的目标HDMI通道。Receive the power-on wake-up command sent by the connected external device when the display device is in the off state, and determine the source of the power-on wake-up command in the process of switching the display device from the power-off state to the power-on state according to the power-on wake-up command. The target external device, according to the port parameters of the target external device connected to the target HDMI port of the display device, configure the power-on wake-up reason for the display device to enter the power-on state from the off state, so that after the display device enters the power-on state, according to the configured The said power-on wake-up cause switches the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port.
本申请实施例提供一种显示设备,包括:显示器;至少一个HDMI端口,用于连接外部设备,其中,外部设备为用于提供多媒体服务的设备;控制器。在本申请实施例中,该控制器被配置执行:在本显示设备处于关机状态的情况下接收已连接的外部设备发送的开机唤醒指令,依据开机唤醒指令将本显示设备由关机状态切换为开机状态的过程中确定发送开机唤醒指令的目标外部设备,依据目标外部设备接入本显示设备的目标HDMI端口的端口参数配置本显示设备从关机状态进入开机状态的开机唤醒原因,以使本显示设备进入开机状态后,根据已配置的开机唤醒原因将本显示设备的播放通道切换至目标HDMI端口对应的目标HDMI通道。An embodiment of the present application provides a display device, including: a display; at least one HDMI port for connecting an external device, wherein the external device is a device for providing multimedia services; and a controller. In the embodiment of the present application, the controller is configured to execute: when the display device is in a power-off state, receive a power-on wake-up command sent by a connected external device, and switch the display device from the power-off state to the power-on state according to the power-on wake-up command Determine the target external device that sends the power-on wake-up command during the state of the display device, and configure the power-on wake-up reason for the display device to enter the power-on state from the off state according to the port parameters of the target external device connected to the target HDMI port of the display device, so that the display device can be turned on. After entering the power-on state, switch the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port according to the configured wake-up reason.
本申请实施例还提供一种通道切换方法,应用于显示设备,该方法包括:The embodiment of the present application also provides a channel switching method, which is applied to a display device, and the method includes:
在本显示设备处于关机状态的情况下接收已连接的外部设备发送的开机唤醒指令,依据所述开机唤醒指令将本显示设备由关机状态切换为开机状态的过程中确定发送所述开机唤醒指令的目标外部设备,依据所述目标外部设备接入本显示设备的目标HDMI端口的端口参数配置本显示设备从关机状态进入开机状态的开机唤醒原因,以使本显示设备进入开机状态后1的所述开机唤醒原因将本显示设备的播放通道切换至所述目标HDMI端口对应的目标HDMI通道。Receive the power-on wake-up command sent by the connected external device when the display device is in the off state, and determine the source of the power-on wake-up command in the process of switching the display device from the power-off state to the power-on state according to the power-on wake-up command. The target external device, according to the port parameters of the target external device connecting to the target HDMI port of the display device, configure the wake-up reason for the display device to enter the power-on state from the off state, so that the display device enters the power-on state. The reason for power-on wake-up is to switch the playback channel of the display device to the target HDMI channel corresponding to the target HDMI port.
本申请实施例也提供了一种操作方法。请参见图11,为本申请实施例提供的一种通道切换方法的流程示意图。The embodiments of the present application also provide an operation method. Please refer to FIG. 11 , which is a schematic flowchart of a channel switching method provided by an embodiment of the present application.
如图11所示,该流程可包括以下步骤:As shown in Figure 11, the process may include the following steps:
步骤101,在本显示设备处于关机状态的情况下接收已连接的外部设备发送的开机唤醒指令,依据开机唤醒指令将本显示设备由关机状态切换为开机状态的过程中确定发送开机唤醒指令的目标外部设备。Step 101: Receive the power-on wake-up command sent by the connected external device when the display device is in the off state, and determine the target of sending the power-on wake-up command in the process of switching the display device from the power-off state to the power-on state according to the power-on wake-up command external device.
在一个例子中,外部设备可以是在处于待机状态下,响应于用于指示该外部设备由待机状态进入开机状态的开机指令,进而向显示设备发送上述步骤101中描述的开机唤醒指令。在另一个例子中,外部设备可以是在处于关机状态下,响应于用于指示该外部设备由关机状态进入开机状态的开机指令,进而向显示设备发送上述步骤101中描述的开机唤醒指令。In one example, the external device may be in a standby state, and in response to a power-on command for instructing the external device to enter a power-on state from a standby state, the external device sends the power-on wake-up command described in step 101 to the display device. In another example, the external device may be in a power-off state, in response to a power-on command for instructing the external device to enter a power-on state from a power-off state, and then send the power-on wake-up command described in step 101 to the display device.
通常情况下,外部设备在发送开机唤醒指令时,该开机唤醒指令是不会携带能够用于标识该外部设备以及该外部设备所接入目标HDMI端口的相关信息的。因此,本显示设备在接收到外部设备发送的开机唤醒指令后,既不能够依据该开机唤醒指令确定出发送开机唤醒指令的目标外部设备,也不能依据该开机唤醒指令确定出目标外部设备在本显示设备上所接入的目标HDMI端口。至于本步骤101如何确定出目标外部 设备以及目标HDMI端口的端口参数,下文会分别结合图12和图13进行描述,这里暂不赘述。Normally, when an external device sends a power-on wake-up command, the power-on wake-up command does not carry relevant information that can be used to identify the external device and the target HDMI port to which the external device is connected. Therefore, after receiving the power-on wake-up command sent by the external device, the display device can neither determine the target external device to send the power-on wake-up command according to the power-on wake-up command, nor determine whether the target external device is in the local display device according to the power-on wake-up command. Displays the target HDMI port plugged into the device. As for how to determine the port parameters of the target external device and the target HDMI port in this step 101, it will be described below in conjunction with Figure 12 and Figure 13, and will not be repeated here.
在本申请实施例中,HDMI端口参数能够用于标识HDMI通道,比如HDMI端口的端口标识等。In this embodiment of the present application, the HDMI port parameter can be used to identify the HDMI channel, such as the port identification of the HDMI port.
步骤102,依据目标外部设备接入本显示设备的目标HDMI端口的端口参数配置本显示设备从关机状态进入开机状态的开机唤醒原因,以使本显示设备进入开机状态后,根据已配置的开机唤醒原因将本显示设备的播放通道切换至目标HDMI端口对应的目标HDMI通道。Step 102: Configure the reason for the display device to wake up from the power-off state to the power-on state according to the port parameters of the target HDMI port of the target external device connected to the display device, so that the display device enters the power-on state and wakes up according to the configured power-on state. Cause Switch the playback channel of this display device to the target HDMI channel corresponding to the target HDMI port.
在本申请实施例中,开机唤醒原因中可以包括有端口参数。基于此,本步骤102中可以基于端口参数配置开机唤醒原因,例如,可以是将上述步骤101中确定出的端口参数写入至开机唤醒原因中。其中,当开机唤醒原因的端口参数为第一HDMI端口的端口参数时,则表示本显示设备是经由第一HDMI端口接收到的由外部设备所发送的开机唤醒指令而使本显示设备从关机状态进入开机状态,指示本显示设备在开机后需将播放通道切换至前述的第一HDMI端口对应的第一HDMI通道,以通过第一HDMI通道播放外部设备提供的多媒体内容;当开机唤醒原因的端口参数为第二HDMI端口的端口参数时,则表示本显示设备是经由第二HDMI端口接收到的由外部设备所发送的开机唤醒指令而使本显示设备从关机状态进入开机状态,指示本显示设备在开机后需将播放通道切换至前述的第二HDMI端口对应的第二HDMI通道,以通过第二HDMI通道播放外部设备提供的多媒体内容。In this embodiment of the present application, the reason for wake-up at power-on may include port parameters. Based on this, in this step 102, the wake-up reason may be configured based on the port parameters, for example, the port parameters determined in the above step 101 may be written into the wake-up reason. Wherein, when the port parameter of the reason for power-on wake-up is the port parameter of the first HDMI port, it means that the display device is turned off from the power-off state by the power-on wake-up command sent by the external device received via the first HDMI port. Enter the power-on state, indicating that the display device needs to switch the playback channel to the first HDMI channel corresponding to the aforementioned first HDMI port after the display device is turned on, so as to play the multimedia content provided by the external device through the first HDMI channel; When the parameter is the port parameter of the second HDMI port, it means that the display device is turned on by the power-on wake-up command sent by the external device received through the second HDMI port to make the display device enter the power-on state from the off state, indicating that the display device is in the power-on state. After booting, the playback channel needs to be switched to the second HDMI channel corresponding to the aforementioned second HDMI port, so as to play the multimedia content provided by the external device through the second HDMI channel.
在完成开机唤醒原因的配置后,可以将该开机唤醒原因发送至电视服务(TV Service)。该TV Service会解析出开机唤醒原因中所配置的端口参数,并依据该端口参数生成播放通道切换指令,该播放通道切换指令用于指示播放通道控制模块将播放通道切换为目标HDMI端口对应的HDMI通道。之后,当TV Service检测到本显示设备进入开机状态后,便会立即下发该播放通道切换指令至播放通道控制模块,该播放通道控制模块会响应于该播放通道切换指令将播放通道切换为目标HDMI端口对应的目标HDMI通道。After completing the configuration of the power-on wake-up reason, the power-on wake-up reason can be sent to the TV Service. The TV Service will parse out the port parameters configured in the wake-up cause, and generate a playback channel switching instruction based on the port parameters. The playback channel switching instruction is used to instruct the playback channel control module to switch the playback channel to the HDMI corresponding to the target HDMI port. aisle. Afterwards, when the TV Service detects that the display device has entered the power-on state, it will immediately send the playback channel switching instruction to the playback channel control module, and the playback channel control module will switch the playback channel to the target in response to the playback channel switching instruction. The target HDMI channel corresponding to the HDMI port.
当显示设备由关机状态进入开机状态后,则会依据上述已配置的开机唤醒原因中的端口参数,直接的将播放通道切换为目标HDMI端口对应的目标HDMI通道。When the display device enters the power-on state from the power-off state, it will directly switch the playback channel to the target HDMI channel corresponding to the target HDMI port according to the port parameters in the above-configured power-on wake-up reason.
至此,完成图11所示流程。So far, the process shown in FIG. 11 is completed.
由以上技术方案可以看出,本申请中,当显示设备接收到外部设备发送的开机唤醒指令时,不再仅控制本显示设备由关机状态进入开机状态,而是还额外获取发送该开机唤醒指令的外部设备所接入目标HDMI端口的端口参数,并依据该端口参数生成开机唤醒原因,进而当本显示设备进入开机状态后能够直接的依据该开机唤醒原因将播放通道切换至外部设备所接入HDMI端口对应的HDMI通道,既无需等待接收到外部设备发送的通道切换指令后再进行切换,也不会将播放通道先切换至默认通道或关机前所使用的通道,从根本上避免了电视播放画面因通道切换而出现的闪屏、黑屏等 问题。It can be seen from the above technical solutions that in the present application, when the display device receives a power-on wake-up command sent by an external device, it no longer only controls the display device to enter the power-on state from a power-off state, but additionally acquires and sends the power-on wake-up command. The port parameter of the target HDMI port that the external device is connected to, and the wake-up reason is generated according to the port parameter, and then when the display device enters the power-on state, the playback channel can be switched to the external device directly according to the wake-up reason. The HDMI channel corresponding to the HDMI port does not need to wait for the channel switching command sent by the external device before switching, nor will the playback channel be switched to the default channel or the channel used before shutdown, which fundamentally avoids TV playback. Problems such as splash screen and black screen appear due to channel switching.
下面对上述步骤101中如何确定出发送开机唤醒指令的目标外部设备进行描述。The following describes how to determine the target external device that sends the power-on wake-up command in the above step 101 .
参见图12,图12为本申请实施例提供的步骤101的实现流程图。如图12所示,该流程可包括以下步骤:Referring to FIG. 12 , FIG. 12 is a flowchart for realizing step 101 provided in this embodiment of the present application. As shown in Figure 12, the process may include the following steps:
步骤201,向预设的每一逻辑地址发送探测消息。Step 201: Send a probe message to each preset logical address.
在执行本步骤201之前,可预先在显示设备本地设置若干个逻辑地址,该逻辑地址用于在外部设备接入本显示设备时为外部设备分配,用以区分不同的外部设备并与之通信。Before performing this step 201, several logical addresses may be set locally in the display device in advance, and the logical addresses are used to allocate the external device when the external device accesses the display device, so as to distinguish and communicate with different external devices.
在本申请实施例中,在为外部设备分配逻辑地址时,可以根据外部设备的设备类型来分配。例如,在外部设备为DVD设备时,DVD设备对应的逻辑地址可以是4、8、11,那么,在为DVD设备分配逻辑地址时,则可以从上述4、8、11中选择一个进行分配。这里需要说明的是,若显示设备接入了多个同一类型的外部设备,这些同类型的外部设备的逻辑地址是不同的。比如,两个DVD设备接入本显示设备,若预先设置DVD终端的逻辑地址只能是4、8、11,那么其中一个DVD终端的逻辑地址为4,另一个DVD终端的逻辑地址只能是8或11。当然,其它类型的终端的逻辑地址不会与DVD的逻辑地址重复,从而保证每一个外部设备的逻辑地址唯一。In this embodiment of the present application, when allocating a logical address to an external device, it may be allocated according to the device type of the external device. For example, when the external device is a DVD device, the logical addresses corresponding to the DVD device may be 4, 8, and 11. Then, when assigning a logical address to the DVD device, one of the above 4, 8, and 11 may be selected for assignment. It should be noted here that if the display device is connected to multiple external devices of the same type, the logical addresses of these external devices of the same type are different. For example, if two DVD devices are connected to the display device, if the logical address of the DVD terminal can only be set to 4, 8, and 11 in advance, then the logical address of one DVD terminal is 4, and the logical address of the other DVD terminal can only be 8 or 11. Of course, the logical addresses of other types of terminals will not be duplicated with the logical addresses of DVDs, thus ensuring that the logical addresses of each external device are unique.
作为一个示例,可通过设备轮询线程向预设的每一逻辑地址发送探测消息。As an example, a probe message may be sent to each preset logical address through a device polling thread.
在本申请实施例中,当显示设备接收到唤醒开机指令后,显示设备首先会启动设备轮询线程。该设备轮询线程用于向预先设置的每一逻辑地址轮询发送探测消息,以探测该逻辑地址是否对应有外部设备。由于本显示设备预先配置的逻辑地址的数量是固定的,每个接入本显示设备的外部设备的逻辑地址都必然是上述预先配置的逻辑地址中的一个,因此,通过向每一预先设置的逻辑地址发送探测消息,能够将探测消息发送至每个连接于本显示设备的外部设备。In this embodiment of the present application, after the display device receives the wake-up power-on instruction, the display device first starts a device polling thread. The device polling thread is used for polling and sending a probe message to each preset logical address, so as to detect whether the logical address corresponds to an external device. Since the number of pre-configured logical addresses of the display device is fixed, the logical address of each external device connected to the display device must be one of the above-mentioned pre-configured logical addresses. The logical address sends the probe message, which can send the probe message to each external device connected to the display device.
步骤202,在接收到响应于任一探测消息的应答消息时,从指定应答消息中获取目标逻辑地址,目标逻辑地址用于标识发送开机唤醒指令的目标外部设备。Step 202, when a response message in response to any probe message is received, obtain the target logical address from the specified response message, where the target logical address is used to identify the target external device that sends the power-on wake-up command.
在本申请实施例中,探测消息用于探测接收到该消息的外部设备在指定时长内是否发送了唤醒开机指令。In this embodiment of the present application, the detection message is used to detect whether the external device that has received the message has sent a wake-up power-on instruction within a specified period of time.
在本申请实施例中,若接收到探测消息的外部设备在指定时长内并未发送唤醒开机指令,则该外部设备会响应于该探测消息发送非指定应答消息。在一个例子中,该非指定应答消息中可有携带有HUI_CEC_RF字符串,用于标识该消息是非指定应答消息。In this embodiment of the present application, if the external device that receives the probe message does not send a wake-up power-on command within a specified period of time, the external device will send an unspecified response message in response to the probe message. In one example, the unspecified response message may carry a HUI_CEC_RF string, which is used to identify the message as an unspecified response message.
在本申请实施例中,若接收到探测消息的外部设备在指定时长内发送了唤醒开机指令,则该外部设备会响应于该探测消息发送指定应答消息。在一个例子中,该指定应答消息中可以携带有HUI_CEC_TX_SUCCESS字符串,用于标识该消息是非指定应答消息。In this embodiment of the present application, if the external device that receives the probe message sends a wake-up power-on command within a specified period of time, the external device will send a specified response message in response to the probe message. In an example, the specified response message may carry a HUI_CEC_TX_SUCCESS string, which is used to identify that the message is an unspecified response message.
当接收到应答消息后,若该应答消息中携带有用于标识该应答消息为指定应答消 息的字符串,比如HUI_CEC_TX_SUCCESS,则可确定该应答消息是指定应答消息。之后,可以将接收到的指定应答消息中携带的发送方的逻辑地址确定为目标逻辑地址,也就是发送唤醒开机指令的目标外部设备的逻辑地址。由于逻辑地址便能够用于唯一的标识出一台外部设备,因此在确定出目标设备的目标逻辑地址后,便相当于确定出该目标设备。After receiving the response message, if the response message carries a character string used to identify the response message as a designated response message, such as HUI_CEC_TX_SUCCESS, it can be determined that the response message is a designated response message. After that, the logical address of the sender carried in the received designated response message may be determined as the target logical address, that is, the logical address of the target external device that sends the wake-up power-on command. Since the logical address can be used to uniquely identify an external device, after determining the target logical address of the target device, it is equivalent to determining the target device.
以上对上述步骤101中如何确定出发送开机唤醒指令的目标外部设备进行了描述。The above describes how to determine the target external device that sends the power-on wake-up command in the above step 101 .
下面对上述步骤101中如何获取目标外部设备在本显示设备所接入的目标HDMI端口的端口参数进行描述。The following describes how to obtain the port parameters of the target HDMI port to which the target external device is connected to the display device in the above step 101 .
参见图13,图13为本申请实施例提供的步骤101的实现流程图。如图13所示,该流程可包括以下步骤:Referring to FIG. 13 , FIG. 13 is a flowchart for realizing step 101 provided in this embodiment of the present application. As shown in Figure 13, the process may include the following steps:
步骤301,依据目标逻辑地址确定目标HDMI端口对应的HDMI通道的目标物理地址。Step 301: Determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address.
作为一个示例,本步骤301依据目标逻辑地址确定目标HDMI端口对应的HDMI通道的目标物理地址有多种实现方式。下文会结合图14所示流程对其中一种实现方式进行描述,这里暂不赘述。As an example, in this step 301, there are multiple implementations for determining the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address. One of the implementations will be described below with reference to the process shown in FIG. 14 , and details will not be described here.
在本申请实施例中,物理地址能够唯一的标识一个HDMI通道,一个HDMI通道固定的对应于一个物理地址。比如,显示设备有3个HDMI通道,第一HDMI通道的物理地址为0x1000,第二HDMI通道的物理地址为0x2000,第三HDMI通道的物理地址为0x3000,三者的物理地址是固定且唯一的。In this embodiment of the present application, the physical address can uniquely identify an HDMI channel, and an HDMI channel is fixedly corresponding to a physical address. For example, the display device has 3 HDMI channels. The physical address of the first HDMI channel is 0x1000, the physical address of the second HDMI channel is 0x2000, and the physical address of the third HDMI channel is 0x3000. The physical addresses of the three are fixed and unique. .
步骤302,依据目标物理地址获取目标HDMI端口的端口参数。Step 302: Obtain port parameters of the target HDMI port according to the target physical address.
在本申请实施例中,显示设备中会预先存储有HDMI通道的物理地址与该HDMI通道对应HDMI端口的端口参数间的对应关系。基于此,可以从上述对应关系中查找到对应于目标物理地址的端口参数,将查找到的端口参数确定为目标HDMI端口的端口参数。In the embodiment of the present application, the corresponding relationship between the physical address of the HDMI channel and the port parameter of the HDMI port corresponding to the HDMI channel is pre-stored in the display device. Based on this, the port parameter corresponding to the target physical address can be found from the above correspondence, and the found port parameter is determined as the port parameter of the target HDMI port.
以上对上述步骤101中如何获取目标外部设备在本显示设备所接入的目标HDMI端口的端口参数进行了描述。The above describes how to obtain the port parameters of the target HDMI port to which the target external device is connected to the display device in the above step 101 .
下面对上述步骤301中如何依据目标逻辑地址确定目标HDMI端口对应的HDMI通道的目标物理地址进行描述。The following describes how to determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address in the above step 301 .
参见图14,图14为本申请实施例提供的步骤301的实现流程图。如图14所示,该流程可包括以下步骤:Referring to FIG. 14 , FIG. 14 is a flowchart for realizing step 301 provided in this embodiment of the present application. As shown in Figure 14, the process may include the following steps:
步骤401,检查目标逻辑地址是否是本显示设备预先已分配的逻辑地址;若是,则转到步骤402;若否,则转到步骤403。Step 401 , check whether the target logical address is the logical address pre-allocated by the display device; if so, go to step 402 ; if not, go to step 403 .
如前述的,当有外部设备接入本显示设备时,本显示设备会为该外部设备分配一个逻辑地址。当显示设备将某一逻辑地址分配给外部设备时,会设置该逻辑地址的分配状态为已分配,否则将默认的设置该逻辑地址的分配状为未分配。As mentioned above, when an external device is connected to the display device, the display device will assign a logical address to the external device. When the display device allocates a logical address to an external device, it will set the allocation status of the logical address to allocated, otherwise, it will set the allocation status of the logical address to unallocated by default.
但是,若外部设备接入本显示设备时,本显示设备处于待机状态或关机状态,则 本显示设备由于无法检测到外部设备的接入,也就不能够为该外部设备分配逻辑地址,那么该外部设备的逻辑地址仍然是之前所接入显示设备为其分配的逻辑地址。基于此,则会出现目标外部设备虽然能够接收到探测消息并发送指定应答消息,但是其目标逻辑地址却处于未分配状态的情况。However, if the display device is in a standby state or a shutdown state when an external device is connected to the display device, since the display device cannot detect the access of the external device, it cannot assign a logical address to the external device. The logical address of the external device is still the logical address assigned to it by the connected display device. Based on this, although the target external device can receive the probe message and send the specified response message, the target logical address is in an unassigned state.
步骤402,依据本地已存储的逻辑地址-物理地址对应关系确定出目标逻辑地址对应的物理地址,将确定出的目标逻辑地址对应的物理地址确定为目标物理地址。Step 402: Determine the physical address corresponding to the target logical address according to the locally stored logical address-physical address correspondence, and determine the physical address corresponding to the determined target logical address as the target physical address.
本步骤402是在目标逻辑地址是本显示设备预先已分配的逻辑地址的前提下执行的。This step 402 is executed on the premise that the target logical address is a logical address pre-allocated by the display device.
在本申请实施例中,显示设备中会预先存储有逻辑地址-物理地址对应关系。其中,物理地址是指本显示设备中HDMI通道的物理地址,该物理地址对应的逻辑地址则取决于该物理地址对应的HDMI通道是否接入了外部设备,以及本显示设备是否为该外部设备分配了逻辑地址。例如,若该物理地址对应的HDMI通道接入了外部设备,并为该外部设备分配了逻辑地址,则该物理地址对应的逻辑地址便是为该外部设备所分配的逻辑地址。又例如,若该物理地址对应的HDMI通道没有接入外部设备,或接入了外部设备但由于某些原因并没有为该外部设备分配逻辑地址,则该物理地址对应的逻辑地址便是默认的逻辑地址。这里,默认的逻辑地址是指除预先设置的用于为外部设备分配的逻辑地址之外的其它逻辑地址。In this embodiment of the present application, a logical address-physical address correspondence relationship is pre-stored in the display device. Among them, the physical address refers to the physical address of the HDMI channel in the display device, and the logical address corresponding to the physical address depends on whether the HDMI channel corresponding to the physical address is connected to an external device, and whether the display device is allocated to the external device. the logical address. For example, if the HDMI channel corresponding to the physical address is connected to an external device, and a logical address is allocated to the external device, the logical address corresponding to the physical address is the logical address allocated to the external device. For another example, if the HDMI channel corresponding to the physical address is not connected to an external device, or is connected to an external device but for some reason the external device is not assigned a logical address, the logical address corresponding to the physical address is the default. logical address. Here, the default logical address refers to other logical addresses other than the pre-set logical addresses allocated to external devices.
当在确定出目标逻辑地址是预先已分配的逻辑地址后,则表示逻辑地址-物理地址对应关系中记录有对应于该目标逻辑地址的物理地址,因此则可以从逻辑地址-物理地址对应关系中查找到对应于目标逻辑地址的目标物理地址。作为一种示例,可以将目标逻辑地址作为关键字,在逻辑地址-物理地址对应关系中查找到包含该关键字的目标对应关系。之后,将该目标对应关系中记录的物理地址确定为对应于目标逻辑地址的目标物理地址。When it is determined that the target logical address is a pre-allocated logical address, it means that the physical address corresponding to the target logical address is recorded in the logical address-physical address correspondence, so it can be obtained from the logical address-physical address correspondence The target physical address corresponding to the target logical address is found. As an example, the target logical address may be used as a key, and a target correspondence including the key may be found in the logical address-physical address correspondence. After that, the physical address recorded in the target correspondence is determined as the target physical address corresponding to the target logical address.
步骤403,向目标逻辑地址发送物理地址获取消息。Step 403: Send a physical address acquisition message to the target logical address.
本步骤403是在目标逻辑地址不是本显示设备预先已分配的逻辑地址的前提下执行的。This step 403 is executed on the premise that the target logical address is not the logical address pre-allocated by the display device.
如前述的,若外部设备的目标逻辑地址不是已分配的逻辑地址,则表示本显示设备存储的逻辑地址-物理地址对应关系中,不存在该目标逻辑地址,自然也就不能基于该目标逻辑地址从该逻辑地址-物理地址对应关系中查找到目标物理地址。基于此,需要主动向目标外部设备发送物理地址获取消息,以获取该目标外部设备所接入HDMI通道的物理地址。As mentioned above, if the target logical address of the external device is not the allocated logical address, it means that the corresponding relationship between the logical address and the physical address stored in the display device does not exist the target logical address, and naturally it cannot be based on the target logical address. The target physical address is found from the logical address-physical address correspondence. Based on this, it is necessary to actively send a physical address acquisition message to the target external device, so as to acquire the physical address of the HDMI channel to which the target external device is connected.
步骤404,接收目标外部设备响应于物理地址获取消息发送的物理地址应答消息,物理地址应答消息中携带有物理地址。Step 404: Receive a physical address response message sent by the target external device in response to the physical address acquisition message, where the physical address response message carries a physical address.
当目标外部设备接收到本显示设备发送的物理地址获取消息后,会响应于该消息,将自身存储的其所接入HDMI通道的物理地址携带至物理地址应答消息中,并向本显示设备发送,以使得本显示设备接收到该目标外部设备发送的物理地址应答消息。When the target external device receives the physical address acquisition message sent by the display device, it will respond to the message, carry the physical address of the HDMI channel it stores itself into the physical address response message, and send it to the display device. , so that the display device receives the physical address response message sent by the target external device.
需要说明的是,通常情况下,当外部设备接入显示设备的HDMI通道时,其所接入的HDMI接口的HPD信号的电平会被拉高,从而使该外部设备检测到热插拔事件。外部设备会基于该热插拔事件主动读取其所接入HDMI通道的EDID数据(包括HDMI通道的物理地址),并存储在本地。It should be noted that, under normal circumstances, when an external device is connected to the HDMI channel of the display device, the level of the HPD signal of the connected HDMI interface will be pulled up, so that the external device detects a hot-plug event. . The external device will actively read the EDID data (including the physical address of the HDMI channel) of the HDMI channel to which it is connected based on the hot-plug event, and store it locally.
但是,若显示设备处于待机或关机状态下,部分外部设备在接入HDMI通道时,并不会导致HPD信号发生变化,因此,外部设备由于检测不到热插拔事件,也就不会读取当前接入的HDMI通道的EDID数据,导致外部设备中存储的仍是上一次接入的HDMI通道的物理地址。换言之,本步骤404中所接收到的物理地址应答消息中所携带的物理地址,其不一定就是该目标外部设备在本显示设备上所接入的HDMI通道的物理地址。However, if the display device is in standby or off state, when some external devices are connected to the HDMI channel, the HPD signal will not change. Therefore, since the external device cannot detect the hot-plug event, it will not read The EDID data of the currently connected HDMI channel causes the physical address of the last connected HDMI channel to be stored in the external device. In other words, the physical address carried in the physical address response message received in step 404 is not necessarily the physical address of the HDMI channel to which the target external device is connected to the display device.
步骤405,若物理地址应答消息中携带的物理地址与本地已分配的逻辑地址所对应的物理地址间不存在地址冲突,则将物理地址应答消息中携带的物理地址确定为目标物理地址。Step 405: If there is no address conflict between the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address, determine the physical address carried in the physical address reply message as the target physical address.
如前述的,物理地址应答消息中所携带的物理地址,其不一定是该目标外部设备在本显示设备上所接入的HDMI通道的物理地址。基于此,需要对该物理地址应答消息中所携带的物理地址与本地已分配的逻辑地址所对应的物理地址间是否存在地址冲突进行检测。对地址是否存在冲突进行检测有多种实现方式,作为其中一种实现方式:As mentioned above, the physical address carried in the physical address response message is not necessarily the physical address of the HDMI channel to which the target external device is connected to the display device. Based on this, it is necessary to detect whether there is an address conflict between the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address. There are multiple implementations for detecting whether there is an address conflict, as one of the implementations:
首先,可以检测该物理地址应答消息中携带的物理地址所对应的HDMI通道是否接入了外部设备。确定该HDMI通道是否有外部设备接入,可采用现有技术实现,这里不再赘述。First, it can be detected whether the HDMI channel corresponding to the physical address carried in the physical address response message is connected to an external device. Determining whether an external device is connected to the HDMI channel may be implemented by using the prior art, which will not be repeated here.
若该HDMI通道接入了外部设备,则可以在上述逻辑地址-物理地址对应关系中查找到该物理地址应答消息中携带的物理地址对应的逻辑地址(记为参考逻辑地址)。If the HDMI channel is connected to an external device, the logical address corresponding to the physical address carried in the physical address response message (referred to as a reference logical address) can be found in the above-mentioned logical address-physical address correspondence.
检查参考逻辑地址是否是默认逻辑地址,若该参考逻辑地址不是默认逻辑地址,这就表示该物理地址应答消息中携带的物理地址对应的HDMI通道已经接入有外部设备,且该外部设备并非是目标外部设备,即物理地址应答消息中所携带的物理地址与本地已分配的逻辑地址所对应的物理地址间存在有地址冲突。Check whether the reference logical address is the default logical address. If the reference logical address is not the default logical address, it means that the HDMI channel corresponding to the physical address carried in the physical address response message has been connected to an external device, and the external device is not There is an address conflict between the target external device, that is, the physical address carried in the physical address reply message and the physical address corresponding to the locally allocated logical address.
若检查出参考逻辑地址是默认逻辑地址,则表示该HDMI通道在之前是没有接入外部设备的,又结合当前该HDMI通道接入了外部设备,就可以确定该HDMI通道在当前所接入的外部设备就是目标外部设备,那么该物理地址应答消息中携带的物理地址便是正确的物理地址,该物理地址对应的HDMI通道便是该目标外部设备所接入的HDMI通道,即物理地址应答消息中所携带的物理地址与本地已分配的逻辑地址所对应的物理地址间不存在地址冲突,可以将物理地址应答消息中携带的物理地址确定为目标物理地址。If it is checked that the reference logical address is the default logical address, it means that the HDMI channel was not connected to an external device before, and combined with the current HDMI channel connected to an external device, it can be determined that the HDMI channel is currently connected to the external device. The external device is the target external device, then the physical address carried in the physical address response message is the correct physical address, and the HDMI channel corresponding to the physical address is the HDMI channel connected to the target external device, that is, the physical address response message. There is no address conflict between the physical address carried in the message and the physical address corresponding to the locally allocated logical address, and the physical address carried in the physical address reply message can be determined as the target physical address.
以上对上述步骤301中如何依据目标逻辑地址确定目标HDMI端口对应的HDMI通道的目标物理地址进行了描述。The above describes how to determine the target physical address of the HDMI channel corresponding to the target HDMI port according to the target logical address in the above step 301 .
本领域的技术人员可以清楚地了解到本申请实施例中的技术可借助软件加必需的 通用硬件平台的方式来实现。具体实现中,本申请还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,当计算机存储介质位于显示设备中时,该程序执行时可包括前述控制器250被配置的频道切换方法涉及的全部程序步骤。其中,计算机存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium may store a program, and when the computer storage medium is located in the display device, the program may include the channel switching configured by the aforementioned controller 250 when executed. All procedural steps involved in the method. The computer storage medium may be a magnetic disk, an optical disc, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).
本说明书中显示设备实施例和方法实施例之间相同相似的部分互相参照即可,相关内容不再赘述。In this specification, the same and similar parts between the display device embodiment and the method embodiment may be referred to each other, and the related content will not be repeated.
本领域技术人员在考虑说明书及实践这里公开的申请后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,并不构成对本申请保护范围的限定。本申请的真正范围和精神由所附的权利要求指出。Other embodiments of the present application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses or adaptations of this application that follow the general principles of this application and include common knowledge or conventional techniques in the technical field not disclosed in this application . The description and the examples are only regarded as exemplary, and do not constitute a limitation on the protection scope of the present application. The true scope and spirit of the application is indicated by the appended claims.

Claims (10)

  1. 一种显示设备,其特征在于,包括:A display device, comprising:
    用户接口,用于接收用户输入的操作;A user interface for receiving user input operations;
    所述用户接口连接的控制器,被配置为执行:The user interface is connected to a controller configured to perform:
    响应于切换频道操作,如果切换请求队列为非空,则确定待处理请求队列是否为空;In response to the switching channel operation, if the switching request queue is not empty, determine whether the pending request queue is empty;
    如果确定待处理请求队列为非空,则将所述待处理请求队列中的全部频道信息移除,并将当前待切换的频道信息存入所述待处理请求队列中;If it is determined that the pending request queue is not empty, then all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue;
    当所述切换请求队列转变为空时,启动执行所述待处理请求队列中的频道的切换任务,并将所述待处理请求队列中的频道信息移动至所述切换请求队列。When the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
  2. 根据权利要求1所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 1, wherein the controller is further configured to perform:
    当所述切换请求队列中的频道的切换任务执行完成,将所述切换请求队列中的频道信息移动至终点队列中。When the switching task of the channel in the switching request queue is completed, the channel information in the switching request queue is moved to the destination queue.
  3. 根据权利要求1所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 1, wherein the controller is further configured to perform:
    响应于切换频道操作,如果切换请求队列为空,则直接启动执行当前待切换的频道的切换任务,并将当前待切换的频道信息存入所述切换请求队列。In response to the switching channel operation, if the switching request queue is empty, the switching task of executing the channel to be switched currently is directly started, and the information of the channel currently to be switched is stored in the switching request queue.
  4. 根据权利要求1所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 1, wherein the controller is further configured to perform:
    如果确定所述待处理请求队列为空,则将当前待切换的频道信息存入所述待处理请求队列中,等待所述切换请求队列转变为空。If it is determined that the pending request queue is empty, the channel information to be switched currently is stored in the pending request queue, and waits for the switching request queue to become empty.
  5. 根据权利要求1所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 1, wherein the controller is further configured to perform:
    响应于接收到切换频道操作,在频道列表中定位与所述切换频道操作对应的当前待切换的频道,并获取所述当前待切换的频道信息;其中,所述频道信息包括频道类型和频道ID。In response to receiving the channel switching operation, locate the current channel to be switched corresponding to the channel switching operation in the channel list, and obtain the current channel information to be switched; wherein the channel information includes a channel type and a channel ID .
  6. 根据权利要求5所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 5, wherein the controller is further configured to perform:
    如果当前待切换的频道的频道类型为数字电视频道,则创建第一路径,用以接收当前待切换的数字电视频道的音视频资源。If the channel type of the channel to be switched currently is a digital TV channel, a first path is created for receiving audio and video resources of the digital TV channel to be switched currently.
  7. 根据权利要求5所述的显示设备,其特征在于,所述控制器还被配置为执行:The display device of claim 5, wherein the controller is further configured to perform:
    如果当前待切换的频道的频道类型为网络电视频道,则创建第二路径,用以接收当前待切换的网络电视频道的音视频资源。If the channel type of the currently to-be-switched channel is an Internet TV channel, a second path is created for receiving audio and video resources of the currently to-be-switched Internet TV channel.
  8. 根据权利要求6所述的显示设备,其特征在于,所述切换任务被配置为:The display device according to claim 6, wherein the switching task is configured as:
    如果当前待切换的频道的频道类型为数字电视频道,从所述第一路径接收当前待切换的数字电视频道的音视频资源,并将所述所述音视频资源加载到用户界面上播放。If the channel type of the channel currently to be switched is a digital TV channel, the audio and video resources of the current digital TV channel to be switched are received from the first path, and the audio and video resources are loaded into the user interface for playback.
  9. 根据权利要求7所述的显示设备,其特征在于,所述切换任务被配置为:The display device according to claim 7, wherein the switching task is configured as:
    如果当前待切换的频道的频道类型为网络电视频道,从所述第二路径接收当前待切换的网络电视频道的音视频资源URL,启动浏览器应用,利用所述浏览器应用内置的播放器加载所述音视频资源URL,从而在用户界面上播放所述音视频资源。If the channel type of the channel currently to be switched is an Internet TV channel, receive the audio and video resource URL of the currently to-be-switched Internet TV channel from the second path, start the browser application, and use the built-in player of the browser application to load URL of the audio and video resources, so as to play the audio and video resources on the user interface.
  10. 一种显示方法,其特征在于,包括:A display method, comprising:
    响应于切换频道操作,如果切换请求队列为非空,则确定待处理请求队列是否为空;In response to the switching channel operation, if the switching request queue is not empty, determine whether the pending request queue is empty;
    如果确定待处理请求队列为非空,则将所述待处理请求队列中的全部频道信息移除,并将当前待切换的频道信息存入所述待处理请求队列中;If it is determined that the pending request queue is not empty, then all channel information in the pending request queue is removed, and the current channel information to be switched is stored in the pending request queue;
    当所述切换请求队列转变为空时,启动执行所述待处理请求队列中的频道的切换任务,并将所述待处理请求队列中的频道信息移动至所述切换请求队列。When the switching request queue becomes empty, start executing the switching task of the channel in the pending request queue, and move the channel information in the pending request queue to the switching request queue.
PCT/CN2021/099392 2020-08-13 2021-06-10 Display method and display device WO2022033153A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN202010815022.9 2020-08-13
CN202010815022.9A CN111954044B (en) 2019-12-04 2020-08-13 Channel switching method and display device
CN202010857714.X 2020-08-24
CN202010857714.XA CN112040307A (en) 2020-08-24 2020-08-24 Play control method and display device
CN202010934814.8 2020-09-08
CN202010934814.8A CN112040309B (en) 2020-09-08 2020-09-08 Channel switching method and display device

Publications (1)

Publication Number Publication Date
WO2022033153A1 true WO2022033153A1 (en) 2022-02-17

Family

ID=80246846

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/099392 WO2022033153A1 (en) 2020-08-13 2021-06-10 Display method and display device

Country Status (1)

Country Link
WO (1) WO2022033153A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074725A1 (en) * 2013-06-12 2015-03-12 Echostar Technologies, Llc Hybrid electronic programming guide
CN105744349A (en) * 2014-12-11 2016-07-06 北京融合视讯科技有限公司 OTT and digital television integrated terminal channel switching method and apparatus, and terminal
CN105847958A (en) * 2016-05-19 2016-08-10 青岛海信宽带多媒体技术有限公司 Program switching playing method and device
CN107750011A (en) * 2017-11-03 2018-03-02 泾县吉祥纸业有限公司 A kind of DTV multithreading channel switching method and system
CN107948716A (en) * 2017-11-28 2018-04-20 青岛海信宽带多媒体技术有限公司 A kind of video broadcasting method, device and set-top box
US20190141377A1 (en) * 2016-12-31 2019-05-09 Turner Broadcasting Systems, Inc. Publishing a plurality of disparate live media output stream manifests using live input streams and pre-encoded media assets
CN112040309A (en) * 2020-09-08 2020-12-04 海信视像科技股份有限公司 Channel switching method and display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150074725A1 (en) * 2013-06-12 2015-03-12 Echostar Technologies, Llc Hybrid electronic programming guide
CN105744349A (en) * 2014-12-11 2016-07-06 北京融合视讯科技有限公司 OTT and digital television integrated terminal channel switching method and apparatus, and terminal
CN105847958A (en) * 2016-05-19 2016-08-10 青岛海信宽带多媒体技术有限公司 Program switching playing method and device
US20190141377A1 (en) * 2016-12-31 2019-05-09 Turner Broadcasting Systems, Inc. Publishing a plurality of disparate live media output stream manifests using live input streams and pre-encoded media assets
CN107750011A (en) * 2017-11-03 2018-03-02 泾县吉祥纸业有限公司 A kind of DTV multithreading channel switching method and system
CN107948716A (en) * 2017-11-28 2018-04-20 青岛海信宽带多媒体技术有限公司 A kind of video broadcasting method, device and set-top box
CN112040309A (en) * 2020-09-08 2020-12-04 海信视像科技股份有限公司 Channel switching method and display device

Similar Documents

Publication Publication Date Title
US11895360B2 (en) Method for waking up audio device, and display apparatus
CN111050199B (en) Display device and scheduling method of Bluetooth communication resources of display device
CN112367543B (en) Display device, mobile terminal, screen projection method and screen projection system
CN111741372A (en) Screen projection method for video call, display device and terminal device
CN111277884B (en) Video playing method and device
CN112612443B (en) Audio playing method, display device and server
CN111752518A (en) Screen projection method of display equipment and display equipment
CN112272417B (en) double-Bluetooth sound box reconnection method and display device
CN114327327A (en) Display equipment and control method for multi-equipment screen projection on same screen display
CN113064645B (en) Startup interface control method and display device
CN112040309B (en) Channel switching method and display device
CN111885665B (en) Wireless network connection control method and display device
CN114286137A (en) Mirror image screen projection method, display device and terminal
CN111818654B (en) Channel access method and display device
CN112929592A (en) Video call method, display device and server
WO2022033153A1 (en) Display method and display device
WO2022083357A1 (en) Display device and camera control method
CN112584210B (en) Display device, video recording method and recorded file display method
CN115278822A (en) Display apparatus, control apparatus, and broadcast source scanning method
CN111314414B (en) Data transmission method, device and system
CN114915810A (en) Media asset pushing method and intelligent terminal
CN113971049A (en) Background service management method and display device
CN113992963A (en) Display device and screen projection method
CN113473175B (en) Content display method and display equipment
CN114915818B (en) Media resource pushing method and intelligent terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21855209

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21855209

Country of ref document: EP

Kind code of ref document: A1