Content playing method and device
By establishing the same LAN connection between the set-top box and the user side, generating and sending playback addresses, the problem of multiple users watching different programs at the same time is solved, and the effect of resource isolation and consumption reduction is achieved.
Patent Information
- Application Number
- CN202510186431.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-05-23
AI Technical Summary
The existing set-top box is difficult to meet the needs of multiple users to watch different TV programs at the same time, and when handling access to multiple mobile terminals, it is not possible to effectively isolate data interactions, resulting in excessive resource consumption.
By establishing the same LAN connection between the set-top box and the user, the user side receives the play request, and generates a play address based on the device information and the user side information, and sends it to the user side to download and play content.
The need for multiple users to watch different programs at the same time based on the same set-top box is realized. By isolating the storage of user information, data mutual influence is avoided and resource consumption of set-top box is reduced.
Smart Images

Figure CN120034679A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of personal home technology, and in particular, relates to a content playback method and device. Background Art
[0002] With the rapid development of science and technology, set-top boxes, as an important member of household appliances, have been widely popularized in thousands of households and have become an indispensable part of modern family entertainment life. Set-top boxes not only have the function of multimedia playback and display, but also can provide users with rich content and clear live programs, which greatly enriches people's entertainment needs.
[0003] However, for the rich live programs and multimedia resources provided by the set-top box, users can only rely on the TV to watch a single program, which is difficult to meet the needs of multiple users who want to watch different programs at the same time. Summary of the invention
[0004] The embodiments of the present application provide a content playback method and device, which can meet the needs of multiple users who want to watch different programs at the same time.
[0005] In a first aspect, an embodiment of the present application provides a content playback method, which is applied to a set-top box. The method includes:
[0006] When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box is connected to the first user terminal, receiving a play request sent by the first user terminal, the play request including content information of the content to be played, the content information of the content to be played is obtained by the first user terminal in response to a user input on a play content selection interface displayed by the first user terminal, and the play content selection interface is generated by the first user terminal based on television program guide EPG information of the set-top box;
[0007] Acquire device information of a set-top box, and read user terminal information of the first user terminal from a storage partition of the first user terminal, wherein the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0008] Generate a first playback address for playing the content to be played based on device information of the set-top box, content information of the content to be played, and user terminal information of the first user terminal;
[0009] A first playback address is sent to a first user terminal, so that the first user terminal can download and play the content to be played based on a second playback address, where the second playback address is determined based on the first playback address.
[0010] In a first aspect, an embodiment of the present application provides a content playback method, which is applied to a first user terminal, and the method includes:
[0011] In the case where the first user terminal displays a playback content selection interface, receiving a user input on the playback content selection interface, the playback content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box, and the input indicates the content to be played in the playback content selection interface;
[0012] In response to the input, obtaining content information of the content to be played;
[0013] When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box is connected to the first user terminal, sending a play request carrying content information of the content to be played to the set-top box;
[0014] receiving a first playback address for playing the content to be played sent by a set-top box, where the first playback address is generated by the set-top box based on the user terminal information of the first user terminal, the content information of the content to be played, and the device information of the set-top box, and the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals, respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0015] Based on the second playback address, the content to be played is downloaded and played, and the second playback address is determined based on the first playback address.
[0016] In a third aspect, an embodiment of the present application provides a content playback device, which is applied to a set-top box, and the device includes:
[0017] a receiving module, configured to receive a play request sent by the first user terminal, when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box is connected to the first user terminal, wherein the play request includes content information of the content to be played, the content information of the content to be played is obtained by the first user terminal in response to a user input to a play content selection interface displayed by the first user terminal, and the play content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box;
[0018] an acquisition module, used to acquire device information of a set-top box, and read user terminal information of the first user terminal from a storage partition of the first user terminal, wherein the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0019] A generating module, configured to generate a first playing address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal;
[0020] The download module is used to send a first playback address to a first user terminal, so that the first user terminal can download and play the content to be played based on a second playback address, where the second playback address is determined based on the first playback address.
[0021] In a fourth aspect, an embodiment of the present application provides a content playback device, applied to a first user terminal, the device comprising:
[0022] A receiving module, configured to receive a user input on the playback content selection interface when the first user terminal displays the playback content selection interface, wherein the playback content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box, and the input indicates the content to be played in the playback content selection interface;
[0023] An acquisition module, used for acquiring content information of the content to be played in response to an input;
[0024] A sending module, configured to send a play request carrying content information of the content to be played to the set-top box when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box has established a connection with the first user terminal;
[0025] The receiving module is further used to receive a first playback address sent by a set-top box for playing the content to be played, wherein the first playback address is generated by the set-top box based on the user terminal information of the first user terminal, the content information of the content to be played, and the device information of the set-top box, and the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals, respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0026] The playing module is used to download and play the content to be played based on the second playing address, where the second playing address is determined based on the first playing address.
[0027] In a fifth aspect, an electronic device is provided, comprising: a memory for storing computer program instructions; and a processor for reading and running the computer program instructions stored in the memory to execute the content playback method provided in the first aspect or the second aspect.
[0028] In a sixth aspect, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the content playback method provided in the first aspect or the second aspect is implemented.
[0029] Seventh aspect, a computer program product is provided. The computer program product includes a computer program which, when executed by a processor, implements the content playing method provided by the first aspect or the second aspect.
[0030] In the embodiments of the present application, when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first client and a connection is established between the set-top box and the first client, a play request sent by the first client can be received, and the client information of the first client can be read from the storage partition of the first client. Furthermore, a first play address for playing the content to be played can be generated based on the client information of the first client and the device information of the set-top box, and the first play address can be sent to the first client for the first client to obtain a second play address based on the first play address, download and play the content to be played. In this way, not only can the needs of different family members to watch different programs simultaneously based on the same set-top box be met, but also the authorized local area network can be restricted through the connection established between the set-top box and the first client within the same local area network. Moreover, the set-top box can allocate storage partitions for different clients to achieve independent storage of each client's information and avoid the situation where the information of different clients affects each other. And the set-top box only needs to send the generated play address to the client, and the client realizes the download and play of the played content based on the play address, reducing the resource consumption of the set-top box. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly introduced below. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0032] Figure 1 is an architecture diagram between a set-top box and a client provided by an embodiment of the present application;
[0033] Figure 2 is a schematic diagram of the interaction process between a set-top box and a client provided by an embodiment of the present application;
[0034] Figure 3 is another schematic diagram of the interaction process between a set-top box and a client provided by an embodiment of the present application;
[0035] Figure 4 is a schematic diagram of the process of a content playing method provided by an embodiment of the present application;
[0036] Figure 5 is another schematic diagram of the process of a content playing method provided by an embodiment of the present application;
[0037] Figure 6is a structural diagram of a content playback device provided in an embodiment of the present application;
[0038] Figure 7 is a structural schematic diagram of another content playback device provided in an embodiment of the present application;
[0039] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0041] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0042] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0043] As described in the background art, in real life, for the rich live programs and multimedia resources provided by the set-top box, users can only rely on the TV to watch a single program, which is difficult to meet the needs of multiple users to watch different TV programs at the same time.
[0044] In order to meet the needs of multiple users to watch different TV programs at the same time, the existing technology generally establishes communication connections between the mobile terminal and the message engine, and between the message engine and the set-top box, and through multiple modules in the set-top box including a TV program list module and a multimedia resource module, the mobile terminal can obtain program information and multimedia resources from the set-top box, thereby enabling users to watch TV programs.
[0045] However, the above scheme has the following problems in the process of realizing that multiple mobile terminals can browse or watch different live broadcasts or programs based on the same set-top box at the same time: First, when the set-top box processes the access of multiple mobile terminals, the data interaction isolation between different mobile terminals is not considered, and the relevant data of multiple mobile terminals may affect each other. In addition, during the access of multiple mobile terminals, the access network of the mobile terminals is not restricted, and the authorized network cannot be guaranteed. Secondly, the task of distributing multimedia resources to mobile terminals for playback is completely dependent on the set-top box, resulting in the consumption of resources of the set-top box, such as central processing unit (CPU) resources, memory, and bandwidth, etc. This may cause the set-top box to stop working due to excessive resource consumption when docking with multiple mobile terminals.
[0046] Based on this, in order to solve the above problems existing in the prior art, the embodiment of the present application provides a content playback method and device. By using the content playback method provided by the embodiment of the present application, the set-top box can play the electronic program guide (Electronic Program The first user terminal can obtain the content information of the content to be played, and when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box and the first user terminal are connected, send a play request carrying the content information of the content to be played to the set-top box. In this way, after receiving the play request sent by the first user terminal, the set-top box can obtain the device information of the set-top box, and read the user terminal information of the first user terminal from the storage partition allocated to the first user terminal in the storage space of the set-top box, and then generate a first play address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played and the user terminal information of the first user terminal, and send the first play address to the first user terminal, so that the first user terminal can obtain a second play address based on the first play address to download and play the content to be played.
[0047] In this way, the first user terminal can display a playback content selection interface generated based on the EPG information of the set-top box, so as to play the content to be played based on the user's selection of the content to be played on the playback content selection interface, thereby satisfying the needs of multiple user terminals to watch different programs based on the same set-top box, and the set-top box and the first user terminal are connected in the same local area network to protect the authorized local area network, and the set-top box can also allocate storage partitions to different user terminals to achieve independent storage of information of each user terminal, thereby avoiding the situation where information of different user terminals affects each other. In addition, the set-top box is only responsible for sending the generated playback address to the user terminal, and the user terminal downloads and plays the playback content based on the playback address, thereby reducing the resource consumption of the set-top box.
[0048] In order to facilitate a better understanding of the content playback method provided by the embodiment of the present application in the future, before introducing the content playback method provided by the embodiment of the present application, the architecture between the set-top box and the user terminal involved in the embodiment of the present application is first described in detail with reference to the accompanying drawings.
[0049] Figure 1 This is an architecture diagram between a set-top box and a first user terminal provided in an embodiment of the present application.
[0050] like Figure 1 As shown, the architecture diagram may include a set-top box 10 and a first user terminal 20 , and the set-top box 10 may be communicatively connected with the first user terminal 20 .
[0051] The above-mentioned set-top box 10 may specifically include the following modules:
[0052] The first access control module 11 is responsible for the communication connection between the set-top box and other user terminals in the local area network accessed by the set-top box, that is, the local area network accessed by the set-top box must be the same as the local area network accessed by the first user terminal, so that the set-top box and the first user terminal can establish a communication connection.
[0053] The first cross-screen interaction module 12 is used to support the set-top box to receive a play request sent by the first user terminal and perform corresponding processing based on the play request when a connection is established between the set-top box and the first user terminal.
[0054] The storage partition management module 13 is used to create multiple storage partitions in the storage space of the set-top box. Each storage partition is used to be allocated to a different user terminal to store the user terminal information of the corresponding user terminal to achieve data isolation between different user terminals, and the user terminals include the first user terminal.
[0055] In addition, the set-top box may further include a first EPG module 14 for providing television program information and browsing functions.
[0056] The first user terminal 20 may specifically include the following modules:
[0057] The second access control module 21 is responsible for the communication connection between the first user terminal and the set-top box. It should be noted that when the local area network accessed by the first user terminal is the same as the local area network accessed by the set-top box, the first user terminal can establish a communication connection with the set-top box.
[0058] The second EPG module 22 is used to provide detailed television program information and browsing functions. More specifically, in the content playback method provided in the embodiment of the present application, the second EPG module is used to enable the first user terminal to display a playback content selection interface for the user to select playback content.
[0059] The second cross-screen interaction module 23 is used to support the first user terminal to send a play request to the set-top box when a connection is established between the first user terminal and the set-top box, so as to realize screen content sharing and data transmission among multiple user terminals based on the same set-top box.
[0060] The player 24 is used to support the first user end to download and play related content based on the playback address. In addition, it can support multiple video formats to provide a smooth playback experience, and has functions such as pause, fast forward, fast rewind, and volume adjustment.
[0061] In addition, the above-mentioned architecture diagram may also include a television service system that is connected to the set-top box 10 in communication and a content delivery network (CDN) server that is connected to the first user terminal. In the content playback method provided in the embodiment of the present application, the above-mentioned television service system is used to authenticate the content information of the content to be played in the playback request received by the set-top box, and can realize the integration and distribution of television content, content operation, interactive services, user management and authentication, and expansion of value-added services. The above-mentioned CDN server is used to redirect the playback address for playing the content to be played sent by the set-top box received by the first user terminal. And it can be responsible for the caching and distribution of television content, load balancing, security assurance, acceleration services and intelligent scheduling.
[0062] based on Figure 1 The content playback method provided in the embodiment of the present application is described in detail below in conjunction with the accompanying drawings.
[0063] Figure 2 It is a schematic diagram of the interaction process between a set-top box and a user terminal provided in an embodiment of the present application.
[0064] like Figure 2 As shown, the content playback method provided in the embodiment of the present application may specifically include the following steps:
[0065] S201: When the first user terminal displays a content playing selection interface, the first user terminal receives a user input on the content playing selection interface.
[0066] The above-mentioned playback content selection interface is generated by the first user terminal based on the TV program guide EPG information of the set-top box. It should be noted here that the playback content selection interface is a display interface for displaying the playback content that can be selected by the user. The playback content selection interface may include multiple content selection controls, and each content selection control corresponds to a playback content. Based on this, the above-mentioned input can be used to indicate the content to be played in the playback content display interface, and the content to be played is any one of the playback contents corresponding to the multiple content selections displayed on the playback content display interface, and no excessive restrictions are made here.
[0067] In addition, it should be noted that the above input may be a click input, a touch input, etc. of the user on the playback content selection interface, which is not specifically limited here.
[0068] S202: The first user terminal obtains content information of the content to be played in response to the input.
[0069] In some embodiments, the content information of the content to be played may include data such as an identifier of the content to be played and an identifier of rights corresponding to the content to be played.
[0070] S203: When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and a connection is established between the set-top box and the first user terminal, the first user terminal sends a play request to the set-top box.
[0071] The above-mentioned play request may include content information of the content to be played.
[0072] S204: The set-top box obtains device information of the set-top box, and reads user terminal information of the first user terminal from the storage partition of the first user terminal.
[0073] The device information of the set-top box may include a device identification, a device model, a media access control address (MAC) of the set-top box, etc., which is not specifically limited here.
[0074] In addition, it should be noted that the storage space of the set-top box may include storage partitions corresponding to a plurality of second user terminals, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal. In addition, the plurality of second user terminals may include a first user terminal, and therefore, there is a storage partition corresponding to the first user terminal in the storage space of the set-top box, and the storage partition corresponding to the first user terminal is used to store the user terminal information of the first user terminal.
[0075] In addition, the above-mentioned multiple second user terminals may include but are not limited to mobile phones, tablet computers, televisions and other electronic devices that can be used to display or play related content, and the embodiments of the present application do not make specific limitations on this.
[0076] S205: The set-top box generates a first playback address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal.
[0077] S206: The set-top box sends a first playback address to the first user terminal.
[0078] S207: The first user terminal plays the content to be played based on the second playback address.
[0079] The second play address is determined based on the first play address sent by the set-top box. The second play address is also an address for playing the content to be played, which is not specifically limited here.
[0080] Specifically, the first user terminal can receive user input on the content playback selection interface when the first user terminal displays the content playback selection interface. Since the input indicates the content to be played, the first user terminal can respond to the input, obtain content information of the content to be played indicated by the input, and send a playback request carrying the content information of the content to be played to the set-top box. In this way, after receiving the playback request sent by the first user terminal, the set-top box can obtain the device information of the set-top box and read the user terminal information of the first user terminal from the storage partition of the first user terminal, and then generate a first playback address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal, and send the first playback address to the first user terminal, so that the first user terminal can obtain a second playback address based on the first playback address to play the content to be played.
[0081] In this embodiment, the first user terminal can display a playback content selection interface generated based on the EPG information of the set-top box, so as to play the content to be played based on the user's selection of the content to be played on the playback content selection interface, thereby satisfying the needs of multiple user terminals to watch different programs based on the same set-top box, and the set-top box and the first user terminal are connected in the same local area network, and the authorized local area network is restricted. The set-top box can also allocate storage partitions for different user terminals to achieve independent storage of information of each user terminal, thereby avoiding the situation where information of different user terminals affects each other. In addition, the set-top box is only responsible for sending the generated playback address to the user terminal, and the user terminal downloads and plays the playback content based on the playback address, thereby reducing the resource consumption of the set-top box.
[0082] Since in the above embodiment, the storage space of the set-top box may include storage spaces corresponding to a plurality of second user terminals respectively, so as to realize data interaction isolation between different user terminals, therefore, before the set-top box reads the user terminal information of the first user terminal from the storage partition of the first user terminal, the set-top box needs to create a storage partition corresponding to each user terminal. Based on this, an embodiment of the present application also provides a schematic diagram of interaction between a set-top box and a user terminal.
[0083] like Figure 3 As shown, the content playback method provided in the embodiment of the present application may also include the following steps:
[0084] S301, a first user terminal determines a network connection mode of the first user terminal.
[0085] The network connection method is a specific connection method for the first user terminal to access the network, which is not specifically limited here.
[0086] S302: When the preset connection mode includes the network connection mode of the first user terminal, the first user terminal sends a connection request to a connectable set-top box.
[0087] The preset connection mode may be a connection mode pre-set based on actual experience and used to represent the connection of the first user terminal to the local area network. The preset connection mode may be a WIFI connection mode, which is not specifically limited here.
[0088] In addition, the local area network accessed by the connectable set-top box is the same as the local area network accessed by the first user terminal, that is, the connectable set-top box is a connectable set-top box of the first user terminal within the local area network accessed by the first user terminal, and the connectable set-top box includes the set-top box. It should be noted that the embodiment of the present application does not specifically limit the number of the connectable set-top boxes.
[0089] S303: The set-top box establishes a message channel between the first user terminal and the set-top box based on the connection request.
[0090] The message channel may be a Digital Living Network Alliance (DLNA) channel, which is not specifically limited herein.
[0091] S304: The set-top box sends a first notification message to the first user terminal.
[0092] The first notification message is used to notify the first user terminal that the first user terminal has established a connection with the set-top box. The first notification message may include information such as a message channel number of a message channel between the first user terminal and the set-top box, which is not specifically limited here.
[0093] S305: The first user terminal sends a storage partition division request to the set-top box.
[0094] S306: The set-top box obtains a storage partition corresponding to the first user terminal from the storage space of the set-top box based on the storage partition division request.
[0095] S307: Send a second notification message to the first user terminal.
[0096] The second notification message is used for the first user terminal, and the set-top box has created a storage partition corresponding to the first user terminal in the storage space of the set-top box.
[0097] In an embodiment of the present application, the first user terminal can first determine the network connection mode of the first user terminal, and when the preset connection mode includes the network connection mode of the first user terminal, send a connection request to the connectable set-top box. Since the connectable set-top box includes a set-top box, the set-top box can establish a message channel between the first user terminal and the set-top box based on the connection request. In this way, when the first user terminal and the set-top box are connected in the same local area network, the first user terminal can send a storage partition division request to the set-top box. In this way, the set-top box can divide the storage partition corresponding to the first user terminal in the storage space of the set-top box based on the storage partition division request to store the storage partition corresponding to the first user terminal. In this way, the independent storage of each user terminal information is realized, avoiding the situation where different user terminals affect each other, and can also limit the playback in the local area network during the subsequent content playback process.
[0098] The content playback method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.
[0099] Figure 4 It is a flowchart of a content playback method provided in an embodiment of the present application.
[0100] like Figure 4 As shown, the content playing method can be applied to the above Figure 1 The set-top box 10 in the embodiment of the present application may include the following steps:
[0101] S410: When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and a connection is established between the set-top box and the first user terminal, a play request sent by the first user terminal is received.
[0102] Specifically, when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box and the first user terminal are connected, when the first user terminal displays a playback content selection interface for the user to select playback content, the user can input the playback content selection interface, so that the first user terminal can obtain the content information of the content to be played selected by the user in response to the input, and send the content information carrying the content to be played to the set-top box. In this way, the set-top box can receive the playback request sent by the first user terminal and carrying the content information of the content to be played selected by the user.
[0103] S420, acquiring device information of a set-top box, and reading user terminal information of the first user terminal from a storage partition of the first user terminal.
[0104] After receiving the playback request sent by the first user terminal, the set-top box can read the user terminal information of the first user terminal from the storage partition divided in the storage space of the set-top box for storing the user terminal information of the first user terminal, so as to subsequently generate a playback address for playing the content to be played, so that the first user terminal can download and play the content to be played based on the playback address.
[0105] S430: Generate a first playback address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal.
[0106] After obtaining the client information of the first client, the set-top box can generate a first playback address for playing the content to be played based on the set-top box information of the set-top box itself, the content information of the content to be played and the client information of the first client.
[0107] S440: Send the first playback address to the first user terminal, so that the first user terminal can download and play the content to be played based on the second playback address.
[0108] Specifically, after generating a first playback address for playing the content to be played, the set-top box can send the first playback address to the first user terminal, so that the first user terminal can download and play the content to be played based on the second playback address obtained from the first playback address.
[0109] In one embodiment, the content information of the content to be played includes a content identifier of the content to be played. Based on this, the S440 may specifically include the following steps:
[0110] According to the preset anti-hotlinking rule, the device information of the set-top box, the content identifier of the content to be played and the user terminal information of the first user terminal are spliced to obtain a first playback address for playing the content to be played.
[0111] Among them, the preset anti-hotlink rule can be pre-set based on actual experience or situation, and is not specifically limited here.
[0112] In this embodiment, the set-top box can obtain the first playback address for playing the content to be played by splicing the device information of the set-top box, the content information of the content to be played and the user terminal information of the first user terminal according to the preset anti-hotlinking rule.
[0113] In the embodiment of the present application, it is possible to receive the play request sent by the first user end by determining that the local area network accessed by the set-top box is the same as the local area network accessed by the first user end, and the set-top box establishes a connection with the first user end, and read the user end information of the first user end from the storage partition of the first user end, and then generate a first play address for playing the content to be played based on the first user end information and the device information of the set-top box, and send the first play address to the first user end, so that the first user end can download and play the content to be played based on the second play address obtained by the first user end. In this way, it can not only meet the needs of different family members to watch different programs at the same time based on the same set-top box, but also limit the authorized local area network through the connection established by the set-top box and the first user end in the same local area network, and can also allocate storage partitions for different user ends through the set-top box to realize the independent storage of each user end information, and avoid the situation where different user end information affects each other. In addition, the set-top box is only responsible for sending the play address to the user end, and the user end realizes the download and play of the play content based on the play address, which reduces the resource consumption of the set-top box.
[0114] In order to verify the legitimacy of the content to be played so that the first user terminal can play the content to be played normally later, after receiving the play request sent by the first user terminal, the set-top box needs to verify the content information of the content to be played in the play request, and execute the subsequent steps if the content information of the content to be played passes the verification. Therefore, in one embodiment, before the above S420, the content playing method provided in the embodiment of the present application may also include the following steps:
[0115] The content information of the content to be played is verified based on the preset verification rules to obtain the verification result of the content to be played.
[0116] The above-mentioned preset verification rules are relevant verification rules for verifying the legitimacy of the content information of the content to be played, and the present application embodiment does not specifically limit this. Accordingly, the verification result obtained after verifying the content information of the content to be played based on the preset verification rules is used to characterize whether the content information of the content to be played is legitimate.
[0117] Based on this, the above step of reading the client information of the first client from the storage partition of the first client may specifically include the following steps:
[0118] When the verification result of the content to be played indicates that the content information of the content to be played has been verified, the user terminal information of the first user terminal is read from the storage partition of the first user terminal.
[0119] Specifically, after the set-top box obtains the verification result of the content to be played, if the verification result of the content to be played indicates that the content information of the content to be played has been verified, the set-top box can read the user terminal information of the first user terminal from the storage partition of the first user terminal.
[0120] In this embodiment, after receiving the play request sent by the first user terminal, the content information of the content to be played in the play request can be verified for legitimacy based on the preset verification rules, and the subsequent steps are executed if the verification passes. In this way, it can be ensured that the first user terminal can play the content smoothly and normally in the future.
[0121] In order to describe the content playback method provided by the embodiment of the present application in more detail, in one embodiment, before reading the user terminal information of the first user terminal from the storage partition of the first user terminal, the content playback method provided by the embodiment of the present application may further include the following steps:
[0122] Sending content information of the content to be played to the television service system;
[0123] Receive the authentication result sent by the television service system.
[0124] In some embodiments, the above authentication result may be obtained by the television service system authenticating the content information of the content to be played based on a preset authentication rule. The above preset authentication rule may be an authentication rule pre-set based on actual experience or circumstances, and the present application embodiment does not specifically limit this.
[0125] Specifically, the set-top box can send content information of the content to be played to the television service system. In this way, after the television service system verifies the content information of the content to be played based on preset authentication rules and obtains the corresponding authentication result, the television service system can send the authentication result to the set-top box. In this way, the set-top box can receive the authentication result sent by the television service system.
[0126] Based on this, the above step of reading the client information of the first client from the storage partition of the first client may specifically include the following steps:
[0127] When the authentication result indicates that the content information of the content to be played has been authenticated, the user terminal information of the first user terminal is read from the storage partition of the first user terminal.
[0128] After receiving the authentication result sent by the television service system, if the authentication result indicates that the content information of the content to be played has passed the authentication, the set-top box can read the user terminal information of the first user terminal from the storage partition of the first user terminal.
[0129] In this embodiment, after receiving the playback request sent by the first user terminal, the content information of the content to be played in the playback request can be sent to the television service system, so that the television service system can authenticate the content to be played based on its own pre-stored verification rules, and feedback the verification result to the set-top box, so that the set-top box can execute subsequent processes if the verification is passed. In this way, by authenticating the content information of the content to be played, the security of the content to be played can be guaranteed, and the first user terminal can play the content to be played smoothly and normally.
[0130] In addition, since there is a storage partition corresponding to the first user terminal in the storage space of the set-top box, and the storage partition corresponding to the first user terminal is used to store the user terminal information of the first user terminal, before the set-top box reads the user terminal information of the first user terminal from the storage partition corresponding to the first user terminal, the set-top box needs to divide the storage partition corresponding to the first user terminal in the storage space of the set-top box. Based on this, in one embodiment, before reading the user terminal information of the first user terminal from the storage partition corresponding to the first user terminal, the content playback method provided in the embodiment of the present application may specifically include the following steps:
[0131] Receiving a storage partition division request sent by a first user terminal;
[0132] Based on the storage partition division request, a storage partition corresponding to the first user terminal is obtained from the storage space of the set-top box.
[0133] In some embodiments, the above-mentioned storage partition division request may be a request for requesting to divide the storage partition corresponding to the first user terminal, and the storage partition division request may include the user terminal information of the first user terminal.
[0134] The storage partition corresponding to the first client is used to store the client information of the first client.
[0135] Specifically, the set-top box can receive a storage partition division request sent by the first user terminal, and based on the storage partition division request, divide the storage partition corresponding to the first user terminal from the storage space of the set-top box for storing the user terminal information of the first user terminal.
[0136] More specifically, the specific process of the set-top box allocating an independent storage partition for the first user terminal to store the user terminal information of the first user terminal can be as follows:
[0137] Step 1: The set-top box receives a storage partition division request sent by a first user terminal, where the storage partition division request includes user terminal information of the first user terminal, and the user terminal information of the first user terminal may include a device identifier of the user terminal;
[0138] Step 2: After receiving the storage partition division request, the set-top box queries whether there is a storage partition corresponding to the first user terminal in the storage space of the set-top box based on the device identifier of the first user terminal.
[0139] Step 3: When the storage partition corresponding to the first user terminal does not exist in the storage space of the set-top box, the set-top box can determine the remaining storage space of the set-top box and determine whether the remaining storage space is sufficient to create the storage partition corresponding to the first user terminal. It should be noted here that the size of the storage partition corresponding to each user terminal is preset by the set-top box and is not specifically limited here.
[0140] Step 4: When the remaining storage space of the set-top box is sufficient to create the storage partition corresponding to the first user terminal, the set-top box can divide the storage partition corresponding to the first user terminal from the remaining storage space of the set-top box. It should be noted that when dividing, the set-top box will allocate a certain amount (determined according to the configuration value) of memory space to create the storage partition corresponding to the first user terminal, for storing the user terminal information of the first user terminal. After allocating memory, the set-top box will check again whether the size requirement for creating the storage area is met to ensure that the allocated storage space is sufficient.
[0141] It should be noted that when the set-top box queries whether there is a storage partition corresponding to the first user terminal in the storage space of the set-top box based on the device identifier of the first user terminal, if there is a storage partition corresponding to the first user terminal in the storage space of the set-top box, the storage partition corresponding to the first user terminal is directly used.
[0142] In this embodiment, the set-top box can receive a storage partition division request sent by the first user terminal, and divide the storage partition corresponding to the first user terminal for storing the user terminal information of the first user terminal in the storage space of the set-top box. In this way, data confusion and interference between different devices are effectively prevented, and security and business isolation are further improved.
[0143] Based on this, in one embodiment, before the above S410, the content playback method provided in the embodiment of the present application may specifically include the following steps:
[0144] Receiving a connection request sent by a first client;
[0145] Based on the connection request, a message channel is established between the first user terminal and the set-top box.
[0146] Among them, the above-mentioned connection request can be sent by the first user terminal to the connectable set-top box when it is determined that the preset connection method includes the network connection method of the first user terminal. Among them, the above-mentioned preset connection method can be a connection method pre-set based on actual experience or circumstances, and is used to characterize the first user terminal's access to the local area network. For example, the preset connection method can be a WIFI method.
[0147] In addition, the local area network accessed by the first user terminal is the same as the local area network accessed by the connectable set-top box, and the connectable set-top box may include the above set-top box, and the embodiment of the application does not specifically limit the number of connectable set-top boxes. The message channel may include a DLNA channel.
[0148] In one example, the first user terminal can broadcast a DLNA message through the DLNA protocol to search for a connectable set-top box connected to the same local area network as the first user terminal, and filter and determine the connectable set-top box information in the local area network based on the set-top box name of the connectable set-top box. For example, the set-top box information may refer to the Internet Protocol (IP) address of the set-top box. Since the connectable set-top box includes a set-top box, the first user terminal can send a connection request to the set-top box. In this way, the set-top box can receive the connection request and establish a message channel between the set-top box and the first user terminal based on the connection request, thereby realizing the connection between the set-top box and the first user terminal in the same local area network.
[0149] In this embodiment, the set-top box can receive a connection request sent by the first user terminal, and then based on the connection request, establish a message channel between the first user terminal and the set-top box to establish a communication connection between the first user terminal and the set-top box within the same local area network, so as to facilitate subsequent interaction between the first user terminal and the set-top box to realize content playback, protect data security and privacy, and prevent external unauthorized users from accessing or obtaining the playback content.
[0150] Figure 5 It is a flowchart of a content playback method provided in an embodiment of the present application.
[0151] like Figure 5 As shown, the content playing method can be applied to the above Figure 1 The first user terminal 20 shown, based on this, the method may specifically include the following steps:
[0152] S510: When a first user terminal displays a content playing selection interface, receiving a user input on the content playing selection interface.
[0153] S520: In response to the input, obtain content information of the content to be played.
[0154] S530: When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box has established a connection with the first user terminal, a play request carrying content information of the content to be played is sent to the set-top box.
[0155] S540: Receive a first playback address sent by a set-top box for playing the content to be played.
[0156] S550: Download and play the content to be played based on the second play address.
[0157] In the embodiment of the present application, the first user terminal can receive the user's input on the playback content selection interface when the first user terminal displays the playback content selection interface. Since the input indicates the content to be played in the content selection interface to be played, the first user terminal can respond to the input, obtain the content information of the content to be played, and send a playback request carrying the content information of the content to be played to the set-top box when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box establishes a connection with the first user terminal, so that the set-top box can generate a first playback address for playing the content to be played based on the user terminal information of the first user terminal and the device information of the set-top box, and then can receive the first playback address sent by the set-top box, and download and play the content to be played based on the second playback address obtained by the first playback address. Not only can it meet the needs of multiple family users to watch different programs at the same time based on the same set-top box, and can limit the authorized local area network through the connection of the first user terminal and the set-top box in the same local area network, but also can allocate storage partitions to different user terminals through the set-top box to realize the independent storage of each user terminal information and avoid the situation where the information of different user terminals affects each other. Furthermore, the set-top box is only responsible for sending the playback address to the user end, and the user end downloads and plays the playback content based on the playback address, thereby reducing the resource consumption of the set-top box.
[0158] In order to fully and in detail describe the content playback method provided by the embodiment of the present application, in one embodiment, before the above S450, the content playback method provided by the embodiment of the present application may specifically include the following steps:
[0159] Sending a first playback address for playing the content to be played to a content delivery network CDN server;
[0160] Receive a second playback address sent by the CDN server for playing the content to be played.
[0161] In some embodiments, the second playback address is obtained after the CDN server redirects the first playback address based on a redirect rule when the verification of the first playback address passes.
[0162] Specifically, the first client can send the first playback address for playing the content to be played to the Content Delivery Network (CDN) server. In this way, when the CDN server verifies that the first playback address passes, it can obtain the second playback address after redirecting the first playback address based on the redirect rule. Then, the CDN server can send the second playback address to the first client. Thus, the first client can receive the second playback address sent by the CDN server.
[0163] In this embodiment, by sending the first playback address for playing the content to be played to the CDN server, it is convenient for the CDN server to redirect the first playback address and then feedback the redirected second playback address to the first client, ensuring that the first client can quickly access the content to be played and improving the user experience.
[0164] In addition, to describe the content playback method provided in the embodiments of the present application in more detail, in one embodiment, the content playback method provided in the embodiments of the present application may further include the following steps:
[0165] Send a storage partition division request to the set-top box for the set-top box to divide a storage partition corresponding to the first client from the storage space of the set-top box based on the storage partition division request.
[0166] In some embodiments, the above storage partition division request may include the client information of the first client. In addition, the storage partition corresponding to the first client is used to store the client information of the first client.
[0167] Specifically, the first client can send a storage partition division request to the set-top box. Since the storage partition division request may include the client information of the first client, it is convenient for the set-top box to divide a storage partition corresponding to the first client from the set-top box based on the storage partition division request to store the client information of the first client.
[0168] In this embodiment, the first client can send a storage partition division request to the set-top box for the set-top box to divide a storage partition corresponding to the first client in the storage space of the set-top box for storing the client information of the first client. In this way, it effectively prevents data confusion and interference between different devices, further improving security and service isolation.
[0169] Based on this, in one embodiment, before sending a storage partition division request to a set-top box, the content playback method provided in the embodiment of the present application may further include the following steps:
[0170] Determining a network connection mode of the first user terminal;
[0171] In the case where the preset connection mode includes the network connection mode of the first user terminal, a connection request is sent to the connectable set-top box, so that the set-top box establishes a message channel between the first user terminal and the set-top box based on the connection request.
[0172] The preset connection mode may be pre-set based on actual experience or circumstances, and may represent a network connection mode for the first user terminal to access the local area network. For example, the preset connection mode is a WIFI connection mode, which is not specifically limited herein.
[0173] In addition, the local area network accessed by the first user terminal is the same as the local area network accessed by the connectable set-top box, and the connectable set-top box may include the above set-top box, and the embodiment of the application does not specifically limit the number of connectable set-top boxes. The message channel may include a DLNA channel.
[0174] Specifically, the first user terminal can first determine the network connection mode of the first user terminal, and when the preset connection mode includes the network connection mode of the first user terminal, that is, the first user terminal accesses the local area network, send a connection request to a connectable set-top box accessed to the same local area network. Since the connectable set-top box includes the above-mentioned set-top box, the set-top box is used to establish a message channel between the first user terminal and the set-top box based on the connection request.
[0175] In this embodiment, the first user terminal can first determine the network connection mode of the first user terminal, and send a connection request to the set-top box when the preset connection mode includes the network connection mode of the first user terminal, so that the set-top box can establish a message channel between the first user terminal and the set-top box based on the connection request, and establish a communication connection between the first user terminal and the set-top box within the same local area network. In this way, not only can data security and privacy be protected, but also external unauthorized users can be prevented from accessing or obtaining the playback content.
[0176] In order to describe the content playback method provided by the embodiment of the present application in a more comprehensive and detailed manner, in one embodiment, the content playback method provided by the embodiment of the present application may further include the following steps:
[0177] Send a heartbeat request to the set-top box according to a preset period;
[0178] If the heartbeat feedback information sent by the set-top box is not received within a preset time, a prompt message is generated.
[0179] The preset period may be preset based on actual experience or circumstances, and is not specifically limited here. In addition, the preset time may be preset based on actual experience or circumstances, and is not specifically limited here.
[0180] In some embodiments, the heartbeat feedback information is information generated by the first user terminal based on the heartbeat request, and the prompt information is used to prompt the user to disconnect the first user terminal from the set-top box.
[0181] Specifically, after the set-top box establishes a message channel with the first user terminal, the first user terminal can continuously send heartbeat requests to the set-top box according to a preset period. After sending the heartbeat request, if the set-top box does not receive the heartbeat packet for a long time or cannot return the heartbeat request, an error prompt may appear, and the user needs to be reminded whether the first user terminal disconnects from the set-top box and disconnects the local area network connection, or to be reminded to perform corresponding troubleshooting and processing.
[0182] In addition, if the first user terminal does not receive the heartbeat feedback information returned from the set-top box, the first user terminal can also downgrade and release resources to save system overhead. At the same time, the first user terminal will re-initiate the heartbeat packet through the message channel to maintain the connection with the set-top box.
[0183] It should be noted that if the set-top box can receive the heartbeat packet, then a socket instance can be created and a heartbeat feedback message can be assembled, wherein the heartbeat feedback message includes the set-top box device identification, the current IP address of the set-top box, gateway information, etc., and then the heartbeat feedback message is fed back to the first user terminal. In this way, the first user terminal can continue to maintain the binding logic after receiving the heartbeat feedback message, and waits for the specified preset period to initiate the heartbeat request again. This process can be continuously repeated to ensure that the connection between the first user terminal and the set-top box remains active all the time.
[0184] In this embodiment, a heartbeat request can be periodically sent to the set-top box to detect whether the message channel between the first user terminal and the set-top box is connected normally. If no feedback information is received from the set-top box for a long time, indicating that there is an abnormality in the message channel between the first user terminal and the set-top box, a prompt message can be generated to promptly and effectively remind the user.
[0185] Based on the content playback method provided in the embodiment of the present application, while meeting the needs of each family member who wants to watch different programs at the same time, it can also solve the problem of business interaction isolation, ensure data security and mutual influence, realize independent interaction and independent viewing of different family members, and realize interactive control and video stream separation, realize interactive interface screen projection and split screen while sharing video streams, share rights and interests, ensure the consistency of viewing experience of each user end, and ensure the smoothness of viewing programs by each user end, as well as the security of the set-top box device, and can also limit the authorized local area network. In addition, the performance of the set-top box can be taken into account to avoid the situation where the set-top box cannot handle more video distribution tasks due to low configuration, and the proxy gateway can be realized without affecting the performance of the set-top box.
[0186] Based on the same inventive concept, the embodiment of the present application provides a device for a content playback method, which can be applied to a set-top box, and can be specifically combined with Figure 6 The content playback device provided in the embodiment of the present application is described in detail.
[0187] Figure 6 It is a structural diagram of a content playback device provided in an embodiment of the present application.
[0188] like Figure 6 As shown, the content playing device 600 may include:
[0189] The receiving module 610 is used to receive a play request sent by the first user terminal when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box is connected to the first user terminal, wherein the play request includes content information of the content to be played, the content information of the content to be played is obtained by the first user terminal in response to the user input on the play content selection interface displayed by the first user terminal, and the play content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box;
[0190] The acquisition module 620 is used to acquire device information of the set-top box and read the user terminal information of the first user terminal from the storage partition of the first user terminal, the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals respectively, the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0191] A generating module 630, configured to generate a first playback address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal;
[0192] The sending module 640 is used to send the first playback address to the first user terminal, so that the first user terminal can download and play the content to be played based on the second playback address, where the second playback address is determined based on the first playback address.
[0193] In one embodiment, the content playback device provided in the embodiment of the present application may further include:
[0194] A verification module, used to verify the content information of the content to be played based on a preset verification rule, and obtain a verification result of the content to be played;
[0195] Based on this, the acquisition module is specifically configured to read the user terminal information of the first user terminal from the storage partition of the first user terminal when the verification result of the content to be played indicates that the content information of the content to be played has been verified.
[0196] In one embodiment, the sending module is further used to send content information of the content to be played to the television service system;
[0197] The receiving module is further used to receive an authentication result sent by the television service system, where the authentication result is obtained by the television service system authenticating content information of the content to be played based on a preset authentication rule;
[0198] Based on this, the acquisition module is specifically configured to read the user terminal information of the first user terminal from the storage partition of the first user terminal when the authentication result indicates that the content information of the content to be played has been authenticated.
[0199] In one embodiment, the content playback device provided in the embodiment of the present application further includes:
[0200] The receiving module is further configured to receive a storage partition division request sent by the first user terminal, wherein the storage partition division request includes user terminal information of the first user terminal;
[0201] The partitioning module is used to partition the storage space of the set-top box to obtain a storage partition corresponding to the first user terminal based on the storage partition partitioning request, and the storage partition corresponding to the first user terminal is used to store the user terminal information of the first user terminal.
[0202] In one embodiment, the content playback device provided in the embodiment of the present application further includes:
[0203] The receiving module is further used to receive a connection request sent by the first user terminal, the connection request is sent by the first user terminal to the connectable set-top box when it is determined that the preset connection mode includes the network connection mode of the first user terminal, the local area network accessed by the first user terminal is the same as the local area network accessed by the connectable set-top box, and the connectable set-top box includes a set-top box;
[0204] The establishing module is used to establish a message channel between the first user terminal and the set-top box based on the connection request.
[0205] In the embodiment of the present application, it is possible to receive the play request sent by the first user end by determining that the local area network accessed by the set-top box is the same as the local area network accessed by the first user end, and the set-top box establishes a connection with the first user end, and read the user end information of the first user end from the storage partition of the first user end, and then generate a first play address for playing the content to be played based on the first user end information and the device information of the set-top box, and send the first play address to the first user end, so that the first user end can download and play the content to be played based on the second play address obtained by the first user end. In this way, it can not only meet the needs of different family members to watch different programs at the same time based on the same set-top box, but also limit the authorized local area network through the connection established by the set-top box and the first user end in the same local area network, and can also allocate storage partitions for different user ends through the set-top box to realize the independent storage of each user end information, and avoid the situation where different user end information affects each other. In addition, the set-top box is only responsible for sending the play address to the user end, and the user end realizes the download and play of the play content based on the play address, which reduces the resource consumption of the set-top box.
[0206] Each module in the content playback device provided in the embodiment of the present application can be implemented as follows: Figure 4 The method steps of the illustrated embodiment, and the ability to achieve the corresponding technical effects, are not briefly described and will not be repeated here.
[0207] Based on the same inventive concept, the embodiment of the present application provides a device for a content playback method, which can be applied to a first user terminal, and can be specifically combined with Figure 7 The content playback device provided in the embodiment of the present application is described in detail.
[0208] Figure 7 It is a structural diagram of a content playback device provided in an embodiment of the present application.
[0209] like Figure 7 As shown, the content playing device 700 may include:
[0210] The receiving module 710 is used to receive a user input on the playback content selection interface when the first user terminal displays the playback content selection interface, where the playback content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box, and the input indicates the content to be played in the playback content selection interface;
[0211] The acquisition module 720 is used to acquire content information of the content to be played in response to the input;
[0212] The sending module 730 is used to send a play request carrying content information of the content to be played to the set-top box when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box is connected to the first user terminal;
[0213] The receiving module 710 is further used to receive a first playback address for playing the content to be played sent by the set-top box, where the first playback address is generated by the set-top box based on the user terminal information of the first user terminal, the content information of the content to be played, and the device information of the set-top box, and the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals, respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal;
[0214] The playing module 740 is used to download and play the content to be played based on the second playing address, where the second playing address is determined based on the first playing address.
[0215] In one embodiment, the content playback device provided in the embodiment of the present application further includes:
[0216] The sending module is further used to send a first playback address for playing the content to be played to a content delivery network CDN server;
[0217] The receiving module is also used to receive a second playback address sent by the CDN server for playing the content to be played. The second playback address is obtained by the CDN server after redirecting the first playback address based on the redirection rule when the first playback address is verified.
[0218] In one embodiment, the above-mentioned sending module is also used to send a storage partition division request to the set-top box, and the storage partition division request includes user-side information of the first user terminal, so that the set-top box can divide the storage partition corresponding to the first user terminal from the storage space of the set-top box based on the storage partition division request, and the storage partition corresponding to the first user terminal is used to store the user-side information of the first user terminal.
[0219] In one embodiment, the content playback device provided in the embodiment of the present application further includes:
[0220] A determination module, used to determine a network connection mode of the first user terminal;
[0221] The sending module is also used to send a connection request to a connectable set-top box when the preset connection mode includes the network connection mode of the first user terminal, the local area network accessed by the connectable set-top box is the same as the local area network accessed by the first user terminal, and the connectable set-top box includes a set-top box, so that the set-top box can establish a message channel between the first user terminal and the set-top box based on the connection request.
[0222] In one embodiment, the content playback device provided in the embodiment of the present application further includes:
[0223] The sending module is also used to send a heartbeat request to the set-top box according to a preset period;
[0224] The generation module is used to generate prompt information when the heartbeat feedback information sent by the set-top box is not received within a preset time. The heartbeat feedback information is information generated by the first user end based on the heartbeat request. The prompt information is used to prompt the user that the first user end is disconnected from the set-top box.
[0225] In the embodiment of the present application, the first user terminal can receive the user's input on the playback content selection interface when the first user terminal displays the playback content selection interface. Since the input indicates the content to be played in the content selection interface to be played, the first user terminal can respond to the input, obtain the content information of the content to be played, and send a playback request carrying the content information of the content to be played to the set-top box when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box establishes a connection with the first user terminal, so that the set-top box can generate a first playback address for playing the content to be played based on the user terminal information of the first user terminal and the device information of the set-top box, and then can receive the first playback address sent by the set-top box, and download and play the content to be played based on the second playback address obtained by the first playback address. Not only can it meet the needs of multiple family users to watch different programs at the same time based on the same set-top box, and can limit the authorized local area network by connecting the first user terminal and the set-top box in the same local area network, but also can allocate storage partitions to different user terminals through the set-top box to realize the independent storage of each user terminal information, and avoid the situation where the information of different user terminals affects each other. Furthermore, the set-top box is only responsible for sending the playback address to the user end, and the user end downloads and plays the playback content based on the playback address, thereby reducing the resource consumption of the set-top box.
[0226] Each module in the content playback device provided in the embodiment of the present application can be implemented as follows: Figure 5 The method steps of the illustrated embodiment, and the ability to achieve the corresponding technical effects, are not briefly described and will not be repeated here.
[0227] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0228] The electronic device may include a processor 801 and a memory 802 storing computer program instructions.
[0229] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0230] The memory 802 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 802 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 802 may be inside or outside the electronic device. In a particular embodiment, the memory 802 is a non-volatile solid-state memory.
[0231] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0232] The processor 801 implements any one of the content playback methods in the above embodiments by reading and executing computer program instructions stored in the memory 802 .
[0233] In one example, the electronic device may further include a communication interface 803 and a bus 810. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 and communicate with each other.
[0234] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0235] Bus 810 includes hardware, software or both, and the parts of electronic equipment are coupled to each other.For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.
[0236] In addition, in combination with the content playback method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the content playback method provided in the embodiment of the present application is implemented.
[0237] The embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the content playback method provided in the embodiment of the present application.
[0238] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0239] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0240] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A content playing method, characterized in that: Applied to a set-top box, the method comprises: When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box is connected to the first user terminal, receiving a play request sent by the first user terminal, the play request including content information of the content to be played, the content information of the content to be played is obtained by the first user terminal in response to a user input on a play content selection interface displayed by the first user terminal, and the play content selection interface is generated by the first user terminal based on television program guide EPG information of the set-top box; Acquire device information of a set-top box, and read the user terminal information of the first user terminal from the storage partition of the first user terminal, wherein the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal; Generate a first playback address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal; The first playback address is sent to the first user terminal, so that the first user terminal downloads and plays the to-be-played content based on a second playback address, where the second playback address is determined based on the first playback address.
2. The method according to claim 1, characterized in that Before reading the client information of the first client from the storage partition of the first client, the method further includes: Verifying the content information of the content to be played based on a preset verification rule to obtain a verification result of the content to be played; The step of reading the user terminal information of the first user terminal from the storage partition of the first user terminal includes: When the verification result of the to-be-played content indicates that the content information of the to-be-played content has passed the verification, the user terminal information of the first user terminal is read from the storage partition of the first user terminal.
3. The method according to claim 2, characterized in that Before reading the client information of the first client from the storage partition of the first client, the method further includes: Sending content information of the content to be played to the television service system; receiving an authentication result sent by the television service system, wherein the authentication result is obtained by the television service system authenticating content information of the to-be-played content based on a preset authentication rule; The step of reading the user terminal information of the first user terminal from the storage partition of the first user terminal includes: When the authentication result indicates that the content information of the to-be-played content has been authenticated, the user terminal information of the first user terminal is read from the storage partition of the first user terminal.
4. The method according to any one of claims 1 to 3, characterized in that Before reading the client information of the first client from the storage partition corresponding to the first client, the method further includes: Receiving a storage partition division request sent by a first user terminal, wherein the storage partition division request includes user terminal information of the first user terminal; Based on the storage partition division request, a storage partition corresponding to the first user terminal is obtained from the storage space of the set-top box, and the storage partition corresponding to the first user terminal is used to store the user terminal information of the first user terminal.
5. The method according to claim 1, characterized in that When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box is connected to the first user terminal, before receiving the play request sent by the first user terminal, the method further includes: receiving a connection request sent by a first user terminal, the connection request being sent by the first user terminal to a connectable set-top box when it is determined that a preset connection mode includes a network connection mode of the first user terminal, the local area network accessed by the first user terminal is the same as the local area network accessed by the connectable set-top box, and the connectable set-top box includes the set-top box; Based on the connection request, a message channel is established between the first user terminal and the set-top box.
6. A content playing method, characterized in that: Applied to a first user terminal, the method includes: In a case where the first user terminal displays a playback content selection interface, receiving a user input on the playback content selection interface, wherein the playback content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box, and the input indicates the content to be played in the playback content selection interface; In response to the input, obtaining content information of the content to be played; When it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal, and the set-top box is connected to the first user terminal, sending a play request carrying content information of the to-be-played content to the set-top box; receiving a first playback address for playing the content to be played sent by the set-top box, wherein the first playback address is generated by the set-top box based on the user terminal information of the first user terminal, the content information of the content to be played, and the device information of the set-top box, and the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals, respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal; Based on a second playback address, the to-be-played content is downloaded and played, where the second playback address is determined based on the first playback address.
7. The method according to claim 6, characterized in that Before playing the content to be played based on the second playback address, the method further includes: Sending a first playback address for playing the content to be played to a content delivery network CDN server; A second playback address for playing the to-be-played content sent by the CDN server is received, where the second playback address is obtained after the CDN server redirects the first playback address based on a redirection rule when verifying that the first playback address passes.
8. The method according to claim 6, characterized in that The method further comprises: A storage partition division request is sent to the set-top box, wherein the storage partition division request includes user-side information of the first user side, so that the set-top box can divide the storage partition corresponding to the first user side from the storage space of the set-top box based on the storage partition division request, and the storage partition corresponding to the first user side is used to store the user-side information of the first user side.
9. The method according to claim 8, characterized in that Before sending the storage partition division request to the set-top box, the method further includes: Determining a network connection mode of the first user terminal; In a case where the preset connection mode includes the network connection mode of the first user terminal, a connection request is sent to a connectable set-top box, the local area network accessed by the connectable set-top box is the same as the local area network accessed by the first user terminal, and the connectable set-top box includes the set-top box, so that the set-top box establishes a message channel between the first user terminal and the set-top box based on the connection request.
10. The method according to claim 6, characterized in that The method further comprises: Send a heartbeat request to the set-top box according to a preset period; If the heartbeat feedback information sent by the set-top box is not received within a preset time, a prompt message is generated, where the heartbeat feedback information is information generated by the first user terminal based on the heartbeat request, and the prompt message is used to prompt the user that the first user terminal is disconnected from the set-top box.
11. A content playback device, characterized in that: Applied to a set-top box, the device comprises: a receiving module, configured to, when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box is connected to the first user terminal, receive a play request sent by the first user terminal, wherein the play request includes content information of content to be played, the content information of the content to be played is obtained by the first user terminal in response to a user input to a play content selection interface displayed by the first user terminal, and the play content selection interface is generated by the first user terminal based on television program guide EPG information of the set-top box; an acquisition module, used to acquire device information of a set-top box, and read user terminal information of a first user terminal from a storage partition of the first user terminal, wherein the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal; A generating module, configured to generate a first playing address for playing the content to be played based on the device information of the set-top box, the content information of the content to be played, and the user terminal information of the first user terminal; The sending module is used to send the first playback address to the first user terminal, so that the first user terminal can download and play the content to be played based on a second playback address, where the second playback address is determined based on the first playback address.
12. A content playback device, characterized in that: Applied to a first user terminal, the device includes: a receiving module, configured to receive a user input on a playback content selection interface when the first user terminal displays the playback content selection interface, wherein the playback content selection interface is generated by the first user terminal based on the television program guide EPG information of the set-top box, and the input indicates content to be played in the playback content selection interface; An acquisition module, configured to acquire content information of the content to be played in response to the input; a sending module, configured to send a play request carrying content information of the to-be-played content to the set-top box when it is determined that the local area network accessed by the set-top box is the same as the local area network accessed by the first user terminal and the set-top box is connected to the first user terminal; The receiving module is further used to receive a first playback address sent by the set-top box for playing the content to be played, wherein the first playback address is generated by the set-top box based on the user terminal information of the first user terminal, the content information of the content to be played, and the device information of the set-top box, and the storage space of the set-top box includes storage partitions corresponding to a plurality of second user terminals, respectively, and the storage partition corresponding to each second user terminal is used to store the user terminal information of the second user terminal, and the plurality of second user terminals include the first user terminal; The playing module is used to download and play the content to be played based on a second playing address, where the second playing address is determined based on the first playing address.