CN113556493B - Multimedia playing method and device, computer equipment and storage medium - Google Patents

Multimedia playing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113556493B
CN113556493B CN202010328192.4A CN202010328192A CN113556493B CN 113556493 B CN113556493 B CN 113556493B CN 202010328192 A CN202010328192 A CN 202010328192A CN 113556493 B CN113556493 B CN 113556493B
Authority
CN
China
Prior art keywords
target
type
equipment
playing
signal source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010328192.4A
Other languages
Chinese (zh)
Other versions
CN113556493A (en
Inventor
古国富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202010328192.4A priority Critical patent/CN113556493B/en
Priority to PCT/CN2021/087067 priority patent/WO2021213221A1/en
Publication of CN113556493A publication Critical patent/CN113556493A/en
Application granted granted Critical
Publication of CN113556493B publication Critical patent/CN113556493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • 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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® 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/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/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • H04N21/43632Adapting the video stream to a specific local network, e.g. a Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • H04N21/43635HDMI

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The application relates to a multimedia playing method, a multimedia playing device, computer equipment and a storage medium. The method comprises the following steps: when the target equipment is accessed, judging whether the target equipment supports a preset target protocol or not; if yes, determining the device type of the target device through the target protocol; when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment; and decoding and playing the current signal source information. By adopting the method, the 'one-connection-and-one-play' can be realized, thereby improving the multimedia playing efficiency.

Description

Multimedia playing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a multimedia playing method and apparatus, a computer device, and a storage medium.
Background
With the development of science and technology, more and more people choose to play multimedia through the HDMI. HDMI is a High Definition Multimedia Interface (HDMI) for transmitting uncompressed audio and video signals in an HDMI device to a Multimedia player, for example, a DVD transmits audio and video signals to a Television (TV) through the HDMI Interface. When a play button of the HDMI device is pressed or an optical disc is inserted into the HDMI device, the HDMI device sends a "one-to-one play" command based on the CEC protocol, so that the multimedia playing device automatically plays multimedia when receiving the command. CEC (consumer Electronics control) refers to a consumer Electronics control protocol that allows a user to control all HDMI-connected devices with only one remote control, e.g., when a DVD is connected to a TV via an HDMI interface, the DVD and TV can be controlled via one remote control under the CEC protocol.
However, HDMI equipment manufacturers support CEC unevenly, for example, some manufacturers set a command "broadcast once in a burst" before the HDMI equipment and the multimedia playback equipment establish an HDMI communication link, but the command sent at this time is ignored by some multimedia playback equipment, some manufacturers send a command "broadcast once in a burst" after the HDMI communication link is established, and some manufacturers do not send a command "broadcast once in a burst" at all, so that the HDMI equipment cannot really achieve "broadcast once in a burst".
Disclosure of Invention
In view of the foregoing, it is desirable to provide a multimedia playing method, apparatus, computer device and storage medium capable of truly realizing "one-connection-and-play".
A multimedia playback method, the method comprising:
when accessing a target device, judging whether the target device supports a preset target protocol or not;
if yes, determining the device type of the target device through the target protocol;
when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment;
and decoding and playing the current signal source information.
In one embodiment, after determining the device type of the target device through the target protocol, the method further includes:
acquiring a logical address of the target equipment;
determining the device type of the target device based on the logical address, and recording the device type as a verification type;
judging whether the verification type is consistent with the equipment type;
if not, displaying the equipment type input box;
and modifying the device type of the target device based on the input information in the device type input box.
In one embodiment, the decoding and playing the current signal source information includes:
acquiring historical playing information;
analyzing the current signal source information to obtain current playing information;
judging whether the current playing information is the same as the historical playing information;
and if the current signal source information is the same as the current signal source information, stopping decoding and playing the current signal source information.
In one embodiment, the decoding and playing the current signal source information includes:
judging whether the decoded signal source information contains multimedia image frames or not;
if the multimedia image frame is not included, acquiring a physical address of the target equipment;
generating a corresponding awakening instruction according to the physical address;
and sending the wake-up instruction to the target equipment corresponding to the physical address based on the target protocol so as to change the target equipment from a sleep state to a play state.
In one embodiment, the method further comprises:
when a remote controller instruction is received, key value identification is extracted from the remote controller instruction;
determining the command type of the remote controller command according to the key value identification;
when the instruction type is a target instruction type, judging whether a logical address exists in the target equipment or not based on the target protocol;
and if the logical address exists, sending the remote controller instruction to the target equipment according to the logical address so as to enable the target equipment to execute the remote controller instruction.
In one embodiment, the method further comprises:
if the logical address does not exist, the remote controller command is suspended from being issued to the target equipment;
and executing the remote controller command according to the key value identification.
In one embodiment, the method further comprises:
judging whether the return instruction is received again within a preset time period since the return instruction is received for the first time;
and if so, displaying preset exit prompt information.
A multimedia playback apparatus, the apparatus comprising:
the device type determining module is used for judging whether the target device supports a preset target protocol or not when the target device is accessed; if yes, determining the device type of the target device through the target protocol;
the signal source obtaining module is used for obtaining current signal source information provided by the target equipment when the equipment type of the target equipment is the target equipment type;
and the decoding playing module is used for decoding and playing the current signal source information.
A multimedia playback device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when accessing a target device, judging whether the target device supports a preset target protocol or not;
if yes, determining the device type of the target device through the target protocol;
when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment;
and decoding and playing the current signal source information.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when target equipment is accessed, judging whether the target equipment supports a preset target protocol or not;
if yes, determining the device type of the target device through the target protocol;
when the equipment type of the target equipment is the type of the target equipment, acquiring current signal source information provided by the target equipment;
and decoding and playing the current signal source information.
According to the multimedia playing method, the multimedia playing device, the computer equipment and the storage medium, whether the target equipment supports the preset target protocol or not is judged, and when the target protocol is supported, the equipment type of the target equipment can be determined through the target protocol; by judging whether the device type of the target device is the target device type, the current signal source information provided by the target device can be acquired when the device type is the target device type, so that the current signal source information provided by the target device can be decoded and played immediately after the target device is accessed. Compared with the traditional multimedia playing based on the 'one-connection-and-play' command, the method and the device can be compatible with different settings of the HDMI equipment manufacturer on the CEC protocol, and really realize 'one-connection-and-play'.
Drawings
FIG. 1 is a diagram of an exemplary multimedia playback method;
FIG. 2 is a flowchart illustrating a multimedia playing method according to an embodiment;
FIG. 3 is a flowchart illustrating a historical playing information obtaining step in one embodiment;
FIG. 4 is a block diagram of a multimedia playback device according to an embodiment;
FIG. 5 is a block diagram of a multimedia playback device according to another embodiment;
fig. 6 is an internal structural diagram of a multimedia device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The multimedia playing method provided by the application can be applied to the application environment shown in fig. 1. The HDMI device 102 communicates with the multimedia playback device 104 through an HDMI channel. When the HDMI device 102 is connected to the multimedia playback device 104 based on the HDMI port, the multimedia playback device 104 obtains the device type of the HDMI device 102 through the CEC protocol, and when the device type of the HDMI device 102 is the target device type, obtains the signal source information provided by the HDMI device 102, and decodes and plays the signal source information. The HDMI device 102 may be, but not limited to, a recorder, a tv box, a recording and playing device, a power amplifier device, etc. with HDMI interface and capable of providing signal source information. The multimedia playing device 104 is a device with an HDMI port and can decode and play signal source information.
In one embodiment, as shown in fig. 2, a multimedia playing method is provided, which is described by taking the example that the method is applied to the multimedia playing device in fig. 1, and includes the following steps:
s202, when the target equipment is accessed, whether the target equipment supports the preset target protocol is judged.
The target device is an HDMI device that carries an HDMI port and can provide signal source information, and for example, the target device may be a video recorder, a television box, a DVD, a projector, a power amplifier, or the like. The signal source information refers to an audio/video signal provided by the HDMI device, and the multimedia playing device can analyze the audio/video signal, so that corresponding pictures and sound are displayed to a user. The target protocol refers to a CEC protocol, and a user can control all devices connected to the HDMI port by means of a CEC signal. All HDMI devices in a CEC network are directly or indirectly connected to a root device and connected to form a tree from top to bottom through HDMI lines, the multimedia playing device is used as a root node in the CEC network, the signal switch device is used as a branch, and different HDMI devices are used as leaf nodes.
Specifically, the multimedia playing device has a plurality of HDMI ports, and one or more HDMI devices can be connected through each HDMI port. The multimedia playing device monitors the level information of each HDMI port, and when it is determined that the level is inverted, for example, when the port level of the HDMI1 port is inverted from 0V to 5V, the HDMI port with the inverted level can be considered to be connected to the target device, for example, the target device can be considered to be connected to the multimedia playing device through the HDMI1 port.
All "root" and "leaf" nodes in the CEC network have a unique logical address that can uniquely identify an HDMI device or multimedia playback device. The logical address of the "root" node is set to 0, and when a "leaf" node is accessed, i.e. when a target device is accessed, the "root" node can dynamically allocate a logical address to the accessed target device through the CEC protocol. If the accessed target device supports the CEC protocol and the CEC function is started, when the logical address dynamically classified by the root node is received, the target device broadcasts the address to the CEC network based on the CEC protocol so as to indicate the occupation of the logical address. The multimedia playing device receives the logical address broadcasted by the target device, thereby determining that the accessed target device supports the CEC protocol, that is, supports the preset target protocol. If the broadcast information of the target device is still not received within the preset time period after the logical address is issued to the target device at the root node, the target device may be considered not to support the preset CEC protocol.
In an embodiment, the multimedia playing device sends a logical address reading instruction to the accessed target device, and if a logical address returned by the target device is not received within a preset time period after the logical address reading instruction is sent, the target device may be considered not to support the CEC protocol.
In one embodiment, in order to enable the "root" node to query and control the "leaf" nodes, all devices in the CEC network (including devices that do not turn on the CEC function and devices that do not support the CEC protocol) should have a physical address. The root node determines the number of the accessed HDMI devices, and allocates a physical address to each HDMI device according to the number of the devices. The multimedia playing device reads the physical address and the logical address of the target device, when the target device returns only one physical address, the target device is considered not to start the CEC function or not to support the CEC protocol, and at this time, the multimedia playing device correspondingly generates a prompt message to prompt a user to start the CEC function of the target device. If the logical address returned by the target device is not received within the preset time length after the prompt message is displayed, the target device can be considered to not support the CEC protocol. By respectively acquiring the physical address and the logical address, when the physical address and the logical address cannot be received, the connection failure between the target device and the multimedia playing device can be judged, and when the physical address is received but the logical address is not received, the target device is judged not to start the CEC function or not to support the CEC protocol, so that the probability of misjudgment can be reduced.
And S204, if so, determining the device type of the target device through the target protocol.
Specifically, when it is determined that the target device supports the CEC protocol, the multimedia playback device acquires a physical address of the target device, generates a corresponding device type acquisition instruction based on the acquired physical address, and transmits the instruction to the target device corresponding to the physical address through the CEC protocol. The target device receives the device type obtaining instruction and returns the device type of the device to the multimedia playing device through the CEC protocol. The device type of the target device includes Recorder (audio Recorder), Tuner (e.g., tv box), Playback (audio Recorder, DVD, set top box), audio system (power amplifier), purocecswitch (HDMI splitter), video processor (video processor), and the like.
And S206, when the device type of the target device is the target device type, acquiring the current signal source information provided by the target device.
And S208, decoding and playing the current signal source information.
Wherein the target device type is a Playback type (recording and Playback device, such as DVD, set-top box).
Specifically, when a user inserts a DVD into a target device or presses a play button, a source module in the target device collects audio/video information to be transmitted, such as video frame in the DVD, and performs compression coding on the collected audio/video information to obtain signal source information, and then sends the signal source information to the target device through an HDMI channel. The multimedia playing equipment judges whether the target equipment is recording and playing equipment according to the equipment type returned by the target equipment, if the target equipment is the recording and playing equipment, the multimedia playing equipment pulls current signal source information provided by the target equipment from a corresponding HDMI channel according to the physical address of the target equipment, transmits the current signal source information to a signal source playing module of the multimedia playing equipment, and the signal source playing module decodes and plays the current signal source.
By judging the device type of the target device, the information source playing module is called to decode and play the current signal source information only when the target device is a recording and playing device, so that the probability that the picture played by the information source playing module is a black screen when the target device is a device which does not provide picture information, such as a power amplifier, an HDMI deconcentrator and the like, can be effectively reduced.
In an embodiment, when the multimedia playing device determines whether the device type of the target device is the target device type and receives a 'one-connection-and-play' command sent by the target device, the multimedia playing device suspends determining the device type of the target device, and then obtains the current signal source information provided by the target device, and decodes and plays the current signal source information.
In an embodiment, when the multimedia playing device monitors that the levels of the HDMI ports other than the HDMI port corresponding to the target device change during the process of decoding and playing the current signal source information, the multimedia playing device obtains the port identifier corresponding to the port with the changed level and determines whether the device type corresponding to the device accessing the port with the changed level is the target device type, if so, the multimedia playing device switches the playing channel to the HDMI channel corresponding to the port with the changed level, so that the signal source playing module extracts the signal source information from the switched HDMI channel. For example, when the multimedia playback device decodes and plays signal source information in the HDMI1 port, it is determined that the level of the HDMI2 port is inverted, and the multimedia playback device determines whether the device type corresponding to the device accessing the HDMI2 port is a target type, if so, the multimedia playback device may switch the playback channel from the HDMI1 channel to the HDMI2 channel, and pull signal source information provided by the target device from the HDMI2 channel. Through continuously monitoring the HDMI, when a new target device is accessed, the corresponding playing channel can be quickly switched, so that new signal source information can be timely played.
In the multimedia playing method, the device type of the target device can be determined through the target protocol when the target protocol is supported by judging whether the target device supports the preset target protocol; by judging whether the device type of the target device is the target device type, the current signal source information provided by the target device can be acquired when the device type is the target device type, so that the current signal source information provided by the target device can be decoded and played immediately after the target device is accessed. Compared with the traditional multimedia playing based on the 'one-connection-and-play' command, the method and the device can be compatible with different settings of the HDMI equipment manufacturer on the CEC protocol, and really realize 'one-connection-and-play'.
In one embodiment, determining the device type of the target device by the target protocol further comprises: acquiring a logical address of target equipment; determining the equipment type of the target equipment based on the logical address, and recording the equipment type as a verification type; judging whether the verification type is consistent with the prepared type; if not, displaying the equipment type input box; the device type of the target device is modified based on the input information in the device type input box.
Specifically, when receiving the device type returned by the target device based on the device type acquisition instruction, the multimedia playing device pulls the logical address of the target device, and determines whether the device type reported by the target device is correct according to the pulled logical address. More specifically, the multimedia playing device pre-stores a corresponding relationship between a logical address and a device type, for example, since one multimedia playing device can establish HDMI connection with a plurality of target devices, the logical address of the first audio/video recording device accessing the multimedia playing device can be specified as 1; the logic address of the second accessed audio and video recording device is 2; the logical address of the first accessed recording and playing device is 3, etc.
When receiving the logical address returned by the target device, the multimedia playing device analyzes the received logical address according to the corresponding relation between the logical address and the device type to obtain the device type of the target device. For convenience of description, the device type determined based on the logical address will be hereinafter referred to as an authentication type. The multimedia playing device judges whether the device type determined according to the device type obtaining instruction is consistent with the verification type, if so, the device type determined according to the device type obtaining instruction can be considered to be correct; if the device types are inconsistent, the device type determined according to the device type acquisition instruction is considered to be wrong, and at this time, the multimedia playing device displays a corresponding device type input box in a local screen, so that the user inputs the device type of the target device in the input box, and corrects the device type determined according to the device type acquisition instruction based on the device type input by the user.
In one embodiment, the multimedia playing device generates a type tag according to a device type input by a user, and sends the type tag to the target device based on a CEC protocol, so that the target device modifies the device type according to the type tag.
In this embodiment, the device type of the target device is determined doubly, so that the probability of misjudgment on the device type can be reduced, and the multimedia playing efficiency can be improved.
In one embodiment, as shown in fig. 3, decoding and playing the current signal source information includes:
s302, a history playing instruction is obtained.
S304, analyzing the current signal source information to obtain the current playing information.
S306, judging whether the current playing information is the same as the historical playing information.
And S308, if the signal source information is the same, stopping decoding and playing the current signal source information.
The signal source information comprises playing information, and the playing information comprises a port identifier and a device identifier.
Specifically, when the target device is connected to the multimedia playing device based on the HDMI line, the target device determines the port identifier of the accessed HDMI port located in the multimedia playing device, generates playing information according to the port identifier and the device identifier of the target device, embeds the playing information in the signal source information, and sends the signal source information to the multimedia playing device through the HDMI line. The multimedia playing equipment analyzes the playing information in the signal source information to obtain the equipment identifier of the target equipment and the port identifier of the connected port, and then the port identifier and the equipment identifier are cached in the memory.
And when the multimedia equipment analyzes and plays the signal source information, the multimedia equipment determines an idle HDMI port in the local machine and continuously monitors the idle HDMI port. The idle HDMI port refers to an HDMI port located in the multimedia device that is not accessed to the target device. When the fact that the idle HDMI port has the newly accessed target equipment is determined, signal source information provided by the newly accessed target equipment is used as current signal source information; and taking the signal source information which is being analyzed and played as historical signal source information. For example, the multimedia player device has two ports, i.e., HDMI1 and HDMI2, and monitors the HDMI2 port while the multimedia player device decodes and plays the signal source information provided by the HDMI1 port. If the HDMI2 port has a newly connected target device, the signal source information provided by the HDMI1 is used as the history signal source information, and the signal source information provided by the HDMI2 port is used as the current signal source information.
Meanwhile, the multimedia playing equipment analyzes the current playing information in the current signal source information to obtain a first port identifier and a first equipment identifier which are associated with the current playing information; and analyzing the historical playing information in the historical signal source information to obtain a second port identifier and a second device identifier which are associated with the historical playing information. The multimedia playing equipment judges whether the first port identification and the first equipment identification are the same as the second port identification and the second equipment identification, if not, the multimedia playing equipment stops decoding and playing the historical signal source information, switches to a playing channel corresponding to the HDMI port in the current signal source information, and decodes and plays the current signal source information based on the corresponding playing channel; if the signal source information is the same as the current signal source information, the multimedia playing equipment ignores the current signal source information and continues to decode and play the historical signal source information.
In this embodiment, by comparing the current playing information with the historical playing information, the playing channel is switched only when the current playing instruction is different from the historical playing instruction, so that the probability of mistakenly switching the playing channel can be greatly reduced, and the multimedia playing efficiency is improved.
In one embodiment, decoding and playing the current signal source information includes: judging whether the decoded signal source information contains multimedia image frames or not; if the multimedia image frame is not included, acquiring a physical address of the target equipment; generating a corresponding awakening instruction according to the physical address; and sending a wake-up instruction to the target device corresponding to the physical address based on the target protocol so as to change the target device from the sleep state to the play state.
Specifically, the multimedia playing device forwards the current signal source information to a signal source playing module in the local machine, and the signal source playing module decodes the current signal source information. The multimedia playing device judges whether multimedia image frames exist in the decoded signal source information or not, if the multimedia image frames do not exist, the target device can be considered to be in a sleep state, at the moment, the multimedia playing device acquires a physical address of the target device, generates a corresponding awakening instruction according to the physical address, and sends the awakening instruction to the target device corresponding to the physical address, so that the target device is changed from the sleep state to the playing state. The sleep state is a power saving mode in which the target device is switched from the working state to the waiting state.
In one embodiment, when the multimedia playing device confirms that the HDMI connection with the target device is established, the multimedia playing device directly sends a wake-up instruction to the target device, so that the target device maintains a playing state.
In this embodiment, when the decoded signal source information does not include the multimedia image frame, the target device at this time may be considered to be in a sleep state, and the target device may be changed from the sleep state to a play state by automatically sending the wake-up instruction, so that the user does not need to manually wake up the target device, and the multimedia play efficiency is improved.
In one embodiment, the multimedia playing method further includes: when a remote controller command is received, key value identifications are extracted from the remote controller command; determining the command type of the remote controller command according to the key value identification; when the instruction type is a target instruction type, judging whether the target equipment has a logic address or not based on a target protocol; and if the logical address exists, sending the remote control command to the target equipment according to the logical address so that the target equipment executes the remote control command.
The remote control command is a control command generated by the remote control according to the key operation of the user. The key value identifier is information capable of uniquely identifying one key value, and different keys in the remote controller have different key values, for example, the key value corresponding to the "return" key is 45, so that the multimedia playing device can determine the key information pressed by the user according to the key value carried in the control instruction.
Specifically, the instruction types of the remote controller instruction are divided into a target instruction type and a non-target instruction type, and when it is determined that a user presses a 'Home' (exits from a play channel) key, the remote controller generates a remote controller instruction of the non-target instruction type based on key operation of the user; when determining that the user presses any one of the keys of up, down, left, right, determine and return, the remote controller generates a remote controller command of a target command type based on the key operation of the user.
When the multimedia playing equipment receives a remote controller instruction, the multimedia playing equipment extracts a key value identification from the remote controller instruction, determines key information pressed by a user according to the key value identification, and judges whether the remote controller instruction currently received by the multimedia playing equipment is a target instruction type according to the key information. If the type of the target command is the target command type, namely when a user presses any one of the keys of up, down, left, right, definite and return keys, the multimedia playing device acquires the logical address of the target device and sends the remote controller command to the target device according to the logical address so that the target device executes the remote controller command. If the command is not the target command type, namely when the user presses down the 'Home' key, the multimedia playing equipment forwards the remote control command to a local signal source playing module, and the signal source playing module executes the remote control command.
In one embodiment, before acquiring the logical address of the target device, the multimedia playing device determines whether the target device and the multimedia playing device are connected through an HDMI channel, and if yes, the multimedia playing device acquires the logical address of the target device based on the CEC protocol and the connected HDMI channel; if not, the multimedia playing device stops pulling the logic address of the target device, and forwards the remote control command to the information source playing module of the multimedia playing device, and the information source playing module executes the remote control command. By judging whether the target equipment is connected with the multimedia playing equipment through the HDMI channel or not and pulling the logical address of the target equipment when the target equipment is connected with the multimedia playing equipment through the HDMI channel, the probability of pulling unnecessary logical addresses can be reduced, and therefore the multimedia playing efficiency is improved.
In one embodiment, after the logical address of the target device is obtained, the multimedia playing device determines whether signal source information sent by the target device can be received, if the signal source information sent by the target device cannot be received, the multimedia playing device forwards a remote control instruction to a local signal source playing module, and the signal source playing module executes the remote control instruction. Because the multimedia playing equipment sends the remote control command to the target equipment after receiving the signal source information sent by the target equipment, the probability that the remote control command is still sent to the target equipment under the condition that the target equipment is damaged and cannot be played can be reduced, and thus resources consumed by sending the remote control command are saved.
In this embodiment, by determining the instruction type of the remote controller instruction, the remote controller instruction may be forwarded to the target device only when the remote controller instruction is of the target instruction type, so that the probability of forwarding the "Home" instruction to the target device may be reduced, and further, the probability that the user cannot exit the HDMI channel but can only return to the top menu page of the target device when pressing the "Home" key may be reduced, thereby greatly improving user experience.
In one embodiment, the multimedia playing method further includes: if the logical address does not exist, pausing the issuing of the remote controller instruction to the target equipment; and executing the remote controller command according to the key value identification.
Specifically, if the remote control command is of a target command type, but the target device does not have a logical address, it may be considered that the user has closed the CEC function of the target device, or the CEC function of the target device is damaged, and at this time, the multimedia playing device cannot successfully forward the remote control command to the target device based on the CEC protocol, so that the multimedia playing device forwards the remote control command to its own information source playing module, and the information source playing module executes the remote control command.
In this embodiment, because of the unidirectional nature of the CEC protocol, after the remote control instruction is sent to the target device, the target device does not return a prompt message for successfully executing the remote control instruction, and therefore, compared with the conventional method of directly forwarding the remote control instruction to the target device, this embodiment can implement the logic executed by the multimedia playing device when the target device cannot execute the remote control instruction, thereby greatly improving the user experience.
In one embodiment, the multimedia playing method further includes: judging whether a return instruction is received again within a preset time period since the return instruction is received for the first time; and if so, displaying preset exit prompt information.
The return instruction refers to a remote controller instruction generated according to a key value of a return key.
Specifically, when a return instruction is received, the multimedia device records the reception time of the return instruction and determines whether the return instruction is received again within a preset time period since the return instruction is received. If yes, the multimedia playing device acquires preset quitting prompt information, and displays the preset quitting prompt information in a screen of the local machine so as to prompt a user to quit the current HDMI channel based on a 'Home' key. For example, when the user continuously presses "return" for multiple times within a preset time period, it may be considered that the user does not need to return to the top menu page of the target device but wants to exit the HDMI channel, and at this time, the multimedia playing device displays a preset prompt message.
In the embodiment, the real intention of the user is presumed by judging whether the user continuously presses the 'return' key for multiple times in a short time, so that corresponding prompt can be performed according to the real intention of the user, and the user experience is improved.
It should be understood that although the steps in the flowcharts of fig. 2 and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 and 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 4, there is provided a multimedia playback apparatus 400, including: a device type determining module 402, a signal source obtaining module 404 and a decoding playing module 406, wherein:
a device type determining module 402, configured to determine whether a target device supports a preset target protocol when the target device is accessed; and if so, determining the device type of the target device through the target protocol.
The signal source obtaining module 404 is configured to obtain current signal source information provided by the target device when the device type of the target device is the target device type.
And a decoding playing module 406, configured to perform decoding playing on the current signal source information.
In one embodiment, as shown in fig. 5, the device type determining module 402 is further configured to obtain a logical address of the target device; determining the device type of the target device based on the logical address, and recording the device type as a verification type; judging whether the verification type is consistent with the equipment type; if not, displaying the equipment type input box; the device type of the target device is modified based on the input information in the device type input box.
In one embodiment, the decoding playing module 406 further includes a history playing information obtaining module 4061, configured to obtain history playing information; analyzing the current signal source information to obtain current playing information; judging whether the current playing information is the same as the historical playing information; and if the signal source information is the same as the signal source information, stopping decoding and playing the current signal source information.
In one embodiment, the decoding playing module 406 further includes an image frame acquiring module 4062, configured to determine whether the decoded signal source information includes a multimedia image frame; if the multimedia image frame is not included, acquiring a physical address of the target equipment; generating a corresponding awakening instruction according to the physical address; and sending a wake-up instruction to the target device corresponding to the physical address based on the target protocol so as to change the target device from the sleep state to the play state.
In one embodiment, the multimedia playing apparatus 400 further includes a remote control command obtaining module 408, configured to extract a key identifier from a remote control command when the remote control command is received; determining the command type of the remote controller command according to the key value identification; when the instruction type is a target instruction type, judging whether a target device has a logic address or not based on a target protocol; and if the logical address exists, sending the remote control command to the target equipment according to the logical address so that the target equipment executes the remote control command.
In one embodiment, the remote control instruction obtaining module 408 is further configured to suspend issuing the remote control instruction to the target device if the logical address does not exist; and executing the remote controller command according to the key value identification.
In one embodiment, the remote control instruction obtaining module 408 further includes an exit prompt presenting module 4081, configured to determine whether the return instruction is received again within a preset time period since the return instruction is received for the first time; and if so, displaying preset exit prompt information.
For specific limitations of the multimedia playing apparatus, reference may be made to the above limitations on the multimedia playing method, which is not described herein again. The modules in the multimedia playing apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a multimedia playing device is provided, and the internal structure thereof can be as shown in fig. 6. The multimedia playing device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein, the processor of the multimedia playing device is used for providing calculation and control capability. The memory of the multimedia playing device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a multimedia playback method. The display screen of the multimedia playing device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the multimedia playing device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the multimedia playing device, and an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a multimedia playing device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor realizes the following steps when executing the computer program:
when the target equipment is accessed, judging whether the target equipment supports a preset target protocol or not;
if yes, determining the device type of the target device through the target protocol;
when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment;
and decoding and playing the current signal source information.
In one embodiment, the processor when executing the computer program further performs the steps of:
acquiring a logical address of target equipment;
determining the equipment type of the target equipment based on the logical address, and recording the equipment type as a verification type;
judging whether the verification type is consistent with the equipment type;
if not, displaying the equipment type input box;
the device type of the target device is modified based on the input information in the device type input box.
In one embodiment, the source information includes playback information; the processor, when executing the computer program, further performs the steps of:
acquiring historical playing information;
analyzing the current signal source information to obtain current playing information;
judging whether the current playing information is the same as the historical playing information;
and if the signal source information is the same as the signal source information, stopping decoding and playing the current signal source information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
judging whether the decoded signal source information contains multimedia image frames or not;
if the multimedia image frame is not contained, acquiring a physical address of the target equipment;
generating a corresponding awakening instruction according to the physical address;
and sending a wake-up instruction to the target device corresponding to the physical address based on the target protocol so as to change the target device from the sleep state to the play state.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when a remote controller instruction is received, key value identifications are extracted from the remote controller instruction;
determining the command type of the remote controller command according to the key value identification;
when the instruction type is a target instruction type, judging whether a target device has a logic address or not based on a target protocol;
and if the logical address exists, sending the remote control command to the target equipment according to the logical address so that the target equipment executes the remote control command.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the logical address does not exist, the remote controller command is suspended from being issued to the target equipment;
and executing the remote controller command according to the key value identification.
In one embodiment, the remote control instruction comprises a return instruction; the processor when executing the computer program further realizes the following steps:
judging whether the return instruction is received again within a preset time period since the return instruction is received for the first time;
and if so, displaying preset exit prompt information.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, performs the steps of:
when the target equipment is accessed, judging whether the target equipment supports a preset target protocol or not;
if yes, determining the device type of the target device through the target protocol;
when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment;
and decoding and playing the current signal source information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a logical address of target equipment;
determining the device type of the target device based on the logical address, and recording the device type as a verification type;
judging whether the verification type is consistent with the equipment type;
if not, displaying the equipment type input box;
the device type of the target device is modified based on the input information in the device type input box.
In one embodiment, the signal source information includes playback information; the computer program when executed by the processor further realizes the steps of:
acquiring historical playing information;
analyzing the current signal source information to obtain current playing information;
judging whether the current playing information is the same as the historical playing information;
and if the signal source information is the same as the signal source information, stopping decoding and playing the current signal source information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
judging whether the decoded signal source information contains multimedia image frames or not;
if the multimedia image frame is not included, acquiring a physical address of the target equipment;
generating a corresponding awakening instruction according to the physical address;
and sending a wake-up instruction to the target device corresponding to the physical address based on the target protocol so as to change the target device from the sleep state to the play state.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when a remote controller instruction is received, key value identifications are extracted from the remote controller instruction;
determining the command type of the remote controller command according to the key value identification;
when the instruction type is a target instruction type, judging whether a target device has a logical address or not based on a target protocol;
and if the logical address exists, sending the remote controller instruction to the target equipment according to the logical address so as to enable the target equipment to execute the remote controller instruction.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the logical address does not exist, the remote controller command is suspended from being issued to the target equipment;
and executing the remote controller command according to the key value identification.
In one embodiment, the remote control instruction comprises a return instruction; the computer program when executed by the processor further realizes the steps of:
judging whether the return instruction is received again within a preset time period since the return instruction is received for the first time;
and if so, displaying preset exit prompt information.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A multimedia playing method, the method comprising:
when accessing a target device, judging whether broadcast information of the target device is received within a preset time length from the time when a logical address is issued to the target device;
if receiving broadcast information including the logical address of the target device, determining that the target device supports a preset target protocol;
if the target equipment supports the target protocol, determining the equipment type of the target equipment through the target protocol;
when the equipment type of the target equipment is the target equipment type, acquiring current signal source information provided by the target equipment; the target equipment type is a recording and playing equipment type;
and decoding and playing the current signal source information.
2. The method of claim 1, wherein the determining the device type of the target device via the target protocol further comprises:
acquiring a logical address of the target equipment;
determining the device type of the target device based on the logical address, and marking as a verification type;
judging whether the verification type is consistent with the equipment type;
if not, displaying the equipment type input box;
and modifying the device type of the target device based on the input information in the device type input box.
3. The method of claim 1, wherein the signal source information comprises playback information; the decoding and playing the current signal source information comprises:
acquiring historical playing information;
analyzing the current signal source information to obtain current playing information;
judging whether the current playing information is the same as the historical playing information or not;
and if the current signal source information is the same as the current signal source information, stopping decoding and playing the current signal source information.
4. The method according to claim 1, wherein said decoding and playing the current signal source information comprises:
judging whether the decoded signal source information contains multimedia image frames or not;
if the multimedia image frame is not included, acquiring a physical address of the target equipment;
generating a corresponding awakening instruction according to the physical address;
and sending the awakening instruction to target equipment corresponding to the physical address based on the target protocol so as to change the target equipment from a sleep state to a play state.
5. The method of claim 1, further comprising:
when a remote controller instruction is received, key value identification is extracted from the remote controller instruction;
determining the instruction type of the remote controller instruction according to the key value identification;
when the instruction type is a target instruction type, judging whether a logical address exists in the target equipment or not based on the target protocol;
and if the logical address exists, sending the remote controller instruction to the target equipment according to the logical address so as to enable the target equipment to execute the remote controller instruction.
6. The method of claim 5, further comprising:
if the logical address does not exist, the remote controller command is suspended from being issued to the target equipment;
and executing the remote controller command according to the key value identification.
7. The method of claim 5, wherein the remote control command comprises a return command; the method further comprises the following steps:
judging whether the return instruction is received again within a preset time period since the return instruction is received for the first time;
and if so, displaying preset exit prompt information.
8. A multimedia playback apparatus, the apparatus comprising:
the device type determining module is used for judging whether the broadcast information of the target device is received within a preset time length from the time when the target device is accessed, wherein the preset time length is from the time when the logical address is sent to the target device; if receiving broadcast information including the logical address of the target device, determining that the target device supports a preset target protocol; if the target equipment supports the target protocol, determining the equipment type of the target equipment through the target protocol;
the signal source obtaining module is used for obtaining current signal source information provided by the target equipment when the equipment type of the target equipment is the target equipment type; the target equipment type is a recording and playing equipment type;
and the decoding playing module is used for decoding and playing the current signal source information.
9. A multimedia playback device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010328192.4A 2020-04-23 2020-04-23 Multimedia playing method and device, computer equipment and storage medium Active CN113556493B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010328192.4A CN113556493B (en) 2020-04-23 2020-04-23 Multimedia playing method and device, computer equipment and storage medium
PCT/CN2021/087067 WO2021213221A1 (en) 2020-04-23 2021-04-13 Multimedia playing method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010328192.4A CN113556493B (en) 2020-04-23 2020-04-23 Multimedia playing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113556493A CN113556493A (en) 2021-10-26
CN113556493B true CN113556493B (en) 2022-09-13

Family

ID=78129442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010328192.4A Active CN113556493B (en) 2020-04-23 2020-04-23 Multimedia playing method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113556493B (en)
WO (1) WO2021213221A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114499950A (en) * 2021-12-23 2022-05-13 云洲(盐城)创新科技有限公司 Address list acquisition method, address list acquisition device and network equipment
CN117112506B (en) * 2023-10-25 2024-01-12 湖南云档信息科技有限公司 Multimedia archive application method, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360196A (en) * 2007-07-31 2009-02-04 株式会社东芝 Television receiver and television display method
CN102177728A (en) * 2008-10-08 2011-09-07 夏普株式会社 Wireless transmission system and wireless transmission method
CN102870427A (en) * 2010-04-20 2013-01-09 夏普株式会社 Output device, source apparatus, television set, system, output method, program, and recording medium
JP2013150079A (en) * 2012-01-17 2013-08-01 Sharp Corp Reproduction device, sound output device, control method, sound output method, television receiver, sound reproduction system, program, and recording medium
CN104683865A (en) * 2015-02-16 2015-06-03 青岛海信电器股份有限公司 ARC (Audio Return Channel) setting method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360196A (en) * 2007-07-31 2009-02-04 株式会社东芝 Television receiver and television display method
CN102177728A (en) * 2008-10-08 2011-09-07 夏普株式会社 Wireless transmission system and wireless transmission method
CN102870427A (en) * 2010-04-20 2013-01-09 夏普株式会社 Output device, source apparatus, television set, system, output method, program, and recording medium
JP2013150079A (en) * 2012-01-17 2013-08-01 Sharp Corp Reproduction device, sound output device, control method, sound output method, television receiver, sound reproduction system, program, and recording medium
CN104683865A (en) * 2015-02-16 2015-06-03 青岛海信电器股份有限公司 ARC (Audio Return Channel) setting method and equipment

Also Published As

Publication number Publication date
CN113556493A (en) 2021-10-26
WO2021213221A1 (en) 2021-10-28

Similar Documents

Publication Publication Date Title
US7761509B2 (en) Program product and connected device for linking operations between multiple connected devices
CN113556493B (en) Multimedia playing method and device, computer equipment and storage medium
US20160255406A1 (en) Broadcast receiving apparatus and method for controlling the same
US10728486B2 (en) Smart television playing method and device
WO2015062471A1 (en) Method and device for controlling set top box
CN116406507A (en) Display equipment, screen recording method and screen recording sharing method
CN112188294B (en) Signal source display method and device
WO2017076011A1 (en) Live program watch-back method and system
WO2015188521A1 (en) Method and device for achieving screen saver for iptv television
CN112312166B (en) Content monitoring method, device and system for television media, storage medium and electronic equipment
CN115278332A (en) Display device, playing device and data transmission method
CN115119022B (en) Control method for skipping video advertisements and display equipment
US20100054096A1 (en) Reproduction apparatus, control program, recording medium, and control method for controlling reproduction of content
CN112019858B (en) Video playing method and device, computer equipment and storage medium
JP2010081129A (en) Device and method of reproducing content
JP2009239848A (en) Receiving apparatus and processing method, recording apparatus and processing method, program, recording medium, and network system
US20140074270A1 (en) Audio Read-Out System, Audio Read-Out Device, and Audio Read-Out Method
US20230412890A1 (en) Refreshing method and display apparatus
WO2022033153A1 (en) Display method and display device
CN115174991B (en) Display equipment and video playing method
US20240121482A1 (en) Display apparatus
WO2024001535A1 (en) Display device, playing device, control device and data transmission method
US11954401B2 (en) Method for selecting audio output device, and display apparatus
CN110602536B (en) Android system-based smart television video signal source switching method and device
EP3720139A1 (en) Controlling connected tv with a mobile device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant