CN114845169A - Play control method, play control device, play terminal, and storage medium - Google Patents
Play control method, play control device, play terminal, and storage medium Download PDFInfo
- Publication number
- CN114845169A CN114845169A CN202210465908.4A CN202210465908A CN114845169A CN 114845169 A CN114845169 A CN 114845169A CN 202210465908 A CN202210465908 A CN 202210465908A CN 114845169 A CN114845169 A CN 114845169A
- Authority
- CN
- China
- Prior art keywords
- audio
- video data
- layer
- play
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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
- H04N21/4623—Processing of entitlement messages, e.g. ECM [Entitlement Control Message] or EMM [Entitlement Management Message]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a play control method, a play control device, a play terminal and a storage medium. Based on a play control system comprising an application layer, a middle layer, a drive layer and a hardware layer, the method comprises the following steps: the application layer sends a first request instruction corresponding to the first target application to the middle layer, wherein the first request instruction is an instruction for requesting the first target application to play the first audio and video data; the middle layer receives the first request instruction and determines whether the first audio and video data are allowed to be played or not, and returns a play permission instruction to the application layer when the first audio and video data are determined to be allowed to be played; the application layer sends first audio and video data to the drive layer when receiving a play permission instruction; and the driving layer controls the hardware layer to play the first audio and video data when receiving the first audio and video data. The invention aims to improve the orderliness of the whole audio and video playing of the terminal while ensuring that the audio and video application playing delay is smaller, and ensure that the audio and video playing function of the terminal can meet the requirements of users.
Description
Technical Field
The present invention relates to the field of intelligent terminal technologies, and in particular, to a play control method, a play control apparatus, a play terminal, and a storage medium.
Background
Most intelligent terminals have an audio and video playing function, various audio and video applications can be installed on the terminals, some audio and video applications have higher requirements on the real-time performance of audio and video playing in the using process, and the time delay of audio and video receiving and playing cannot be too large, such as KTV applications and the like.
At present, an operating system of an intelligent terminal is generally provided with an application layer, an intermediate layer, a driving layer and a hardware layer, a management and control function of audio and video data is generally arranged in the intermediate layer, the applied audio and video data is generally sent to the intermediate layer for management and control, and then the intermediate layer sends the management and control result to the driving layer for playing. However, in this way, in the playing control process of the audio/video application with a high real-time requirement, the delay is obvious, and the user experience is poor. If the application layer is set to skip the intermediate layer to directly communicate with the driving layer for audio and video playing, the audio and video playing control of the intelligent terminal is easily disordered, so that the audio and video cannot be paused or resumed, and the realization of the audio and video playing function of the terminal is influenced.
Disclosure of Invention
The invention mainly aims to provide a play control method, a play control device, a play terminal and a storage medium, aiming at improving the order of the whole audio and video play of the terminal while ensuring that the audio and video application play delay is smaller and ensuring that the audio and video play function of the terminal can meet the requirements of users.
In order to achieve the above object, the present invention provides a playback control method, based on a playback control system, where the playback control system includes an application layer, an intermediate layer, a driver layer, and a hardware layer, and the playback control method includes:
sending a first request instruction corresponding to a first target application to the middle layer through the application layer, wherein the first request instruction is an instruction for requesting the first target application to play first audio and video data;
receiving the first request instruction through the middle layer, determining whether the first audio and video data is allowed to be played or not, and returning the playing permission instruction to the application layer when the first audio and video data is determined to be allowed to be played;
when the application layer receives the playing permission instruction, the first audio and video data are sent to the driving layer;
and controlling the hardware layer to play the first audio and video data when the first audio and video data is received through the driving layer.
Optionally, after the step of controlling, by the driver layer, the hardware layer to play the first audio/video data when the first audio/video data is received, the method further includes:
when a first play switching instruction is received through the middle layer, sending a play pause instruction corresponding to the first target application to the application layer;
when the application layer receives the playing pause instruction, pausing to send the first audio and video data to the drive layer so that the drive layer controls the hardware layer to pause playing the first audio and video data;
the first playing switching instruction is used for switching the first audio and video data currently played by the hardware layer to playing audio and video data of a second target application, and the second target application is an application with an audio and video playing function except the first target application.
Optionally, before the step of sending the first audio/video data to the driver layer when the application layer receives the play permission instruction of the middle layer, the method further includes:
when the intermediate layer does not receive the first request instruction, if a second play switching instruction is received, the play permission instruction is sent to the application layer;
the second playing switching instruction is used for switching the currently played audio and video data of the hardware layer to play the first audio and video data.
Optionally, the step of determining whether to allow the first audio-video data to be played includes:
acquiring a second priority value corresponding to second audio and video data of a currently received second target application, and acquiring a first priority value corresponding to the first audio and video data, wherein the second target application is an application with an audio and video playing function except the first target application;
and determining whether to allow the first audio and video data to be played according to the magnitude relation between the first priority value and the second priority value.
Optionally, before the step of determining whether to allow the first audio/video data to be played according to the magnitude relationship between the first priority value and the second priority value, the method further includes:
generating a corresponding virtual identifier according to the first request instruction and associating the virtual identifier with the first priority value, and generating a corresponding audio/video identifier according to the second audio/video data and associating the corresponding audio/video identifier with the second priority value;
the step of determining whether to allow the first audio and video data to be played according to the magnitude relation between the first priority value and the second priority value comprises the following steps:
sorting the virtual identifiers and the audio/video identifiers according to the principle that the first priority value and the second priority value are from large to small to obtain a play control list;
and when the mark with the top sequence in the play control list is the virtual mark, determining that the first audio and video data is allowed to be played.
Optionally, the step of obtaining a second priority value corresponding to second audio/video data of a second currently received target application includes:
determining the data type of the second audio and video data;
and determining the second priority value according to the data type.
Optionally, the step of obtaining the first priority value corresponding to the first audio/video data includes:
acquiring a first preset weight of the first target application and second preset weights of second target applications corresponding to all currently received second audio and video data;
and calculating the first priority value according to the first preset weight value and all the second preset weight values.
In order to achieve the above object, the present application also provides a playback control apparatus including:
the middle layer module is used for receiving a first request instruction, determining whether to allow playing of first audio and video data of a first target application corresponding to the first request instruction, and returning a playing permission instruction when determining to allow playing of the first audio and video data;
the driving layer module is used for controlling the hardware layer module to play the first audio and video data when the first audio and video data are received;
and the application layer module is used for sending the first request instruction to the intermediate layer module and sending the first audio and video data to the driving layer module when receiving a play permission instruction returned by the intermediate layer module, wherein the first request instruction is an instruction for requesting the first target application to play the first audio and video data.
In addition, in order to achieve the above object, the present application also provides a broadcast terminal, including: a memory, a processor and a play control program stored on the memory and executable on the processor, the play control program, when executed by the processor, implementing the steps of the play control method as claimed in any one of the above.
In order to achieve the above object, the present application also proposes a storage medium having a playback control program stored thereon, the playback control program, when executed by a processor, implementing the steps of the playback control method as set forth in any one of the above.
The invention provides a playing control method, which is based on a playing control system comprising an application layer, an intermediate layer, a driving layer and a hardware layer, wherein the application layer sends a first request instruction to the intermediate layer before directly sending first audio/video data required to be played by a first target application to the driving layer, so that the intermediate layer judges whether the first target application has playing permission or not, the application layer sends the first audio/video data required to be played by the first target application to the driving layer after receiving the playing permission instruction of the intermediate layer, the application layer can send the audio/video data to the driving layer without intermediate layer transfer by the mode, so that the time delay of playing the audio/video data by the first target application is ensured to be smaller, meanwhile, the intermediate layer can participate in the control of playing the audio/video data of the first target application, the ordering of playing the audio/video data of the first target application and other applications on a terminal can be effectively improved, therefore, the audio and video application playing delay is ensured to be small, the integral audio and video playing order of the terminal is improved, and the audio and video playing function of the terminal can meet the requirements of users.
Drawings
Fig. 1 is a schematic diagram of a hardware structure involved in the operation of an embodiment of the play terminal of the present invention;
FIG. 2 is a schematic structural diagram of a playback control system according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a playing control method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a playback control method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a playback control method according to another embodiment of the present invention;
fig. 6 is a flowchart illustrating a playback control method according to another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: the method comprises the steps that a first request instruction corresponding to a first target application is sent to the middle layer through the application layer, and the first request instruction is an instruction for requesting the first target application to play first audio and video data; receiving the first request instruction through the middle layer, determining whether the first audio and video data is allowed to be played or not, and returning the playing permission instruction to the application layer when the first audio and video data is determined to be allowed to be played; when the application layer receives a play permission instruction of the middle layer, the first audio and video data are sent to the driving layer; and controlling the hardware layer to play the first audio and video data when the first audio and video data is received through the driving layer.
In the prior art, the audio and video data of the application are generally sent to the middle layer for management and control, and then sent to the driving layer by the middle layer for playing based on the management and control result. But for audio and video applications with high real-time requirements, the mode has obvious delay and poor experience. Therefore, in the application, in the process of realizing the playing control of the audio and video application with higher real-time requirement, the application layer is set to skip the middle layer and directly communicate with the driving layer to play the audio and video, however, the audio and video playing control of the intelligent terminal is easily disordered in such a way, so that the audio and video cannot be paused or resumed, and the realization of the audio and video playing function of the terminal is influenced.
The invention provides the solution, and aims to ensure that the playing time delay of audio and video application is small, improve the order of the whole audio and video playing of the terminal and ensure that the audio and video playing function of the terminal can meet the requirements of users.
The embodiment of the invention provides a playing terminal, and the playing terminal is specifically a terminal with an audio and video playing function. In this embodiment, the playback terminal is a vehicle-mounted terminal. In other embodiments, the playback terminal is also other terminals, such as a mobile phone, a computer, a television, an air conditioner, a watch, and the like.
In the embodiment of the present invention, referring to fig. 1, the playback terminal includes: a processor 1001 (e.g., CPU), memory 1002, etc. The components in the control device are connected by a communication bus. The memory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1002 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a play control program may be included in the memory 1002 as a storage medium. In the apparatus shown in fig. 1, the processor 1001 may be configured to call the play control program stored in the memory 1002 and perform the operations of the relevant steps of the play control method in the following embodiments.
Specifically, the play control program may be used to construct a play control system of the play terminal, where the play control system is specifically an embedded system, such as an android system. Referring to fig. 2, the play control system specifically includes: an application layer, a middle layer, a driver layer, and a hardware layer. The hardware layer generally includes control programs corresponding to a data interface (such as a USB interface), a speaker, and a microphone for collecting audio/video data. The application layer may include a plurality of application programs.
The embodiment of the invention also provides a playing control method which is applied to the playing terminal.
Referring to fig. 3, an embodiment of a play control method of the present application is provided. In this embodiment, based on a play control system, the play control system includes an application layer, an intermediate layer, a driver layer, and a hardware layer, and the play control method includes:
step S10, a first request instruction corresponding to a first target application is sent to the middle layer through the application layer, wherein the first request instruction is an instruction for the first target application to request to play first audio and video data;
the first audio and video data specifically includes audio data and/or video data that the first target application needs to play currently. The first audio and video data can be data collected by the playing terminal in real time and can also be data acquired by the playing terminal from external equipment.
The first target application is specifically an application with a real-time audio and video data output requirement in the playing terminal. For example, the first target application may be a KTV application, a teleconferencing application, or the like. The cast terminal may be installed with one or more first target applications.
In this embodiment, a driver layer calls a data interface of a hardware layer to acquire audio data acquired by a microphone in real time, the driver layer sends the acquired audio data to a first target application in an application layer in real time, the audio data acquired by the first target application from the driver layer can be used as first audio/video data, and the application layer can send a first request instruction in real time when the first target application receives the first audio/video data.
Step S20, receiving the first request instruction through the middle layer, determining whether to allow playing of the first audio/video data, and returning the play permission instruction to the application layer when determining that playing of the first audio/video data is allowed;
the middle layer is used for managing the priority and audio playing permission of each audio and video data (including audio and video data of music, radio stations, video and other applications) according to a preset strategy.
After receiving the first request instruction, the intermediate layer may determine whether to allow playing of the first audio/video data according to a preset policy, for example, whether the current time is within a preset time period in which playing is allowed, whether the priority of the first audio/video data is highest in all audio/video data to be played, and the like.
And when the middle layer determines that the first audio and video data is not allowed to be played, a playing permission instruction can be returned to the application layer, and when the middle layer determines that the first audio and video data is not allowed to be played, a playing prohibition instruction can be returned to the application layer.
Step S30, when the application layer receives the play permission instruction of the middle layer, the first audio/video data is sent to the driving layer;
specifically, the application layer and the driver layer may pre-establish a communication channel, and the application layer may send the first audio/video data to the driver layer in real time based on the communication channel when receiving the play permission instruction.
It should be noted that the application layer does not send the first audio/video data to the intermediate layer, and sends a communication instruction, where the transmission efficiency of the communication instruction is greater than that of the first audio/video data.
In addition, when the application layer receives a playing prohibition instruction returned by the middle layer, the application layer prohibits sending the first audio and video data to the drive layer.
And step S40, controlling the hardware layer to play the first audio and video data when the first audio and video data is received through the driving layer.
And after receiving the first audio and video data, the driving layer can call a corresponding interface in the hardware layer to control a loudspeaker in the hardware layer to play the first audio and video data.
With reference to fig. 2, an arrow in fig. 2 is a schematic diagram of a data or instruction transmission direction when the scheme mentioned in this embodiment is implemented between layers in the play control system, where a solid arrow indicates an audio and video data transmission direction, and a dotted arrow indicates an instruction signal transmission direction.
The playing control method provided by the embodiment of the invention is based on a playing control system comprising an application layer, an intermediate layer, a driving layer and a hardware layer, wherein before first audio and video data required to be played by a first target application is directly sent to the driving layer by the application layer, a first request instruction is sent to the intermediate layer firstly for the intermediate layer to judge whether the first target application has playing permission or not, after the playing permission instruction of the intermediate layer is received, the application layer sends the first audio and video data required to be played by the first target application to the driving layer, and by the method, the audio and video data can be sent to the driving layer by the application layer without intermediate layer transfer, so that the time delay of playing the audio and video data by the first target application is ensured to be smaller, meanwhile, the intermediate layer can participate in the control of the playing of the audio and video data of the first target application, the orderliness of playing of the audio and video data of other applications on a terminal can be effectively improved, therefore, the audio and video application playing delay is ensured to be small, the integral audio and video playing order of the terminal is improved, and the audio and video playing function of the terminal can meet the requirements of users.
Further, based on the above embodiment, another embodiment of the playback control method of the present application is provided. In this embodiment, referring to fig. 4, after step S40, the method further includes:
step S50, when receiving a first play switching instruction through the intermediate layer, sending a play pause instruction corresponding to the first target application to the application layer;
the first play switching instruction may be specifically sent while the second target application sends the second audio/video data to be played to the intermediate layer when receiving an instruction input by a user, or sent to the intermediate layer when the driver layer detects that the hardware layer has a play switching instruction input by the user.
Step S60, pausing sending the first audio/video data to the driver layer by the application layer when receiving the play pause instruction, so that the driver layer controls the hardware layer to pause playing the first audio/video data;
the first playing switching instruction is used for switching the first audio and video data currently played by the hardware layer to playing audio and video data of a second target application, and the second target application is an application with an audio and video playing function except the first target application.
In this embodiment, through the above manner, when a user needs to switch from the first audio/video data of the first target application to the audio/video data of another application for playing, the audio/video data playing of the first target application can be paused in time according to the user, so that the audio/video data playing delay of the first target application is ensured to be small, the user needs to be paused accurately, and the terminal audio/video playing function is further ensured to meet the user needs.
Further, based on any of the above embodiments, another embodiment of the playback control method of the present application is provided. In this embodiment, referring to fig. 5, before the step S30, the method further includes:
step S01, when the first request instruction is not received through the intermediate layer, if a second play switching instruction is received, sending the play permission instruction to the application layer;
the second playing switching instruction is used for switching the currently played audio and video data of the hardware layer to play the first audio and video data.
The second play switching instruction may specifically be sent to the intermediate layer when the driver layer detects that the hardware layer has a play switching instruction input by the user, or may also be sent when the second target application corresponding to the currently played audio/video data of the hardware layer receives the instruction input by the user and sent by the driver layer.
In this embodiment, by the above manner, when a user needs to switch from other audio and video data to the first audio and video data of the first target application for playing, the first audio and video data of the first target application can be played in time according to the user, so that the audio and video data of the first target application can be played accurately while the playing delay is small, and the audio and video playing function of the terminal can be further ensured to meet the user requirements.
Further, based on any of the above embodiments, a further embodiment of the playback control method of the present application is provided. In this embodiment, referring to fig. 6, the step of determining whether to allow the first audio/video data to be played in step S20 includes:
step S21, acquiring a second priority value corresponding to second audio/video data of a currently received second target application, and acquiring a first priority value corresponding to the first audio/video data, wherein the second target application is an application with an audio/video playing function except the first target application;
the first priority value and the second priority value may be fixed values pre-stored in the intermediate layer, or may be values determined according to characteristics of audio/video data actually received by the intermediate layer.
There may be one or more than one second audio-visual data of the second target application received by the intermediate layer. The second audio and video data received by the middle layer can be understood as audio and video data to be played in the middle layer.
Step S22, determining whether to allow the first audio/video data to be played according to a magnitude relationship between the first priority value and the second priority value.
Specifically, when the first priority value is greater than the second priority value, it is determined that the first audio/video data is allowed to be played; and when the first priority value is smaller than the second priority value, determining that the first audio and video data is not allowed to be played.
When more than one second audio/video data exists and the first priority value is greater than all the second priority values, the first audio/video data can be determined to be allowed to be played; and when the first priority value is smaller than any one of the second priority values, determining that the first audio and video data is not allowed to be played.
In this embodiment, in the above manner, the intermediate layer may compare the playing priority between the first audio/video data and the second audio/video data to be played in the intermediate layer based on the first priority and the second priority, and determine whether to allow the playing of the first audio/video data based on the priorities of all the audio/video data to be played, so as to ensure that the playing of the first audio/video data can be coordinated with the playing of other audio/video data, further improve the ordering of the overall audio/video playing of the terminal while ensuring that the audio/video application playing delay is small, and further ensure that the audio/video playing function of the terminal can meet the user requirements.
Further, in this embodiment, before the step S22 and after the step S21, a corresponding virtual identifier may be generated according to the first request instruction and associated with the first priority value, and a corresponding audio/video identifier may be generated according to the second audio/video data and associated with the second priority value. Based on this, step S22 includes: sorting the virtual identifiers and the audio/video identifiers according to the principle that the first priority value and the second priority value are from large to small to obtain a play control list; and when the mark with the top sequence in the play control list is the virtual mark, determining that the first audio and video data is allowed to be played.
When the mark which is ranked the top in the play control list is not the virtual mark, the first audio and video data can be determined not to be allowed to be played.
Specifically, different first target applications may correspond to different first request instructions. And generating a corresponding virtual identifier according to the first request instruction, wherein the virtual identifier can be used for representing first audio and video data of the corresponding first target application. The audio/video identifier is specifically used for representing second audio/video data to be played in the middle layer.
The number of the second audio/video data received by the middle layer can be more than one, the first priority value and all the second priority values can be compared in pairs, the virtual identification and the audio/video identification are sorted based on the comparison result, and the larger the numerical value is, the earlier the sorting of the identification associated with the numerical value in the play control list is.
For example, the first target application is a KTV application, the first audio/video data is a sound source of the KTV application, the virtual identifier is M, the corresponding first priority value is a1, the second target application includes a radio station application and a teleconference application, the second audio/video data includes audio data of the radio station application and conference data of the teleconference application, the corresponding audio/video identifier is P, Q in sequence, the corresponding second priority values are a2 and a3 in sequence, and if a3> a1> a2, the play control list is as follows:
based on this, if the Q as the audio-video identifier is the top in rank, it may be determined that the first audio-video data is not allowed to be played.
If the first target application is a KTV application, the first audio and video data is a sound source of the KTV application, the virtual identifier is M, the corresponding first priority value is b1, the second target application is a radio station application, the second audio and video data includes audio data of the radio station application, the corresponding audio and video identifier is P, the corresponding second priority value is b2, and b1> b2, then the play control list is as follows:
priority value | Identification |
b1 | P |
b2 | M |
Based on this, the first audio-video data may be determined to be allowed to be played if P as the virtual identifier is ranked first.
In this embodiment, the intermediate layer generates a virtual identifier of the first audio/video data based on the first request instruction, and performs sorting based on priority values with audio/video identifiers of other to-be-played second audio/video data in the intermediate layer to obtain a play control list, and the intermediate layer may allow playing of the first audio/video data only when the virtual identifier is sorted most in the play control list, so as to ensure that the intermediate layer can implement a comprehensive planning of playing of all audio/video data including the first audio/video data based on the virtual identifier even if the application layer does not send the first audio/video data to the intermediate layer to ensure that the playing delay is small, thereby further improving the ordering and coordination of playing of the first audio/video data and other audio/video data, and ensuring that the playing function of the playing terminal can accurately meet the user use requirements.
Further, in this embodiment, the step of obtaining a second priority value corresponding to second audio/video data of a currently received second target application includes: determining the data type of the second audio and video data; and determining the second priority value according to the data type.
The data types may include real-time call data, real-time video data, recorded data, conference data, and/or KTV data, among others. The different data types correspond to different second priority values. It should be noted that the second priority values are different when the data types are different in the same application.
The corresponding relation between the data type and the second priority value can be a preset fixed relation, the corresponding relation determined by user setting parameters can also be obtained, the use frequency of the audio and video data corresponding to the data type in advance at the current moment can also be obtained, and the corresponding relation between the data type and the second priority value is obtained according to the use frequency. Based on the corresponding relation, a second priority value corresponding to the current data type can be determined.
In this embodiment, since the user has different use requirements for audio and video data of different data types, the second priority value of the second audio and video data is determined based on the data type, so that the matching degree of the audio and video playing function of the playing terminal and the user requirements is further improved.
Further, in this embodiment, the step of obtaining the first priority value corresponding to the first audio/video data includes: acquiring a first preset weight of the first target application and second preset weights of second target applications corresponding to all currently received second audio and video data; and calculating the first priority value according to the first preset weight value and all the second preset weight values.
The first preset weight is specifically a preset weight of the playing priority of the first target application in all applications in the control terminal. The second preset weight is specifically a preset weight of a playing priority of a corresponding second target application in all applications in the control terminal.
The first preset weight and the second preset weight are specifically pre-stored in the middle layer.
In this embodiment, a sum of the first preset weight and all the second preset weights is calculated, a ratio of the first preset weight to the sum is calculated, and a product of the ratio and the reference weight is calculated as the first priority. In other embodiments, the average value of all the second preset weights is also calculated, the difference value between the first preset weight and the average value is calculated, and the calculation result obtained by subtracting the difference value from the maximum value of all the second preset weights is used as the first priority weight.
In this embodiment, in the above manner, on the basis that the type of the first audio/video data cannot be known without acquiring the first audio/video data, the intermediate layer may also be combined with preset weights respectively corresponding to the first target application and the second target application to characterize the priority degree of the first audio/video data in all the audio/video data to be played, and whether to allow the playing of the first audio/video data is determined based on the first priority value calculated by the intermediate layer in the above manner, which is beneficial to ensuring that the playing delay of the first target application is small while the actually played audio/video data of the playing terminal more accurately meets the actual requirements of the user.
In addition, an embodiment of the present invention further provides a playback control apparatus, where the playback control apparatus includes:
the middle layer module is used for receiving a first request instruction, determining whether to allow playing of first audio and video data of a first target application corresponding to the first request instruction, and returning a playing permission instruction when determining to allow playing of the first audio and video data;
the driving layer module is used for controlling the hardware layer module to play the first audio and video data when the first audio and video data are received;
and the application layer module is used for sending the first request instruction to the intermediate layer module and sending the first audio and video data to the driving layer module when receiving a play permission instruction returned by the intermediate layer module, wherein the first request instruction is an instruction for requesting the first target application to play the first audio and video data.
It should be noted that, for the specific operation logic of the hardware module in the playback control apparatus in this embodiment, reference may be made to the corresponding part of the above-mentioned playback control method characteristic. It is easy to understand that the playback control apparatus in this embodiment includes all the features of the playback control method, so that all the technical effects that can be achieved by the playback control method are achieved, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where a playback control program is stored on the storage medium, and when the playback control program is executed by a processor, the playback control program implements the relevant steps of any embodiment of the above playback control method.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, a play terminal, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A playing control method is characterized in that based on a playing control system, the playing control system comprises an application layer, a middle layer, a drive layer and a hardware layer, and the playing control method comprises the following steps:
sending a first request instruction corresponding to a first target application to the middle layer through the application layer, wherein the first request instruction is an instruction for requesting the first target application to play first audio and video data;
receiving the first request instruction through the middle layer, determining whether the first audio and video data is allowed to be played or not, and returning the playing permission instruction to the application layer when the first audio and video data is determined to be allowed to be played;
when the application layer receives the playing permission instruction, the first audio and video data are sent to the driving layer;
and controlling the hardware layer to play the first audio and video data when the first audio and video data is received through the driving layer.
2. The playback control method according to claim 1, wherein after the step of controlling, by the driver layer, the hardware layer to play back the first audio-video data when the first audio-video data is received, the method further comprises:
when a first play switching instruction is received through the middle layer, sending a play pause instruction corresponding to the first target application to the application layer;
when the application layer receives the playing pause instruction, pausing to send the first audio and video data to the drive layer so that the drive layer controls the hardware layer to pause playing the first audio and video data;
the first playing switching instruction is used for switching the first audio and video data currently played by the hardware layer to playing audio and video data of a second target application, and the second target application is an application with an audio and video playing function except the first target application.
3. The playback control method according to claim 1, wherein before the step of sending, by the application layer, the first audio/video data to the driver layer when receiving the playback permission instruction of the intermediate layer, the method further comprises:
when the intermediate layer does not receive the first request instruction, if a second play switching instruction is received, the play permission instruction is sent to the application layer;
the second playing switching instruction is used for switching the currently played audio and video data of the hardware layer to play the first audio and video data.
4. A playback control method as claimed in any one of claims 1 to 3, wherein the step of determining whether to allow the first audiovisual data to be played comprises:
acquiring a second priority value corresponding to second audio and video data of a currently received second target application, and acquiring a first priority value corresponding to the first audio and video data, wherein the second target application is an application with an audio and video playing function except the first target application;
and determining whether to allow the first audio and video data to be played according to the magnitude relation between the first priority value and the second priority value.
5. The playback control method according to claim 4, wherein before the step of determining whether to allow the first audio-video data to be played back according to a magnitude relationship between the first priority value and the second priority value, the method further comprises:
generating a corresponding virtual identifier according to the first request instruction and associating the virtual identifier with the first priority value, and generating a corresponding audio/video identifier according to the second audio/video data and associating the corresponding audio/video identifier with the second priority value;
the step of determining whether to allow the first audio and video data to be played according to the magnitude relation between the first priority value and the second priority value comprises the following steps:
sorting the virtual identifiers and the audio/video identifiers according to the principle that the first priority value and the second priority value are from large to small to obtain a play control list;
and when the mark with the top sequence in the play control list is the virtual mark, determining that the first audio and video data is allowed to be played.
6. The playback control method according to claim 4, wherein the step of obtaining the second priority value corresponding to the second audio/video data of the currently received second target application includes:
determining the data type of the second audio and video data;
and determining the second priority value according to the data type.
7. The playback control method according to claim 4, wherein the step of obtaining the first priority value corresponding to the first audio/video data includes:
acquiring a first preset weight of the first target application and second preset weights of second target applications corresponding to all currently received second audio and video data;
and calculating the first priority value according to the first preset weight value and all the second preset weight values.
8. A playback control apparatus, characterized in that the playback control apparatus comprises:
the middle layer module is used for receiving a first request instruction, determining whether to allow playing of first audio and video data of a first target application corresponding to the first request instruction, and returning a playing permission instruction when determining to allow playing of the first audio and video data;
the driving layer module is used for controlling the hardware layer module to play the first audio and video data when the first audio and video data are received;
and the application layer module is used for sending the first request instruction to the intermediate layer module and sending the first audio and video data to the driving layer module when receiving a play permission instruction returned by the intermediate layer module, wherein the first request instruction is an instruction for requesting the first target application to play the first audio and video data.
9. A cast terminal, characterized in that the cast terminal comprises: memory, processor and a playback control program stored on the memory and executable on the processor, which playback control program, when executed by the processor, carries out the steps of the playback control method according to one of claims 1 to 7.
10. A storage medium having a playback control program stored thereon, the playback control program, when executed by a processor, implementing the steps of the playback control method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210465908.4A CN114845169B (en) | 2022-04-29 | 2022-04-29 | Playback control method, playback control device, playback terminal, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210465908.4A CN114845169B (en) | 2022-04-29 | 2022-04-29 | Playback control method, playback control device, playback terminal, and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114845169A true CN114845169A (en) | 2022-08-02 |
CN114845169B CN114845169B (en) | 2023-07-25 |
Family
ID=82567761
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210465908.4A Active CN114845169B (en) | 2022-04-29 | 2022-04-29 | Playback control method, playback control device, playback terminal, and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114845169B (en) |
Citations (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184196A (en) * | 2007-05-24 | 2008-05-21 | 天栢宽带网络科技(上海)有限公司 | Multi-condition reception supporting system and method used for set up box |
CN104714824A (en) * | 2015-01-09 | 2015-06-17 | 青岛海信电器股份有限公司 | Starting method of application programs |
CN105898501A (en) * | 2015-12-30 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Video display method, video player and electronic device |
EP3169076A1 (en) * | 2015-11-11 | 2017-05-17 | Nagravision S.A. | Portable device for processing access controlled multimedia content |
CN106792193A (en) * | 2016-12-23 | 2017-05-31 | Tcl集团股份有限公司 | A kind of repair system and restorative procedure based on Android TVs |
CN106898372A (en) * | 2015-12-17 | 2017-06-27 | 杰发科技(合肥)有限公司 | The way of recording and recording system of mobile unit |
CN107862810A (en) * | 2017-09-28 | 2018-03-30 | 中国民生银行股份有限公司 | A kind of self-aided terminal control system based on browser |
US20180205702A1 (en) * | 2015-12-14 | 2018-07-19 | Bank Of America Corporation | Multi-Tiered Protection Platform |
CN108475186A (en) * | 2016-12-29 | 2018-08-31 | 华为技术有限公司 | Multimedia data playing method and terminal device |
CN109637268A (en) * | 2018-12-29 | 2019-04-16 | 无锡吾成互联科技有限公司 | A kind of music teaching APP operating method and its realize system |
CN110214450A (en) * | 2017-01-18 | 2019-09-06 | 三星电子株式会社 | Electronic equipment, the image processing method of electronic equipment and non-transitory computer readable recording medium |
CN110419226A (en) * | 2017-11-10 | 2019-11-05 | 华为技术有限公司 | The method and apparatus for playing TV programme |
CN111163271A (en) * | 2019-12-13 | 2020-05-15 | 晶晨半导体(深圳)有限公司 | EDID version switching method for solving HDMI compatibility problem |
CN111752543A (en) * | 2020-06-29 | 2020-10-09 | 国网北京市电力公司 | Android system architecture-based electric vehicle intelligent charging system and method |
CN113311738A (en) * | 2020-02-27 | 2021-08-27 | 马自达汽车株式会社 | Vehicle-mounted device control device |
CN113382291A (en) * | 2020-03-09 | 2021-09-10 | 海信视像科技股份有限公司 | Display device and streaming media playing method |
CN113886048A (en) * | 2021-10-09 | 2022-01-04 | 中科航宇(广州)科技有限公司 | Task processing method and device, electronic equipment, satellite and storage medium |
CN113971045A (en) * | 2021-09-13 | 2022-01-25 | 北京小米移动软件有限公司 | Control method, control device and storage medium |
CN114265714A (en) * | 2021-12-20 | 2022-04-01 | 奇安信科技集团股份有限公司 | Drive control method and device based on cloud mobile phone and storage medium |
-
2022
- 2022-04-29 CN CN202210465908.4A patent/CN114845169B/en active Active
Patent Citations (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101184196A (en) * | 2007-05-24 | 2008-05-21 | 天栢宽带网络科技(上海)有限公司 | Multi-condition reception supporting system and method used for set up box |
CN104714824A (en) * | 2015-01-09 | 2015-06-17 | 青岛海信电器股份有限公司 | Starting method of application programs |
US20160202880A1 (en) * | 2015-01-09 | 2016-07-14 | Hisense Electric Co., Ltd. | Method for starting application program, terminal and non-transitory computer readable storage medium |
EP3169076A1 (en) * | 2015-11-11 | 2017-05-17 | Nagravision S.A. | Portable device for processing access controlled multimedia content |
US20180205702A1 (en) * | 2015-12-14 | 2018-07-19 | Bank Of America Corporation | Multi-Tiered Protection Platform |
CN106898372A (en) * | 2015-12-17 | 2017-06-27 | 杰发科技(合肥)有限公司 | The way of recording and recording system of mobile unit |
CN105898501A (en) * | 2015-12-30 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Video display method, video player and electronic device |
US20170195384A1 (en) * | 2015-12-30 | 2017-07-06 | Le Holdings (Beijing) Co., Ltd. | Video Playing Method and Electronic Device |
CN106792193A (en) * | 2016-12-23 | 2017-05-31 | Tcl集团股份有限公司 | A kind of repair system and restorative procedure based on Android TVs |
CN108475186A (en) * | 2016-12-29 | 2018-08-31 | 华为技术有限公司 | Multimedia data playing method and terminal device |
CN110214450A (en) * | 2017-01-18 | 2019-09-06 | 三星电子株式会社 | Electronic equipment, the image processing method of electronic equipment and non-transitory computer readable recording medium |
CN107862810A (en) * | 2017-09-28 | 2018-03-30 | 中国民生银行股份有限公司 | A kind of self-aided terminal control system based on browser |
CN110419226A (en) * | 2017-11-10 | 2019-11-05 | 华为技术有限公司 | The method and apparatus for playing TV programme |
CN109637268A (en) * | 2018-12-29 | 2019-04-16 | 无锡吾成互联科技有限公司 | A kind of music teaching APP operating method and its realize system |
US20210185270A1 (en) * | 2019-12-13 | 2021-06-17 | Amlogic (Shenzhen), Ltd. | Method and system for switching edid version in tv devices |
CN111163271A (en) * | 2019-12-13 | 2020-05-15 | 晶晨半导体(深圳)有限公司 | EDID version switching method for solving HDMI compatibility problem |
CN113311738A (en) * | 2020-02-27 | 2021-08-27 | 马自达汽车株式会社 | Vehicle-mounted device control device |
US20210269047A1 (en) * | 2020-02-27 | 2021-09-02 | Mazda Motor Corporation | In-vehicle equipment control device |
CN113382291A (en) * | 2020-03-09 | 2021-09-10 | 海信视像科技股份有限公司 | Display device and streaming media playing method |
CN111752543A (en) * | 2020-06-29 | 2020-10-09 | 国网北京市电力公司 | Android system architecture-based electric vehicle intelligent charging system and method |
CN113971045A (en) * | 2021-09-13 | 2022-01-25 | 北京小米移动软件有限公司 | Control method, control device and storage medium |
CN113886048A (en) * | 2021-10-09 | 2022-01-04 | 中科航宇(广州)科技有限公司 | Task processing method and device, electronic equipment, satellite and storage medium |
CN114265714A (en) * | 2021-12-20 | 2022-04-01 | 奇安信科技集团股份有限公司 | Drive control method and device based on cloud mobile phone and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114845169B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106506391B (en) | Network traffic distribution method and router | |
CN111432386B (en) | Connection switching method, device, equipment and storage medium of Bluetooth headset | |
RU2012147842A (en) | METHOD FOR MANAGING CONFERENCE COMMUNICATION AND RELATED DEVICE AND SYSTEM | |
CN101489092A (en) | Meeting control method, meeting control device and meeting system | |
CN111552453B (en) | Sound effect scene control method, terminal and storage medium | |
CN105163177A (en) | Audio data playing method and system based on smart television and smart television | |
WO2021082265A1 (en) | Sound system control method and apparatus, and readable storage medium | |
CN105391563B (en) | Information notice method and device | |
CN114143586B (en) | Split screen display sharing method, system, storage medium and intelligent screen | |
CN106385622A (en) | Media file playing method and device | |
CN108235063A (en) | A kind of method for processing video frequency, device, electronic equipment and storage medium | |
CN114845169B (en) | Playback control method, playback control device, playback terminal, and storage medium | |
CN113760219A (en) | Information processing method and device | |
CN103974344A (en) | System, equipment and method for real-time change of service bandwidths | |
CN103905851A (en) | Multimedia resource playing method and video adapter | |
CN114500474A (en) | Communication method, device, communication equipment and storage medium based on SIP terminal | |
US20080250413A1 (en) | Method and Apparatus for Managing Tasks | |
CN112965685B (en) | Audio control method, device, system, terminal equipment and storage medium | |
CN110502207B (en) | Background sound silencing method, system, equipment and storage medium | |
CN111836090B (en) | Control method, device, equipment and storage medium | |
CN114913835A (en) | Household KTV control method and device, computer equipment and storage medium | |
CN112860938B (en) | Multi-sound-source control method of vehicle-mounted multimedia, storage medium and electronic equipment | |
JP2007221477A (en) | Mobile communication terminal, service providing device and program | |
US7522922B2 (en) | Mobile communication terminal, base station and registration control method | |
CN113692066A (en) | Short-distance communication equipment connection method and device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |