CN-122027809-A - Display equipment and local video playing method
Abstract
The application provides display equipment and a local video playing method, relates to the field of video playing, and aims to solve the problems that in the prior art, the playing time of local video is long, a user sees a buffer ring or a black screen picture for a long time, and the use experience of the user is poor. The display equipment and the local video playing method provided by the embodiment of the application can effectively reduce the total time consumption of local video playing and improve the use experience of a user when playing the local video.
Inventors
- MA LIKAI
- ZHANG RUIJI
Assignees
- 海信视像科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20241111
Claims (9)
- 1. A display device, characterized by comprising: a display configured to display a playback interface; a controller coupled with the display and configured to: Simultaneously creating a skin view SurfaceView and a video player; configuring the skin view in the video player; Initializing a decoder and decapsulating original video stream data of a local video, wherein the decoder is used for decoding the original stream data of the local video to obtain data to be played; And controlling the display to play the data to be played through the video player on the playing interface.
- 2. The display device of claim 1, wherein prior to the simultaneous creation of the skin view and the video player, the controller is further configured to: determining the playing interface in response to a first event instruction, wherein the first event instruction comprises a key KeyDown pressing event instruction; and after the playing interface is determined, controlling the display to display the playing interface.
- 3. The display device of claim 2, wherein the controller creates a skin view in the playback interface, specifically configured to: determining the control of the surface layer view from the layout file of the playing interface; Creating an instance of the surface view according to the control of the surface view; and configuring the execution parameters of the surface layer view, wherein the execution parameters of the surface layer view comprise position information and capacity information of the surface layer view.
- 4. A display device according to claim 3, wherein the controller creates a video player in the play interface, specifically configured to: determining a player type of the video player; creating a player instance of the video player according to the player type of the video player; And configuring execution parameters of the video player, wherein the execution parameters comprise a file path and a playing mode of the local video.
- 5. The display device of claim 4, wherein prior to the simultaneously initializing the decoder and decapsulating the raw video stream data for the local video, the controller is further configured to: Preloading a plurality of decoder libraries, wherein the categories of the plurality of decoder libraries comprise a video stream decoder library, an audio stream decoder library, a subtitle stream decoder library and an auxiliary stream decoder library.
- 6. The display device of claim 5, wherein the controller initializes a decoder, specifically configured to: determining a plurality of target decoder libraries from the plurality of decoder libraries according to the encoding format of the local video and the original stream data; and calling an Application Programming Interface (API) of each target decoder library, and asynchronously initializing the decoders.
- 7. The display device of claim 6, wherein the controller decapsulates raw video stream data of the local video, specifically configured to: Determining a decapsulation library or a decapsulation tool according to the encoding format of the local video; And decapsulating the original video stream data of the local video by using the decapsulation library or the decapsulation tool to obtain the data to be played.
- 8. The display device according to any one of claims 1 to 7, wherein the data to be played includes video stream data, audio stream data, subtitle stream data, auxiliary stream data of the local video.
- 9. A local video play-up method, comprising: simultaneously creating a surface view and a video player; configuring the skin view in the video player; Initializing a decoder and decapsulating original video stream data of a local video, wherein the decoder is used for decoding the original stream data of the local video to obtain data to be played; And controlling a display to play the data to be played through the video player on a playing interface.
Description
Display equipment and local video playing method Technical Field The application relates to the technical field of video playing, in particular to a display device and a local video playing method. Background At present, when a user needs to play a local video stored in a display device, a background video playing system of the display device detects a key operation of a remote controller used by the user to create a player. Then, the display device opens the original file of the local video selected by the user, and then performs a series of operations such as reading, decapsulating, sending the decapsulated file to the decoder for decoding, and finally playing the decoded local video by the player. Further, after the series of operations are performed, the local video is actually played. Therefore, in the current local video playing scheme, the time consumption is long before the local video is successfully played, so that a user can see a buffer ring or a black screen picture for a long time, and the use experience of the user is poor. Disclosure of Invention In order to solve the technical problems, the application provides a display device and a local video playing method, which are used for solving the problems that in the prior art, the time for playing local video is long, a user sees a buffer ring or a black screen picture for a long time, and the use experience of the user is poor. The technical scheme of the application is as follows: The application provides display equipment which is characterized by comprising a display, a controller and a display, wherein the display is configured to display a playing interface, the controller is coupled with the display and is configured to simultaneously create a surface layer view SurfaceView and a video player, configure the surface layer view in the video player, simultaneously initialize a decoder and decapsulate original video stream data of local video, the decoder is used for decoding the original stream data of the local video to obtain data to be played, and the display is controlled to play the data to be played through the video player at the playing interface. The technical scheme has the advantages that the embodiment of the application simultaneously creates the surface layer view and creates the video player, the creation flows of the surface layer view and the creation video player are independent and are not influenced by the creation flow of the other party, the problem that the overall flow is executed with long time consumption when only one creation process has long time consumption in the creation process of the surface layer view and the video player is avoided, and the problem that the overall flow is executed with long time consumption when only one flow has long time consumption in the execution process of the initial decoder and the original flow data of the unpacked local video is avoided because the two flows are independently and simultaneously carried out, the influence of the execution of the other party is avoided, and the problem that the overall flow is executed with long time consumption when only one flow has long time consumption in the execution process of the initial decoder and the original flow data of the unpacked local video is avoided. Furthermore, the application can effectively reduce the total time consumption of playing the local video and improve the use experience of the user when playing the local video. In some embodiments, prior to simultaneously creating the skin view and the video player, the controller is further configured to determine a playback interface in response to a first event instruction, wherein the first event instruction includes a press key KeyDown event instruction, and after determining the playback interface, control the display to display the playback interface. The technical scheme has the advantages that the event instruction responded by the controller is the key event instruction pressing instead of the key event instruction releasing, so that the time consumed by the process can be reduced in the process of determining the playing interface in response to the event instruction. In some embodiments, the controller creates a skin view in the playback interface, specifically configured to: The method comprises the steps of determining a control of a surface layer view from a layout file of a playing interface, creating an instance of the surface layer view according to the control of the surface layer view, and configuring execution parameters of the surface layer view, wherein the execution parameters of the surface layer view comprise position information and capacity information of the surface layer view. The technical scheme has the advantages that the surface layer view can be created, and then the playing interface of the local video which needs to be played can be carried. In some embodiments, the controller creates a video player in the playing interface and is specifically