Display device and media asset playing method
Patent Information
- Application Number
- CN202311509273.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-14
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2043-11-14
AI Technical Summary
Existing display devices cannot achieve cross-platform media asset playback on platforms that do not support the playback agent writing language, resulting in reduced compatibility.
By introducing a private protocol and playback agent into the display device, based on the language generation supported by the operating system, the streaming media data is downloaded and stored in the internal cache of the playback agent, and then the data is transmitted to the player's internal cache through the private protocol , to realize media asset playback.
It realizes cross-platform media asset playback, improves platform compatibility, reduces dependence on the HTTP protocol, and improves data transmission efficiency.
Smart Images

Figure CN118828047A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a media asset playback method. Background Art
[0002] Display devices are intelligent devices that can present user interfaces and support user interaction. Taking smart TVs as an example, smart TVs are based on Internet application technology, have open operating systems and chips, have open application platforms, can realize two-way human-computer interaction functions, and are TV products that integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users. Display devices have built-in playback systems, and display devices can respond to users' media playback operations, play media data through the playback system, and display media images.
[0003] The playback system may include a playback agent, which is used when the display device needs to access media assets on an external network or needs to communicate and interact with different devices or platforms. The playback agent can solve problems such as network access, data transmission, and format compatibility, so that the display device can smoothly play various media assets. For example, after the playback agent obtains the streaming media data, it will return a local agent Uniform Resource Locator (URL), and then set this URL to the player in the form of a data source to start playing the media assets.
[0004] However, when the display device or platform does not support the language in which the playback agent is written, the playback agent cannot be used, which will cause the display device to be unable to obtain streaming media data through the playback agent, making the playback system unable to be used across platforms. For example, the playback agent is written in JAVA, but JAVA cannot be used on platforms such as IOS, making it impossible for the display device to play media assets across IOS platforms, reducing the compatibility of the playback process. Summary of the invention
[0005] Some embodiments of the present application provide a display device and a media asset playback method to solve the problem that the playback system cannot be used across platforms.
[0006] On the one hand, some embodiments of the present application provide a display device, including: a display and a controller. The display is configured to display a user interface; the controller is configured to execute the following program steps:
[0007] In response to a media asset playing instruction, obtaining a media asset identifier of the media asset to be played;
[0008] Downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol, wherein the private protocol and the playback agent are generated based on a language supported by an operating system of a display device;
[0009] storing the streaming media data in a first cache, where the first cache is an internal cache of the playback agent;
[0010] Based on the private protocol, the streaming media data in the first cache is transferred to a second cache to form playback data, where the second cache is an internal cache of the player;
[0011] The player is controlled to play the playback data based on the second buffer.
[0012] On the other hand, some embodiments of the present application further provide a media resource playing method, which is applied to the above-mentioned display device, and the media resource playing method includes:
[0013] In response to a media asset playing instruction, obtaining a media asset identifier of the media asset to be played;
[0014] Downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol, wherein the private protocol and the playback agent are generated based on a language supported by an operating system of a display device;
[0015] storing the streaming media data in a first cache, where the first cache is an internal cache of the playback agent;
[0016] Based on the private protocol, the streaming media data in the first cache is transferred to a second cache to form playback data, where the second cache is an internal cache of the player;
[0017] The player is controlled to play the playback data based on the second buffer.
[0018] It can be seen from the above technical solutions that the embodiment of the present application provides a display device and a media asset playback method, the method can respond to the media asset playback instruction, obtain the media asset identifier of the media asset to be played, download the streaming media data of the media asset to be played according to the media asset identifier through the playback agent, and set the media asset identifier as the data source to the player based on the private protocol, wherein the private protocol and the playback agent are generated based on the language supported by the display device operating system. Then the streaming media data is stored in the first cache of the playback agent. The streaming media data in the first cache is transmitted to the second cache of the player based on the private protocol to form playback data, so that the player plays the playback data based on the second cache. The method can directly read the cache of the playback agent through the private protocol, so that the cache data is directly shared with the player. There is no need to transmit streaming media data between the player and the playback agent through the http protocol. In addition, the private protocol and the playback agent are generated based on the language supported by the display device operating system, which can achieve cross-platform use and improve platform compatibility issues. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;
[0021] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;
[0022] Figure 3 A schematic diagram of the hardware configuration of a control device provided in some embodiments of the present application;
[0023] Figure 4 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;
[0024] Figure 5 A schematic diagram of a media playback process provided in some embodiments of the present application;
[0025] Figure 6 A schematic diagram of a media asset caching process provided in some embodiments of the present application;
[0026] Figure 7 A schematic diagram of a P2P network structure provided for some embodiments of the present application;
[0027] Figure 8A schematic diagram of a playback process based on a playback agent provided in some embodiments of the present application;
[0028] Fig. 9 A flowchart of a media resource playback method provided in some embodiments of the present application;
[0029] Fig.10 A schematic diagram of a media resource list interface provided in some embodiments of the present application;
[0030] Fig.11 A schematic diagram of a flow chart for downloading streaming media data according to platform type provided in some embodiments of the present application;
[0031] Fig.12 A schematic diagram of a cache streaming media data flow provided in some embodiments of the present application;
[0032] Fig.13 A schematic diagram of the structure of a playback system provided in some embodiments of the present application;
[0033] Fig.14 A timing diagram of a media asset playback method provided in some embodiments of the present application. DETAILED DESCRIPTION
[0034] The following embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following embodiments do not represent all implementations consistent with the present application. They are only examples of systems and methods consistent with some aspects of the present application as detailed in the claims.
[0035] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and common meanings.
[0036] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.
[0037] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.
[0038] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0039] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG. 1 , the user can operate the display device 200 through touch operation, the mobile terminal 300 and the control device 100. The control device 100 may be a remote controller, a stylus pen, or the like.
[0040] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and achieve connection and communication through a network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to achieve a synchronous display function.
[0041] like Figure 1 As also shown in FIG. 4 , the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0042] In addition to providing the broadcast receiving television function, the display device 200 may also provide an intelligent network television function with computer support functions, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.
[0043] Figure 2 Some embodiments of the present application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.
[0044] In some embodiments, the display device 200 includes at least one of a tuner 210, a communicator 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0045] In some embodiments, the detector 230 is used to collect signals of the external environment or external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
[0046] In some embodiments, the display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from a controller, display video content, image content, and a menu control interface component and a user control UI interface, etc.
[0047] In some embodiments, the communicator 220 is a component for communicating with an external device or server 400 according to various communication protocol types. The display device 200 may be provided with a plurality of communicators 220 according to different supported communication modes. For example, when the display device 200 supports wireless network communication, the display device 200 may be provided with a communicator 220 including a WiFi function. When the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communicator 220 including a Bluetooth function.
[0048] The communicator 220 can connect the display device 200 to the external device or the server 400 by wireless or wired connection. Among them, the wired connection can connect the display device 200 to the external device through components such as data cables and interfaces. The wireless connection can connect the display device 200 to the external device through wireless signals or wireless networks. The display device 200 can establish a connection relationship with the external device directly, or indirectly establish a connection relationship through a gateway, a router, a connection device, etc.
[0049] In some embodiments, the controller 250 includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200.
[0050] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.
[0051] In some embodiments, 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).
[0052] In some embodiments, the user interface 280 is an interface that can be used to receive control input.
[0053] Figure 3 Some embodiments of the present application provide Figure 1 The hardware configuration diagram of the control device in the figure. Figure 3 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface, a memory, and a power supply.
[0054] The control device 100 is configured to control the display device 200 , and can receive user input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200 .
[0055] In some embodiments, the control device 100 may be a smart device, for example, the control device 100 may be installed with various applications for controlling the display device 200 according to user needs.
[0056] In some embodiments, Figure 1 As shown, the mobile terminal 300 or other intelligent electronic devices can play a similar function as the control device 100 after installing the application for controlling the display device 200 .
[0057] The controller 110 includes a processor 112, a RAM 113, a ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, as well as the communication and cooperation between the internal components and the external and internal data processing functions.
[0058] The communication interface 130 implements communication of control signals and data signals with the display device 200 under the control of the controller 110. The communication interface 130 may include at least one of other near field communication modules such as a WiFi chip 131, a Bluetooth module 132, and an NFC module 133.
[0059] The user input / output interface 140 , wherein the input interface includes at least one of other input interfaces such as a microphone 141 , a touch panel 142 , a sensor 143 , and a button 144 .
[0060] In some embodiments, the control device 100 includes at least one of a communication interface 130 and an input / output interface 140. The control device 100 is configured with a communication interface 130, such as a WiFi, Bluetooth, NFC or other module, which can encode the user input command through the WiFi protocol, Bluetooth protocol, or NFC protocol and send it to the display device 200.
[0061] The memory 190 is used to store various operating programs, data and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.
[0062] The power supply 180 is used to provide operating power support for each component of the control device 100 under the control of the controller.
[0063] like Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.
[0064] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.
[0065] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.
[0066] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to the application package currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop components on the user interface.
[0067] In some embodiments, the activity manager is used to manage the life cycle of each application and the usual navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, and distorting the display).
[0068] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.
[0069] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4 As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.
[0070] Based on the above display device 200, the user can control the display device 200 to play multimedia resources (abbreviated as media assets). The display device 200 may include media asset file identification and reading, decoding, rendering, output and other processing processes during the media asset playback process. Figure 5 As shown, when a user chooses to play a video file, the system of the display device 200 will first identify the file and read its metadata and encoding information. Next, the system will use a suitable decoder to decode the media file. Among them, the function of the decoder is to restore the compressed audio, video, and image data into the original image and sound data. The decoded image and sound data will be sent to the rendering engine for rendering. The rendering engine will convert the image data into a format that can be displayed by the display 260 of the display device 200, and convert the sound data into a format that can be played through a speaker or audio device. The rendered image and sound data will be sent to the display 260 and the audio system for output, so that the display device 200 plays the media content.
[0071] In some embodiments, the display device 200 may also perform some optimizations and adjustments to ensure smooth and clear video playback. For example, the display device 200 may adjust the decoding and rendering parameters according to the screen resolution and the performance of the controller 250 to obtain the best playback effect. In addition, the display device 200 may also cache the video file to reduce the time of reading and decoding and improve the smoothness of playback.
[0072] During the media playback process, the display device 200 can implement the processing flow of media file identification and reading, decoding, rendering, and output through the configured functional modules. For example, the kernel layer of the display device 200 can be configured with a player (Media player), which supports multimedia playback components and can play a variety of audio and video formats. At the same time, the player provides some control interfaces, such as pause, play, fast forward, and other functional interfaces. These interfaces can be connected to the application of the application layer through the framework layer to realize the control of the media playback process.
[0073] The player of the display device 200 can support the playback of multiple audio and video formats, for example, MP3, MP4, AVI, WMA and other formats. The player can provide a rich set of interfaces, allowing developers to control the playback, such as start, pause, stop, fast forward, fast rewind, etc. The display device 200 can call the control interface by using the application of Media Player, so that the user can freely control the playback progress of the media. The player also supports the adjustment of volume and playback speed, so that the user can adjust the playback effect of the media according to the needs through the playback application. In addition, the player can also support callback functions and event processing. For example, the player can support callback after the playback is completed, which allows developers to perform some subsequent processing operations after the media playback is completed, including media asset caching, media asset continuous broadcast, automatic stop broadcast, etc.
[0074] In some embodiments, the player is further configured with a cache space, which is a part of the memory space and is a storage space specially configured for the player by the display device 200. The cache space is configured in the player in the form of a frame buffer, and the cache space can be used to alleviate the problem of inconsistent data arrival speed and departure speed. Figure 6 As shown, for media data from the network, since the network speed is not always uniform, sometimes there will be a phenomenon of freezing. Therefore, in order to alleviate the impact of network freezing on the media playback process, the player will first establish a buffer when playing the video. The display device 200 can first store the media data downloaded from the network in the buffer, and then start playing after a certain amount of data is contained in the buffer. In this way, the buffer can release stable media data at a uniform speed, so that the media can be played smoothly.
[0075] The media data played by the display device 200 may include multiple data sources. For example, the media data played by the display device 200 may be data stored locally, or data provided by a signal source connected to the display device 200. In some embodiments, the display device 200 may be connected to a media server via a communicator 220, and the media server stores media data. The display device 200 may obtain the media data by sending a media acquisition request to the media server. After receiving the media acquisition request, the media server feeds back the media data to the display device 200. Since the media data has a certain amount of data, the media server needs to send streaming media data to the display device 200 to continuously send the media data to the display device 200.
[0076] In some embodiments, the display device 200 can also establish a communication connection with other terminal devices through the communicator 220, and obtain media data from the terminal devices based on a peer-to-peer network (P2P network) technology. Figure 7 As shown, in a P2P network, each node (i.e., each user) can act as a server and a client, and data and services can be exchanged directly between nodes without going through a central server. In P2P video playback, when the display device 200 requests to play a video, the request will be sent to the P2P network. Other user nodes (terminal devices) in the network will respond to the request and send their own video clips to the display device 200. The display device 200 can receive media asset clips from multiple terminal device nodes at the same time, and assemble and play them locally on the display device 200.
[0077] The above method of obtaining media data through a server and a terminal device can realize network-based media playback. In the process of network-based media playback, in order to adapt to different servers or terminal devices and enable the display device 200 to obtain media data, in some embodiments, a playback proxy service can also be configured in the display device 200. Figure 8 As shown, the playback proxy is an intermediate service that is located between the player and the media server. It is responsible for receiving requests from the player, connecting to the video server to obtain media data, and then forwarding it to the player. For example, the playback proxy can be a CDN proxy tool. The CDN proxy tool can perform proxy playback through the server of the Content Delivery Network (CDN), which can accelerate the video loading speed and improve the playback fluency.
[0078] When using the playback agent, the display device 200 can solve network access, data transmission and format compatibility issues through the playback agent, so that the display device 200 can smoothly play various media content. For example, after the playback agent obtains the streaming media data, it will return a local agent Uniform Resource Locator (URL), and then set this URL to the player in the form of a data source to start playing the media.
[0079] The playback agent can be an independent service or customized by the application that calls the player. Since the playback agent is not made by the developer of the display device 200 control system, there will be a problem that the playback agent is incompatible with the operating system. For example, the playback agent is written in JAVA language, and the operating system of the display device 200 is an IOS platform. Since JAVA language cannot be used on platforms such as IOS, the display device 200 does not support the writing language of the playback agent. At this time, the playback agent cannot be used, which will cause the display device to be unable to obtain streaming media data through the playback agent, making the playback system unable to be used across platforms, reducing the compatibility of the playback process.
[0080] In addition, in order to transmit media data, the playback agent and the player need to complete data transmission through a specific data transmission protocol. For example, the playback agent can download streaming media data through the http protocol, and transmit the streaming media data to the player through the http protocol, so that the player can obtain the streaming media data for media playback. However, since the http protocol is an application layer protocol for distributed, collaborative and hypermedia information systems, it is applied to the Internet and needs to be based on the TCP / IP protocol stack to transmit data, so the streaming media data transmission efficiency is low.
[0081] In order to improve the compatibility of the media playback system with the platform, some embodiments of the present application provide a media playback method, which can be applied to the display device 200, changing the service architecture of the built-in playback system of the display device 200 to achieve cross-platform playback. In order to meet the implementation of the media playback method, the display device 200 should at least include a display 260 and a controller 250. The display 260 is configured to display a user interface; Fig. 9 As shown, the controller 250 is configured to execute program steps corresponding to the media asset playing method, including the following contents:
[0082] S100: In response to a media asset playing instruction, obtaining a media asset identifier of a media asset to be played.
[0083] During operation, the display device 200 may receive a variety of control instructions input by the user, wherein the control instruction for playing media data is called a media playing instruction. The user may input the media playing instruction based on a specific interactive action. In some embodiments, the user may input the media playing instruction through the control device 100 provided with the display device 200, such as a remote controller. For example, Fig.10 As shown, the display device 200 can display a media asset list interface, which can include at least one media asset item. The user can control the focus cursor to move by using the direction keys on the remote control. When the focus cursor is located on any media asset item and the user presses the "confirm" key on the remote control, a media asset play instruction can be input, that is, the display device 200 is controlled to play the media corresponding to the media asset item where the focus cursor is located.
[0084] Depending on the different interactive modes supported by the display device 200, the user can also input the media playback instruction based on other interactive modes. For example, for a display device 200 that supports touch interactive operation, the user can input the media playback instruction by touching and clicking the media item. For a display device 200 that supports voice interactive operation, the user can input the media playback instruction by inputting the voice "play ××".
[0085] The media asset playback instruction may not be input by the user, but the display device 200 may automatically complete the input by judging the operating state. For example, for a display device 200 with a power-on signal source, when the user inputs the power-on instruction, the display device 200 may automatically play the media asset data corresponding to the power-on signal source based on the power-on process, that is, the media asset playback instruction may be automatically generated and input through the power-on process.
[0086] The media asset playback instruction can also be input by the application on the display device 200. In some embodiments, for the applications installed on the display device 200, some applications have the permission to call the player of the display device 200. When the display device 200 runs the application, the application can control the display device 200 to play the media asset according to the actual operation needs, that is, input the media asset playback instruction. For example, the display device 200 has a third-party media asset playback application application Y installed, and application Y can automatically play recommended videos in the main interface. When the user starts application Y, application Y generates a media asset playback instruction to control the display device 200 to play the recommended media asset in the application interface.
[0087] After obtaining the media asset playback instruction, the display device 200 can determine the media asset to be played according to the media asset playback instruction. The relevant information of the media asset to be played can be built into the media asset playback instruction. For example, when the user inputs "play media asset A" through voice, the voice interaction system of the display device 200 can directly generate a media asset playback instruction including media asset A information. After obtaining the media asset playback instruction, the display device 200 can directly parse the media asset information to be played in the media asset playback instruction, that is, determine that the media asset to be played is media asset A.
[0088] The relevant information of the media asset to be played can also be obtained by the display device 200 by judging the current operation state after obtaining the media asset playing instruction. For example, when the user inputs the media asset playing instruction through the combination of the direction key and the confirmation key of the remote control of the display device 200, the media asset playing instruction obtained by the display device 200 may only include the key event when the user presses the confirmation key. At this time, the display device 200 can obtain the position of the current focus cursor according to the media asset playing instruction, and determine that the media asset item selected by the current focus cursor is media asset B in combination with the layout information of the media asset list interface, thereby obtaining the information of the media asset to be played according to the media asset item, that is, determining that the media asset to be played is media asset B.
[0089] After determining the media asset to be played, the display device 200 can obtain the media asset identifier, wherein the media asset identifier is an identifier used to characterize the identity of the media asset, and can be any information that can distinguish the media asset. For example, the media asset identifier can be information such as the media asset name, the media asset playback address, the media asset code, or a combination of such information.
[0090] Since the media that the display device 200 can play may have different sources, and the media from different sources may have different naming rules, storage methods, and encoding strategies, the media from different sources have different media information, which is not convenient for subsequent docking with the player. In order to be able to dock with the player of the display device 200, in some embodiments, the display device 200 can generate a media asset identifier based on a unified standard, that is, when the display device 200 obtains the media asset identifier of the media to be played, it can parse the media asset information of the media to be played from the media asset playback instruction, and extract the information field used to characterize the identity of the media to be played from the media asset information. Among them, the information field includes the playback address of the media to be played on the media platform. Then, the information field is converted into the media asset identifier according to the preset encoding rules.
[0091] For example, after obtaining the media asset playback instruction, the display device 200 can obtain the media asset information to be played according to the media asset playback instruction, wherein the media asset information can be obtained through the media asset project display interface, the server or the description information of the media asset file. The media asset information includes the media asset name (such as movie A), the media qualification format (such as MPEG-4), the media asset details (such as the movie cast information, the movie creation time, etc.), the media asset type (such as video), the media asset playback address (such as https: / / www.×××.com / ××× / play / ep78×××18?theme=movie&from_spmid=666.7.recommend.0), and other contents.
[0092] After obtaining the media asset information, the display device 200 can read the information field used to characterize the identity of the media asset to be played from the obtained media asset information, wherein the media asset playing address can uniquely distinguish the media asset identity, so the information field should at least include the media asset playing address. Then, the local media asset information encoding rule of the display device 200 is called to combine and convert the extracted information fields into a media asset identifier, such as 010178×××18.
[0093] In some embodiments, in order to distinguish the identity of the media asset, the media asset identification may include a channel ID (channel ID) used to characterize the identity of the media asset to be played, and the channel ID is an integer data generated based on the media asset information. When the display device 200 converts the information field into the media asset identification according to the preset encoding rule, the information field may be combined into a string, and then an integer function in the language environment supported by the display device operating system may be called; and the string may be converted into integer data using the integer function to generate the channel ID.
[0094] For example, if the operating system of the display device 200 supports C or C++ language, after obtaining the information fields, the display device 200 can concatenate the obtained information fields into a string "text", then call an integer function based on the C language environment, and use the integer function to convert the string into integer data, string text = "123"; int number = int.Parse(text), thereby generating a channel ID.
[0095] S200: downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol.
[0096] After obtaining the media asset identifier, the display device 200 can respectively call the playback agent and the private protocol defined in the playback system of the display device 200. The private protocol and the playback agent are generated based on the language supported by the display device operating system. For example, in order to adapt to the problem that the IOS platform does not support the JAVA language, the private protocol and the playback agent can both be service components constructed by C / C++ coding.
[0097] Based on the called playback proxy service, the display device 200 can download the streaming media data of the media asset to be played according to the media asset identifier. That is, the playback proxy service of the display device 200 can download or search for the corresponding streaming media data according to the media asset identifier (Channel ID).
[0098] like Fig.11 As shown, in some embodiments, when the display device 200 controls the playback agent to download the streaming media data of the media asset to be played according to the media asset identifier, it can also parse the playback address from the media asset identifier to detect the platform type of the media asset platform according to the playback address, thereby downloading the streaming media data in different ways according to different platform types.
[0099] For example, after parsing the playback address from the media asset identifier, if the playback address includes the domain name information converted by the domain name system, it can be determined that the platform type of the current media asset to be played is a server. If the playback address does not include the domain name information, that is, the playback address is an IP address and other information, it can be determined that the platform type of the current media asset to be played is a Peer terminal.
[0100] In some embodiments, in order to obtain the platform type corresponding to the media asset to be played, the display device 200 can also construct a comparison data table according to the media asset data source, in which the characteristics of the playback address under different platform types and the key fields included can be recorded. After the display device 200 parses the playback address, the playback address can be used to match in the comparison data table, thereby determining the platform type according to the matching table entry.
[0101] After detecting and obtaining the platform type of the media asset platform, the display device 200 can request the media asset data from the media asset platform in a media asset data acquisition method suitable for the platform type. If the platform type is a server, an HTTP request is sent based on the playback address, and the streaming media data is downloaded according to the HTTP response fed back by the media asset platform; if the platform type is a peer terminal, a P2P resource request is sent based on the playback address, and the streaming media data is downloaded according to the P2P resource response fed back by the media asset platform.
[0102] For example, the display device 200 can parse the playback address from the media asset identifier, https: / / www.×××.com / ××× / play / ep78×××18? theme=movie&from_spmid=666.7.recommend.0. Based on the domain name information www.×××.com in the playback address, it can be determined that the current media asset is provided by the corresponding media asset supplier of www.×××.com, that is, the platform type is a server. At this time, the display device 200 can send an HTTP request to the media asset platform server according to the playback address. After receiving the HTTP request, the media asset platform server returns an HTTP response to the display device 200 according to the HTTP request, so that the display device 200 can download the streaming media data of the media asset to be played.
[0103] When the display device 200 downloads the streaming media data of the media to be played according to the media asset identifier through the playback agent, it can also execute in parallel the step of setting the media asset identifier as the data source to the player based on the private protocol, that is, the display device 200 can set the media asset identifier of the player as the DataSource to the player through the private protocol of the player at the business layer.
[0104] Among them, the private protocol is a protocol defined and implemented by the player developer according to the data transmission specification, which is different from the general and open standard protocols such as HTTP. The private protocol can be used for communication and data transmission between the player and the server. For example, the private protocol can be formulated based on the standard FFMPEG protocol framework, which refers to the protocol stack or protocol set used in FFMPEG. It allows FFMPEG to interact and communicate with other network entities. The protocol framework can provide the function of processing and parsing different protocols, so that FFMPEG can handle various network protocol-related operations. However, the parameters transmitted by the private protocol are different from those of the standard protocol, so that the display device 200 can change the data acquisition path of the player during the subsequent playback process to adapt to the playback agent service and playback data requirements.
[0105] Based on a private protocol, the display device 200 can set the media identifier as a data source to the player, so that after the data source of the player is set to the media corresponding to the media identifier, the media data corresponding to the media identifier can be identified and extracted from the cache space of the player for decoding and playback.
[0106] In some embodiments, after setting the data source of the player, the display device 200 can perform initialization operations based on a private protocol. The initialization operation mainly performs initialization operations on the cache space, which may include allocation of cache space, initialization of cache structure, determination of replacement strategy, setting of initial state, establishment of index and mapping, synchronization and consistency processing, configuration of performance parameters, error handling and log recording, and other initialization contents.
[0107] Cache space allocation is to allocate enough space for the cache, which involves determining the size of the cache and allocating memory space accordingly. Cache structure initialization includes designing cache data structures and initializing these structures. For example, initializing the cache's hash table, linked list, queue, etc. Determining the replacement strategy is to select an appropriate replacement strategy for the cache, such as the least recently used (LRU) strategy, the first-in-first-out (FIFO) strategy, etc., and initialize the relevant data structures. Setting the initial state may include setting states such as setting the cache to empty or preloading data. Building indexes and mappings can speed up data search and access. Synchronization and consistency processing can synchronize with other nodes or servers in a distributed system to ensure data consistency. Configuration of performance parameters may include configuring cache performance parameters, such as expiration time, maximum capacity, read and write permissions, etc. Error handling and logging is to initialize error handling and logging mechanisms for the cache system to facilitate troubleshooting and performance monitoring during subsequent operations.
[0108] In order to achieve cross-platform playback, the embodiment of the present application uses a playback agent to cooperate with the player to complete the playback, and both the playback agent and the player need cache space. Therefore, during the initialization process, the playback agent and the player can also be initialized separately, and a mapping relationship between the two cache spaces can be established. Among them, the internal cache of the playback agent is called the first cache, and the internal cache of the player is called the second cache. The first cache and the second cache can be configured from the memory space of the display device 200, for example, the first cache and the second cache are both uint8_t type caches.
[0109] In some embodiments, after the display device 200 sets the media asset identifier as a data source to the player based on the private protocol, it can also calculate the unit cache data block capacity according to the media asset identifier and the private protocol, and allocate cache space to the first cache according to the unit cache data block capacity. Then, the cache structure of the first cache is initialized according to the allocated cache space, and the mapping relationship between the first cache and the second cache is set.
[0110] S300: Storing the streaming media data in a first cache.
[0111] After the media asset identifier is set as the data source to the player based on a private protocol and the initialization operation is completed, the display device 200 can use the playback proxy service to start downloading streaming media data through HTTP requests or P2P resource requests, and save the downloaded streaming media data to the first cache.
[0112] The first cache is the internal cache of the playback agent. Since the playback agent service does not have data decoding capability, when storing the streaming media data in the first cache, the display device 200 can download and store the data in the form of data blocks. Fig.12 As shown, in some embodiments, the display device 200 can first obtain the cache space of the first cache when storing the streaming media data in the first cache, and then calculate the maximum number of cache data blocks based on the cache space and the unit cache data block capacity, and intercept media data blocks in the streaming media data according to the maximum number of cache data blocks, thereby storing the media data blocks in the first cache in sequence.
[0113] For example, after the display device 200 uses the playback agent to obtain the streaming media data of the media asset to be played, it can first obtain the cache space X set for the first cache in the initialization phase, and then set the unit cache data block capacity Y according to the playback agent and the private protocol. Then, the maximum number of cache data blocks n can be calculated according to the cache space X and the unit cache data block capacity Y, that is, n=INT(X / Y). After calculating and obtaining the maximum number of cache data blocks n, the display device 200 can intercept the media asset data blocks in the streaming media data according to the maximum number of cache data blocks n and the unit cache data block capacity Y, that is, intercept n data blocks in sequence and store them in the first cache.
[0114] S400: transferring the streaming media data in the first cache to the second cache based on the private protocol to form playback data.
[0115] After storing the streaming media data in the first buffer, the display device 200 can transfer the streaming media data in the first buffer to the second buffer based on the private protocol to form playback data. In order to improve the transmission efficiency of streaming media data, in some embodiments, the operating system of the display device includes multiple functional levels, and the playback agent and the player are configured in the same functional level.
[0116] For example, the playback proxy service and the player are both configured in the kernel layer of the operating system of the display device 200. Compared with configuring the playback proxy service in the framework layer and configuring the player in the kernel layer of the operating system, configuring both the playback proxy service and the player in the kernel layer can make the playback proxy service and the player execute in parallel first and then interact after the media resource information is sent to the layer through the chanel ID, thereby realizing playback acceleration.
[0117] The second cache is the internal cache of the player. Since the second cache is the internal cache of the player, and the player has decoding capability, the streaming media data can be stored in the second cache in the form of frame data for use by the player. That is, in some embodiments, when the display device 200 transfers the streaming media data in the first cache to the second cache based on the private protocol, it can read the media asset data block from the first cache according to the private protocol, and then decode the media asset data block to obtain multiple playback screen frames, and cache the playback screen frames to the second cache to form playback data.
[0118] It can be seen that in the above embodiment, the display device 200 can first cache the media data to the first cache through the playback proxy, and then cache the media data to the second cache through the private protocol. In addition, the first cache caches data in the form of data blocks, and the second cache caches data in the form of frame data. Under the premise of satisfying the data processing capabilities of the playback proxy service and the player, the media data can be converted into playback data so that the player can play the media.
[0119] S500: Control the player to play the playback data based on the second buffer.
[0120] After the playback data is formed in the second cache data, the display device 200 can play the media, that is, control the player to play the playback data based on the second cache. Since the playback data is the original image frame obtained by parsing the streaming media data, in order to obtain a better display effect, the display device 200 can also render the playback data to improve the display quality. That is, in some embodiments, when the display device 200 controls the player to play the playback data based on the second cache, the player can first read the playback data in the second cache, and then perform playback rendering on the playback data to form a playback screen, and finally control the display to display the playback screen.
[0121] It can be seen that Fig.13As shown, in order to enable the playback system to be used across platforms, the display device 200 can add a private protocol and directly read the buffer of the playback agent through the interface of the private protocol. The buffer data is directly shared with the player, and the player and the playback agent do not need to transmit streaming media data through the http protocol. The private protocol of the player and the playback agent are both C / C++ coded, which can solve the platform compatibility problem and improve the code running efficiency; at the same time, the player and the playback agent directly transmit data through the buffer, which can also improve the data transmission efficiency.
[0122] Based on the media asset playback method provided in the above embodiment, some embodiments of the present application further provide a display device 200, wherein the display device 200 includes a display 260 and a controller 250. The display 260 is configured to display a user interface; Fig.14 As shown, the controller 250 is configured to perform the following program steps:
[0123] S100: In response to a media asset playing instruction, obtaining a media asset identifier of a media asset to be played;
[0124] S200: downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol, wherein the private protocol and the playback agent are generated based on a language supported by an operating system of a display device;
[0125] S300: storing the streaming media data in a first cache, where the first cache is an internal cache of the playback agent;
[0126] S400: transferring the streaming media data in the first cache to a second cache based on the private protocol to form playback data, where the second cache is an internal cache of the player;
[0127] S500: Control the player to play the playback data based on the second buffer.
[0128] It can be seen from the above technical solutions that the display device 200 provided in the embodiment of the present application can respond to the media asset playback instruction, obtain the media asset identification of the media asset to be played, download the streaming media data of the media asset to be played according to the media asset identification through the playback agent, and set the media asset identification as the data source to the player based on the private protocol, wherein the private protocol and the playback agent are generated based on the language supported by the display device operating system. The streaming media data is then stored in the first cache of the playback agent. The streaming media data in the first cache is transmitted to the second cache of the player based on the private protocol to form the playback data, so that the player plays the playback data based on the second cache. The display device 200 can directly read the cache of the playback agent through the private protocol, so that the cache data is directly shared with the player. There is no need to transmit the streaming media data between the player and the playback agent through the http protocol. In addition, the private protocol and the playback agent are generated based on the language supported by the display device operating system, which can be used across platforms and improve platform compatibility issues.
[0129] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.
[0130] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0132] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that: include: a display configured to display a user interface; The controller is configured as: In response to a media asset playing instruction, obtaining a media asset identifier of the media asset to be played; Downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol, wherein the private protocol and the playback agent are generated based on a language supported by an operating system of a display device; storing the streaming media data in a first cache, where the first cache is an internal cache of the playback agent; Based on the private protocol, the streaming media data in the first cache is transferred to a second cache to form playback data, where the second cache is an internal cache of the player; The player is controlled to play the playback data based on the second buffer.
2. The display device according to claim 1, characterized in that The controller executes obtaining the media asset identifier of the media asset to be played, and is further configured to: Parsing the media asset information of the media asset to be played from the media asset playing instruction; Extracting an information field for characterizing the identity of the media asset to be played from the media asset information, wherein the information field includes a playback address of the media asset to be played on the media asset platform; The information field is converted into the media asset identifier according to a preset encoding rule.
3. The display device according to claim 2, characterized in that The media asset identifier includes a channel ID for representing the identity of the media asset to be played, and the channel ID is integer data generated based on the media asset information; the controller converts the information field into the media asset identifier according to a preset coding rule, and is further configured as follows: Combining the information fields into a string; Calling an integer function in a language environment supported by the operating system of the display device; The character string is converted into integer data using the integer function to generate the channel ID.
4. The display device according to claim 2, characterized in that The controller controls the playback agent to download the streaming media data of the to-be-played media asset according to the media asset identifier, and is further configured to: Parsing the playback address from the media asset identifier; Detecting the platform type of the media resource platform according to the playback address; If the platform type is a server, sending an HTTP request based on the playback address, and downloading the streaming media data according to the HTTP response fed back by the media resource platform; If the platform type is a Peer terminal, a P2P resource request is sent based on the playback address, and the streaming media data is downloaded according to a P2P resource response fed back by the media resource platform.
5. The display device according to claim 1, characterized in that After the controller executes the setting of the media asset identifier as a data source to the player based on the private protocol, the controller is further configured to: Calculate the unit cache data block capacity according to the media asset identifier and the private protocol; Allocating cache space to the first cache according to the unit cache data block capacity; Initializing a cache structure of the first cache according to the allocated cache space; A mapping relationship between the first cache and the second cache is set.
6. The display device according to claim 5, characterized in that The controller executes storing the streaming media data in the first cache, and is further configured to: Acquire the cache space of the first cache; Calculating a maximum number of cache data blocks according to the cache space and the unit cache data block capacity; According to the maximum number of cached data blocks, intercepting media asset data blocks from the streaming media data; The media asset data blocks are stored in the first cache in sequence.
7. The display device according to claim 6, characterized in that The controller executes the transmission of the streaming media data in the first cache to the second cache based on the private protocol, and is further configured to: Reading the media asset data block from the first cache according to the private protocol; Decoding the media asset data block to obtain a plurality of playback picture frames; The playback picture frame is cached in the second cache to form playback data.
8. The display device according to claim 1, characterized in that The controller controls the player to play the playback data based on the second buffer, and is further configured to: Reading the playback data in the second buffer by the player; Performing playback rendering on the playback data to form a playback screen; Control the display to display the playback picture.
9. The display device according to claim 1, characterized in that: The operating system of the display device includes multiple functional levels, and the playback agent and the player are configured in the same functional level.
10. A media resource playing method, characterized in that: Applied to the display device according to any one of claims 1 to 9, the media resource playing method comprises: In response to a media asset playing instruction, obtaining a media asset identifier of the media asset to be played; Downloading the streaming media data of the to-be-played media asset according to the media asset identifier through a playback agent, and setting the media asset identifier as a data source to a player based on a private protocol, wherein the private protocol and the playback agent are generated based on a language supported by an operating system of a display device; storing the streaming media data in a first cache, where the first cache is an internal cache of the playback agent; Based on the private protocol, the streaming media data in the first cache is transferred to a second cache to form playback data, where the second cache is an internal cache of the player; The player is controlled to play the playback data based on the second buffer.
Citation Information
Patent Citations
Mobile streaming media offline caching system based on HTTP proxy and method
CN105245939A
Collaborative security operating system architecture, operating system and electronic equipment
CN110781528A
Multimedia resource carousel method, electronic equipment and storage medium
CN111131845A
Display device and media asset playing method
CN115270030A
Traffic management in adaptive streaming protocols
US20120124179A1
