CN117768681A - Display equipment and media asset playing method - Google Patents

Display equipment and media asset playing method Download PDF

Info

Publication number
CN117768681A
CN117768681A CN202310300848.5A CN202310300848A CN117768681A CN 117768681 A CN117768681 A CN 117768681A CN 202310300848 A CN202310300848 A CN 202310300848A CN 117768681 A CN117768681 A CN 117768681A
Authority
CN
China
Prior art keywords
playing
media asset
target
fragment
media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310300848.5A
Other languages
Chinese (zh)
Inventor
丁浩
王宝云
周娣
于松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Jukanyun Technology Co ltd
Original Assignee
Qingdao Jukanyun Technology 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 Qingdao Jukanyun Technology Co ltd filed Critical Qingdao Jukanyun Technology Co ltd
Priority to CN202310300848.5A priority Critical patent/CN117768681A/en
Publication of CN117768681A publication Critical patent/CN117768681A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a display device and a media asset playing method, wherein the display device comprises a display and a controller, and the controller is configured to receive an input playing instruction of a target media asset; generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter; receiving media asset playing data returned by the server; when the media asset playing data comprises a first address of a server end and does not comprise a second address of a display device end, acquiring a first video file of the media asset fragment from the first address, decoding the first video file according to a playing key to obtain first video stream data, and controlling a display to play the first video stream data; and when the media asset playing data comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data. The method and the device improve fluency of video playing.

Description

Display equipment and media asset playing method
Technical Field
The application relates to the field of reserved playing, in particular to a display device and a media asset playing method.
Background
With the development of video industry, ultra-high definition video supporting 4K, 8K and other definition is more and more. The file volume of the ultra-high definition video is large, and a high network bandwidth is required during playing. Some ultra-high definition videos, such as hot movies, are typically updated at regular intervals, and when hot movies are updated, a large number of users watch in a relatively concentrated time, which puts a higher strain on network bandwidth.
In order to solve the above problems, the content provider of the ultra-high definition video generally adopts measures such as pushing the file of the ultra-high definition video to the IDC (Internet Data Center ) room at the most edge layer of the network in advance to optimize the downloading function at the server side or adopting measures such as compressing the video code rate of the ultra-high definition video. However, these measures have problems: pushing the file of the ultra-high definition video to the most edge layer of the network, and cannot solve the problem of network congestion between an IDC machine room and a home network; and increasing the compressed video code rate can reduce the image quality of the ultra-high definition video, and influence the user experience. Therefore, the above measures cannot well solve the problem of playing stuck ultra-high definition video.
Disclosure of Invention
In order to improve the play fluency of the ultra-high definition video, the application provides display equipment and a media resource play method.
In a first aspect, the present application provides a display device comprising:
a display;
a controller in communication with the display, the controller configured to:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a media asset fragment list, and the media asset fragment list comprises playing addresses of media asset fragments;
when the playing address of the media resource fragment comprises a first address of a server end and does not comprise a second address of a display equipment end, acquiring a first video file of the media resource fragment from the first address, decoding the first video file according to the playing key to obtain first video stream data, and controlling the display to play the first video stream data;
And when the playing address of the media asset fragment comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data.
In some embodiments, the controller is further configured to:
before receiving the play instruction, receiving an input reservation downloading instruction of the target media asset;
responding to the reserved downloading instruction, and determining a target fragment to be downloaded of the target media asset;
storing the video file of the target fragment of the server side to a preset storage device, wherein the video file is an encrypted file corresponding to the playing key;
and sending a first address of the target fragment on the preset storage device to a server, so that the server adds the first address in a media resource fragment list of the target media resource.
In some embodiments, determining the target segment of the media asset corresponding to the reservation download instruction includes:
acquiring a first fragment of the target media asset, wherein the predicted playing speed of the first fragment is greater than the predicted downloading speed in a reserved period, and acquiring a target fragment set containing fragment information of the first fragment;
And deleting or expanding the target fragment set according to the reserved downloading limit time length of the target media asset.
In some embodiments, the deleting or expanding the target fragment set according to the reserved downloading limit duration of the target media asset includes:
when the total duration of all the first fragments is smaller than the reserved downloading limit duration of the target media resource, adding the fragment information of the media resource fragments to the target fragment set according to the fragment sequence of the target media resource;
and deleting part of the first fragment information from the target fragment set according to the fragment sequence of the target media asset and the predicted playing speed of the reserved time period of the fragments when the total time length of all the first fragments is longer than the reserved downloading limit time length of the target media asset.
In some embodiments, storing the video file of the target slice at the server side in a preset storage device includes:
before reaching the latest download starting time corresponding to the reserved download instruction, verifying whether the preset storage device is in communication connection with the display device;
if the target storage device is in communication connection with the display device, a downloading instruction is sent to the target storage device, so that the target storage device starts downloading the target fragments;
And if the target storage device is not in communication connection with the display device, generating prompt information for connecting the target storage device with the display device in communication.
In some embodiments, the controller is further configured to:
and deleting the second video file of the second address when the second video file of the second address is completely played.
In a second aspect, the present application provides a display device comprising:
a display;
a controller in communication with the display, the controller configured to:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a first media asset fragment list;
acquiring a second media asset fragment list corresponding to the target media asset on a preset storage device;
replacing a first address of a target fragment in the first media resource fragment list with a second address of the target fragment in the second media resource fragment list, wherein the target fragment is the same media resource fragment in the first media resource fragment list and the second media resource fragment list;
Acquiring a video file of the media resource fragment according to the replaced first media resource fragment list;
and decoding the video file according to the playing key and controlling the display to play the decoded video stream data.
In some embodiments, the controller is further configured to:
before receiving an input playing instruction of the target media asset, receiving an input reservation downloading instruction of the target media asset;
responding to the reserved downloading instruction, and determining a target fragment to be downloaded of the target media asset;
storing the video file of the target fragment at the server end to a preset storage device, and generating the second media resource fragment list, wherein the video file is an encrypted file corresponding to the playing key.
In a third aspect, the present application provides a media asset playing method, where the method includes:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
Receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a media asset fragment list, and the media asset fragment list comprises playing addresses of media asset fragments;
when the playing address of the media resource fragment comprises a first address of a server end and does not comprise a second address of a display equipment end, acquiring a first video file of the media resource fragment from the first address, decoding the first video file according to the playing key to obtain first video stream data, and controlling a display to play the first video stream data;
and when the playing address of the media asset fragment comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data.
In a fourth aspect, the present application provides a media asset playing method, where the method includes:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
Receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a first media asset fragment list;
acquiring a second media asset fragment list corresponding to the target media asset on a preset storage device;
replacing a first address of a target fragment in the first media resource fragment list with a second address of the target fragment in the second media resource fragment list, wherein the target fragment is the same media resource fragment in the first media resource fragment list and the second media resource fragment list;
acquiring a video file of the media resource fragment according to the replaced first media resource fragment list;
and decoding the video file according to the playing key and playing the decoded video stream data.
The display device and the media asset playing method provided by the application have the beneficial effects that:
according to the embodiment of the application, the video files of the partial media asset fragments of the media asset are downloaded to the preset storage device in advance before the media asset is played, so that the display device can acquire the pre-stored video files from the preset storage device when playing the media asset, and the video files of all the media asset fragments do not need to be downloaded from the server, and the speed of downloading the video files from the preset storage device is faster than the speed of downloading the video files from the server, so that the overall downloading speed of the video files can be improved, and the fluency of playing the media asset can be improved; in addition, only partial video files of the media asset fragments are downloaded to the preset storage device, instead of downloading all video files of the media asset fragments, and the downloaded video files can be decoded and played only by requesting a playing key from a server when being played, so that the content protection of the media asset is facilitated, and the content leakage of the media asset is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the implementation in the related art, a brief description will be given below of the drawings required for the embodiments or the related art descriptions, and it is apparent that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings for those of ordinary skill in the art.
A schematic diagram of an operational scenario between a display device and a control apparatus according to some embodiments is schematically shown in fig. 1;
a hardware configuration block diagram of the control apparatus 100 according to some embodiments is exemplarily shown in fig. 2;
a hardware configuration block diagram of a display device 200 according to some embodiments is exemplarily shown in fig. 3;
a schematic diagram of the software configuration in a display device 200 according to some embodiments is exemplarily shown in fig. 4;
a schematic system architecture diagram of media asset reservation and playback according to some embodiments is schematically shown in fig. 5;
a flow diagram of a media asset reservation method according to some embodiments is illustrated in fig. 6;
a timing diagram of a media asset reservation process according to some embodiments is illustrated in fig. 7;
a flow diagram of a method of pre-download of media assets according to some embodiments is illustrated in fig. 8;
A flow diagram of a media playback method according to some embodiments is shown schematically in fig. 9;
a flow diagram of a media playback method according to some embodiments is schematically shown in fig. 10;
a flow diagram of a method of content management of pre-downloaded media assets according to some embodiments is illustrated in fig. 11.
Detailed Description
For purposes of clarity and implementation of the present application, the following description will make clear and complete descriptions of exemplary implementations of the present application with reference to the accompanying drawings in which exemplary implementations of the present application are illustrated, it being apparent that the exemplary implementations described are only some, but not all, of the examples of the present application.
It should be noted that the brief description of the terms in the present application is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms "first," second, "" third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for limiting a particular order or sequence, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The display device provided in the embodiment of the application may have various implementation forms, for example, may be a television, an intelligent television, a laser projection device, a display (monitor), an electronic whiteboard (electronic bulletin board), an electronic desktop (electronic table), and the like. Fig. 1 and 2 are specific embodiments of a display device of the present application.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 1, a user may operate the display device 200 through the smart device 300 or the control apparatus 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or bluetooth protocol communication, and other short-range communication modes, and the display device 200 is controlled by a wireless or wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc.
In some embodiments, a smart device 300 (e.g., mobile terminal, tablet, computer, notebook, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on a smart device.
In some embodiments, the display device may receive instructions not using the smart device or control device described above, but rather receive control of the user by touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 device for acquiring voice commands, or the voice command control of the user may be received through a voice control device configured outside the display device 200 device.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be permitted to make communication connections via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200. The server 400 may be a cluster, or may be multiple clusters, and may include one or more types of servers.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 in accordance with an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, and function as an interaction between the user and the display device 200.
As shown in fig. 3, the display apparatus 200 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
In some embodiments the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, a first interface for input/output to an nth interface.
The display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, displaying video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
The display 260 may be a liquid crystal display, an OLED display, a projection device, or a projection screen.
The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The display device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
A user interface, which may be used to receive control signals from the control device 100 (e.g., an infrared remote control, etc.).
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for capturing the intensity of ambient light; alternatively, the detector 230 includes an image collector such as a camera, which may be used to collect external environmental scenes, user attributes, or user interaction gestures, or alternatively, the detector 230 includes a sound collector such as a microphone, or the like, which is used to receive external sounds.
The external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, or the like. The input/output interface may be a composite input/output interface formed by a plurality of interfaces.
The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like.
The controller 250 controls the operation of the display device and responds to the user's operations through various software control programs stored on the memory. The controller 250 controls the overall operation of the display apparatus 200. For example: in response to receiving a user command to select a UI object to be displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments the controller includes at least one of a central processing unit (Central Processing Unit, CPU), video processor, audio processor, graphics processor (Graphics Processing Unit, GPU), RAM Random Access Memory, RAM), ROM (Read-Only Memory, ROM), first to nth interfaces for input/output, a communication Bus (Bus), and the like.
The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
A "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user, which enables conversion between an internal form of information and a user-acceptable form. A commonly used presentation form of the user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
Referring to FIG. 4, in some embodiments, the system is divided into four layers, from top to bottom, an application layer (referred to as an "application layer"), an application framework layer (Application Framework layer) (referred to as a "framework layer"), a An Zhuoyun row (Android run) and a system library layer (referred to as a "system runtime layer"), and a kernel layer, respectively.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, or the like; or may be an application developed by a third party developer. In particular implementations, the application packages in the application layer are not limited to the above examples.
The framework layer provides an application programming interface (application programming interface, API) and programming framework for the application. The application framework layer includes a number of predefined functions. The application framework layer corresponds to a processing center that decides to let the applications in the application layer act. Through the API interface, the application program can access the resources in the system and acquire the services of the system in the execution.
As shown in fig. 4, the application framework layer in the embodiment of the present application includes a manager (manager), a Content Provider (Content Provider), and the like, where the manager includes at least one of the following modules: an Activity Manager (Activity Manager) is used to interact with all activities that are running in the system; a Location Manager (Location Manager) is used to provide system services or applications with access to system Location services; a Package Manager (Package Manager) for retrieving various information about an application Package currently installed on the device; a notification manager (Notification Manager) for controlling the display and clearing of notification messages; a Window Manager (Window Manager) is used to manage bracketing icons, windows, toolbars, wallpaper, and desktop components on the user interface.
In some embodiments, the activity manager is used to manage the lifecycle of the individual applications as well as the usual navigation rollback functions, such as controlling the exit, opening, fallback, etc. of the applications. The window manager is used for managing all window programs, such as obtaining the size of the display screen, judging whether a status bar exists or not, locking the screen, intercepting the screen, controlling the change of the display window (for example, reducing the display window to display, dithering display, distorting display, etc.), etc.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the kernel layer contains at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (e.g., fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply drive, etc.
The hardware or software architecture in some embodiments may be based on the description in the foregoing embodiments, and in some embodiments may be based on other similar hardware or software architectures, which may implement the technical solutions of the present application.
In some embodiments, to facilitate the user to watch the video in time, the vod program on the display device 200 provides a reservation function for the video that is not updated, and when the user reaches the reserved time after watching the video at a certain time after the video is updated, if the display device 200 is in a power-on state, the user is prompted to play the reserved video, so as to avoid the user missing to watch the reserved video due to watching other videos.
In some embodiments, in order to improve the playing fluency of the ultra-high definition video with the definition of 4K, 8K, etc., the display device 200 provides a reserved downloading function of the ultra-high definition video, for the ultra-high definition video scheduled to be downloaded by a user, the display device 200 may download, before playing the ultra-high definition video, the video file of a part of the media asset fragments of the ultra-high definition video from the server in advance, so that when playing the ultra-high definition video, it is unnecessary to download the video file of all the media asset fragments of the ultra-high definition video from the server, only the video file of the media asset fragments that are not downloaded in advance needs to be downloaded, thereby reducing the pressure of the video file download on the network bandwidth during playing the ultra-high definition video, and improving the playing fluency of the ultra-high definition video.
It should be noted that, the user reserves the downloaded video file to play the video file in decoding mode only by using the playing key, and the playing key is provided by the content provider of the video when the display device 200 requests to play the video after the update time of the video is reached, so that the problem that the video content leaks before the update time is reached is solved.
In some embodiments, for a video with definition lower than 4K, such as 1080p video, a reserved downloading function may also be provided, so as to ensure smoothness of playing of the video with definition lower than 4K, thereby meeting the viewing requirements of users with low network bandwidth or users without authority to view definition of 4K, 8K, etc.
In some embodiments, for the ultra-high definition video reserved by the user, the display device 200 may download the video file of the partial media fragment of the ultra-high definition video onto the memory built in the display device 200, so that when the ultra-high definition video is played, the display device 200 may quickly load the video file pre-downloaded on the memory into the memory for decoding and playing.
In some embodiments, the memory built into the display device 200 may not be able to meet the storage requirements of the video file of the ultra-high definition video, and for ultra-high definition video scheduled for downloading by the user, the display device 200 may download the video file of the ultra-high definition video to an external storage device communicatively coupled to the display device 200. To ensure the rate at which the display device 200 obtains the pre-downloaded video file, the external storage device may be a storage device in the same lan as the display device 200, such as a hard disk, a computer, an intelligent device 300, etc. connected to the display device 200 by a wired connection or a wireless connection. Since the rate at which the display device 200 obtains the pre-downloaded video file from the external storage device in the local area network is generally higher than the rate at which the display device 200 downloads the video file of the media asset fragment from the server, pre-downloading the video file of the media asset fragment to the external storage device can improve the fluency of playing the media asset.
In some embodiments, after reserving the super-high definition video, the display device 200 may determine whether the memory built in the display device 200 meets the storage space required by pre-downloading the super-high definition video, if so, pre-download the video file of the partial media asset fragment of the super-high definition video to the memory built in the display device 200, if not, pre-download the video file of the partial media asset fragment of the super-high definition video to the external storage device of the display device 200, or jointly store the video file of the partial media asset fragment through the memory built in the display device 200 and the external storage device of the display device 200, so as to expand the storage space.
In some embodiments, the vod program on the display device 200, such as an application program that the display device 200 is turned on, may be provided with the reservation downloading function described above, and the reservation control may be provided on a media recommendation control of the vod program, or on a media detail page, and after the user clicks the reservation control, the pre-download setting may be performed.
In some embodiments, an external device connected to the display device 200, such as a display device control program on the smart device 300, may be provided with the reservation downloading function described above, and a reservation control may be provided on a media recommendation control of an application program of the display device 200, or on a media detail page, and after the user clicks the reservation control, a pre-download setting may be performed.
The following describes a video reservation and a play flow based on the reserved download function, taking the smart device 300 as an example of providing the reserved download function, and the storage function of the pre-downloaded video file by the external storage device of the display device 200.
Referring to fig. 5, a schematic diagram of a system architecture for media reservation and playback according to some embodiments is shown in fig. 5, where the system architecture includes a display device 200, a smart device 300, a server 400, and a computer 500.
In some embodiments, the display device 200 is used for displaying and playing ultra-high definition video, the hardware structure of the display device 200 may be referred to fig. 3, and the software architecture of the display device 200 may be referred to fig. 4, where the software of the application layer includes a video on demand program.
In some embodiments, computer 500 is an external storage device of display device 200 for storing pre-downloaded video files.
In some embodiments, the smart device 300 may control the display device 200, and the smart device 300 is provided with a display device control program for performing control of pre-download control, play control, and the like on the display device 200.
In some embodiments, computer 500 and display device 200 are within the same local area network.
Based on the system architecture shown in fig. 5, fig. 6 shows a flow diagram of a media asset reservation method according to some embodiments, as shown in fig. 6, which may include the following steps:
step S101: before receiving the playing instruction, receiving an input reservation downloading instruction of the target media asset.
In some embodiments, a user may select a video via the smart device and reserve the video for playback on the display device at a specified time, the user selected video being the target media asset. A reservation control may be set on a video detail page in a display device control program of the intelligent device, and after a user clicks the reservation control, the display device may generate and display a reservation interface, where the reservation interface may be set with a reservation parameter control and a confirmation control, where the reservation parameter control is used to determine a reservation parameter.
By way of example, the reservation parameter controls may include a sharpness control and a reservation time control, the sharpness control may display a default sharpness, such as 4k or 1080p, wherein a user may click on the sharpness control to change sharpness, reserving a time period for which the video is played on the display device by clicking on the reservation time control.
When the user changes the definition corresponding to the definition control to 4k or 8k, the reservation interface can also display the pre-download control. If the user clicks the pre-download control and then clicks the confirmation control, a media resource reservation downloading instruction can be input to the display device, when a reserved time period is reached, the display device generates prompt information to prompt the user to watch the reserved video, an immediate watching control can be arranged in the prompt information, the user clicks the immediate watching control, the display device can jump to a playing interface of the reserved video, and the display device plays the reserved video according to the pre-downloaded video file and the video file which is not downloaded on the server.
When the user changes the definition corresponding to the definition control to 1080p or lower resolution, the pre-download control is not displayed on the reservation interface. If the user clicks the confirmation control, a media resource reservation instruction is input to the display device, the display device responds to the media resource reservation instruction, the video fragments are not downloaded in advance, prompt information is generated only when a reserved time period is reached, so that the user is prompted to watch the reserved video, an immediate watching control can be arranged in the prompt information, the user clicks the immediate watching control, the display device can jump to a playing interface of the reserved video, and the display device plays the reserved video according to the fragments which are not downloaded on the server.
Step S102: and responding to the reserved downloading instruction, and determining the target fragments to be downloaded of the target media asset.
In some embodiments, after receiving the instruction for reserved downloading, the display device may first determine that the target media asset needs to be pre-downloaded.
In some embodiments, the target clip may be a clip of the target asset that lasts for a period of time from a start play position, where the start play position may be an end position of the clip if the target asset or display device is configured to skip the clip and the tail when playing, and the start play position may be the start position of the clip if the target asset or display device is configured to not skip the clip and the tail when playing.
In some embodiments, some assets set a free viewing period of a non-member for copyright reasons, etc., and for such assets, the target shards may be set as shards within the free viewing period.
In some embodiments, the target slice may also be a slice determined according to other conditions, such as a slice determined according to a comparison of a predicted download speed and a predicted play speed of the slice during the reserved period.
Step S103: storing the video file of the target fragment of the server side to a preset storage device, wherein the video file is an encrypted file corresponding to the playing key.
In some embodiments, after determining the target shard, the video file of the target shard may be downloaded to a preset storage device, where the downloaded video file is an encrypted file that needs a playing key to be decoded, and the preset storage device is a storage device designated by a user when the target media asset is reserved for downloading or a default storage device. The preset storage device is illustratively an external storage device that is in the same local area network as the display device.
Step S104: and sending a first address of the target fragment on the preset storage device to a server, so that the server adds the first address in a media resource fragment list of the target media resource.
In some embodiments, after the video file of the target fragment is downloaded, the storage address of the video file of the target fragment on the preset storage device may be sent to the server, where the storage address is the second address of the video file of the target media resource at the display device end, and the storage address of the video file of the target media resource at the server end is the first address, and the display device end refers to a local end compared with the server end, and may be a display device, or may be an external storage device.
In some embodiments, after receiving the second address, the server may add the second address to the media asset fragmentation list of the media asset, where the media asset fragmentation list includes the first address of each media asset fragment of the target media asset at the server side.
By the method shown in fig. 6, the first address and the second address of the video file of the target fragment and the first address of the non-target fragment are stored in the media resource fragment list on the server. When the target media asset is played, the server can feed back the media asset fragment list to the display device, so that the display device can obtain the video files of the target fragments from the second address preferentially, and because the display device and the preset storage device corresponding to the second address are in the same local area network, compared with the video files of the target fragments obtained from the first address, the efficiency of obtaining the video files of the target fragments from the second address is higher, and the overall fluency of video playing is improved.
In some embodiments, after downloading the video file of the target fragment, a second media resource fragment list may be generated according to a second address of the video file of the target fragment on the preset storage device, where the media resource fragment list of the media resource on the server is the first media resource fragment list. When the video is played, the server feeds back the first media resource slicing list to the display equipment, the display equipment can replace the first address of the target slicing in the first media resource slicing list with the second address corresponding to the same slicing in the second media resource slicing list according to the second media resource slicing list and the storage address of the video file of the target slicing contained in the first media resource slicing list, and media resource playing is carried out according to the replaced first media resource slicing list, so that the overall fluency of video playing is improved. Or, the display device may not replace the first media resource slicing list, but compare the media resource slicing in the first media resource slicing list and the second media resource slicing list, and when determining that a certain media resource slicing has a storage address in both the first media resource slicing list and the second media resource slicing list, preferentially acquire the storage address from the second media resource slicing list, thereby improving the overall fluency of video playing.
If the preset storage device is not networked and the video files of the target fragments downloaded in advance are deleted or damaged, the display device cannot acquire the video files of the target fragments from the storage addresses in the second media fragment list on the preset storage device, and the display device can acquire the video files of the target fragments according to the first addresses in the first media fragment list.
For further explanation of the media asset reservation process, referring to fig. 7, a timing diagram of the media asset reservation process according to some embodiments is also shown in embodiments of the present application.
As shown in fig. 7, in some embodiments, a user may enter a reservation interface of a video on an intelligent device, and after receiving an entry operation of the reservation interface, the intelligent device sends a media reservation interface request to a server, where the media reservation interface request includes a media identifier, such as a media ID.
In some embodiments, after receiving the request of the reserved interface of the media asset, the server determines whether the media asset corresponding to the media asset identifier supports the reserved downloading function, where some media assets support the reserved downloading function, and some media assets do not support the reserved downloading function due to copyright, whether the user is a member, and the like.
In some embodiments, if the server determines that the media asset does not support the reserved downloading function, the server sends the first reserved interface data to the intelligent device, so that the intelligent device displays a first reserved interface, wherein the first reserved interface comprises a reserved time control and a confirmation control, and does not comprise a pre-downloading control.
In some embodiments, if the server determines that the media asset supports the reserved downloading function, continuing to determine whether the preset storage device is connected to the network, that is, whether the preset storage device is online, where the preset storage device is a storage device for storing the pre-downloaded video file, and a method of determining whether the preset storage device is online by the server may be determining whether the preset storage device is connected to the server in a communication manner, if the preset storage device is capable of being connected in a communication manner, it indicates that the preset storage device is online, and if the preset storage device is not online, it indicates that the preset storage device is not online.
In some embodiments, if the server determines that the preset storage device is not on-line, the server sends the first reservation interface data to the intelligent device, so that the intelligent device displays the first reservation interface, and may also generate a prompt message for enabling the preset storage device to be on-line, and send the prompt message to the intelligent device to prompt the user that the preset storage device is not on-line currently.
In some embodiments, if the server determines that the preset storage device is online, the second reservation interface data is sent to the intelligent device, so that the intelligent device displays the second reservation interface. The second reservation interface includes a reservation time control, a confirmation control, and a pre-download control.
In some embodiments, at the first subscription interface, the user may click on a subscription time control and a confirmation control to perform subscription setting, where the subscription setting is used to perform subscription play, and the intelligent device sends a subscription setting request to the server according to the subscription setting of the user, where the subscription setting request includes parameters such as a device ID, an IP address, and a media resource ID of the display device, and after receiving the subscription setting request, the server stores the subscription setting of the user and sends subscription success information to the intelligent device.
In some embodiments, at the second subscription interface, the user may click on the pre-download control to enter a pre-download settings interface for subscription settings for pre-download and subscription play. The pre-download setting interface is provided with a latest start time control of the pre-download task and a forced end time control of the pre-download task. Or after the user clicks the pre-download control, the intelligent device may display a latest start time control of the pre-download task and a forced end time control of the pre-download task on the second reservation interface.
The latest starting time control of the pre-downloading task is used for determining whether to end the pre-downloading task which is not started, and if the pre-downloading task is not started when the latest downloading starting time is reached, the server or the preset storage device or the intelligent device can directly end the pre-downloading task.
The pre-download task forced ending time control is used for determining whether to end the started pre-download task, if the pre-download task is not ended before the time, the server or the preset storage device or the intelligent device can forcedly end the pre-download task and save the video file of the downloaded media file fragments, and does not save the video file of the media file fragments which are not downloaded.
After the latest starting time control and the forced ending time control of the pre-downloading task are set by a user, the intelligent setting can send a reservation setting instruction to the server according to information set by the user, and after the reservation setting instruction is received by the server, the server judges whether the reservation setting instruction comprises the pre-downloading parameters such as the equipment ID, the IP address, the media resource ID, the reservation time, the latest starting time of the pre-downloading task, the forced ending time of the pre-downloading task and the like of the display equipment, if the pre-downloading parameters comprise the information, the pre-downloading parameters of the pre-downloading character are determined to be the parameters, and pre-downloading success information is sent to the intelligent setting to indicate that the pre-downloading setting is successful.
In some embodiments, after determining the pre-download parameter, the server determines whether the preset storage device is online again, and if so, sends a pre-download instruction to the preset storage device to enable the preset storage device to start pre-download; if the target preset storage device is not online, judging whether the latest starting time of the pre-downloading task is reached, and if the latest starting time of the pre-downloading task is not reached, sending prompt information waiting for online to the intelligent device, so that a user knows that the target preset storage device is not online, and the pre-downloading can fail.
Before the latest starting time of the pre-downloading task is reached, the server can continuously try to send a pre-downloading instruction to the preset storage device, and if a feedback message of the preset storage device is received, a message that the preset storage device is online is sent to the intelligent device. If the latest starting time of the pre-downloading task is reached, the preset storage device is not on line, and the server can send a prompt message of failure of pre-downloading to the intelligent device.
In some embodiments, a target fragment determining module is disposed on the server, and is configured to determine a pre-downloaded media fragment, where a pre-download instruction sent by the server to the preset storage device includes a fragment identifier, such as a fragment sequence number, of the media fragment to be pre-downloaded, so that the preset storage device can download a video file of the designated media fragment, i.e., the target fragment.
In some embodiments, the target tile determination module is configured to implement the following functions:
(1) And collecting the media downloading speed of the display device in the late peak period.
In some embodiments, the period during which the user reserves the playing of the media asset is usually a late peak period, so the media asset downloading speed of the display device during the late peak period can be collected in advance and used as a reference basis for predicting the media asset downloading speed of the user when the reserved media asset is played.
In some embodiments, the target shard determining module may be further configured to collect media download speeds for a plurality of preset time periods to meet the need to predict media download speeds for different time periods.
(2) And calculating the predicted downloading speed of the user when the user reserves to play according to the collected historical data of the downloading speed of the media asset.
In some embodiments, the predicted download speed may be calculated using a time series sequence prediction model such as ARIMA.
In some embodiments, other methods may be used to calculate the predicted download speed, for example, setting the predicted download speed to be the average of the collected media download speeds.
(3) A target tile for a certain pre-download is determined.
In some embodiments, the target fragment determination module screens out target fragments from media reserved by the user according to the following preset rule:
Presetting a rule I: the priority of the media resource fragments with high playing speed is higher than that of the media resource fragments with low playing speed; preset rule two: the priority of the media asset fragments with the front playing sequence is higher than that of the media asset fragments with the rear playing sequence (because the media asset fragments with the rear playing sequence have more sufficient time to download online after the media asset is opened); presetting a rule III: the total duration of all target fragments needs to be less than or equal to the reserved downloading limit duration so as to solve the problem of video medium theft. In general, even copyrighted video, a plurality of smaller video clips therein (e.g., 6 minutes of free time for the title, clips used in promotional trailers, etc.) can be played free.
According to the preset rule, the method for determining the target fragments by the target fragment determining module is as follows:
firstly, preset parameters of video reserved by a user are acquired.
In some embodiments, the video reserved by the user is video i, and when determining the target slice, the preset parameters to be acquired include: parameter p i Representing the proportion of the maximum allowable downloading time length of the video i to the total time length of the video i, wherein the video i is the video reserved by the user when calculating the target fragment of the video reserved by the user; parameter h i The last slice header slice of the video i is represented, and the slice number is smaller than h i Medium resource fragment and fragment number of (1) are h i The medium resource fragment belongs to the head fragment; parameter v ij Watch (Table)Showing the average playing speed of the jth slice in the video i; parameter v n Representing a predicted download speed of the video i of the display device at the reserved period; parameter t i Representing the total duration of video i; parameter t ij Representing the duration of the slice j in video i.
And secondly, acquiring a first fragment of the media asset, wherein the predicted playing speed of the first fragment is greater than the predicted downloading speed in a reserved period, and obtaining a target fragment set containing fragment information of the first fragment, wherein the fragment information can comprise fragment numbers.
In some embodiments, contrast v n V ij Acquisition of v ij >v n The set of j is sj= { j1, j2, j3 … }, at this time, the media fragment corresponding to the fragment number in Sj is the first fragment, and the media fragment set corresponding to Sj is the target fragment set.
Again, the total duration of all the first slices is calculated.
In some embodiments, the total time t for all slices in Sj is calculated Sj ,t Sj =∑t ij
And then, deleting or expanding the target fragment set according to the reserved downloading limit time length of the target media asset.
In some embodiments, when the total duration of all the first fragments is less than the reserved downloading limit duration of the media asset, adding the fragmentation information of the media asset fragments to the target fragment set according to the fragmentation sequence of the media asset.
That is, if t Sj <t i *p i The target slice is added, for example, slice information of the slice header slice is added to the set Sj as much as possible. For fragments numbered 1,2,3,4, … up to h i For the slice header slice not in Sj, sequentially adding its slice information to Sj one by one and simultaneously re-calculating t Sj Until all are less than h i The slice information of the slices of (a) is added into Sj or t Sj >=t i *p i Until (if t Sj >t i *p i The last added piece of media asset piece information needs to be deleted from the target piece set).
In some embodiments, when the total time period of all the first clips is longer than the reserved downloading limit time period of the media asset, deleting part of the clip information of the first clips from the target clip set according to the clip sequence of the target media asset and the predicted playing speed of the reserved time period of the clips.
That is, if t Sj >t i *p i And removing part of the fragmentation information of the media resource fragments from the Sj. First from j>h i The piece information of the part of the media resource pieces can be removed from the media resource pieces according to the average playing speed from low to high until t Sj <=t i *p i . If all j>h i The fragmentation information of the media resource fragments is removed and t is still Sj >t i *p i Then from the index h of the media resource fragment i Starting, slice information of slice header slices is removed from the target slice set in sequence from high to low until t Sj <=t i *p i
In some embodiments, the target set of tiles is not changed when the total length of time of all the first tiles is equal to the reserved download limit length of the media asset.
That is, if t Sj =t i *p i Then Sj is not changed.
And finally, determining the media resource fragment corresponding to the target fragment set as the target fragment.
In the above embodiment, for one video i, a reasonable threshold p may be determined by copyright requirements or the like i And h i The maximum amount of video clips available for downloading in single pre-downloading is controlled; secondly, the steps are repeated maliciously and repeatedly through a plurality of devices, and at most, the same fragments are obtained, namely, at p i And h i The partial fragments with highest playing speed under the limit can not be obtained through repeating the steps. Thus by setting p i And h i The security risk of the pre-download behaviour can be controlled. Generally, copyrighted content, the video clips of which are themselves encrypted; but even if the encryption is not performed, even if malicious cracking is consideredThe embodiment does not bring additional security risk and does not generate the problem that the medium in offline downloading is easier to leak.
In some embodiments, after receiving the pre-download instruction, the preset storage device may start to perform pre-download, where the pre-download process may refer to fig. 8, and includes the following steps:
Step S201: the pre-download is initiated.
Step S202: and judging whether the forced ending time of the pre-downloading task is reached.
Step S203: and if the information is reached, ending the pre-downloading and sending the pre-downloading interrupt information to the server and the intelligent equipment.
In some embodiments, if the preset storage device does not complete downloading of the video files of all the target clips when the forced ending time of the pre-downloading task is reached, the downloaded information of the target clips may be summarized to the second media asset clip list, the pre-downloading interrupt information including the second media asset clip list is generated, and the pre-downloading interrupt information is sent to the server and the intelligent device. The pre-download interruption information may be in json format.
Step S204: if not, continuing to download the video file of the target fragment.
Step S205: and judging whether the downloading of the video files of all the target fragments is completed.
In some embodiments, if the downloading of all the video files of the target clips is not completed, the process returns to step S202.
Step S206: and if the downloading of the video files of all the target fragments is completed, sending pre-downloading ending information to the server and the intelligent equipment.
In some embodiments, if the downloading of the video file of all the target clips is completed by the preset storage device before the forced end time of the pre-downloading task is reached, the downloaded information of the target clips may be summarized to the second media asset clip list, the pre-downloading end information including the second media asset clip list is generated, and the pre-downloading end information is sent to the server and the intelligent device. The pre-download ending information may be in json format, for example as follows:
{
"user id": ABC,
"video id": ABCDE,
"completed slice" { "slice 1": xxxxx/video/id123456slice1.Ts,
"slice 2": xxxxx/video/id123456slice2.Ts,
"slice 4": xxxxx/video/id123456slice4.Ts
}
}
Wherein, xxxxx represents an IP address of a preset storage device in a local area network, xxxxx/video/id123456slice1.Ts is a second address of a target slice with a slice number of 1, xxxxx/video/id123456slice2.Ts is a second address of a target slice with a slice number of 2, and xxxxx/video/id123456slice3.Ts is a second address of a target slice with a slice number of 3.
After the pre-download performed by the above embodiment, a method for playing the reserved video by the display device may refer to fig. 9, which includes the following steps:
step S301: and receiving an input playing instruction of the target media asset.
In some embodiments, when the reserved time of the video reserved by the user arrives, the display device may display prompt information to prompt the user to watch the reserved video, an immediate watching control may be set in the prompt information, and the user may input a playing instruction of the reserved media asset to the display device by clicking the immediate watching control.
In some embodiments, during the reserved time, the user may click to watch the reserved video from the video recommendation page or the reserved management interface of the display device, so as to input a play instruction of the reserved target media asset to the display device.
In some embodiments, the user may also send a play instruction of the target media asset to the display device through the smart device.
Step S302: and responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset.
In some embodiments, after receiving the play command, the display device sends a media asset play request to the server according to the media asset ID of the media asset corresponding to the asset play command. The media asset playing request comprises a playing authority parameter, wherein the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset, and the playing authority parameter can comprise parameters set by a content provider of the target video. Illustratively, the play right parameters may include a media asset ID, an application identification of the video on demand program, a user ID, and a current time.
Step S303: and receiving the media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a media asset fragment list, and the media asset fragment list comprises playing addresses of the media asset fragments.
In some embodiments, after receiving the media asset playing request, the server may determine, according to the playing authority parameter, whether the sender of the media asset playing request has authority to play the target media asset, for example, when the application identifier of the video on demand program is an application identifier specified by the content provider of the target video, the user ID is a member of the content provider, and when the current time reaches the playing time of the media asset corresponding to the media asset ID, it may determine that the sender of the media asset playing request has authority to play the target media asset, and may return the media asset playing data of the target media asset to the display device.
In some embodiments, the asset playing data may include a playing key of the target asset and a list of asset fragments, where the playing key of each asset fragment may be the same or different. The media resource slicing list in the media resource playing data is a first media resource slicing list, and comprises a first address of a video file of each media resource slicing on a server of a media resource content provider, for example, the following addresses are included:
{
"video id": ABCDE,
"slice": { "slice 1": xxxxxxx/video/id123456slice1.Ts,
"slice 2": xxxxxxx/video/id123456slice2.Ts,
"slice 3": xxxxxxx/video/id123456slice3.Ts,
"slice 4": xxxxxxx/video/id123456slice4.Ts,
"slice 5": xxxxxxxxxx/video/id 123456slice5.Ts
}
}
Wherein xxxxx represents a partial network play address of the video file of the media resource fragment 1 on the server of the media resource content provider, xxxxxxx/video/id 123458 slot 1.Ts represents a complete network play address of the video file of the media resource fragment 1 on the server of the media resource content provider, xxxxxxx/video/id 123458 slot 2.Ts represents a complete network play address of the video file of the media resource fragment 2 on the server of the media resource content provider, and so on.
In some embodiments, after receiving the play instruction, the display device further obtains a media asset slicing list of the media asset from the preset storage device, where the obtained media asset slicing list is a second media asset slicing list.
Step S304: and when the playing address of the media resource fragment comprises a first address of a server end and does not comprise a second address of a display equipment end, acquiring a first video file of the media resource fragment from the first address, decoding the first video file according to the playing key to obtain first video stream data, and controlling the display to play the first video stream data.
In some embodiments, after receiving a play instruction of the media asset, the display device starts a media asset slicing downloading flow and a media asset slicing playing flow respectively, where the media asset slicing downloading flow is used to load a video file of the media asset slicing into a specified path, for example, a memory of the display device, and the media asset slicing playing flow is used to decode and play the video file of the media asset slicing of the specified path.
When downloading a video file of a media resource fragment, such as a video file of a media resource fragment 1, the media resource fragment downloading flow obtains a second address of the video file of the media resource fragment in a second media resource fragment list, and if the second address cannot be obtained or the video file is not downloaded from the second address, the media resource fragment downloading flow obtains a first address of the media resource fragment in a first media resource fragment list, downloads the video file of the media resource fragment from the first address, and the video file is the first video file. And decoding the first video file according to the playing key by the media resource slicing playing flow to obtain first video stream data, and playing the first video stream data on a display when the media resource slicing is played.
Step S305: and when the playing address of the media asset fragment comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data.
In some embodiments, when downloading a video file of a media burst, such as a video file of media burst 2, the media burst downloading process obtains a second address of the video file of the media burst from a second media burst list, and if so, obtains the video file of the media burst from the second address, where the video file is a second video file. And decoding the second video file according to the playing key by the media resource slicing playing flow to obtain second video stream data, and playing the second video stream data on a display when the media resource slicing is played.
The embodiment of the application also provides another media asset playing method, referring to fig. 10, the method may include the following steps:
step S401: and receiving an input playing instruction of the target media asset.
Step S402: and responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset.
Step S403: and receiving the media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a first media asset fragment list.
In some embodiments, the preset storage device may not report the second address to the server, where the first media fragment list on the server does not include the second address.
Step S404: and acquiring a second media asset fragment list corresponding to the target media asset on a preset storage device.
In some embodiments, the display device may send a query instruction of the target media asset to the preset storage device, so that the preset storage device feeds back the second media asset fragment list of the target media asset to the display device.
Step S405: and replacing the first address of the target fragment in the first media resource fragment list with the second address of the target fragment in the second media resource fragment list, wherein the target fragment is the same media resource fragment in the first media resource fragment list and the second media resource fragment list.
In some embodiments, the display device may further replace the second address of the target shard in the second media asset shard list into the first media asset shard list after receiving the first media asset shard list and the second media asset shard list.
Step S406: and acquiring the video file of the media resource fragment according to the replaced first media resource fragment list.
In some embodiments, after replacing the first media asset shard list, the video files of the media asset shards in the replaced first media asset shard list may be downloaded.
Step S407: and decoding the video file according to the playing key and playing the decoded video stream data.
In some embodiments, the display device may play the downloaded video files of each media asset segment according to the playing key in the segment order.
Referring to fig. 11, in some embodiments, the video file of the media asset fragment after playing is deleted, so as to implement content management of the media asset download, and avoid resource leakage of the pre-downloaded media asset fragment. As shown in fig. 11, the content management method of the pre-download media asset may include the steps of:
step S501: and receiving a play end instruction.
Step S502: and sending a video playing end message to the server.
Step S503: and judging whether the preset storage device is online or not.
Step S504: if the user is online, a deleting instruction is sent to the preset storage device.
Step S505: and judging whether the pre-downloaded video file of the media resource fragment is deleted by the preset storage device.
Step S506: if the media resource fragment is deleted, a prompt message that the pre-downloaded media resource fragment is deleted is sent to the server.
Step S507: if not, a prompt message for manually deleting the pre-downloaded media resource fragments is sent to the intelligent equipment.
In some embodiments, in addition to controlling the preset storage device to delete the video file of the pre-downloaded media asset fragment after the video playing is finished, the preset storage device can also be controlled to automatically delete the video file of the pre-downloaded media asset fragment in the scenes of expiration of the video file of the pre-downloaded media asset fragment, insufficient storage space and the like, so as to release the storage space of the preset storage device, and ensure that the user smoothly performs the next pre-download.
As can be seen from the above embodiments, in the embodiments of the present application, before playing the media asset, the video files of the partial media asset fragments of the media asset are stored in advance in the preset storage device, so that when the display device plays the media asset, the pre-stored video files of the media asset fragments can be downloaded from the preset storage device, and the video files of all the media asset fragments do not need to be downloaded from the server, and because the speed of downloading the video files from the preset storage device is faster than the speed of downloading the video files from the server, the overall downloading speed of the video files can be improved, and the fluency of playing the media asset can be improved; in addition, only partial video files of the media asset fragments are downloaded to the preset storage device, instead of downloading all video files of the media asset fragments, and the downloaded video files can be decoded and played only by requesting a playing key from a server when being played, so that the content protection of the media asset is facilitated, and the content leakage of the media asset is avoided. Aiming at the condition of insufficient bandwidth of a home network, particularly at the time of late peak and the like, the embodiment of the application can greatly reduce or even avoid the occurrence of clamping when a user plays the online ultra-high definition video, and meanwhile, the embodiment of the application ensures that the user does not need to increase extra hardware cost and bandwidth cost, so that a video content provider does not need to increase extra safety cost to avoid media resource content leakage.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, characterized by comprising:
a display;
a controller in communication with the display, the controller configured to:
Receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a media asset fragment list, and the media asset fragment list comprises playing addresses of media asset fragments;
when the playing address of the media resource fragment comprises a first address of a server end and does not comprise a second address of a display equipment end, acquiring a first video file of the media resource fragment from the first address, decoding the first video file according to the playing key to obtain first video stream data, and controlling the display to play the first video stream data;
and when the playing address of the media asset fragment comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data.
2. The display device of claim 1, wherein the controller is further configured to:
before receiving the play instruction, receiving an input reservation downloading instruction of the target media asset;
responding to the reserved downloading instruction, and determining a target fragment to be downloaded of the target media asset;
storing the video file of the target fragment of the server side to a preset storage device, wherein the video file is an encrypted file corresponding to the playing key;
and sending a first address of the target fragment on the preset storage device to a server, so that the server adds the first address in a media resource fragment list of the target media resource.
3. The display device of claim 2, wherein determining the target shard of media assets to which the reservation download instruction corresponds comprises:
acquiring a first fragment of the target media asset, wherein the predicted playing speed of the first fragment is greater than the predicted downloading speed in a reserved period, and acquiring a target fragment set containing fragment information of the first fragment;
and deleting or expanding the target fragment set according to the reserved downloading limit time length of the target media asset.
4. The display device of claim 3, wherein the pruning or expanding the target set of tiles according to the reserved download limit duration of the target media asset comprises:
when the total duration of all the first fragments is smaller than the reserved downloading limit duration of the target media resource, adding the fragment information of the media resource fragments to the target fragment set according to the fragment sequence of the target media resource;
and deleting part of the first fragment information from the target fragment set according to the fragment sequence of the target media asset and the predicted playing speed of the reserved time period of the fragments when the total time length of all the first fragments is longer than the reserved downloading limit time length of the target media asset.
5. The display device according to claim 2, wherein storing the video file of the target slice at the server side to a preset storage device includes:
before reaching the latest download starting time corresponding to the reserved download instruction, verifying whether the preset storage device is in communication connection with the display device;
if the target storage device is in communication connection with the display device, a downloading instruction is sent to the target storage device, so that the target storage device starts downloading the target fragments;
And if the target storage device is not in communication connection with the display device, generating prompt information for connecting the target storage device with the display device in communication.
6. The display device of claim 1, wherein the controller is further configured to:
and deleting the second video file of the second address when the second video file of the second address is completely played.
7. A display device, characterized by comprising:
a display;
a controller in communication with the display, the controller configured to:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a first media asset fragment list;
acquiring a second media asset fragment list corresponding to the target media asset on a preset storage device;
replacing a first address of a target fragment in the first media resource fragment list with a second address of the target fragment in the second media resource fragment list, wherein the target fragment is the same media resource fragment in the first media resource fragment list and the second media resource fragment list;
Acquiring a video file of the media resource fragment according to the replaced first media resource fragment list;
and decoding the video file according to the playing key and controlling the display to play the decoded video stream data.
8. The display device of claim 7, wherein the controller is further configured to:
before receiving an input playing instruction of the target media asset, receiving an input reservation downloading instruction of the target media asset;
responding to the reserved downloading instruction, and determining a target fragment to be downloaded of the target media asset;
storing the video file of the target fragment at the server end to a preset storage device, and generating the second media resource fragment list, wherein the video file is an encrypted file corresponding to the playing key.
9. A media resource playing method is characterized by comprising the following steps:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
Receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a media asset fragment list, and the media asset fragment list comprises playing addresses of media asset fragments;
when the playing address of the media resource fragment comprises a first address of a server end and does not comprise a second address of a display equipment end, acquiring a first video file of the media resource fragment from the first address, decoding the first video file according to the playing key to obtain first video stream data, and controlling a display to play the first video stream data;
and when the playing address of the media asset fragment comprises a second address of the display equipment end, acquiring a second video file of the media asset fragment from the second address, decoding the second video file according to the playing key to obtain second video stream data, and controlling the display to play the second video stream data.
10. A media resource playing method is characterized by comprising the following steps:
receiving an input playing instruction of the target media asset;
responding to the playing instruction, generating and sending a media asset playing request to a server, wherein the media asset playing request comprises a playing authority parameter, and the playing authority parameter is used for enabling the server to judge whether a sender of the media asset playing request has authority to play the target media asset;
Receiving media asset playing data returned by the server, wherein the media asset playing data comprises a playing key of the target media asset and a first media asset fragment list;
acquiring a second media asset fragment list corresponding to the target media asset on a preset storage device;
replacing a first address of a target fragment in the first media resource fragment list with a second address of the target fragment in the second media resource fragment list, wherein the target fragment is the same media resource fragment in the first media resource fragment list and the second media resource fragment list;
acquiring a video file of the media resource fragment according to the replaced first media resource fragment list;
and decoding the video file according to the playing key and playing the decoded video stream data.
CN202310300848.5A 2023-03-24 2023-03-24 Display equipment and media asset playing method Pending CN117768681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310300848.5A CN117768681A (en) 2023-03-24 2023-03-24 Display equipment and media asset playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310300848.5A CN117768681A (en) 2023-03-24 2023-03-24 Display equipment and media asset playing method

Publications (1)

Publication Number Publication Date
CN117768681A true CN117768681A (en) 2024-03-26

Family

ID=90309196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310300848.5A Pending CN117768681A (en) 2023-03-24 2023-03-24 Display equipment and media asset playing method

Country Status (1)

Country Link
CN (1) CN117768681A (en)

Similar Documents

Publication Publication Date Title
US8245124B1 (en) Content modification and metadata
US20230045363A1 (en) Video playback method and apparatus, computer device, and storage medium
CN112632160A (en) Intelligent device and intelligent device login method
CN112463750B (en) File synchronization method and display device
CN114286137A (en) Mirror image screen projection method, display device and terminal
CN114915810B (en) Media resource pushing method and intelligent terminal
CN117768681A (en) Display equipment and media asset playing method
CN112584210B (en) Display device, video recording method and recorded file display method
CN114445131A (en) Startup advertisement delivery method, startup advertisement playing method, display device and server
CN113645479A (en) Live program state display method and display equipment
CN115119022A (en) Control method for skipping video advertisements and display device
CN113542765A (en) Media data jumping continuous playing method and display equipment
CN114915818B (en) Media resource pushing method and intelligent terminal
CN112839247B (en) Content display method, display device and cloud server
CN113473230B (en) Method for realizing channel switching by using third-party application and display equipment
CN113473175B (en) Content display method and display equipment
CN114173176B (en) Server, display equipment and media asset filtering method
CN114363679B (en) Display equipment, server and media asset playing method
CN112929724B (en) Display device, set top box and far-field pickup awakening control method
CN112601107B (en) Method for synchronizing historical records in abnormal scene and display device
WO2022033153A1 (en) Display method and display device
CN116033195A (en) Server and detail page acquisition method
CN117292681A (en) Display device and audio identification method
CN117294891A (en) Server, display device and audio identification method
CN117156187A (en) Screen-throwing display method, display equipment and electronic equipment

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