CN109640192B - Video player optimization method and device, playing terminal and storage medium - Google Patents

Video player optimization method and device, playing terminal and storage medium Download PDF

Info

Publication number
CN109640192B
CN109640192B CN201811604799.XA CN201811604799A CN109640192B CN 109640192 B CN109640192 B CN 109640192B CN 201811604799 A CN201811604799 A CN 201811604799A CN 109640192 B CN109640192 B CN 109640192B
Authority
CN
China
Prior art keywords
player
function
file
playing
video player
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811604799.XA
Other languages
Chinese (zh)
Other versions
CN109640192A (en
Inventor
付华东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201811604799.XA priority Critical patent/CN109640192B/en
Publication of CN109640192A publication Critical patent/CN109640192A/en
Application granted granted Critical
Publication of CN109640192B publication Critical patent/CN109640192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8193Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool
    • 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/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • 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/26258Content 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 for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list
    • 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/26291Content 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 for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4856End-user interface for client configuration for language selection, e.g. for the menu or subtitles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Abstract

The invention discloses a video player optimization method, which comprises the steps of receiving an operation instruction of a user based on a file browsing interface of a playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by the video player interface; the video player calls a hard decoding player defined by the chip extension according to the playing instruction; and the video player adopts the hard decoding player to carry out hard decoding playing on the file to be played. The invention also discloses a video player optimization device, a playing terminal and a storage medium. The invention solves the problems of blockage, screen splash, restarting and the like of the playing terminal when the code rate of the video file to be played is too high, and improves the playing quality of the video file. Meanwhile, the video playing can also support the setting functions of fast forward and fast backward, caption display, caption font size, color and the like, and the customized requirements are met.

Description

Video player optimization method and device, playing terminal and storage medium
Technical Field
The invention belongs to the technical field of televisions, and particularly relates to a video player optimization method, a video player optimization device, a video player optimization playing terminal and a storage medium.
Background
With the rapid development of intellectualization and diversification of televisions, Android systems are beginning to be used in large quantities in the television field. The video player is the core of the television multimedia part, the Android native player has low decoding efficiency and low video playing quality. Currently, an Android native player calls an audio/video decoder to perform decoding playing through an OMX (OpenMAX, a standard of a multimedia application), but the decoding method supports a few audio/video formats. Especially, the physical resolution of the screen body of the current mainstream television set reaches 3840x2160, and the problems of blockage, screen splash, restarting and the like can occur when the Android native player is used for decoding and playing the 4K high-code-rate code stream. And the video playing does not support the setting functions of fast forward and fast backward, caption display, caption font size, caption color and the like, and can not meet the customization requirement.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a video player optimization method, and aims to solve the technical problems that the Android native player is adopted to play high-code-rate code streams, the problems of blockage, screen splash, restarting and the like can occur, and the functions of fast forward and fast backward, subtitle display, subtitle font size setting, color setting and the like are not supported.
In order to achieve the above object, the present invention provides a video player optimization method, which includes the following steps:
receiving an operation instruction of a user based on a file browsing interface of a playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by a video player interface;
the video player calls a hard decoding player defined by the chip extension according to the playing instruction;
and the video player adopts the hard decoding player to carry out hard decoding playing on the file to be played.
Optionally, the video player comprises a multimedia player and a multimedia player service layer;
the step that the video player calls the hard decoding player defined by the chip extension according to the playing instruction comprises the following steps:
defining enumeration values of players of various types in a function file of a multimedia player service layer;
in a function file of a multimedia player service layer, assigning the selected player type as an enumeration value of a hard decoding player defined by a chip extension;
and the multimedia player calls a multimedia player service layer based on the playing instruction so as to call the hard decoding player.
Optionally, the video player further comprises a hard decoding player management layer;
the step of the video player performing hard decoding playing on the file to be played by adopting the hard decoding player further comprises:
the multimedia player acquires the execution parameters of the extended functions;
the hard decoding player management layer calls a function execution function of the hard decoding player;
and the multimedia player acquires the corresponding execution command of the extended function from the function class file according to the execution parameter based on the function execution function and processes the execution command so as to realize the extended function.
Optionally, the step of acquiring, by the multimedia player, an execution command of a corresponding extended function from the function class file according to the execution parameter for processing based on the function execution function, so as to implement the extended function, includes:
the multimedia player determines a target extended function to be called according to the execution parameters based on the function execution function;
and the multimedia player calls the execution command of the target extended function in the function class file to process based on the function execution function so as to realize the extended function.
Optionally, the step of acquiring, by the multimedia player, an execution command of a corresponding extended function from the function class file according to the execution parameter for processing based on the function execution function, so as to implement the extended function further includes:
and the video player acquires the function class file defined by the extended function from the chip based on the playing plug-in.
Optionally, the step of the multimedia player acquiring the execution parameters of the extended function includes:
the multimedia player obtains a calling instruction of a playing plug-in to call a standard interface of the multimedia player;
based on the calling instruction, the standard interface acquires the execution parameters of the extended function.
Optionally, the step of receiving, by the file browsing interface based on the playing terminal, an operation instruction of a user, and acquiring, by the video player interface, a file to be played and the playing instruction from the multimedia service layer includes:
after the video player interface receives a file position to be played, which is sent by the file browsing interface based on an operation instruction of a receiving user, starting a video player and acquiring the file position to be played;
the video player interface sends an acquisition instruction for acquiring the file to be played to a multimedia service layer according to the position of the file to be played;
and the video player interface acquires the file to be played and the playing instruction which are fed back by the multimedia service layer based on the acquisition instruction.
In addition, to achieve the above object, the present invention provides an apparatus for optimizing a video player, including:
the acquisition module is used for receiving an operation instruction of a user based on a file browsing interface of the playing terminal, and the video player interface acquires a file to be played and a playing instruction from the multimedia service layer;
the calling module is used for calling the hard decoding player defined by the chip extension according to the playing instruction by the video player;
and the hard decoding module is used for the video player to carry out hard decoding playing on the file to be played by adopting the hard decoding player.
In addition, to achieve the above object, the present invention further provides a broadcast terminal, including: a memory, a processor and a video player optimization program stored on the memory and executable on the processor, the video player optimization program when executed by the processor implementing the steps of the video player optimization method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, wherein the storage medium stores a video player optimization program, and the video player optimization program, when executed by a processor, implements the steps of the video player optimization method as described above.
According to the video player optimization method provided by the embodiment of the invention, the hard decoding player defined by the chip is selected through the multimedia player service layer of the video player, and the hard decoding player is adopted to perform GPU hard decoding playing on a video file to be played. The function expansion is carried out based on the standard interface of the Android native player, the video playing can also support the setting functions of fast forward and fast backward, caption display, caption font size, color and the like, and the customized requirements are met. The problems of blockage, screen splash, restarting and the like when the code rate of the video file to be played is too high due to the fact that an audio and video decoder of an Android native player is adopted for decoding and playing are avoided, and the playing quality of the video file is improved. Meanwhile, the problem that the Android native player video playing does not support the setting functions of fast forward and fast backward, subtitle display, subtitle font size setting, color setting and the like is solved.
Drawings
Fig. 1 is a schematic structural diagram of a playback terminal in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a video player optimization method according to the present invention;
FIG. 3 is a diagram illustrating interface invocation during a playing process of a player terminal;
fig. 4 is a schematic diagram of the calling relationship of each layer in the client and the server according to the video player optimization method 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: receiving an operation instruction of a user based on a file browsing interface of a playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by a video player interface; the video player calls a hard decoding player defined by the chip extension according to the playing instruction; and the video player adopts the hard decoding player to carry out hard decoding playing on the file to be played.
In the prior art, problems of blockage, screen splash, restarting and the like can occur when an Android native player is used for decoding and playing a 4K high-bit-rate code stream, and the Android native player does not support the functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color and the like, so that the customization requirements cannot be met.
The invention provides a solution, which selects a hard decoding player defined by a chip through a multimedia player service layer of a video player, and performs GPU hard decoding playing on a video file to be played by adopting the hard decoding player. The function expansion is carried out based on a standard interface of the Android native player, the video playing can support the setting functions of fast forward and fast backward, subtitle display, subtitle font size, color and the like, and the customization requirements are met. The problems of blockage, screen splash, restarting and the like when the code rate of the video file to be played is too high due to the fact that an audio and video decoder of an Android native player is adopted for decoding and playing are avoided, and the playing quality of the video file is improved. Meanwhile, the problem that the Android native player video playing does not support the setting functions of fast forward and fast backward, subtitle display, subtitle font size setting, color setting and the like is solved.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a playback terminal in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the play terminal according to an embodiment of the present invention may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include an input unit such as a keypad (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the play terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as infrared sensors, light sensors, motion sensors, and other sensors. Of course, the playing terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the cast terminal configuration shown in fig. 1 is not intended to be limiting, 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, the memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a video player optimization program.
In the playing terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the video player optimization program stored in the memory 1005 and perform the following operations:
receiving an operation instruction of a user based on a file browsing interface of a playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by a video player interface;
the video player calls a hard decoding player defined by the chip extension according to the playing instruction;
and the video player adopts the hard decoding player to carry out hard decoding playing on the file to be played.
Further, the video player comprises a multimedia player and a multimedia player service layer;
the step that the video player calls the hard decoding player defined by the chip extension according to the playing instruction comprises the following steps:
defining enumeration values of players of various types in a function file of a multimedia player service layer;
in a function file of a multimedia player service layer, assigning the selected player type as an enumeration value of a hard decoding player defined by a chip extension;
and the multimedia player calls a multimedia player service layer based on the playing instruction so as to call the hard decoding player.
Further, the video player further comprises a hard decoding player management layer; before the step of performing hard decoding playing on the file to be played by the video player using the hard decoding player, the processor 1001 may call a video player optimization program stored in the memory 1005, and further perform the following operations:
the multimedia player acquires the execution parameters of the extended functions;
the hard decoding player management layer calls a function execution function of the hard decoding player;
and the multimedia player acquires the corresponding execution command of the extended function from the function class file according to the execution parameter based on the function execution function and processes the execution command so as to realize the extended function.
Further, the step of acquiring, by the multimedia player, an execution command of a corresponding extended function from the function class file according to the execution parameter based on the function execution function, and processing the execution command to implement the extended function includes:
the multimedia player determines a target extended function to be called according to the execution parameters based on the function execution function;
and the multimedia player calls the execution command of the target extended function in the function class file to process based on the function execution function so as to realize the extended function.
Further, before the multimedia player obtains the corresponding execution command of the extended function from the function class file according to the execution parameter for processing based on the function execution function, so as to implement the step of the extended function, the processor 1001 may call the video player optimization program stored in the memory 1005, and further perform the following operations:
and the video player acquires the function class file defined by the extended function from the chip based on the playing plug-in.
Further, the step of the multimedia player obtaining the execution parameters of the extended function includes:
the multimedia player obtains a calling instruction of a playing plug-in to call a standard interface of the multimedia player;
and acquiring the execution parameters of the extended function for the standard interface based on the calling instruction.
Further, the step of receiving an operation instruction of a user by the file browsing interface based on the playing terminal, and acquiring a file to be played and a playing instruction from the multimedia service layer by the video player interface includes:
after the video player interface receives a file position to be played, which is sent by the file browsing interface based on an operation instruction of a receiving user, starting a video player and acquiring the file position to be played;
the video player interface sends an acquisition instruction for acquiring the file to be played to a multimedia service layer according to the position of the file to be played;
and the video player interface acquires the file to be played and the playing instruction which are fed back by the multimedia service layer based on the acquisition instruction.
Based on the above hardware structure, the embodiment of the method of the present invention is provided.
Referring to fig. 2, in a first embodiment of the video player optimization method of the present invention, the video player optimization method includes:
step S10, receiving an operation instruction of a user based on a file browsing interface of the playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by a video player interface;
for convenience of understanding, further referring to fig. 3 and fig. 4, fig. 3 is a schematic diagram illustrating interface invocation in a playing process of a playing terminal, where the playing terminal in the embodiment of the present invention is a playing terminal of an Android system, and the playing terminal includes a file browsing interface, a video player interface, and a multimedia service layer. The file browsing interface is an independent Android application program and is an entrance of a video player interface; the file browsing interface is used for enabling a user to select a video file and transmitting a corresponding value to the video player interface so as to start the video player. The video player interface is also an independent Android application program, and the starting of the video player interface is completed by the file browsing interface. The communication between the video player interface and the file browsing interface is realized by the instent putExtra mode. The multimedia service layer is a background service program of the playing terminal and is used for serving the video player to play the video file. And after the video player is started, acquiring a file to be played from the multimedia service layer, and receiving a playing instruction of the multimedia service layer.
As shown in fig. 4, in which the client and the server establish communication through the binder, the implementation mode of the binder is based on the CS (client-server) calling mode, so that the binder can be simply understood as an interface connecting the client process and the server process. By using the Android native player, the multimedia player service layer calls an OMX interface through NuPlayer or StageFright to perform audio and video decoding, and finally outputs audio and video; when the standard interface based on the Android native player is expanded and modified, the hard decoding player defined by chip expansion is used for hard decoding playing of audio and video, and the multimedia player service layer in fig. 4 calls the hard decoding player to perform audio and video decoding playing through the himediplayermanage (namely, the hard decoding player management layer); the hard decoding player is distributed in a so library mode and is under the lib directory
libha, audio, FFMpeg _ adec.decode.so, libhv, video, FFMpeg _ vdec.decode.so, libffmpeg format.so, which are FFMpeg hard decoding library files, libhiplayer _ utilis.so, libplaylist.so, etc. are hard decoding player-related library files. The hard decoding player uses the FFMpeg hard decoding library to carry out hard decoding on the audio and video, and because the FFMpeg registers a plurality of decoders, the hard decoding player supports a plurality of audio and video coding formats which are more than the audio and video formats supported by the Android native player. In addition, the FFMpeg hard decoding is used, the execution efficiency is high, and the problems of blockage, screen splash, restarting and the like can not occur basically in the playing process particularly when a high-code-rate code stream is played; and the problems of blockage, screen splash, restarting and the like can occur in the playing process of the Android native player.
Optionally, step S10 includes:
step S11, after the interface of the video player receives the position of the file to be played sent by the file browsing interface based on the operation instruction of the receiving user, the video player is started and the position of the file to be played is obtained;
specifically, after the user selects the video to be played, namely the file to be played, the file browsing interface firstly adds the video file selected by the user and under the current path of the storage device to a playlist, the playlist is added to the multimedia service layer, and the playlist is stored, maintained and controlled by the multimedia service layer. The file browsing interface transmits a file list position of a current file to the video player interface, and the video player interface starts and receives the file list position of the current file; and the file browsing interface transmits the file list position of the current file of the video player interface, namely the position of the file to be played. And the file browsing interface attaches the position index of the list where the selected video file is located to the Intent through a putExtra method, and finally the file browsing interface starts a video player in a startActivity mode.
Step S12, the interface of the video player sends an acquisition instruction for acquiring the file to be played to the multimedia service layer according to the position of the file to be played;
the video player interface is started and receives the file list position of the current file, namely after the video player interface receives the playing file position transmitted by the file browsing interface, an obtaining instruction for obtaining the file to be played is sent to the multimedia service layer. Specifically, the interface of the video player calls a playing method of a multimedia service layer, and the multimedia service layer further calls a playing method of video playing Plugin; and calling the file to be played in a callback mode in the playing method of the video playing Plugin.
Specifically, the video player interface calls a play (int mediaindex) method of the multimedia service layer, the multimedia service layer calls the plug in for video playing, and if the plug in is the plug in for video playing, the play (string) method in the plug in is continuously called; in play (string) method inside Plugin, VideoPlayListener. begin is called by callback to tell the multimedia service layer that video is about to start playing.
Plugin, translated as a plug-in, is a computer application that interacts with a host application to provide specific functionality. There are many reasons for applications to support Plugin, some of which include: enabling third party developers the ability to extend applications to provide unpredicted features; reducing the size of the application; source code and applications are shared due to incompatibility between software copyrights.
In step S13, the video player interface obtains the file to be played and the playing instruction fed back by the multimedia service layer based on the obtaining instruction.
After receiving an acquisition instruction for acquiring a file to be played, the multimedia service layer feeds back the file to be played to a video player interface and sends a playing instruction; and the video player interface receives the file to be played fed back by the multimedia service layer and prepares to start playing the video.
Specifically, after being called back (string url), the multimedia service layer sends a BCT _ MEDIAPLAYER _ BEGIN broadcast to notify other applications that the video will start playing. The video player interface receives the broadcast from the multimedia service layer and prepares to start playing the video.
In the embodiment of the invention, the video player interface starts the video player by receiving the position of the file to be played sent by the file browsing interface, and acquires the file to be played and a playing instruction from the multimedia service layer according to the position of the file to be played, so that the video player interface can be quickly started and can quickly acquire the file to be played from the multimedia service layer according to the position of the file to be played for playing; the normal starting of the interface of the video player is ensured, and the audio and video are played.
Step S20, the video player calls the hard decoding player defined by the chip extension according to the playing instruction;
wherein the video player includes a video player interface. And after receiving the file to be played and the playing instruction fed back by the multimedia service layer, the video player interface calls a hard decoding player defined by the chip extension. Wherein the chip defines a hard decoding player. Specifically, firstly, the player of the playing terminal is switched by changing the Framework logic of the Framework, the player is switched into a hard decoding player defined by a chip, the hard decoding player is adopted to realize GPU hard decoding playing, and an Android native OMX (OpenMAX, standard of a multimedia application program) is not used for calling an audio/video decoder to perform decoding playing.
Optionally, the video player comprises a multimedia player and a multimedia player service layer; step S20 includes:
step S21, defining enumeration values of players of various types in the function file of the multimedia player service layer;
in the embodiment of the invention, the multimedia player refers to an Android native player. One or more types of players are defined as one or more enumerated values in an enumeration manner in a function file of a multimedia player service layer. Wherein the one or more types of players include a hard decoder player, and the hard decoder player is assigned an enumerated value.
Step S22, in the function file of the multimedia player service layer, assigning the selected player type as the enumeration value of the hard decoding player defined by the chip extension;
in the function file of the multimedia player service layer, the called player type is assigned as the enumeration value of the hard decoding player in the calling function of the player, so that the player is switched to the hard decoding player.
In step S23, the multimedia player calls the multimedia player service layer based on the play instruction to implement calling the hard decoding player.
After the video player interface receives the file to be played and the playing instruction fed back by the multimedia service layer, the multimedia player calls the multimedia player service layer, and calls the hard decoding player through the multimedia player service layer.
For ease of understanding, the description is made by way of example. For example, the multimedia PLAYER uses NU _ PLAYER, selects which PLAYER is in the mediaPlayerservice. cpp file of the Framework layer, mediaPlayerservice:: decode function definition inside assigns the playerType by calling the function mediaPlayerFactory:::, getPlayerType (), and the playerType is an enumeration type whose contents are as follows:
enum player_type{
PV_PLAYER=1,
SONIVOX_PLAYER=2,
STAGEFRIGHT_PLAYER=3,
NU_PLAYER=4,
TEST_PLAYER=5,
HIMEDIA_PLAYER=6,
};
wherein, HIMEDIA _ PLAYER ═ 6 is a newly added enumeration, and is a hard decoding PLAYER; where the playerType will be assigned to HIMEDIA _ PLAYER, thereby enabling switching the PLAYER to a hard decoding PLAYER. When Android starts, all media types are registered in a mediaplayerfactor when video playing is started, and when setDataSource is called, the player type is obtained; if the type of the player is not specified explicitly, the scoreFactor function of each player registered in the mediaPlayerFactory is traversed, the player with the highest score is used for playing the video currently, from the current code setting, the score set in the HiMediaPlayer is 1.0 at the highest, and the current basically default players are all the hiMediaPlayers.
In the embodiment of the invention, the enumeration values of various types of players are defined in the function file of the multimedia player service layer; and the selected player type is assigned as an enumeration value of a hard decoding player defined by the chip extension, so that the multimedia player is switched into the hard decoding player, and then the hard decoding player can be used for carrying out GPU hard decoding playing on a file to be played, the Android native player is prevented from carrying out decoding playing, and the problems of blockage, screen splash, restarting and the like when a playing terminal plays a high-code-rate code stream are solved.
And step S30, the video player adopts a hard decoding player to perform hard decoding playing on the file to be played.
And after the video player calls the hard decoding player through the multimedia player service layer, the hard decoding player is adopted to perform GPU hard decoding playing on the file to be played.
In this embodiment, the decoding playing mode of the multimedia player is switched to a hard decoding playing mode to perform hard decoding playing, specifically, the multimedia player is switched to a hard decoding player defined by a chip extension in the decoding process, the hard decoding player is adopted to perform GPU hard decoding playing on a file to be played, and an audio/video decoder is not adopted to call an OMX of the multimedia player to perform decoding playing; the problems of blockage, screen splash, restarting and the like when a high-code-rate code stream is played by decoding through a multimedia player are avoided. The hard decoding player is adopted for hard decoding playing, so that various different audio and video formats can be supported, and the audio and video playing quality of the playing terminal is greatly improved; meanwhile, the hard decoding player is adopted to play hard decoding, so that the setting functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color and the like can be further expanded, and the customization requirements are met.
Further, based on the embodiment shown in fig. 2, in the second embodiment of the video player optimization method according to the present invention, the video player further includes a hard decoding player management layer; after step S20, step S30 is preceded by:
step S40, the multimedia player obtains the execution parameter of the extended function;
the user can set the playing of the audio and video being played on the video player interface by operation, such as the setting of the expansion functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color, and the like. The standard interface of the multimedia player acquires execution parameters of the extended function generated based on the user operation. The execution parameter is a parameter value automatically generated based on a user operation.
Optionally, step S40 includes:
step S41, the multimedia player obtains the calling instruction of the playing plug-in to call the standard interface of the multimedia player;
in the embodiment of the invention, the function expansion is performed based on the standard interface of the Android native player and is completed based on the playing plug-in. And playing the java file of the plug-in directly to obtain the function class file defined by the extension in the chip and call the standard interface of the multimedia player, wherein the standard interface of the multimedia player is called for transmitting the execution parameters of the extension function and processing the execution parameters. In the method function for playing the java file of the plug-in, a calling instruction for calling a standard interface of the multimedia player is sent to the multimedia player, and the multimedia player acquires the calling instruction for playing the plug-in.
And step S42, acquiring the execution parameters of the extended function for the standard interface based on the calling instruction.
And after the multimedia player acquires the calling instruction of the playing plug-in, acquiring the execution parameters of the extended function based on the standard interface of the multimedia player so as to further process the execution parameters on the standard interface of the multimedia player to realize the corresponding extended function.
In the embodiment of the invention, a standard interface of a multimedia player is called based on a playing plug-in, and the execution parameters generated by user operation are obtained through the standard interface of the multimedia player, so that a playing terminal can obtain the execution parameters generated when a user sets the expansion functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color and the like, and further process the execution parameters of the expansion functions, and thus the playing terminal can realize the expansion functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color and the like, and a user can select to play and set a played video according to requirements, thereby meeting the requirements of customization and improving the user experience.
Step S50, the hard decoding player management layer calls the function execution function of the hard decoding player;
specifically, under the frame \ av \ media \ libmedia layerservice \ HiMediaPlayer \ catalog are HiMediaPlayerManage.h and HiMediaPlayerManage.cpp. The hard decoding player management layer calls a function execution function doInvoke function in the HiMediaPlayer. cpp of the hard decoding player through the two files of the HiMediaPlayerManage.h and the HiMediaPlayerManage.cpp.
In step S60, the multimedia player obtains the corresponding execution command of the extended function from the function class file according to the execution parameter based on the function execution function, and processes the execution command to implement the extended function.
The function class file is a file which is defined in the chip and comprises a plurality of function interfaces.
After a standard interface of the multimedia player acquires an execution parameter of an extended function generated based on user operation, determining the extended function corresponding to the execution parameter by using a function execution function of a hard decoding player called by a hard decoding player management layer; and then, acquiring an execution command of the corresponding extended function from the function class file by using the function execution function through the function execution function of the hard decoding player called by the hard decoding player management layer, and processing the execution command to realize the corresponding extended function.
For ease of understanding, the description is made by way of example. For example, a user may perform a "fast forward" operation on a video being played at a video player interface, and a standard interface of the multimedia player may receive an execution parameter for fast forward generated based on the user operation. And expanding a standard interface based on the multimedia player, calling a function execution function of the hard decoding player, and processing an execution command of a fast forward function in the function class file by the function execution function so as to realize the fast forward function.
In the embodiment of the invention, the execution parameters of the extended functions are acquired through the standard interface of the multimedia player, the hard decoding player management layer calls the function execution functions of the hard decoding player, and the corresponding execution commands of the extended functions are acquired from the function class files according to the execution parameters and are processed based on the function execution functions, so that the extended functions are realized. While the playing quality of the playing terminal is ensured, the video player interface can acquire different execution commands to process according to the execution parameters generated by the user settings such as fast forward and fast backward, caption display, caption font size, caption color and the like, so as to realize corresponding expansion functions. Therefore, the playing terminal can realize the extended functions of fast forward and fast backward, subtitle display, subtitle font size, subtitle color and the like, a user can select playing setting of the played audio and video according to the requirement, the customized requirement is met, and the user experience is improved.
Optionally, after step S40, step S60 is preceded by:
in step S70, the video player obtains the function class file defined by the extended function from the chip based on the playing plug-in.
Before the execution command of the corresponding extended function is acquired from the function class file, the function class file needs to be acquired, and the execution command of the corresponding extended function in the function class file can be used for processing. The video player acquires a defined function class file from the chip based on the playing plug-in, and the function class file comprises a plurality of function interfaces.
In this embodiment, a standard interface of a multimedia player acquires execution parameters of an extended function, and processes the execution parameters on the standard interface of the multimedia player to implement a corresponding extended function; the whole process is actually as follows: and playing the java file of the plug-in directly to obtain the function class file defined by the extension in the chip and call the standard interface of the multimedia player, wherein the standard interface of the multimedia player is called for transmitting the execution parameters of the extension function and processing the execution parameters.
Specifically, playing the java file in the plug-in directly obtains the function class file, such as: opportunity com, android, himedia player invoke, and further obtain execution commands of each extended function; transferring the execution parameters of the extended functions by calling the standard interface of the multimedia player in the method function corresponding to the playing plug-in; then, acquiring an execution command on a standard interface of the multimedia player according to the execution parameters for processing; and finally, executing according to the playing flow of the multimedia player, and switching the multimedia player into a hard decoding player for decoding when the file to be played is decoded. The method comprises the steps that functional interfaces provided by a hard decoding player are defined in device \ Hilicon \ bigfish \ frames \ himediaplayer \ java \ com \ hisilicon \ Android \ himediaplayer \ HiMediaPlayerInvoka (function class files), and some interface functions which are not supported by an Android native player (multimedia player) can be realized by calling the functional interfaces, such as subtitle parsing and displaying, opening or closing of subtitles, setting of subtitle font size and color, fast forward and fast backward and the like. The added functions are expanded based on a standard interface of an Android native player (multimedia player), two files, namely HiMediaPlayManage.h and HiMediaPlayManage.cpp, are arranged under a framework \ av \ media \ libMediaDisplayerservice \ HiMediaPlayer \ catalog, and are expanded based on the standard interface of the Android native player (multimedia player), a doInvoke function in the HiMediaPlayer. cpp file can be called through the two files, the doInvoke function can process execution parameters transferred by the standard interface of the Android native player (multimedia player) called by a file playing plug-in, a hard decoding player calling a main chip uses a bottom decoder to perform GPU hard decoding, and finally audio and video are output.
In the embodiment of the invention, the video player acquires the function class file defined by the extended function from the chip based on the playing plug-in, so that the video player can acquire different execution commands from the function class file according to different execution parameters for processing, thereby realizing different extended functions, enabling users to play and set played videos according to use habits and requirements, meeting the playing and setting requirements of different users, and improving user experience.
Further, based on the above-mentioned embodiment shown in fig. 2, in the third embodiment of the video player optimization method of the present invention, step S60 includes:
step S61, the multimedia player determines the target expansion function to be called based on the function execution function according to the execution parameter;
after the standard interface of the multimedia player acquires the execution parameter of the extended function generated based on the user operation, the function execution function of the hard decoding player called by the management layer of the hard decoding player is used, and the target extended function corresponding to the execution parameter is determined based on the function execution function. For example, when the user performs a "fast forward" operation, an execution parameter is generated at the playback terminal, and the function execution function of the hard decoder player called by the hard decoder player management layer determines that the target extension function corresponding to the execution parameter is "fast forward" based on the function execution function. If the user carries out the 'caption display' operation, an execution parameter is generated at the playing terminal, a function execution function of the hard decoding player called by the management layer of the hard decoding player is used, and the target expansion function corresponding to the execution parameter is determined to be 'caption display' based on the function execution function.
Step S62, the multimedia player calls the execution command of the target expansion function in the function class file to process based on the function execution function so as to realize the expansion function;
then, the multimedia player obtains the execution command of the corresponding extended function in the function class file by using the function execution function through the function execution function of the hard decoding player called by the hard decoding player management layer. For example, if the target extended function is "fast forward", the function execution function is used to acquire an execution command corresponding to the extended function being "fast forward" in the function class file. And if the target expansion function is 'subtitle display', acquiring an execution command corresponding to the expansion function as 'subtitle display' from the function class file by using the function execution function.
And processing the execution command of the target extended function on a standard interface of the multimedia player to realize the corresponding extended function. For example, if the target extended function is "fast forward", the extended function of "fast forward" is realized by acquiring an execution command corresponding to the extended function being "fast forward" from the function class file by the function execution function and processing the execution command of "fast forward". If the target expansion function is 'subtitle display', acquiring an execution command corresponding to the expansion function as 'subtitle display' from the function class file by using the function execution function, and processing the execution command of 'subtitle display', thereby realizing the expansion function of 'subtitle display'. The subtitles are divided into text subtitles (plug-in subtitles) and graphic subtitles (embedded subtitles). Firstly, whether a current film source has subtitles or not is judged, if the subtitles exist, whether the subtitles exist is a text subtitle or a graphic subtitle is distinguished, and the two subtitle processing methods are different. The graphic subtitles are all displayed by the hard decoding player. For display of text subtitles, by:
HiMediaPlayerInvoke.CMD_SET_SUB_MODE
this cmd (i.e., execution command) can select whether the subtitles are displayed in the hard decoding player at all or passed back to the upper app for display. And selecting 'mode 1' to display the hard decoding player, and returning subtitles to the app for the hard decoding player by the 'mode 0' to display the apps. Default to "mode 0", i.e. the text subtitle is sent to the app for display. If the hard decoding player is required to display the subtitle, the subtitle display mode needs to be switched to "mode 1". The invoke interface (i.e., the function interface) that sets the subtitle display mode is called before the prefix.
Specifically, the function interfaces defined in the function class file are as follows:
public final static int CMD _ SET _ AUDIO _ TRACK _ PID ═ CMD _ INVOKE _ BASE + 12; // setting track
public final static int CMD _ SET _ STOP _ fastlabel ═ CMD _ INVOKE _ BASE + 199; // set fast forward
public final static int CMD _ SET _ forward ═ CMD _ invocke _ BASE + 200; // set fast reverse
public final static int CMD _ SET _ SUB _ FONT _ SIZE ═ CMD _ INVOKE _ BASE + 104; v/set the size of the subtitle font
public final static int CMD _ SET _ SUB _ FONT _ COLOR ═ CMD _ INVOKE _ BASE + 114; v/set subtitle font color
public final static int CMD _ SET _ SUB _ ENABLE ═ CMD _ invocke _ BASE + 135; // opening or closing subtitles
Taking the interface function as an example for setting the audio track, the corresponding code is implemented as follows:
Figure GDA0003036810700000161
Figure GDA0003036810700000171
the above is the code implementation for realizing the setting of the audio track, and other extension functions are different only in corresponding functional interfaces, but all implement the corresponding extension functions by calling the method function of the playing plug-in. The playing plug-in calls a standard interface (i.e. a standard invoke interface) of the multimedia player:
Status_t invoke(const Parcel&request,Parcel*reply)
the expanded functional interfaces are invoke interfaces, and the data transmission between the Android layers is Parcel. In brief, a Parcel is a container for storing read data, a binder inter-process communication (IPC) in the Android system uses a Parcel class to perform interaction between a client and a server, and data of an aid id (Android Interface Definition Language) is interacted through the Parcel. Parcel is realized in both Java space and C + +, and is read by directly using a memory in C/C + +, so that the Parcel is more efficient.
In the embodiment of the invention, the extended function set by the user is determined according to the execution parameter generated by the user setting, and the corresponding execution command is obtained to realize the extended function set by the user; therefore, the extended function set by the user is accurately determined, the extended function set by the user is realized, the audio and the video are output according to the extended function set by the user, the requirement of the user on the playing setting of the audio and the video is met, and the user experience is improved.
In addition, an embodiment of the present invention further provides a video player optimization apparatus, where the video player optimization apparatus includes:
the acquisition module is used for receiving an operation instruction of a user based on a file browsing interface of the playing terminal, and the video player interface acquires a file to be played and a playing instruction from the multimedia service layer;
the calling module is used for calling the hard decoding player defined by the chip extension according to the playing instruction by the video player;
and the hard decoding module is used for the video player to carry out hard decoding playing on the file to be played by adopting the hard decoding player.
Optionally, the calling module is further configured to:
defining enumeration values of players of various types in a function file of a multimedia player service layer;
in a function file of a multimedia player service layer, assigning the selected player type as an enumeration value of a hard decoding player defined by a chip extension;
and the multimedia player calls a multimedia player service layer based on the playing instruction so as to call the hard decoding player.
Optionally, the video player optimization apparatus includes an extended function module, where the extended function module is configured to:
the multimedia player acquires the execution parameters of the extended functions;
the hard decoding player management layer calls a function execution function of the hard decoding player;
and the multimedia player acquires the corresponding execution command of the extended function from the function class file according to the execution parameter based on the function execution function and processes the execution command so as to realize the extended function.
Optionally, the module is further configured to:
the multimedia player determines a target extended function to be called according to the execution parameters based on the function execution function;
and the multimedia player calls the execution command of the target extended function in the function class file to process based on the function execution function so as to realize the extended function.
Optionally, the extended function module is further configured to:
and the video player acquires the function class file defined by the extended function from the chip based on the playing plug-in.
Optionally, the extended function module is further configured to:
the multimedia player obtains a calling instruction of a playing plug-in to call a standard interface of the multimedia player;
and acquiring the execution parameters of the extended function for the standard interface based on the calling instruction.
Optionally, the obtaining module is further configured to:
after the video player interface receives a file position to be played, which is sent by the file browsing interface based on an operation instruction of a receiving user, starting a video player and acquiring the file position to be played;
the video player interface sends an acquisition instruction for acquiring the file to be played to a multimedia service layer according to the position of the file to be played;
and the video player interface acquires the file to be played and the playing instruction which are fed back by the multimedia service layer based on the acquisition instruction.
In addition, an embodiment of the present invention further provides a storage medium, where a video player optimization program is stored on the storage medium, and when executed by a processor, the video player optimization program implements the steps of the video player optimization method described above.
The specific implementation of the storage medium of the present invention may refer to the embodiments of the video player optimization method, which are not described herein again.
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 merely for description and do not represent the merits 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 or the portions contributing to the prior art 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 several instructions for enabling a playing terminal (e.g. a television, a mobile phone, a computer, etc.) 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 (8)

1. A video player optimization method, comprising:
receiving an operation instruction of a user based on a file browsing interface of a playing terminal, and acquiring a file to be played and a playing instruction from a multimedia service layer by a video player interface;
the video player calls a hard decoding player defined by the chip extension according to the playing instruction;
the video player comprises a multimedia player and a hard decoding player management layer;
the multimedia player obtains a calling instruction of a playing plug-in to call a standard interface of the multimedia player;
acquiring execution parameters of an extended function for the standard interface based on the calling instruction;
the hard decoding player management layer calls a function execution function of the hard decoding player;
the multimedia player acquires a corresponding execution command of the extended function from the function class file according to the execution parameter based on the function execution function to process so as to realize the extended function;
and the video player adopts the hard decoding player to carry out hard decoding playing on the file to be played.
2. The video player optimization method of claim 1, wherein the video player further comprises a multimedia player service layer;
the step that the video player calls the hard decoding player defined by the chip extension according to the playing instruction comprises the following steps:
defining enumeration values of players of various types in a function file of a multimedia player service layer;
in a function file of a multimedia player service layer, assigning the selected player type as an enumeration value of a hard decoding player defined by a chip extension;
and the multimedia player calls a multimedia player service layer based on the playing instruction so as to call the hard decoding player.
3. The video player optimization method of claim 1, wherein the step of the multimedia player acquiring the corresponding execution command of the extended function from the function class file according to the execution parameter for processing based on the function execution function to realize the extended function comprises:
the multimedia player determines a target extended function to be called according to the execution parameters based on the function execution function;
and the multimedia player calls the execution command of the target extended function in the function class file to process based on the function execution function so as to realize the extended function.
4. The video player optimization method of claim 1, wherein the step of the multimedia player obtaining the corresponding execution command of the extended function from the function class file according to the execution parameter for processing based on the function execution function to realize the extended function further comprises:
and the video player acquires the function class file defined by the extended function from the chip based on the playing plug-in.
5. The video player optimization method of claim 1, wherein the file browsing interface based on the playing terminal receives an operation instruction of a user, and the step of the video player interface acquiring the file to be played and the playing instruction from the multimedia service layer comprises:
after the video player interface receives a file position to be played, which is sent by the file browsing interface based on an operation instruction of a receiving user, starting a video player and acquiring the file position to be played;
the video player interface sends an acquisition instruction for acquiring the file to be played to a multimedia service layer according to the position of the file to be played;
and the video player interface acquires the file to be played and the playing instruction which are fed back by the multimedia service layer based on the acquisition instruction.
6. A video player optimization apparatus, comprising:
the acquisition module is used for receiving an operation instruction of a user based on a file browsing interface of the playing terminal, and the video player interface acquires a file to be played and a playing instruction from the multimedia service layer;
the calling module is used for calling the hard decoding player defined by the chip extension according to the playing instruction by the video player;
the hard decoding module is used for the video player to carry out hard decoding playing on the file to be played by adopting the hard decoding player;
the video player comprises a multimedia player and a hard decoding player management layer;
and the extended function module is used for the multimedia player to obtain a calling instruction for calling a standard interface of the multimedia player by a playing plug-in, based on the calling instruction, obtaining an execution parameter of an extended function for the standard interface, calling a function execution function of the hard decoding player by a management layer of the hard decoding player, and based on the function execution function, the multimedia player obtains a corresponding execution command of the extended function from a function class file according to the execution parameter to process so as to realize the extended function.
7. A cast terminal, characterized in that the cast terminal comprises: memory, a processor and a video player optimization program stored on the memory and executable on the processor, the video player optimization program when executed by the processor implementing the steps of the video player optimization method according to any one of claims 1 to 5.
8. A storage medium having stored thereon a video player optimization program which, when executed by a processor, implements the steps of the video player optimization method of any one of claims 1 to 5.
CN201811604799.XA 2018-12-26 2018-12-26 Video player optimization method and device, playing terminal and storage medium Active CN109640192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811604799.XA CN109640192B (en) 2018-12-26 2018-12-26 Video player optimization method and device, playing terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811604799.XA CN109640192B (en) 2018-12-26 2018-12-26 Video player optimization method and device, playing terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109640192A CN109640192A (en) 2019-04-16
CN109640192B true CN109640192B (en) 2021-07-20

Family

ID=66077984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811604799.XA Active CN109640192B (en) 2018-12-26 2018-12-26 Video player optimization method and device, playing terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109640192B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333808A (en) * 2014-11-14 2015-02-04 复旦大学 General player applied to Android and Linux smart televisiosn
CN104754349A (en) * 2013-12-25 2015-07-01 炫一下(北京)科技有限公司 Method and device for hardware decoding of audio/video
CN105721921A (en) * 2016-01-29 2016-06-29 四川长虹电器股份有限公司 Self-adaptive selection method for multi-window video decoder
CN106791546A (en) * 2017-01-04 2017-05-31 腾讯科技(深圳)有限公司 media data playing method and device
CN108184163A (en) * 2017-12-29 2018-06-19 深圳华侨城卡乐技术有限公司 A kind of video broadcasting method, storage medium and player

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130077690A1 (en) * 2011-09-23 2013-03-28 Qualcomm Incorporated Firmware-Based Multi-Threaded Video Decoding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754349A (en) * 2013-12-25 2015-07-01 炫一下(北京)科技有限公司 Method and device for hardware decoding of audio/video
CN104333808A (en) * 2014-11-14 2015-02-04 复旦大学 General player applied to Android and Linux smart televisiosn
CN105721921A (en) * 2016-01-29 2016-06-29 四川长虹电器股份有限公司 Self-adaptive selection method for multi-window video decoder
CN106791546A (en) * 2017-01-04 2017-05-31 腾讯科技(深圳)有限公司 media data playing method and device
CN108184163A (en) * 2017-12-29 2018-06-19 深圳华侨城卡乐技术有限公司 A kind of video broadcasting method, storage medium and player

Also Published As

Publication number Publication date
CN109640192A (en) 2019-04-16

Similar Documents

Publication Publication Date Title
US9451319B2 (en) Streaming digital content with flexible remote playback
US8875204B2 (en) Information processor, information processing method and program
US10225613B2 (en) Method and apparatus for video playing processing and television
CN111464844A (en) Screen projection display method and display equipment
WO2021135537A1 (en) Live broadcast content introduction method and apparatus, storage medium and device
US10965969B2 (en) Method and apparatus for playing online television program
US10728486B2 (en) Smart television playing method and device
CN111601135B (en) Method for synchronously injecting audio and video elementary streams and display equipment
US11350151B2 (en) Methods, systems and devices that enable a user of a mobile phone to select what content is displayed on a screen of a consumer electronic device on display
CN112367558A (en) Application start-up acceleration method, intelligent playing device and storage medium
US9009760B2 (en) Provisioning interactive video content from a video on-demand (VOD) server
JP2013511761A (en) Rendering web pages with plug-in content
KR102634147B1 (en) Receiver device with native broadcaster application
CN109640192B (en) Video player optimization method and device, playing terminal and storage medium
JP2009303062A (en) Broadcast receiving terminal, broadcast data synthesizing method, program and recording medium
CN113965785A (en) Resource synchronous playing method and display equipment
KR102459197B1 (en) Method and apparatus for presentation customization and interactivity
CN112261463A (en) Display device and program recommendation method
CN111479144A (en) Display device and application interaction method
KR20160048430A (en) Digital device and method of processing data thereof
CN111654753B (en) Application program starting method and display device
JP5896221B2 (en) Information processing method, information processing apparatus, and information processing system
US20230412890A1 (en) Refreshing method and display apparatus
CN117812370A (en) Multimedia file playing method and device and electronic equipment
CN103647979A (en) Method and device for processing remote subtitles of intelligent television and media player thereof

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