CN113891124A - Audio and video playing method and device, electronic equipment, server and storage medium - Google Patents

Audio and video playing method and device, electronic equipment, server and storage medium Download PDF

Info

Publication number
CN113891124A
CN113891124A CN202111299436.1A CN202111299436A CN113891124A CN 113891124 A CN113891124 A CN 113891124A CN 202111299436 A CN202111299436 A CN 202111299436A CN 113891124 A CN113891124 A CN 113891124A
Authority
CN
China
Prior art keywords
electronic device
task
information
electronic equipment
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111299436.1A
Other languages
Chinese (zh)
Inventor
汪远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Opper Communication Co ltd
Original Assignee
Beijing Opper Communication 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 Beijing Opper Communication Co ltd filed Critical Beijing Opper Communication Co ltd
Priority to CN202111299436.1A priority Critical patent/CN113891124A/en
Publication of CN113891124A publication Critical patent/CN113891124A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses an audio and video playing method and device, electronic equipment, a server and a storage medium. The method is applied to a first electronic device and comprises the following steps: receiving a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task; after the first playing task is started to be executed, second information is sent to the second electronic equipment; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.

Description

Audio and video playing method and device, electronic equipment, server and storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an audio/video playing method and apparatus, an electronic device, a server, and a storage medium.
Background
In the related art, when abnormal conditions such as playing interruption occur in the process of executing audio and video playing by the electronic device, the appropriate electronic device needs to be reselected to complete the subsequent playing of the audio and video, so that the time for recovering the audio and video playing is too long, and the playing efficiency of the audio and video on the electronic device is reduced.
Disclosure of Invention
In view of this, embodiments of the present application provide an audio and video playing method and apparatus, an electronic device, a server, and a storage medium, so as to at least solve the problem that, in the related art, when audio and video playing is interrupted, it takes a long time to resume the playing of the audio and video, and the playing efficiency of the audio and video on the electronic device is reduced.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides an audio and video playing method, which is applied to first electronic equipment and comprises the following steps:
receiving a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task;
after the first playing task is started to be executed, second information is sent to the second electronic equipment; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
The embodiment of the application further provides another audio and video playing method, which is applied to a second electronic device, and the method comprises the following steps:
receiving second information sent by the first electronic equipment; the second information represents the execution condition of a first playing task on the first electronic equipment;
and executing the first playing task under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment.
The embodiment of the application also provides another audio and video playing method which is applied to a playing system, and the method comprises the following steps:
receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
based on a first application, according to the first voice instruction, determining a first electronic device and a second electronic device in the playing system; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
The embodiment of the application also provides another audio and video playing method which is applied to a server and comprises the following steps:
receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
determining first electronic equipment and second electronic equipment according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
The embodiment of the present application further provides an audio and video playing device, including:
a first receiving unit, configured to receive a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task;
the first sending unit is used for sending second information to the second electronic equipment after the first playing task is started to be executed; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
An embodiment of the present application further provides another audio/video playing device, including:
the second receiving unit is used for receiving second information sent by the first electronic equipment; the second information represents the execution condition of a first playing task on the first electronic equipment;
and the execution unit is used for executing the first playing task under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment.
An embodiment of the present application further provides another audio/video playing device, including:
a third receiving unit, configured to receive the first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
the first determining unit is used for determining first electronic equipment and second electronic equipment in the playing system according to the first voice instruction based on a first application; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a second sending unit, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
An embodiment of the present application further provides another audio/video playing device, including:
the fourth receiving unit is used for receiving the first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
the second determining unit is used for determining the first electronic equipment and the second electronic equipment according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a third sending unit, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
An embodiment of the present application further provides an electronic device including: a processor and a memory for storing a computer program capable of running on the processor,
the processor is configured to execute the steps of any method on the first electronic device side, the steps of any method on the second electronic device side, or the steps of any method on the playback system side when the computer program is executed.
An embodiment of the present application further provides a server, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to execute the steps of any of the above-mentioned server-side methods when running the computer program.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of any one of the above methods.
In the embodiment of the application, by determining the execution device executing the first play task and the alternative device executing the first play task, when the first play task on the execution device executing the first play task is interrupted, the first play task is immediately transferred to the alternative device, and the alternative device continues to complete the execution of the first play task, so that the execution of the first play task can be quickly resumed, and the execution efficiency of the first play task on the electronic device is improved.
Drawings
Fig. 1 is a schematic view of an implementation flow of an audio/video playing method provided in an embodiment of the present application;
fig. 2 is a schematic view of an implementation flow of an audio/video playing method according to another embodiment of the present application;
fig. 3 is a schematic view of an implementation flow of an audio/video playing method according to another embodiment of the present application;
fig. 4 is a schematic view of an implementation flow of an audio/video playing method according to another embodiment of the present application;
fig. 5 is a schematic view of an implementation flow of an audio/video playing method according to still another embodiment of the present application
Fig. 6 is a schematic diagram of a playing system according to an embodiment of the present application;
fig. 7 is a schematic view of an implementation flow of an audio/video playing method according to an embodiment of the present application
Fig. 8 is a schematic interaction diagram of a server and a playing system according to an embodiment of the present application;
fig. 9 is a schematic view of an interaction flow of audio/video playing provided in an application embodiment of the present application;
fig. 10 is a schematic view of an interaction flow of audio/video playing provided by another application embodiment of the present application;
fig. 11 is a schematic structural diagram of an audio/video playing device according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an audio/video playing device according to yet another embodiment of the present application;
fig. 13 is a schematic structural diagram of an audio/video playing device according to yet another embodiment of the present application;
fig. 14 is a schematic structural diagram of an audio/video playing device according to yet another embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application
Fig. 16 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
In addition, in the embodiments of the present application, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a specific order or a sequential order.
In addition, the term "at least one" herein means any combination of at least two of any one or more of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
The present application will be described in further detail with reference to the following drawings and specific embodiments.
An embodiment of the present application provides an audio and video playing method, and fig. 1 is a schematic flow diagram of the audio and video playing method according to the embodiment of the present application. As shown in fig. 1, the method is applied to a first electronic device, and the method includes:
s101: receiving a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic device characterizes an alternative device for performing the first play task.
Here, the first message received by the first electronic device is a processing result generated after the voice instruction is analyzed, where the first message includes a first control instruction and first information, the first control instruction can instruct the first electronic device to execute the first playback task, and the first electronic device that receives the first control instruction is an execution device of the first playback task, so that the first electronic device is controlled to execute the first playback task through the first control instruction in the first message. In addition, the first electronic device can determine, through the first information, that the second electronic device is used as an alternative device for executing the first play task, where the first play task is mainly executed by the first electronic device, and the second electronic device will take over the first electronic device in a specific situation and be responsible for executing the first play task.
In practical application, when the first electronic device is abnormal, the first play task cannot be continuously executed, which may cause a situation that the playing of the first play task is interrupted, the first play task needs to be transferred to other available electronic devices for execution, and a certain time needs to be consumed for searching for other available electronic devices.
In practical applications, the first message received by the first electronic device may be generated by the server after parsing the voice command, or may be generated by the first application configured on the third electronic device after parsing the voice command, where the third electronic device is an electronic device wakened by the voice command, the first application is used to parse the voice command, and the first application may be a voice assistant. The first electronic device executes the first play task as a result of a voice instruction issued by the user, in one case, a first application of a third electronic device can be awakened by the voice instruction issued by the user, the first application configured on the third electronic device generates a first message after analyzing the voice instruction, and the first message is sent to the first electronic device based on a short-distance wireless communication technology. In another case, after the first application of the third electronic device is awakened by a voice instruction sent by the user, the received voice instruction is sent to the server, the server processes the voice instruction, and returns a first message generated by the processing to the third electronic device, and then the third electronic device sends the first message to the first electronic device based on the short-range wireless communication technology. When the third electronic device is the same electronic device as the first electronic device, for a first message generated by the first application of the third electronic device, it is equivalent to the first electronic device receiving the first message when generating the first message, and for the first message generated by the server, the server can directly return the first message to the first electronic device. Illustratively, when the user needs to play a tv series a, a voice instruction of "play tv series a" may be issued. After a voice instruction is sent, the voice instruction wakes up a voice assistant on the mobile phone, the voice assistant decides to execute playing of the TV play A by the mobile phone according to the voice instruction, namely the first electronic device and the third electronic device are the same electronic device, the mobile phone can execute a playing task according to a first control instruction in a first message generated by the voice assistant, when the voice assistant decides to execute playing of the TV play A by the TV, namely the first electronic device and the third electronic device are different electronic devices, and the mobile phone sends the first message generated by the voice assistant to the TV through a short-distance wireless communication technology. When the mobile phone sends the voice instruction to the server, the server determines that the mobile phone executes the playing task according to the voice instruction, namely that the first electronic device and the third electronic device are the same electronic device, the server returns a first message generated by processing to the mobile phone, and the mobile phone executes the playing task through a first control instruction in the first message. When the server determines that the television executes the playing task according to the voice instruction, which is equivalent to that the first electronic device and the third electronic device are different electronic devices, the server returns the first message generated by processing to the mobile phone, and the mobile phone needs to send the first message to the television, so that the television can execute the playing task according to the first control instruction in the first message.
S102: after the first playing task is started to be executed, second information is sent to the second electronic equipment; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
Here, after the first electronic device starts to execute the first playback task according to the first control instruction, the execution condition of the first playback task on the first electronic device is sent to the second electronic device, and the execution condition of the first playback task on the electronic device can be synchronized to the second electronic device. In practical applications, when the second information indicates that the first playback task is normally executed on the first electronic device, it indicates that the first electronic device can ensure the execution of the first playback task, so that there is no necessity for the second electronic device to execute the first playback task. When the second information indicates that the first play task is interrupted in the first electronic device, it indicates that the first electronic device cannot continue to execute the first play task, and the second electronic device needs to execute the first play task. In practical applications, the second information sent to the second electronic device may be an execution situation of the first playback task at different times in the process of being executed on the first electronic device, or an execution situation corresponding to an interruption of the execution of the first playback task on the first electronic device.
In an embodiment, the sending the second information to the second electronic device includes:
sending second information to the second electronic equipment at set time intervals; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
Here, the first electronic device may send second information to the second electronic device at set time intervals, so as to send the execution condition of the first playback task in the process of being executed on the first electronic device to the second electronic device, and in practical applications, the execution progress of the first playback task on the first electronic device may be sent to the second electronic device, where the execution progress may be a currently played time length of the first playback task, and the execution progress may also be represented by a ratio of the currently played time length of the first playback task to a total time length of the first playback task, and the execution progress of the first playback task on the first electronic device is synchronized to the second electronic device, illustratively, the first playback task is playback video a, where the total time length of the video a is 10 minutes, and when the video a on the first electronic device is currently played for 6 minutes, the execution progress indicating the current first play task may be returned to the second electronic device as 6 minutes, or the execution progress indicating the current first play task may be returned to the second electronic device as 60%. In practical applications, the setting time may be adjusted according to the first playback task, for example, when the first playback task is a playback content with a longer duration, the setting time may be correspondingly extended, and the second information may be sent at a longer interval, and when the first playback task is a playback content with a shorter duration, the setting time may be correspondingly shortened, and the second information may be sent at a shorter interval. In practical applications, when the first play task is interrupted in the first electronic device, the second electronic device may execute the first play task, and therefore, the second information sent by the first electronic device to the second electronic device may further include video information of the first play task, for example, the episode name and the currently played episode number of a tv episode played on the first electronic device are sent to the second electronic device through the second information, and the second electronic device may obtain the episode name and the corresponding episode number to be played through the second information, and perform subsequent execution of the first play task through the execution progress of the second information.
In an embodiment, the sending the second information to the second electronic device includes:
sending second information to the second electronic equipment under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the corresponding execution progress of the first playing task when the first playing task is executed and interrupted on the first electronic equipment.
Here, when information related to the execution progress of the first playback task on the first electronic device is frequently returned to the second electronic device during the execution of the first playback task by the first playback device, the power consumption of the first electronic device and the second electronic device may be increased, for this reason, when the execution of the first playback task on the first electronic device is normal, the transmission of information such as the execution progress of the first playback task with the second electronic device may be stopped, and when the execution of the first playback task on the first electronic device is interrupted, in order to continue the execution of the first playback task, second information may be transmitted to the second electronic device, where the second information at least includes information representing the execution progress of the first playback task on the first electronic device, and the execution progress may be a currently played length of the first playback task, so that the second electronic device may continue to execute the uncompleted playback task in the first playback task, for example, the execution progress corresponding to the interruption of the first playback task performed on the first electronic device is 6 minutes, which indicates that the execution of the first playback task is interrupted after 6 minutes of content is played, and after the third information is sent to the second electronic device, the second electronic device may start to execute the first playback task at the 6 th minute of content when the second electronic device executes the first playback task. In practical applications, when the first play task is interrupted in the first electronic device, the second electronic device may execute the first play task, and therefore, the second information sent by the first electronic device to the second electronic device may further include video information of the first play task, for example, the episode name and the currently played episode number of a tv episode played on the first electronic device are sent to the second electronic device through the second information, and the second electronic device may obtain the episode name and the corresponding episode number to be played through the second information, and perform subsequent execution of the first play task through the execution progress of the second information.
In an embodiment, the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
Here, the first electronic device and the second electronic device can communicate with each other based on a short-range Wireless communication technology, so that the first electronic device can transmit the execution condition of the first broadcast task to the second electronic device via the short-range Wireless communication technology, where the short-range Wireless communication technology includes a bluetooth communication technology or a Wireless Fidelity (WiFi) communication technology, and in practical applications, the short-range Wireless communication technology between the first electronic device and the second electronic device can also be implemented based on an OAF communication Framework (OAF) established by a third-party protocol.
In the above embodiment, by determining the candidate device for executing the play task in advance, the play task can be quickly continuously executed by the candidate device when the execution of the play task is interrupted on the execution device, so that the continuous play efficiency when the play task is abnormally interrupted is improved, and the execution effect of the play task is further improved.
An embodiment of the present application further provides another audio and video playing method, as shown in fig. 2, where the method is applied to a second electronic device, and the method includes:
s201: receiving second information sent by the first electronic equipment; the second information represents the execution condition of the first playing task on the first electronic equipment.
Here, when the first electronic device executes the first playback task, the second electronic device receives second information sent by the first electronic device, and the second electronic device can determine, through the second information, an execution situation of the first playback task on the first electronic device, so that the execution situation of the first playback task can be synchronized on the second electronic device, and for example, the second electronic device can determine, through the second information, whether the first playback task is normally executed on the first electronic device. In practical applications, the second information received by the second electronic device may be an execution situation of the first playback task at different time points in the process of being executed on the first electronic device, or an execution situation corresponding to an interruption of the execution of the first playback task on the first electronic device.
S202: and executing the first playing task under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment.
Here, the second electronic device is an alternative device for executing the first playback task, and when the second information indicates that the first playback task is normally executed on the first electronic device, it indicates that the first electronic device can ensure execution of the first playback task, and the second electronic device is not required to take over execution of the first playback task, and when the second information received by the second electronic device reflects that execution of the first playback task on the first electronic device is interrupted, it indicates that the first electronic device cannot continue execution of the first playback task, and the second electronic device is required to take over execution of the first playback task, and by switching the execution device of the first playback task, normal execution of the first playback task is ensured.
In an embodiment, as shown in fig. 3, the receiving the second information sent by the first electronic device includes:
s301: receiving second information sent by the first electronic equipment every set time; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
Here, the first electronic device may periodically send second information to the second electronic device during the process of executing the first play task, the second electronic device may receive the second information at set time intervals, and the second electronic device may at least obtain the execution progress of the first play task on the first electronic device through the second information, in practical applications, the execution progress of the first play task on the first electronic device may be represented by a currently played time length of the first play task, or may be represented by a ratio of the currently played time length of the first play task to a total time length of the first play task, for example, the first play task is a play video a, where the total time length of the video a is 10 minutes, when the second information received by the second electronic device is 6 minutes, it indicates that the video a on the first electronic device is currently played to 6 minutes, when the second information received by the second electronic device is 60%, it indicates that the execution progress of the video a on the first electronic device is 60%. In practical application, after the second electronic device acquires the second information, the unexecuted part of the first play task may be cached according to the second information, for example, the total duration of the video a is 10 minutes, and when the second information received by the second electronic device is 6 minutes, the second electronic device may cache the remaining 4 minutes content of the video a in advance, so that the second electronic device can smoothly execute the first play task.
In practical applications, the second information received by the second electronic device may further include video information of the first play task, for example, the second information includes an episode name of a tv episode played by the first play device and a currently played episode number, and the second electronic device may obtain, through the second information, the episode name and a corresponding episode number that need to be played, and perform subsequent execution of the first play task through an execution progress of the second information.
The executing the first playback task includes:
s302: and under the condition that second information is not received at the interval of the set time and the second information represents that the first playing task is not executed on the first electronic equipment, determining the execution progress of the first playing task based on the second information received at the last time.
Here, when the second electronic device does not receive the second information at the interval set time, which represents that there is a possibility of an abnormality in the execution of the first playback task on the first electronic device, it is further determined whether the execution of the first playback task on the electronic device is completed, where it may be determined whether the execution of the first playback task on the first electronic device is completed by the set time and the last received second information, for example, the first playback task is video a, where the total duration of the video a is 10 minutes, the interval set time is 1 minute, the last received second information represents that the video a on the first electronic device is currently played for 6 minutes, and after the interval of 1 minute can be calculated at a normal playback speed, the playback progress represented by the second information received by the second electronic device is about 7 minutes and does not reach the total duration of the video a for 10 minutes, therefore, the first playing task is determined not to be completely executed on the first electronic device, and when the first playing task is further determined not to be completely executed on the first electronic device, it can be determined that the execution of the first playing task on the first electronic device is interrupted and the second electronic device needs to execute the first playing task. The interruption of the first playing task executed on the first electronic device occurs within the set time of the interval between the two times of receiving the second information, so the execution progress of the first playing task can be determined based on the last received second information, for example, when the last received second information indicates that the first playing task is currently played for 6 minutes, the interruption of the first playing task executed on the first electronic device for 6 minutes can be determined.
S303: and executing the first playing task according to the determined execution progress.
Here, the determined execution progress may be regarded as an execution progress corresponding to when the first playback task is interrupted to be executed on the first electronic device, and when the second electronic device needs to execute the first playback task, the determined playback progress is taken as an execution starting point of the first playback task, and then subsequent execution of the first playback task is completed on the second electronic device.
In an embodiment, as shown in fig. 4, the receiving the second information sent by the first electronic device includes:
s401: receiving second information sent by the first electronic equipment; the second information is sent out under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
Here, the second electronic device receives the second information sent by the first electronic device at set time intervals, which increases the energy consumption of the second electronic device and the first electronic device, therefore, when the first play task is normally executed on the first electronic device, the first electronic device may stop sending the second information to the second electronic device, and accordingly, the second electronic device stops receiving the second information, when the first playing task is interrupted on the first electronic device, the first electronic device sends second information to the second electronic device, and the second electronic device can determine that the second electronic device is responsible for the subsequent execution of the first playing task by receiving the second information, and the execution progress corresponding to the interruption of the execution of the first play task on the first electronic device can be determined through the second information, and then the execution starting point of the first play task on the second electronic device can be determined.
The executing the first playback task includes:
s402: and executing the first playing task based on the execution progress represented by the second information.
Here, the second information received by the second electronic device contains information representing the execution progress of the first playback task when the execution of the first playback task on the first electronic device is interrupted, and the second electronic device determines the corresponding execution progress according to the second information to complete the subsequent execution of the first playback task, for example, when the first playback task is to play video a, wherein the total duration of the video A is 10 minutes, the execution interruption occurs when the video A is played to the 6 th minute on the first electronic equipment, the second electronic device determines that the execution progress of the video a is 6 minutes by the received second information, and then the execution of the video a after 6 minutes will be completed on the second electronic device, that is, and finishing the playing of the video A from the 6 th minute to the 10 th minute on the second electronic equipment, so that the seamless continuous playing of the first playing task can be realized on the first electronic equipment and the second electronic equipment.
In practical applications, the second information received by the second electronic device may further include video information of the first play task, for example, the second information includes an episode name of a tv episode played by the first play device and a currently played episode number, and the second electronic device may obtain, through the second information, the episode name and a corresponding episode number that need to be played, and perform subsequent execution of the first play task through an execution progress of the second information.
In an embodiment, the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
Here, the first electronic device and the second electronic device can communicate with each other based on a short-range wireless communication technology, so that the second electronic device can receive the execution situation of the first play task transmitted by the first electronic device via the short-range wireless communication technology, wherein the short-range wireless communication technology includes a bluetooth communication technology or a WiFi communication technology, and in practical applications, the short-range wireless communication technology between the first electronic device and the second electronic device can also be implemented based on an OAF communication framework established by a third-party protocol.
In the above embodiment, the second electronic device, through the execution condition of the first electronic device in the process of executing the first play task, can quickly implement subsequent execution of the first play task when the first play task is interrupted in the first electronic device, so as to improve the continuous play efficiency under the condition that the play task is abnormally interrupted, and further improve the execution effect of the play task.
An embodiment of the present application further provides another audio and video playing method, as shown in fig. 5, where the method is applied to a playing system, and the method includes:
s501: receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task.
As shown in fig. 6, fig. 6 shows a schematic diagram of a playing system, a group of electronic devices composed of at least two electronic devices is deployed in the playing system shown in fig. 6, and the electronic devices in the playing system may include at least one of various internet of things terminals such as a mobile phone, a smart television, a smart watch, a notebook computer, a tablet computer, and a smart sound box. The user starts the electronic equipment adapted in the playing system to execute a first playing task by sending a first voice instruction to the playing system, third electronic equipment in the playing system can be awakened by the first voice instruction, and the awakened third electronic equipment receives the first voice instruction.
S502: based on a first application, according to the first voice instruction, determining a first electronic device and a second electronic device in the playing system; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic device characterizes an alternative device for performing the first play task.
Here, the electronic devices in the playing system are all configured with a first application, where the first application may be a voice assistant, and the first application on the third electronic device may analyze the first voice instruction and make a decision to obtain a first electronic device and a second electronic device, where the first electronic device is an electronic device that executes a first playing task corresponding to the first voice instruction, the second electronic device is an alternative electronic device that executes a first playing task corresponding to the first voice instruction, and in an actual application, the electronic device that is best matched with the first playing task may be determined as the first electronic device, for example, the first voice instruction is "play tv series a", the server may obtain video playing corresponding to the first voice instruction after analyzing the first voice instruction, and it is assumed that the electronic devices to be selected are a mobile phone, a television, and an intelligent watch respectively, the television with the best video playing performance can be determined as the first electronic equipment. The third electronic device can determine, in addition to the electronic device that executes the first playback task according to the first voice instruction, an alternative device that executes the first playback task, so that the first playback task can be executed instead by the second electronic device when the execution of the first playback task on the first electronic device is interrupted.
In practical application, the first application also supports the interaction between the electronic equipment and the server in an application layer, so that the first voice instruction is sent to the server, the server analyzes the first voice instruction, the first electronic equipment and the second electronic equipment are determined, and a processing result of the first voice instruction is returned to the third electronic equipment, so that the processing efficiency of the voice instruction can be improved.
In an embodiment, the determining, in the playback system, the first electronic device and the second electronic device according to the first voice instruction based on the first application includes:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; electronic devices within the first group communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
Here, the electronic devices in the same group in the playback system communicate with each other based on a short-range wireless communication technology, the electronic devices in the group having the capability of communicating with each other, the short-range wireless communication technology including a bluetooth communication technology or a WiFi communication technology. When a plurality of electronic devices are included in the group, one-to-one communication, one-to-many communication, or many-to-one communication may be performed between the electronic devices based on a short-range wireless communication technology. In practical application, the group may be established based on a third-party communication framework, for example, an OAF communication framework established based on a third-party protocol, so that the first application may determine the second electronic device in the group where the first electronic device is located, thereby ensuring that the first electronic device and the second electronic device can communicate based on the short-range wireless communication technology. The first application determines the second electronic device according to the playing requirement of the first playing task in the first voice instruction, exemplarily, the first voice instruction is 'play a tv drama a', the electronic devices in the group are a tv, a mobile phone and a smart watch respectively, the first application analyzes the first voice instruction, the first playing task can be determined to belong to a video playing task, the tv meeting the video playing requirement is determined to be the first electronic device, and the mobile phone meeting the video playing requirement can be determined to be the second electronic device.
In practical applications, there may be a plurality of electronic devices that can match with the playing requirement of the first playing task, and it is further necessary to further determine the second electronic device according to other conditions, for example, the first playing task is a video playing task, the electronic devices in the group are a television, a mobile phone a, a mobile phone B, and a smart watch, and in the case that the television is determined as the first electronic device, both the mobile phone a and the mobile phone B can execute the video playing task, and in this case, the electronic device that is the shortest distance from the first electronic device can be determined as the second electronic device, so that it can be ensured that the user can receive the playing content output by the second electronic device in time when the second electronic device is switched to execute the first playing task. In addition, the electronic device with the highest frequency of use can be determined as the second electronic device, so that the electronic device frequently used by the user can be determined as the alternative device.
S503: sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
The first application can also support interaction between the electronic devices, and the third electronic device sends the first message to the first electronic device on the basis that the first application decides the first electronic device and the second electronic device according to the first voice instruction, so that the first electronic device can execute the first playing task according to the first control instruction in the first message, the electronic devices can be controlled through the voice instruction, the second electronic device can be determined according to the first information in the first message, and the execution condition of the first playing task on the first electronic device can be synchronized to the second electronic device. In practical application, when the third electronic device and the first electronic device are the same electronic device, after the first application of the third electronic device obtains the processing result of the first voice instruction, the third electronic device can execute the first play task according to the first control instruction in the first voice instruction result, where the processing result of the first voice instruction obtained by the first application of the third electronic device can be obtained by the first application, or the processing result can be returned to the third electronic device after the server processes the first voice instruction.
After receiving the first message, the first electronic device in the playing system can start executing the first playing task according to a first control instruction in the first message, and can determine an alternative device for executing the first playing task according to the first information in the first message, and during the process that the first electronic device executes the first playing task, the first electronic device can send second information to the second electronic device through a short-distance wireless communication technology, wherein the second information represents the execution condition of the first playing task on the first electronic device, so that the second electronic device can be responsible for subsequent execution of the first playing task when the execution of the first playing task on the first electronic device is interrupted. The sending of the second information may be periodically sending to the second electronic device, for example, sending the second information containing the execution progress of the first playback task on the first electronic device to the second electronic device, where the second electronic device can determine whether the execution of the first playback task on the first electronic device is interrupted according to the receiving condition of the second information, and when it is determined that the execution of the first playback task on the first electronic device is interrupted, the execution of the first playback task may be continued according to the execution progress corresponding to the second information received last time. In addition, second information may be sent to the second electronic device when the first playback task executes the terminal on the first electronic device, where the second information includes information representing an execution progress corresponding to when the execution of the first playback task on the first electronic device is interrupted, so that the second electronic device can complete subsequent execution of the first playback task according to the execution progress in the second information.
In the embodiment of the application, the playing system can determine the execution device for executing the playing task according to the voice instruction and determine the alternative device for executing the playing task, so that the subsequent execution of the playing task can be immediately continued on the alternative device under the condition that the execution of the playing task is interrupted in the execution device, and the continuous playing efficiency of the playing task is improved.
An embodiment of the present application further provides another audio and video playing method, as shown in fig. 7, where the method is applied to a server, and the method includes:
s701: receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task.
Here, the user controls the electronic device to execute the first play task by issuing the first voice instruction, and the server is responsible for parsing the first voice instruction, so as to determine the electronic device executing the first play task according to the first voice instruction, in one case, the first voice instruction received by the server is sent by the electronic device awakened by the first voice instruction, for example, as shown in fig. 8, fig. 8 shows an interaction schematic diagram of the server and the play system, and the first voice instruction issued by the user can awaken a first application configured on a third electronic device in the play system, where the first application may be a voice assistant, and the third electronic device uploads the first voice instruction to the server.
S702: determining first electronic equipment and second electronic equipment according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic device characterizes an alternative device for performing the first play task.
Here, after receiving the first voice instruction, the server may analyze the first voice instruction, and match the best execution device for the first play task according to an analysis result of the first voice instruction, for example, the first electronic device may be determined according to a play requirement corresponding to the first play task in the first voice instruction, where the first voice instruction is "play tv drama a", and the server may obtain video play corresponding to the first voice instruction after analyzing the first voice instruction, and determine a tv with the best video play performance as the first electronic device, assuming that the electronic devices to be selected are a mobile phone, a tv, and a smart watch, respectively. After the server determines the first electronic device according to the first voice instruction, the server may also synchronously determine an alternative device for executing the first play task, so that the second electronic device can execute the first play task instead when the execution of the first play task on the first electronic device is interrupted.
In one embodiment, the determining the second electronic device according to the first voice instruction includes:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
Here, the second electronic device determined by the server can communicate with the first electronic device based on a short-range wireless communication technology, and the second electronic device can be determined in the electronic devices communicating with the first electronic device, so that communication between the first electronic device and the second electronic device can be ensured, wherein the short-range wireless communication technology between the first electronic device and the second electronic device includes a bluetooth communication technology or a WiFi communication technology, and in practical applications, the short-range wireless communication technology between the first electronic device and the second electronic device can also be implemented based on an OAF communication framework established by a third-party protocol. The server determines the second electronic device according to a playing requirement of a first playing task in the first voice instruction, for example, the first voice instruction is "play a tv drama a", the electronic devices in the group are a tv, a mobile phone and a smart watch, respectively, and according to analysis of the first voice instruction, it can be determined that the first playing task belongs to a video playing task, where the tv and the mobile phone can both execute the video playing task, and in a case where the tv is determined to be the first electronic device, the mobile phone can be determined to be the second electronic device.
In practical applications, there may be a plurality of electronic devices that can match with the playing requirement of the first playing task, and a second electronic device needs to be further determined according to other conditions, for example, the first playing task is a video playing task, the electronic devices in the group are a television, a mobile phone a, a mobile phone B, and a smart watch, and in the case that the television is determined as the first electronic device, both the mobile phone a and the mobile phone B can execute the video playing task, and in this case, the electronic device that is the shortest distance from the first electronic device can be determined as the second electronic device, so that it can be ensured that the user can receive the playing content output by the second electronic device in time when the second electronic device is switched to execute the first playing task. In addition, the electronic device with the highest frequency of use can be determined as the second electronic device, so that the electronic device frequently used by the user can be determined as the alternative device.
S703: sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
Here, after the server determines the first electronic device and the second electronic device according to the first voice instruction, the server returns the corresponding first message to the first electronic device, where a first control instruction in the first message can control the first electronic device to execute a first play task, so that the voice instruction controls the electronic device to execute the play task, and the processing of the first voice instruction is completed. In addition, the server returns the determined second electronic device to the first electronic device through the first information in the first message, the first electronic device can determine the alternative device of the first play task through the first information, and when the execution of the first play task on the first electronic device is interrupted, the subsequent execution of the first play task can be directly completed through the second electronic device. In practical application, a first voice instruction of the server is uploaded to the server by a third electronic device, wherein the third electronic device is a device wakened up by the first voice instruction, when the third electronic device is the same as the first electronic device, returning a first message to the third electronic device by the server is equivalent to sending the first message to the first electronic device, when the third electronic device is different from the first electronic device, the server first sends the first message to the third electronic device, and the third electronic device sends the first message to the first electronic device through a short-distance wireless communication technology.
After receiving the first message, the first electronic device in the playing system can start to execute the first playing task, and can determine an alternative device for executing the first playing task, and during the process that the first electronic device executes the first playing task, the first electronic device can send second information to the second electronic device through a short-distance wireless communication technology, wherein the second information represents the execution condition of the first playing task on the first electronic device, so that the second electronic device can be responsible for the subsequent execution of the first playing task when the execution of the first playing task on the first electronic device is interrupted. The sending of the second information may be periodically sending to the second electronic device, for example, sending the second information containing the execution progress of the first playback task on the first electronic device to the second electronic device, where the second electronic device can determine whether the execution of the first playback task on the first electronic device is interrupted according to the receiving condition of the second information, and when it is determined that the execution of the first playback task on the first electronic device is interrupted, the execution of the first playback task may be continued according to the execution progress corresponding to the second information received last time. In addition, second information may be sent to the second electronic device when the first playback task executes the terminal on the first electronic device, where the second information includes information representing an execution progress corresponding to when the execution of the first playback task on the first electronic device is interrupted, so that the second electronic device can complete subsequent execution of the first playback task according to the execution progress in the second information.
In the above embodiment, the server analyzes the voice instruction, determines that the second electronic device is an alternative device for executing the play task corresponding to the voice instruction while determining that the first electronic device executes the play task corresponding to the voice instruction, and sends the processing result to the first electronic device, so that the first electronic device can execute the play task and know the alternative device for executing the play task, and when the first play task is interrupted in the first electronic device, the second electronic device can take over to execute the first play task, thereby improving the continuous play efficiency under the condition that the play task is interrupted abnormally, and further improving the execution effect of the play task.
The application embodiment is further provided, and as shown in fig. 9, fig. 9 shows an interaction flow diagram of audio and video playing. In fig. 9, the third electronic device is different from the first electronic device, the user sends a first voice instruction, the electronic device is controlled to execute a first playback task by the first voice instruction, a first application on the third electronic device is awakened by the first voice instruction, the first application on the third electronic device sends the received first voice instruction to the server, the server performs parsing according to the received first voice instruction, determines an electronic device executing the first playback task and an alternative device executing the first playback task, and returns a corresponding first message to the third electronic device, where the first message includes a first control instruction instructing the first electronic device to execute the first playback task and first information instructing the second electronic device to be the alternative device executing the first playback task, and the third electronic device sends the received first message to the first electronic device, the first electronic device executes the first play task according to the first control instruction in the first message, and in the process of executing the first play task, sends second information representing the execution condition of the first play task on the first electronic device to the second electronic device, where the second information may be the execution progress of the first play task on the first electronic device at different times, or the execution progress of the first play task when the execution of the first play task is interrupted on the first electronic device, and the second electronic device can execute the first play task according to the received second information under the condition that the execution of the first play task is interrupted on the first electronic device.
The application further provides another application embodiment, as shown in fig. 10, fig. 10 shows an interaction flow diagram of audio and video playing. As shown in fig. 10, the third electronic device in fig. 10 is the same electronic device as the first electronic device, the user sends a first voice command, the electronic device is controlled to execute the first play task through the first voice command, the first application of the first electronic device receives the first voice command, the first voice command is sent to the server, the server parses the first voice command, determines that the first electronic device is the electronic device executing the first play task, and determines that the second electronic device is the alternative device executing the first electronic device, the server returns the processing result to the first electronic device through the first message, the first electronic device executes the first play device according to the first control command in the first message, determines that the second electronic device is the alternative device executing the first play task based on the first information in the first message, and sends the execution condition of the first play task on the first electronic device to the second electronic device through the second information The second information may be an execution progress of the first play task at different times on the first electronic device, or an execution progress of the first play task when the first play task is interrupted on the first electronic device, and the second electronic device may execute the first play task when the first play task is interrupted on the first electronic device according to the received second information.
In order to implement the audio/video playing method according to the embodiment of the present application, an embodiment of the present application further provides an audio/video playing device, as shown in fig. 11, the audio/video playing device includes:
a first receiving unit 1101 for receiving a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task;
a first sending unit 1102, configured to send second information to the second electronic device after the first play task starts to be executed; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
In an embodiment, the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
In an embodiment, when sending the second information to the second electronic device, the first sending unit 1102 is further configured to:
sending second information to the second electronic equipment at set time intervals; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
In an embodiment, when sending the second information to the second electronic device, the first sending unit 1102 is further configured to:
sending second information to the second electronic equipment under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
In practical applications, the first receiving unit 1101 and the first sending unit 1102 may be implemented by a processor in the audio/video playing apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
An embodiment of the present application further provides another audio/video playing device, as shown in fig. 12, including:
a second receiving unit 1201, configured to receive second information sent by the first electronic device; the second information represents the execution condition of a first playing task on the first electronic equipment;
an executing unit 1202, configured to execute the first playback task when the second information indicates that the first playback task is interrupted in the first electronic device.
In an embodiment, the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
In an embodiment, when receiving the second information sent by the first electronic device, the second receiving unit 1201 is further configured to:
receiving second information sent by the first electronic equipment every set time; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment;
the execution unit 1202 is further configured to, in executing the first play task:
under the condition that second information is not received at the interval of the set time and the second information represents that the first playing task is not executed on the first electronic equipment, determining the execution progress of the first playing task based on the second information received at the last time;
and executing the first playing task according to the determined execution progress.
In an embodiment, when receiving the second information sent by the first electronic device, the second receiving unit 1201 is further configured to:
receiving second information sent by the first electronic equipment; the second information is sent out under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment;
the execution unit 1202 is further configured to, in executing the first play task:
and executing the first playing task based on the execution progress represented by the second information.
In practical applications, the second receiving unit 1201 and the executing unit 1202 may be implemented by a processor in the audio/video playing apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
An embodiment of the present application further provides another audio/video playing device, as shown in fig. 13, including:
a third receiving unit 1301, configured to receive the first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
a first determining unit 1302, configured to determine, based on a first application, a first electronic device and a second electronic device in the playback system according to the first voice instruction; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a second sending unit 1303, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
In an embodiment, the first determining unit 1302, when determining the first electronic device and the second electronic device in the playing system according to the first voice instruction based on the first application, is further configured to:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; electronic devices within the first group communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
In practical application, the third receiving unit 1301, the first determining unit 1302, and the second sending unit 1303 may be implemented by a processor in an audio/video playing device. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
An embodiment of the present application further provides another audio/video playing device, as shown in fig. 14, including:
a fourth receiving unit 1401 for receiving the first voice instruction; the first voice instruction is used for indicating the first playing task;
a second determining unit 1402, configured to determine the first electronic device and the second electronic device according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a third sending unit 1403, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
In an embodiment, the second determining unit 1402, when determining the second electronic device according to the first voice instruction, is further configured to:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; electronic devices within the first group communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
In practical applications, the fourth receiving unit 1401, the second determining unit 1402, and the third sending unit 1403 may be implemented by a processor in the audio/video playing apparatus. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that, when the audio/video playing apparatus provided in the embodiments of fig. 11, 12, 13, and 14 performs audio/video playing, the division of the program modules is merely used as an example, and in practical applications, the processing may be distributed to different program modules according to needs, that is, the internal structure of the apparatus may be divided into different program modules to complete all or part of the processing described above. In addition, the audio/video playing device and the audio/video playing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Based on the hardware implementation of the program module, in order to implement the method on the first electronic device side or the method on the second electronic device side or the method on the playback system side in the embodiment of the present application, an embodiment of the present application further provides an electronic device, fig. 15 is a schematic diagram of a hardware structure of the electronic device in the embodiment of the present application, and as shown in fig. 15, an electronic device 1500 includes:
a communication interface 1501 capable of information interaction with other devices such as network devices and the like;
the processor 1502 is connected to the communication interface 1501 to implement information interaction with other devices, and is configured to execute an audio and video playing method or a method of a playing system side on the first electronic device side or the second electronic device side provided in one or more of the above technical solutions when running a computer program. And the computer program is stored on the memory 1503.
Of course, in practice, the various components in the electronic device are coupled together by a bus system 1504. It is understood that the bus system 1504 is used to enable connected communication between these components. The bus system 1504 includes, in addition to the data bus, a power bus, a control bus, and a status signal bus. For clarity of illustration, however, the various buses are designated as bus system 1504 in fig. 15.
The memory 1503 in the embodiment of the present application is used for storing various types of data to support the operation of the electronic device 1500. Examples of such data include: any computer program for operating on electronic device 1500.
The method disclosed in the embodiments of the present application can be applied to the processor 1502, or can be implemented by the processor 1502. The processor 1502 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware, integrated logic circuits, or software in the processor 1502. The Processor 1502 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 1502 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 1503 and the processor 1502 reads the program in the memory 1503 to implement the steps of the aforementioned methods in conjunction with its hardware.
When the processor 1502 executes the program, corresponding processes in the methods according to the embodiments of the present application are realized, and for brevity, no further description is provided here.
In an exemplary embodiment, the electronic Device 1500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Based on the hardware implementation of the program module, and in order to implement the method according to the embodiment of the present application, an embodiment of the present application further provides a server, fig. 16 is a schematic diagram of a hardware composition structure of the server according to the embodiment of the present application, and as shown in fig. 16, the server 1600 includes:
a communication interface 1601 capable of information interaction with other devices such as network devices and the like;
the processor 1602 is connected to the communication interface 1601 to implement information interaction with other devices, and is configured to execute a method provided by one or more technical solutions of the server side when running the computer program. And the computer program is stored on the memory 1603.
Specifically, the communication interface 1601 is configured to receive a first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
the processor 1602 is configured to determine a first electronic device and a second electronic device according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
the communication interface 1601 is configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
In an embodiment, the processor 1602, according to the first voice instruction, determines a second electronic device, and is further configured to:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; the electronic equipment in the first group are interconnected based on short-distance wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
It should be noted that the specific processes of the processor 1602 and the communication interface 1601 can be understood by referring to the above methods.
Of course, in practice, the various components of the first server 1600 are coupled together via the bus system 1604. It is understood that the bus system 1604 is used to enable connective communication between these components. The bus system 1604 includes a power bus, a control bus, and a status signal bus in addition to the data bus. For clarity of illustration, however, the various buses are labeled as the bus system 1604 in fig. 16.
The memory 1603 in the embodiment of the application is used for storing various types of data to support the operation of the server 1500. Examples of such data include: any computer program for operating on server 1600.
The method disclosed in the embodiments of the present application can be applied to the processor 1602 or implemented by the processor 1602. The processor 1602 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method can be implemented by hardware integrated logic circuits or instructions in software form in the processor 1602. The processor 1602 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 1602 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in memory 1603 and the processor 1602 reads the information in memory 1603 and performs the steps of the foregoing method in conjunction with its hardware.
In an exemplary embodiment, the server 1600 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components for performing the aforementioned methods.
It is to be understood that the memories (memory 1503 and memory 1603) of the embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
In an exemplary embodiment, the present application further provides a storage medium, specifically a computer-readable storage medium, for example, a memory 1503 storing a computer program, where the computer program is executable by the first processor 1502 of the electronic device 1500 to perform the steps of the first electronic device side or second electronic device side method. For example, the server side method may further include a memory 1603 storing a computer program executable by the processor 1602 of the server 1600 to perform the steps of the server side method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
It should be noted that: "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The technical means described in the embodiments of the present application may be arbitrarily combined without conflict.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (19)

1. An audio and video playing method is applied to a first electronic device, and comprises the following steps:
receiving a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task;
after the first playing task is started to be executed, second information is sent to the second electronic equipment; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
2. The method of claim 1, wherein the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
3. The method of claim 1, wherein sending second information to the second electronic device comprises:
sending second information to the second electronic equipment at set time intervals; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
4. The method of claim 1, wherein sending second information to the second electronic device comprises:
sending second information to the second electronic equipment under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment.
5. An audio and video playing method is applied to a second electronic device, and comprises the following steps:
receiving second information sent by the first electronic equipment; the second information represents the execution condition of a first playing task on the first electronic equipment;
and executing the first playing task under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment.
6. The method of claim 5, wherein the first electronic device and the second electronic device communicate based on a short-range wireless communication technology.
7. The method of claim 5, wherein the receiving the second information sent by the first electronic device comprises:
receiving second information sent by the first electronic equipment every set time; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment;
the executing the first playback task includes:
under the condition that second information is not received at the interval of the set time and the second information represents that the first playing task is not executed on the first electronic equipment, determining the execution progress of the first playing task based on the second information received at the last time;
and executing the first playing task according to the determined execution progress.
8. The method of claim 5, wherein the receiving the second information sent by the first electronic device comprises:
receiving second information sent by the first electronic equipment; the second information is sent out under the condition that the execution of the first playing task is interrupted; the second information at least comprises information representing the execution progress of the first playing task on the first electronic equipment;
the executing the first playback task includes:
and executing the first playing task based on the execution progress represented by the second information.
9. An audio and video playing method is applied to a playing system, and the method comprises the following steps:
receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
based on a first application, according to the first voice instruction, determining a first electronic device and a second electronic device in the playing system; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
10. The method of claim 9, wherein determining, in the playback system, the first electronic device and the second electronic device according to the first voice instruction based on the first application comprises:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; electronic devices within the first group communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
11. An audio and video playing method is applied to a server, and the method comprises the following steps:
receiving a first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
determining first electronic equipment and second electronic equipment according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
sending a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
12. The method of claim 11, wherein determining a second electronic device according to the first voice instruction comprises:
determining an electronic device satisfying a set condition as the second electronic device; the first electronic device and the second electronic device are in a first group; electronic devices within the first group communicate based on a short-range wireless communication technology; wherein the setting condition at least comprises at least one of the following conditions:
the electronic equipment is matched with the playing requirement of the first playing task;
the electronic equipment with the shortest distance to the first electronic equipment;
the most frequently used electronic device.
13. An audio-video playback device, comprising:
a first receiving unit, configured to receive a first message; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device; the second electronic equipment represents an alternative equipment for executing the first playing task;
the first sending unit is used for sending second information to the second electronic equipment after the first playing task is started to be executed; the second information represents the execution condition of the first playing task on the first electronic equipment; and under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment, the second electronic equipment executes the first playing task.
14. An audio-video playback device, comprising:
the second receiving unit is used for receiving second information sent by the first electronic equipment; the second information represents the execution condition of a first playing task on the first electronic equipment;
and the execution unit is used for executing the first playing task under the condition that the second information represents that the first playing task is interrupted in the first electronic equipment.
15. An audio/video playing device is characterized by comprising
A third receiving unit, configured to receive the first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
the first determining unit is used for determining first electronic equipment and second electronic equipment in the playing system according to the first voice instruction based on a first application; the first application is used for analyzing the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a second sending unit, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
16. An audio-video playback device, comprising:
the fourth receiving unit is used for receiving the first voice instruction; the first voice instruction is used for indicating to execute a first playing task;
the second determining unit is used for determining the first electronic equipment and the second electronic equipment according to the first voice instruction; the first electronic equipment represents the electronic equipment executing the first playing task; the second electronic equipment represents an alternative equipment for executing the first playing task;
a third sending unit, configured to send a first message to the first electronic device; the first message comprises a first control instruction and first information; the first control instruction is used for controlling the first electronic equipment to execute a first play task; the first information characterizes a second electronic device.
17. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 4 or 5 to 8 or 9 to 10 when running the computer program.
18. A server, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 11 to 12 when running the computer program.
19. A storage medium having stored thereon a computer program for implementing the steps of the method according to any one of claims 1 to 4 or 5 to 8 or 9 to 10 or 11 to 12 when executed by a processor.
CN202111299436.1A 2021-11-04 2021-11-04 Audio and video playing method and device, electronic equipment, server and storage medium Pending CN113891124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111299436.1A CN113891124A (en) 2021-11-04 2021-11-04 Audio and video playing method and device, electronic equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111299436.1A CN113891124A (en) 2021-11-04 2021-11-04 Audio and video playing method and device, electronic equipment, server and storage medium

Publications (1)

Publication Number Publication Date
CN113891124A true CN113891124A (en) 2022-01-04

Family

ID=79016931

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111299436.1A Pending CN113891124A (en) 2021-11-04 2021-11-04 Audio and video playing method and device, electronic equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN113891124A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110009587A (en) * 2009-07-22 2011-01-28 에스케이텔레콤 주식회사 Method and system for inter device resuming of video contents clip
CN102196313A (en) * 2010-03-08 2011-09-21 华为技术有限公司 Method and device for continuous playing of cross-platform breakpoint as well as method and device for continuous playing of breakpoint
CN103546453A (en) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 Cross-device multimedia playing method and device
CN105679341A (en) * 2015-12-28 2016-06-15 广东欧珀移动通信有限公司 File playing method and apparatus, and mobile terminal
CN106415721A (en) * 2014-01-22 2017-02-15 苹果公司 Coordinated hand-off of audio data transmission
CN106921875A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The switching handling method and device of video
WO2018161788A1 (en) * 2017-03-06 2018-09-13 华为技术有限公司 Multimedia data sharing method and device
CN110460905A (en) * 2019-09-03 2019-11-15 腾讯科技(深圳)有限公司 The automatic continuous playing method of video, device and storage medium based on more equipment
CN110798745A (en) * 2019-11-19 2020-02-14 深圳传音控股股份有限公司 Multimedia playing control method, server and storage medium
CN111246306A (en) * 2020-03-09 2020-06-05 歌尔科技有限公司 Playing control method, playing equipment switching method, playing equipment and intelligent terminal
CN111666180A (en) * 2020-07-08 2020-09-15 北京恒泰实达科技股份有限公司 Dual-computer hot standby control method and system supporting PPT demonstration
CN112035086A (en) * 2020-08-19 2020-12-04 海尔优家智能科技(北京)有限公司 Audio playing method and device
CN113506568A (en) * 2020-04-28 2021-10-15 海信集团有限公司 Central control and intelligent equipment control method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20110009587A (en) * 2009-07-22 2011-01-28 에스케이텔레콤 주식회사 Method and system for inter device resuming of video contents clip
CN102196313A (en) * 2010-03-08 2011-09-21 华为技术有限公司 Method and device for continuous playing of cross-platform breakpoint as well as method and device for continuous playing of breakpoint
CN103546453A (en) * 2013-08-22 2014-01-29 合一网络技术(北京)有限公司 Cross-device multimedia playing method and device
CN106415721A (en) * 2014-01-22 2017-02-15 苹果公司 Coordinated hand-off of audio data transmission
CN106921875A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 The switching handling method and device of video
CN105679341A (en) * 2015-12-28 2016-06-15 广东欧珀移动通信有限公司 File playing method and apparatus, and mobile terminal
WO2018161788A1 (en) * 2017-03-06 2018-09-13 华为技术有限公司 Multimedia data sharing method and device
CN110460905A (en) * 2019-09-03 2019-11-15 腾讯科技(深圳)有限公司 The automatic continuous playing method of video, device and storage medium based on more equipment
CN110798745A (en) * 2019-11-19 2020-02-14 深圳传音控股股份有限公司 Multimedia playing control method, server and storage medium
CN111246306A (en) * 2020-03-09 2020-06-05 歌尔科技有限公司 Playing control method, playing equipment switching method, playing equipment and intelligent terminal
CN113506568A (en) * 2020-04-28 2021-10-15 海信集团有限公司 Central control and intelligent equipment control method
CN111666180A (en) * 2020-07-08 2020-09-15 北京恒泰实达科技股份有限公司 Dual-computer hot standby control method and system supporting PPT demonstration
CN112035086A (en) * 2020-08-19 2020-12-04 海尔优家智能科技(北京)有限公司 Audio playing method and device

Similar Documents

Publication Publication Date Title
US10007327B2 (en) HSIC communication system and method
JP2019204103A (en) Wake-up method for voice smart device, wake-up apparatus therefor, smart device, and computer-readable storage medium
JP7353497B2 (en) Server-side processing method and server for actively proposing the start of a dialogue, and voice interaction system capable of actively proposing the start of a dialogue
WO2018054139A1 (en) Audio control method and device, and storage medium
JP2020526781A (en) Key phrase detection by audio watermark
US9906981B2 (en) Method and system for dynamic regulation and control of Wi-Fi scans
CN108111520B (en) Media playing resource processing method, device and terminal
JP2006237918A (en) Information processing system, reproducing terminal and reproducing method, information processing apparatus and method, and program
CN114679681A (en) Device control method, device, electronic device and storage medium
CN113573172A (en) Dual-device audio playing method and device, electronic device and storage medium
JP6785332B2 (en) Bluetooth speaker Data processing method, device and bluetooth speaker
CN113840269B (en) Multimedia data transmission method and device, electronic equipment and storage medium
WO2018040106A1 (en) Method and apparatus for outputting search result, and electronic device
US7890779B2 (en) Method and apparatus for providing updated information using power control in portable terminal device
CN108566706B (en) Flash lamp control method and device, terminal equipment and storage medium
CN112565876B (en) Screen projection method, device, equipment, system and storage medium
CN112399211A (en) Operation method and convergence gateway
CN109065050A (en) A kind of sound control method, device, equipment and storage medium
CN113891124A (en) Audio and video playing method and device, electronic equipment, server and storage medium
JP2009184453A (en) In-vehicle information output device and information output controlling method
CN116321084A (en) Bluetooth communication method, bluetooth communication device, electronic equipment and computer readable medium
WO2023169066A1 (en) Monitoring content playback control method and apparatus, and storage medium and electronic device
WO2022089384A1 (en) Data synchronization method and device
CN113840164A (en) Voice control method, device, terminal equipment and storage medium
CN115623278A (en) Audio processing method, apparatus, device and medium

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