[go: up one dir, main page]

WO2018045892A1 - Streaming media resource obtaining method and apparatus, and streaming media system - Google Patents

Streaming media resource obtaining method and apparatus, and streaming media system Download PDF

Info

Publication number
WO2018045892A1
WO2018045892A1 PCT/CN2017/099345 CN2017099345W WO2018045892A1 WO 2018045892 A1 WO2018045892 A1 WO 2018045892A1 CN 2017099345 W CN2017099345 W CN 2017099345W WO 2018045892 A1 WO2018045892 A1 WO 2018045892A1
Authority
WO
WIPO (PCT)
Prior art keywords
streaming media
terminal
path
service ticket
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2017/099345
Other languages
French (fr)
Chinese (zh)
Inventor
孙莹杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Publication of WO2018045892A1 publication Critical patent/WO2018045892A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Definitions

  • the present application relates to the field of streaming media technologies, and in particular, to a streaming media resource acquiring method, device, and streaming media system.
  • Streaming Media refers to a media format that is streamed over the Internet.
  • Streaming media is a side-by-side broadcast media.
  • Edge-by-side broadcast refers to a service provider that can receive and view or listen to the transmitted media while transmitting media.
  • the streaming media resource can be sent to the user only when the authentication user is legal.
  • the solution for obtaining the streaming media resource includes: the terminal used by the user sends a path acquisition request to the platform, and the platform returns a streaming media service device (ie, a path for acquiring the streaming media resource) capable of providing the streaming media resource to the terminal;
  • the media service device sends a streaming media resource acquisition request, and carries the username and password information, and the streaming media service device sends the username and password information to the platform for verification; when the platform verification passes, the streaming media service device will stream the media resource.
  • the terminal used by the user sends a path acquisition request to the platform, and the platform returns a streaming media service device (ie, a path for acquiring the streaming media resource) capable of providing the streaming media resource to the terminal;
  • the media service device sends a streaming media resource acquisition request, and carries the username and password information, and the streaming media service device sends the username and password information to the platform for verification; when the platform verification passes, the streaming media service device will stream the media resource.
  • Send to the terminal the terminal used by the user send
  • the user name and password information are valid for a long time, that is, the platform performs only one security verification on the user name and password information of the terminal, and after the verification is passed, the path between the terminal and the streaming media service device is considered. Legitimate, and then no longer perform security verification when streaming media resources are transmitted through this path. In this case, if an illegal user obtains the path, the streaming media resource transmitted in the path can be obtained. In other words, the security of the above solution is not high.
  • An object of the embodiments of the present application is to provide a method, an apparatus, and a streaming media system for acquiring a streaming media resource, which improve security of acquiring streaming media resources.
  • the embodiment of the present application discloses a method for acquiring a streaming media resource, which is applied to a platform in a streaming media system, where the streaming media system further includes a terminal and a streaming media service device, and the method includes:
  • the first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;
  • the resource acquisition request includes the first service ticket
  • the first terminal is authenticated, and when the first terminal is verified to be valid, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal, which may include :
  • the method before the determining whether the first terminal successfully logs in to the streaming media system, the method further includes:
  • the method may further include:
  • the verifying the second service ticket includes:
  • the embodiment of the present application further discloses a method for acquiring a streaming media resource, which is applied to a terminal in a streaming media system, where the streaming media system further includes a platform and a streaming media service device, and the method includes :
  • the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed.
  • the result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.
  • the method may further include:
  • a service ticket acquisition request is sent to the platform.
  • the embodiment of the present application further discloses a streaming media resource acquiring apparatus, which is applied to a platform in a streaming media system, where the streaming media system further includes a terminal and a streaming media service device, and the device includes :
  • a first receiving module configured to receive a path acquisition request sent by the first terminal
  • a first verification sending module configured to verify the first terminal, when verifying the first terminal When the terminal is legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;
  • a second receiving module configured to receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is the first service After the media service device receives the resource acquisition request sent by the first terminal, the resource acquisition request includes the first service ticket;
  • a second verification sending module configured to perform verification on the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is in the The verification result shows that when the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.
  • the first verification sending module may include:
  • a first determining sub-module configured to determine, according to a correspondence between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal;
  • a first sending submodule configured to: when the first determining submodule determines that the result is yes, send the first path corresponding to the path obtaining request to the first terminal;
  • a second determining submodule configured to determine whether the first terminal successfully logs in to the streaming media system
  • the second sending submodule is configured to send the first service ticket to the first terminal when the second determining submodule determines that the result is yes.
  • the device may further include:
  • the third receiving module is configured to receive a service ticket acquisition request sent by the first terminal.
  • the device may further include:
  • a recording module configured to record a correspondence between the first terminal and the first service ticket
  • the second verification sending module is specifically configured to:
  • the embodiment of the present application further discloses a streaming media resource acquiring apparatus, which is applied to a terminal in a streaming media system, where the streaming media system further includes a platform and a streaming media service device, and the device includes :
  • a first sending module configured to send a path acquisition request to the platform
  • a third receiving module configured to receive the first path corresponding to the path obtaining request sent by the platform, and the first service ticket, where the first path and the first service ticket are the platform verifying the terminal Sent in case of legality;
  • a second sending module configured to send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource obtaining request includes the first service ticket;
  • a fourth receiving module configured to receive the streaming media resource sent by the first streaming media service device, where the streaming media resource is that the first streaming media service device receives the second service ticket sent by the platform If the verification result is sent, and the verification result is sent, the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.
  • the device may further include:
  • a third sending module configured to send a service ticket acquisition request to the platform.
  • the embodiment of the present application further discloses a streaming media system, including: a terminal, a streaming media service device, and a platform, where
  • the terminal is configured to send a path acquisition request to the platform, receive a first path corresponding to the path acquisition request sent by the platform, and a first service ticket; and send, to the first streaming media service device corresponding to the first path Sending a resource acquisition request; receiving a streaming media resource sent by the first streaming media service device;
  • the streaming media service device is configured to receive a resource acquisition request sent by the terminal, send the service ticket included in the resource acquisition request to the platform, and receive the target sent by the platform a verification result of the service ticket, when the verification result shows that the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the terminal;
  • the platform is configured to receive a path acquisition request sent by the first terminal, and perform verification on the first terminal, and when the first terminal is verified to be legal, send the path corresponding to the path acquisition request to the first terminal.
  • a path and a first service ticket ; receiving a second service ticket sent by the first streaming service device; verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming service device.
  • an embodiment of the present application further discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through a communication bus;
  • the computer program is stored;
  • the processor is configured to execute the method for acquiring the streaming media resource applied to the platform when executing the program stored in the memory.
  • an embodiment of the present application further discloses an executable program code for being executed to execute the above-mentioned streaming media resource acquisition method applied to a platform.
  • an embodiment of the present application further discloses a storage medium for storing executable program code, where the executable program code is used to execute the foregoing streaming media resource acquisition applied to a platform. method.
  • the embodiment of the present application further discloses a terminal device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus;
  • the computer program is stored;
  • the processor is configured to execute the method for acquiring the streaming media resource applied to the terminal when executing the program stored in the memory.
  • an embodiment of the present application further discloses an executable program code for being executed to execute the above-mentioned streaming media resource acquisition method applied to a terminal.
  • an embodiment of the present application further discloses a storage medium for storing executable program code, where the executable program code is configured to be executed to perform the above-mentioned streaming media resource acquisition applied to a terminal. method.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the resource acquisition to the streaming media service device corresponding to the path.
  • Requesting, the resource obtaining request includes the service ticket, and the streaming media service device sends the service ticket to a platform, where the platform performs the service ticket.
  • the verification is performed, and the verification result is sent to the streaming media service device.
  • the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • FIG. 1 is a schematic structural diagram of a streaming media system according to an embodiment of the present application
  • FIG. 2 is a schematic signaling diagram of a method for acquiring a streaming media resource according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of a method for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of a method for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a streaming media resource acquiring apparatus applied to a platform according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of a streaming media resource acquiring apparatus applied to a terminal according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the embodiment of the present application provides a method, an apparatus, and a streaming media system for acquiring a streaming media resource.
  • the method for acquiring a streaming media resource provided by the embodiment of the present application is described in detail below.
  • the method for obtaining a streaming media resource provided by the embodiment of the present application is applicable to a streaming media system.
  • the streaming media system may include a terminal, a streaming media service device, and a platform, and may of course include other parts. .
  • the terminal sends a path acquisition request to the platform.
  • the terminal verifies that the terminal is legal, the terminal sends the first path corresponding to the path acquisition request and the first service ticket to the terminal.
  • verifying whether the terminal is legal can be understood as verifying whether the terminal has the right to obtain the first path.
  • the platform can store the permissions of each terminal in the streaming media system.
  • the permissions are the paths that each terminal can obtain.
  • the platform verification terminal has the right to obtain the path of the request (that is, when the verification terminal is legal)
  • the first path requested by the terminal and the first service ticket are sent to the terminal.
  • the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB).
  • the service ticket is only limited. Valid during the time period and cannot be reused.
  • the terminal After receiving the first path and the first service ticket, the terminal sends a resource acquisition request to the media service device corresponding to the first path, where the resource acquisition request includes the first service ticket.
  • the first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and the address of the streaming media device, and the information that can uniquely identify the streaming media service device, and the terminal may determine the first path according to the identifier information.
  • Corresponding streaming media service device which is a device capable of providing streaming media resources required by the terminal. The terminal sends a resource acquisition request to the streaming media service device, where the resource acquisition request includes the first service ticket.
  • the streaming media service device After receiving the resource acquisition request, the streaming media service device sends the second service ticket to the platform; the platform verifies the second ticket. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed. Service ticket as second The service ticket is sent to the platform for attempting to pass the verification of the platform. In this case, the second service ticket is different from the first service ticket. Therefore, the platform verifies the second service ticket, that is, whether the second service ticket is verified with the first service. The notes are the same, if they are the same, the verification is passed.
  • the platform sends the verification result of the second service ticket to the streaming service device.
  • the streaming service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the streaming media service device sends the streaming media resource requested by the terminal to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • FIG. 3 is a schematic flowchart of a method for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure, including:
  • S101 Receive a path acquisition request sent by the first terminal.
  • the platform is responsible for the management of the streaming media system.
  • the permissions of each terminal can be stored in the platform, where the permissions are the paths that each terminal can obtain, and can also be understood as the terminal and the streaming media service device.
  • the corresponding relationship; the path can be understood as the correspondence between the streaming media service device and the streaming media resource, that is, the platform stores information about which streaming media resources can be obtained from each streaming media service device. Therefore, when the first terminal needs to obtain the streaming media resource, the platform first needs to obtain the path of the streaming media resource.
  • the path (the first path) of obtaining the A1 is first obtained. Therefore, the first terminal sends a path obtaining request to the platform to request the first path.
  • S102 Perform verification on the first terminal, and when the first terminal is authenticated, send the first path corresponding to the path obtaining request and the first service ticket to the first terminal.
  • this step may include:
  • the platform verifies whether the first terminal is legal or not.
  • the platform stores the rights of each terminal in the streaming media system.
  • the platform may not process the information, and may send the prompt information without permission to the first terminal. This is not limited; when the platform verification terminal has the right to acquire the first path, the first path and the first service ticket are sent to the terminal.
  • the above verification of the authority of the first terminal can prevent the user from obtaining the streaming media resource beyond the authority.
  • the first path is the path for obtaining the A1.
  • the first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and address of the streaming media device, and the information that can uniquely identify the streaming media service device. That is, A1 can be obtained from the streaming service device. It is assumed that the identifier information of the streaming media service device in the first path is A.
  • the first service ticket is sent to the first terminal.
  • it may determine whether the first terminal successfully logs in to the streaming media system, and if yes, send the first service ticket requested by the first terminal to the first terminal. .
  • the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB).
  • the service ticket is only limited. Valid during the time period and cannot be reused.
  • the platform can allocate the service ticket to the terminal only if the TGC (Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie) is stored in the terminal, and The TGC is saved only in the terminal if the terminal successfully logs in to the streaming system. Therefore, only when the first terminal successfully logs in to the streaming media system, the platform can allocate the first service ticket to the first terminal and send the first service ticket to the first terminal.
  • TGC Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie
  • S103 Receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket.
  • the terminal may determine, according to the identifier information A of the streaming media service device included in the first path, the first streaming media service device (ie, A) corresponding to the first path, and the streaming media service.
  • Device A is a device that can provide streaming media resources required by the terminal.
  • the terminal sends a resource acquisition request to the streaming media service device A, where the resource acquisition request includes the first service ticket.
  • the streaming service device A After receiving the resource acquisition request, the streaming service device A sends the second service ticket to the platform. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed.
  • the service ticket is sent to the platform as a second service ticket, in which case the second service ticket is different from the first service ticket.
  • S104 Verify the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device passes the verification result display verification Sending, to the first terminal, a streaming media resource corresponding to the resource acquisition request.
  • the platform verifies the second service ticket, that is, verifies whether the second service ticket is the same as the first service ticket, and if the same, the verification passes.
  • the corresponding relationship between the first terminal and the first service ticket may be recorded.
  • the verification of the second service ticket may include: determining, according to the recorded correspondence between the first terminal and the first service ticket, whether the second service ticket corresponds to the first terminal, if Yes, indicating that the second service ticket is verified to pass.
  • the platform records the correspondence between the terminal X and the service ticket X1
  • an illegal user invades the terminal X and tampers with the service ticket, turns the service ticket into X2, and the terminal X sends the service ticket X2 to the platform.
  • the platform judges that the terminal X does not correspond to the service ticket X2, that is, the verification of the second service ticket fails.
  • the platform can be left unprocessed or The terminal X is sent a prompt message that the verification fails, and no limitation is imposed here.
  • the terminal X sends the service ticket X1 to the platform, and the platform determines that the terminal X corresponds to the service ticket X1, that is, the second service ticket is verified.
  • the platform may invoke the API of the CAS to check the second service ticket. After the verification succeeds, the identifier of the terminal corresponding to the second service ticket is returned.
  • the information may be a serial number, an address, or the like of the terminal that can uniquely identify the terminal. It is determined whether the correspondence between the returned identification information of the terminal and the second service ticket is consistent with the corresponding relationship of the record, and if yes, the verification is passed.
  • the verification result there are three possibilities for the verification result. The first one, the verification is passed, the second correspondence is inconsistent, and the third verification of the service ticket is unsuccessful.
  • the platform sends the verification result to the streaming service device A.
  • the streaming media service device A sends the streaming media resource A1 to the terminal. That is to say, in the case that the terminal is a legitimate user, the layer terminal verifies that the final terminal acquires the streaming media resources required by itself.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path.
  • the device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • FIG. 4 is a schematic flowchart of a method for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure, including:
  • the platform is responsible for managing the streaming media system.
  • the permissions of each terminal may be stored in the platform, where the permissions are the paths that each terminal can obtain, and may also be The solution is the correspondence between the terminal and the streaming media service device; the path can be understood as the correspondence between the streaming media service device and the streaming media resource, that is, the platform stores which media service device can be obtained from each terminal. Information about streaming media resources. Therefore, when the first terminal needs to obtain the streaming media resource, the platform first needs to obtain the path of the streaming media resource.
  • the terminal Assuming that the terminal needs to obtain the streaming media resource A1, the path (first path) of obtaining the A1 is first obtained. Therefore, the terminal sends a path obtaining request to the platform to request the first path.
  • the platform After receiving the path acquisition request, the platform verifies the legality of the terminal. Specifically, whether the platform verifies that the terminal is legal or not includes two aspects:
  • the platform stores the rights of each terminal in the streaming media system (the correspondence between the terminal and the streaming media service device).
  • the platform verifies that the terminal does not have the right to obtain the first path it may not process, or may send the terminal with the prompt information that does not have permission, and there is no restriction here; when the platform verification terminal has the right to obtain the first path, the first A path and a first service ticket are sent to the terminal.
  • the foregoing verification of the authority of the terminal can prevent the user from obtaining the streaming media resource beyond the authority.
  • the first path is the path for obtaining the A1.
  • the first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and address of the streaming media device, and the information that can uniquely identify the streaming media service device. It is assumed that the identifier information of the streaming media service device in the first path is A.
  • the terminal may first send a service ticket request to the platform, and after receiving the service ticket request sent by the terminal, the platform determines whether the terminal successfully logs into the streaming media system, and if yes, sends the service to the terminal.
  • the first service ticket requested.
  • the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB).
  • the service ticket is only limited. Valid during the time period and cannot be reused.
  • the platform can allocate the service ticket to the terminal only if the TGC (Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie) is stored in the terminal, and The TGC is saved only in the terminal if the terminal successfully logs in to the streaming system. Therefore, the platform can allocate the first service ticket to the first terminal and send the first service ticket to the first terminal only if the first terminal successfully logs in to the streaming media system.
  • TGC Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie
  • S203 Send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket.
  • the terminal may determine, according to the identifier information A of the streaming media service device included in the first path, the first streaming media service device (ie, A) corresponding to the first path, and the streaming media service.
  • Device A is a device that can provide streaming media resources required by the terminal.
  • the terminal sends a resource acquisition request to the streaming media service device A, where the resource acquisition request includes the first service ticket.
  • the streaming service device A After receiving the resource acquisition request, the streaming service device A sends the second service ticket to the platform. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed.
  • the service ticket is sent to the platform as a second service ticket, in which case the second service ticket is different from the first service ticket.
  • the platform verifies the second service ticket, that is, verifies whether the second service ticket is the same as the first service ticket, and if the same, the verification passes.
  • S204 Receive a streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device to the second service ticket sent by the platform, and The verification result is sent in the case that the verification is passed, and the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.
  • the platform sends the verification result to the streaming service device A.
  • the streaming media service device A sends the streaming media resource A1 to the terminal. That is to say, in the case that the terminal is a legitimate user, the layer terminal verifies that the final terminal acquires the streaming media resources required by itself.
  • the terminal sends a path acquisition request to the platform, and the platform is inspected. And when the terminal is legal, the path and the service ticket corresponding to the path obtaining request are returned to the terminal, and the terminal sends a resource obtaining request to the streaming media service device corresponding to the path, where the resource obtaining request includes the service ticket, and the streaming media service
  • the device sends the service ticket to the platform, and the platform verifies the service ticket, and sends the verification result to the streaming media service device.
  • the streaming media service device sends the resource acquisition request to the terminal. Streaming media resources.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides a streaming media resource acquiring apparatus.
  • FIG. 5 is a schematic structural diagram of a device for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure, including:
  • the first receiving module 301 is configured to receive a path acquisition request sent by the first terminal.
  • the first verification sending module 302 is configured to perform verification on the first terminal, and when the first terminal is verified to be legal, send the first path corresponding to the path obtaining request and the first service ticket to the first terminal. ;
  • a second receiving module 303 configured to receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is the first After receiving the resource acquisition request sent by the first terminal, the first-level media service device includes the first service ticket in the resource acquisition request;
  • the second verification sending module 304 is configured to verify the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is The verification result shows that when the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.
  • the first verification sending module 302 includes: a first determining sub-module, a first sending sub-module, a second determining sub-module, and a second sending sub-module (not shown), wherein ,
  • a first determining sub-module configured to determine, according to a correspondence between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request and the first terminal are correspond;
  • a first sending submodule configured to: when the first determining submodule determines that the result is yes, send the first path corresponding to the path obtaining request to the first terminal;
  • a second determining submodule configured to determine whether the first terminal successfully logs in to the streaming media system
  • the second sending submodule is configured to send the first service ticket to the first terminal when the second determining submodule determines that the result is yes.
  • the apparatus may further include: a third receiving module (not shown), configured to receive a service ticket acquisition request sent by the first terminal.
  • the device may further include: a recording module (not shown) for recording a correspondence between the first terminal and the first service ticket;
  • the second verification sending module 304 is specifically configured to:
  • the resource acquisition request corresponds to a streaming media resource.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path.
  • the device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • FIG. 6 is a schematic structural diagram of a device for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure, including:
  • a first sending module 401 configured to send a path acquisition request to the platform
  • the third receiving module 402 is configured to receive the first path corresponding to the path obtaining request sent by the platform, and the first service ticket, where the first path and the first service ticket are Sent when the terminal is legal;
  • a second sending module 403, configured to send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource obtaining request includes the first service ticket;
  • the fourth receiving module 404 is configured to receive the streaming media resource sent by the first streaming media service device, where the streaming media resource is the second service ticket sent by the first streaming media service device after receiving the platform The verification result is sent, and the verification result is sent, and the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.
  • the apparatus may further include: a third sending module (not shown) for sending a service ticket acquisition request to the platform.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path.
  • the device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides a streaming media system, as shown in FIG. 1 , including: a terminal, a streaming media service device, and a platform, where
  • the terminal is configured to send a path acquisition request to the platform, receive a first path corresponding to the path acquisition request sent by the platform, and a first service ticket; and send, to the first streaming media service device corresponding to the first path Sending a resource acquisition request; receiving a streaming media resource sent by the first streaming media service device;
  • the streaming media service device is configured to receive a resource acquisition request sent by the terminal, send the service ticket included in the resource acquisition request to the platform, and receive a verification result for the service ticket sent by the platform, when The verification result shows that the streaming media resource corresponding to the resource acquisition request is sent to the terminal when the verification is passed;
  • the platform is configured to receive a path acquisition request sent by the first terminal, and perform verification on the first terminal, and when the first terminal is verified to be legal, send the path corresponding to the path acquisition request to the first terminal.
  • a path and a first service ticket ; receiving a second service ticket sent by the first streaming service device; verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming service device.
  • the platform is further configured to determine, according to the corresponding relationship between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal, and if And sending, by the first terminal, the first path corresponding to the path obtaining request; determining whether the first terminal successfully logs in to the streaming media system; if yes, sending the first service ticket to the first terminal.
  • the platform is further configured to receive a service ticket acquisition request sent by the first terminal.
  • the platform is further configured to record a correspondence between the first terminal and the first service ticket; and determine, according to the recorded correspondence between the first terminal and the first service ticket, Whether the second service ticket corresponds to the first terminal, and if yes, indicates that the second service ticket is verified to pass.
  • the terminal is further configured to send a service ticket acquisition request to the platform.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends a resource acquisition request to the streaming media service device corresponding to the path.
  • the service acquisition ticket includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where the verification result shows that the verification is passed.
  • the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused even if it is obtained by an illegal user.
  • the used service ticket can not obtain the streaming media resource from the streaming media service device, which improves the security of obtaining the streaming media resource.
  • the embodiment of the present application further provides an electronic device, as shown in FIG. 7, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704.
  • the processor 701, the communication interface 702, and the memory 703 pass through the communication bus 704.
  • the memory 703 is configured to store the computer program
  • the processor 701 is configured to implement the method for acquiring the streaming media resource when the program stored in the memory 703 is executed, and the method includes:
  • the first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;
  • the resource acquisition request includes the first service ticket
  • the electronic device can be a platform in a streaming media system, and both the terminal and the streaming media service device can belong to a streaming media system.
  • the communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.
  • the communication interface is used for communication between the above electronic device and other devices.
  • the memory may include a random access memory (RAM), or To include a Non-Volatile Memory (NVM), such as at least one disk storage.
  • RAM random access memory
  • NVM Non-Volatile Memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration.
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path.
  • the device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides an executable program code, where the executable program code is used to execute a streaming media resource acquisition method, where the method includes:
  • the first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;
  • the resource acquisition request includes the first service ticket
  • Verifying the second service ticket and transmitting a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is at the verification node If the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path.
  • a resource acquisition request the resource acquisition request includes the service ticket
  • the streaming media service device sends the service ticket to the platform
  • the platform verifies the service ticket
  • the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides a storage medium, where the storage medium is used to store executable program code, where the executable program code is used to execute a streaming media resource acquisition method, and the method includes:
  • the first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;
  • the resource acquisition request includes the first service ticket
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path.
  • a resource acquisition request which is included in the resource acquisition request a service ticket
  • the streaming media service device sends the service ticket to the platform
  • the platform verifies the service ticket, and sends the verification result to the streaming media service device.
  • the streaming media service device sends The terminal sends the streaming media resource corresponding to the resource acquisition request.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides a terminal device, as shown in FIG. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804.
  • the processor 801, the communication interface 802, and the memory 803 pass through a communication bus 804.
  • the memory 803 is configured to store the computer program
  • the processor 801 is configured to implement the method for acquiring the streaming media resource when the program stored in the memory 803 is executed, and the method includes:
  • the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed.
  • the result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.
  • the terminal device may be a terminal in a streaming media system, and the platform and the streaming media service device may belong to a streaming media system.
  • the communication bus mentioned by the above terminal device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus.
  • PCI Peripheral Component Interconnect
  • EISA Extended Industry Standard Architecture
  • the communication bus can be divided into an address bus, a data bus, a control bus, and the like.
  • the figure is only represented by a thick line, but it does not mean that only A bus or a type of bus.
  • the communication interface is used for communication between the above terminal device and other devices.
  • the memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
  • RAM random access memory
  • NVM non-volatile memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration.
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path.
  • the device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides an executable program code, where the executable program code is used to execute the streaming media resource acquisition method, and the method includes:
  • the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed.
  • the result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path.
  • a resource acquisition request the resource acquisition request includes the service ticket
  • the streaming media service device sends the service ticket to the platform
  • the platform verifies the service ticket
  • the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the embodiment of the present application further provides a storage medium, where the storage medium is used to store executable program code, where the executable program code is used to execute a streaming media resource acquisition method, and the method includes:
  • the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed.
  • the result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.
  • the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path.
  • a resource acquisition request the resource acquisition request includes the service ticket
  • the streaming media service device sends the service ticket to the platform
  • the platform verifies the service ticket
  • the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.
  • the service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.
  • the various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
  • the device embodiment, the system embodiment, the device embodiment, the executable program code embodiment, and the storage medium embodiment are relatively similar to the method embodiment, and the description is relatively simple. Part of the description of the example can be.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present application disclose a steaming media resource obtaining method and apparatus, and a streaming media system. A terminal sends a path obtaining request to a platform; the platform returns a path and a service ticket corresponding to the path obtaining request to the terminal when verifying that the terminal is legitimate; the terminal sends a resource obtaining request to a streaming media service device corresponding to the path, the resource obtaining request comprising the service ticket; the streaming media service device sends the service ticket to the platform; the platform verifies the service ticket and sends the verification result to the streaming media service device; and when the verification result indicates that the verification succeeds, the streaming media service device sends to the terminal a streaming media resource corresponding to the resource obtaining request. The service ticket in the present solution is valid only within a limited time period and cannot be used repeatedly. Therefore, an unauthorized user with a used service ticket cannot obtain a streaming media resource from a streaming media service device, such that the security of obtaining the steaming media resource is improved.

Description

一种流媒体资源获取方法、装置及流媒体系统Method, device and streaming media system for acquiring streaming media resources

本申请要求于2016年9月8日提交中国专利局、申请号为201610809033.X、发明名称为“一种流媒体资源获取方法、装置及流媒体系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on September 8, 2016, the Chinese Patent Office, the application number is 201610809033.X, and the invention name is "a streaming media resource acquisition method, device, and streaming media system". The content is incorporated herein by reference.

技术领域Technical field

本申请涉及流媒体技术领域,特别涉及一种流媒体资源获取方法、装置及流媒体系统。The present application relates to the field of streaming media technologies, and in particular, to a streaming media resource acquiring method, device, and streaming media system.

背景技术Background technique

流媒体(Streaming Media)是指采用流式传输的方式在互联网播放的媒体格式。流媒体是边传边播的媒体,边传边播是指服务提供商传输媒体的同时,用户可以接收并观看或收听该被传输的媒体。Streaming Media refers to a media format that is streamed over the Internet. Streaming media is a side-by-side broadcast media. Edge-by-side broadcast refers to a service provider that can receive and view or listen to the transmitted media while transmitting media.

当用户获取流媒体资源时,一般都要对用户进行安全验证,只有当验证用户合法时,才能将该流媒体资源发送给用户。When a user obtains a streaming media resource, the user is generally authenticated. The streaming media resource can be sent to the user only when the authentication user is legal.

目前,获取流媒体资源的方案通常包括:用户使用的终端向平台发送路径获取请求,平台向终端返回能够提供流媒体资源的流媒体服务设备(即获取流媒体资源的路径);终端向该流媒体服务设备发送流媒体资源获取请求,并携带用户名及密码信息,该流媒体服务设备将该用户名及密码信息发送给平台进行验证;当平台验证通过时,流媒体服务设备将流媒体资源发送给终端。Currently, the solution for obtaining the streaming media resource includes: the terminal used by the user sends a path acquisition request to the platform, and the platform returns a streaming media service device (ie, a path for acquiring the streaming media resource) capable of providing the streaming media resource to the terminal; The media service device sends a streaming media resource acquisition request, and carries the username and password information, and the streaming media service device sends the username and password information to the platform for verification; when the platform verification passes, the streaming media service device will stream the media resource. Send to the terminal.

在上述方案中,用户名及密码信息长久有效,也就是说,平台对终端的用户名及密码信息只进行一次安全验证,验证通过后,便认为该终端与该流媒体服务设备之间的路径合法,之后通过该路径传输流媒体资源时,都不再进行安全验证。这种情况下,如果有非法用户获取了该路径,便可以获取到该路径中传输的流媒体资源。也就是说,上述方案的安全性不高。In the above solution, the user name and password information are valid for a long time, that is, the platform performs only one security verification on the user name and password information of the terminal, and after the verification is passed, the path between the terminal and the streaming media service device is considered. Legitimate, and then no longer perform security verification when streaming media resources are transmitted through this path. In this case, if an illegal user obtains the path, the streaming media resource transmitted in the path can be obtained. In other words, the security of the above solution is not high.

发明内容Summary of the invention

本申请实施例的目的在于提供一种流媒体资源获取方法、装置及流媒体系统,提高获取流媒体资源的安全性。 An object of the embodiments of the present application is to provide a method, an apparatus, and a streaming media system for acquiring a streaming media resource, which improve security of acquiring streaming media resources.

为达到上述目的,本申请实施例公开了一种流媒体资源获取方法,应用于流媒体系统中的平台,其中,所述流媒体系统中还包括终端及流媒体服务设备,所述方法包括:To achieve the above objective, the embodiment of the present application discloses a method for acquiring a streaming media resource, which is applied to a platform in a streaming media system, where the streaming media system further includes a terminal and a streaming media service device, and the method includes:

接收第一终端发送的路径获取请求;Receiving a path acquisition request sent by the first terminal;

对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;

接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;Receiving a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket;

对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Verifying that the second service ticket is sent to the first streaming media service device, so that the first streaming media service device displays the verification result when the verification result is displayed. And sending the streaming media resource corresponding to the resource acquisition request to the first terminal.

可选的,所述对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据,可以包括:Optionally, the first terminal is authenticated, and when the first terminal is verified to be valid, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal, which may include :

根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应,如果是,向所述第一终端发送所述路径获取请求对应的第一路径;Determining, according to the corresponding relationship between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal, and if yes, sending the path obtaining to the first terminal Request the corresponding first path;

判断所述第一终端是否成功登录所述流媒体系统;Determining whether the first terminal successfully logs in to the streaming media system;

如果是,向所述第一终端发送第一服务票据。If yes, the first service ticket is sent to the first terminal.

可选的,在所述判断所述第一终端是否成功登录所述流媒体系统之前,还可以包括:Optionally, before the determining whether the first terminal successfully logs in to the streaming media system, the method further includes:

接收所述第一终端发送的服务票据获取请求。Receiving a service ticket acquisition request sent by the first terminal.

可选的,在所述向所述第一终端发送第一服务票据之后,还可以包括: Optionally, after the sending the first service ticket to the first terminal, the method may further include:

记录所述第一终端与所述第一服务票据的对应关系;Recording a correspondence between the first terminal and the first service ticket;

所述对所述第二服务票据进行验证,包括:The verifying the second service ticket includes:

根据所记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二服务票据验证通过。And determining, according to the recorded correspondence between the first terminal and the first service ticket, whether the second service ticket corresponds to the first terminal, and if yes, indicating that the second service ticket is verified to pass.

为达到上述目的,本申请实施例还公开了一种流媒体资源获取方法,应用于流媒体系统中的终端,其中,所述流媒体系统中还包括平台及流媒体服务设备,所述方法包括:In order to achieve the above objective, the embodiment of the present application further discloses a method for acquiring a streaming media resource, which is applied to a terminal in a streaming media system, where the streaming media system further includes a platform and a streaming media service device, and the method includes :

向所述平台发送路径获取请求;Sending a path acquisition request to the platform;

接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;Receiving, by the platform, the first path and the first service ticket corresponding to the path obtaining request, where the first path and the first service ticket are sent by the platform when verifying that the terminal is legal;

向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;Sending a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket;

接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。Receiving the streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed. The result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.

可选的,接收所述平台发送的第一服务票据之前,还可以包括:Optionally, before receiving the first service ticket sent by the platform, the method may further include:

向所述平台发送服务票据获取请求。A service ticket acquisition request is sent to the platform.

为达到上述目的,本申请实施例还公开了一种流媒体资源获取装置,应用于流媒体系统中的平台,其中,所述流媒体系统中还包括终端及流媒体服务设备,所述装置包括:In order to achieve the above objective, the embodiment of the present application further discloses a streaming media resource acquiring apparatus, which is applied to a platform in a streaming media system, where the streaming media system further includes a terminal and a streaming media service device, and the device includes :

第一接收模块,用于接收第一终端发送的路径获取请求;a first receiving module, configured to receive a path acquisition request sent by the first terminal;

第一验证发送模块,用于对所述第一终端进行验证,当验证所述第一终 端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;a first verification sending module, configured to verify the first terminal, when verifying the first terminal When the terminal is legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;

第二接收模块,用于接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;a second receiving module, configured to receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is the first service After the media service device receives the resource acquisition request sent by the first terminal, the resource acquisition request includes the first service ticket;

第二验证发送模块,用于对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。a second verification sending module, configured to perform verification on the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is in the The verification result shows that when the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.

可选的,所述第一验证发送模块,可以包括:Optionally, the first verification sending module may include:

第一判断子模块,用于根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应;a first determining sub-module, configured to determine, according to a correspondence between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal;

第一发送子模块,用于当所述第一判断子模块判断结果为是时,向所述第一终端发送所述路径获取请求对应的第一路径;a first sending submodule, configured to: when the first determining submodule determines that the result is yes, send the first path corresponding to the path obtaining request to the first terminal;

第二判断子模块,用于判断所述第一终端是否成功登录所述流媒体系统;a second determining submodule, configured to determine whether the first terminal successfully logs in to the streaming media system;

第二发送子模块,用于当所述第二判断子模块判断结果为是时,向所述第一终端发送第一服务票据。The second sending submodule is configured to send the first service ticket to the first terminal when the second determining submodule determines that the result is yes.

可选的,所述装置还可以包括:Optionally, the device may further include:

第三接收模块,用于接收所述第一终端发送的服务票据获取请求。The third receiving module is configured to receive a service ticket acquisition request sent by the first terminal.

可选的,所述装置还可以包括:Optionally, the device may further include:

记录模块,用于记录所述第一终端与所述第一服务票据的对应关系;a recording module, configured to record a correspondence between the first terminal and the first service ticket;

所述第二验证发送模块,具体可以用于:The second verification sending module is specifically configured to:

根据所述记录模块记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二 服务票据验证通过;将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Determining, according to the correspondence between the first terminal and the first service ticket recorded by the recording module, whether the second service ticket corresponds to the first terminal, and if yes, indicating the second The service ticket verification is passed; the verification result for the second service ticket is sent to the first streaming media service device, so that the first streaming media service device, when the verification result shows that the verification is passed, to the first The terminal sends the streaming media resource corresponding to the resource acquisition request.

为达到上述目的,本申请实施例还公开了一种流媒体资源获取装置,应用于流媒体系统中的终端,其中,所述流媒体系统中还包括平台及流媒体服务设备,所述装置包括:In order to achieve the above objective, the embodiment of the present application further discloses a streaming media resource acquiring apparatus, which is applied to a terminal in a streaming media system, where the streaming media system further includes a platform and a streaming media service device, and the device includes :

第一发送模块,用于向所述平台发送路径获取请求;a first sending module, configured to send a path acquisition request to the platform;

第三接收模块,用于接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;a third receiving module, configured to receive the first path corresponding to the path obtaining request sent by the platform, and the first service ticket, where the first path and the first service ticket are the platform verifying the terminal Sent in case of legality;

第二发送模块,用于向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;a second sending module, configured to send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource obtaining request includes the first service ticket;

第四接收模块,用于接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。a fourth receiving module, configured to receive the streaming media resource sent by the first streaming media service device, where the streaming media resource is that the first streaming media service device receives the second service ticket sent by the platform If the verification result is sent, and the verification result is sent, the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.

可选的,所述装置还可以包括:Optionally, the device may further include:

第三发送模块,用于向所述平台发送服务票据获取请求。And a third sending module, configured to send a service ticket acquisition request to the platform.

为达到上述目的,本申请实施例还公开了一种流媒体系统,包括:终端、流媒体服务设备及平台,其中,In order to achieve the above objective, the embodiment of the present application further discloses a streaming media system, including: a terminal, a streaming media service device, and a platform, where

所述终端,用于向所述平台发送路径获取请求;接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据;向所述第一路径对应的第一流媒体服务设备发送资源获取请求;接收所述第一流媒体服务设备发送的流媒体资源;The terminal is configured to send a path acquisition request to the platform, receive a first path corresponding to the path acquisition request sent by the platform, and a first service ticket; and send, to the first streaming media service device corresponding to the first path Sending a resource acquisition request; receiving a streaming media resource sent by the first streaming media service device;

所述流媒体服务设备,用于接收所述终端发送的资源获取请求;将所述资源获取请求中包括的服务票据发送给所述平台;接收所述平台发送的针对 服务票据的验证结果,当所述验证结果显示验证通过时,向所述终端发送所述资源获取请求对应的的流媒体资源;The streaming media service device is configured to receive a resource acquisition request sent by the terminal, send the service ticket included in the resource acquisition request to the platform, and receive the target sent by the platform a verification result of the service ticket, when the verification result shows that the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the terminal;

所述平台,用于接收第一终端发送的路径获取请求;对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;接收第一流媒体服务设备发送的第二服务票据;对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备。The platform is configured to receive a path acquisition request sent by the first terminal, and perform verification on the first terminal, and when the first terminal is verified to be legal, send the path corresponding to the path acquisition request to the first terminal. a path and a first service ticket; receiving a second service ticket sent by the first streaming service device; verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming service device.

为达到上述目的,本申请实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现上述应用于平台的流媒体资源获取方法。In order to achieve the above objective, an embodiment of the present application further discloses an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through a communication bus; The computer program is stored; the processor is configured to execute the method for acquiring the streaming media resource applied to the platform when executing the program stored in the memory.

为达到上述目的,本申请实施例还公开了一种可执行程序代码,所述可执行程序代码用于被运行以执行上述应用于平台的流媒体资源获取方法。To achieve the above objective, an embodiment of the present application further discloses an executable program code for being executed to execute the above-mentioned streaming media resource acquisition method applied to a platform.

为达到上述目的,本申请实施例还公开了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行上述应用于平台的流媒体资源获取方法。To achieve the above objective, an embodiment of the present application further discloses a storage medium for storing executable program code, where the executable program code is used to execute the foregoing streaming media resource acquisition applied to a platform. method.

为达到上述目的,本申请实施例还公开了一种终端设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序时,实现上述应用于终端的流媒体资源获取方法。To achieve the above objective, the embodiment of the present application further discloses a terminal device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus; The computer program is stored; the processor is configured to execute the method for acquiring the streaming media resource applied to the terminal when executing the program stored in the memory.

为达到上述目的,本申请实施例还公开了一种可执行程序代码,所述可执行程序代码用于被运行以执行上述应用于终端的流媒体资源获取方法。To achieve the above objective, an embodiment of the present application further discloses an executable program code for being executed to execute the above-mentioned streaming media resource acquisition method applied to a terminal.

为达到上述目的,本申请实施例还公开了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行上述应用于终端的流媒体资源获取方法。To achieve the above objective, an embodiment of the present application further discloses a storage medium for storing executable program code, where the executable program code is configured to be executed to perform the above-mentioned streaming media resource acquisition applied to a terminal. method.

应用本申请实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行 验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment of the present application, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the resource acquisition to the streaming media service device corresponding to the path. Requesting, the resource obtaining request includes the service ticket, and the streaming media service device sends the service ticket to a platform, where the platform performs the service ticket The verification is performed, and the verification result is sent to the streaming media service device. When the verification result shows that the verification is passed, the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

附图说明DRAWINGS

为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application and the technical solutions of the prior art, the following description of the embodiments and the drawings used in the prior art will be briefly introduced. Obviously, the drawings in the following description are only Some embodiments of the application may also be used to obtain other figures from those of ordinary skill in the art without departing from the scope of the invention.

图1为本申请实施例提供的一种流媒体系统的结构示意图;FIG. 1 is a schematic structural diagram of a streaming media system according to an embodiment of the present application;

图2为本申请实施例提供的流媒体资源获取方法的信令示意图;2 is a schematic signaling diagram of a method for acquiring a streaming media resource according to an embodiment of the present disclosure;

图3为本申请实施例提供的一种应用于平台的流媒体资源获取方法的流程示意图;FIG. 3 is a schematic flowchart of a method for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure;

图4为本申请实施例提供的一种应用于终端的流媒体资源获取方法的流程示意图;FIG. 4 is a schematic flowchart of a method for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure;

图5为本申请实施例提供的一种应用于平台的流媒体资源获取装置的结构示意图;FIG. 5 is a schematic structural diagram of a streaming media resource acquiring apparatus applied to a platform according to an embodiment of the present disclosure;

图6为本申请实施例提供的一种应用于终端的流媒体资源获取装置的结构示意图;FIG. 6 is a schematic structural diagram of a streaming media resource acquiring apparatus applied to a terminal according to an embodiment of the present disclosure;

图7为本申请实施例所提供的一种电子设备的结构示意图;FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

图8为本申请实施例所提供的一种终端设备的结构示意图。FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.

具体实施方式detailed description

为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本 申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts are The scope of application for protection.

为了解决上述技术问题,本申请实施例提供了一种流媒体资源获取方法、装置及流媒体系统,下面首先对本申请实施例提供的流媒体资源获取方法进行详细说明。In order to solve the above technical problem, the embodiment of the present application provides a method, an apparatus, and a streaming media system for acquiring a streaming media resource. The method for acquiring a streaming media resource provided by the embodiment of the present application is described in detail below.

本申请实施例提供的流媒体资源获取方法适用于流媒体系统,如图1所示,流媒体系统中可以包括终端、流媒体服务设备及平台,当然也可以包括其他部分,在此不做限制。The method for obtaining a streaming media resource provided by the embodiment of the present application is applicable to a streaming media system. As shown in FIG. 1 , the streaming media system may include a terminal, a streaming media service device, and a platform, and may of course include other parts. .

终端、流媒体服务设备及平台之间的信令交互过程如图2所示:The signaling interaction process between the terminal, the streaming media service device and the platform is shown in Figure 2:

终端向平台发送路径获取请求;当平台验证该终端合法时,向该终端发送该路径获取请求对应的第一路径及第一服务票据。The terminal sends a path acquisition request to the platform. When the platform verifies that the terminal is legal, the terminal sends the first path corresponding to the path acquisition request and the first service ticket to the terminal.

具体的,验证终端是否合法,可以理解为验证终端是否有获取第一路径的权限。平台中可以存储流媒体系统中各个终端的权限,这里的权限即为每个终端可以获取的路径。当平台验证终端有权限获取其请求的路径时(即验证终端合法时),将该终端请求的第一路径以及第一服务票据发送给该终端。Specifically, verifying whether the terminal is legal can be understood as verifying whether the terminal has the right to obtain the first path. The platform can store the permissions of each terminal in the streaming media system. The permissions here are the paths that each terminal can obtain. When the platform verification terminal has the right to obtain the path of the request (that is, when the verification terminal is legal), the first path requested by the terminal and the first service ticket are sent to the terminal.

需要说明的是,服务票据(ST,Service Ticket)可以为CAS(Central Authentication Service,一款适用于WEB的单点登录框架)中的一种用于验证用户身份的票据,该服务票据仅在有限的时间段内有效,不能重复使用。It should be noted that the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB). The service ticket is only limited. Valid during the time period and cannot be reused.

终端在接收到第一路径及第一服务票据后,向第一路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括第一服务票据。After receiving the first path and the first service ticket, the terminal sends a resource acquisition request to the media service device corresponding to the first path, where the resource acquisition request includes the first service ticket.

第一路径中可以包括流媒体服务设备的标识信息,该标识信息可以为流媒体设备的序列号、地址等能够唯一标识该流媒体服务设备的信息,终端可以根据该标识信息,确定第一路径对应的流媒体服务设备,该流媒体服务设备即为能够提供终端需要的流媒体资源的设备。终端向该流媒体服务设备发送资源获取请求,该资源获取请求中包括上述第一服务票据。The first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and the address of the streaming media device, and the information that can uniquely identify the streaming media service device, and the terminal may determine the first path according to the identifier information. Corresponding streaming media service device, which is a device capable of providing streaming media resources required by the terminal. The terminal sends a resource acquisition request to the streaming media service device, where the resource acquisition request includes the first service ticket.

流媒体服务设备接收到该资源获取请求后,将第二服务票据发送给平台;平台对第二票据进行验证。需要说明的是,正常情况下,第一服务票据与第二服务票据为相同的票据,如果出现了异常情况,比如非法用户入侵,而且该非法用户获取了之前使用过的服务票据,将该使用过的服务票据当作第二 服务票据发送给平台,试图通过平台的验证,这种情况下,第二服务票据与第一服务票据不同,因此,平台对第二服务票据进行验证,即验证第二服务票据是否与第一服务票据相同,如果相同,则验证通过。After receiving the resource acquisition request, the streaming media service device sends the second service ticket to the platform; the platform verifies the second ticket. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed. Service ticket as second The service ticket is sent to the platform for attempting to pass the verification of the platform. In this case, the second service ticket is different from the first service ticket. Therefore, the platform verifies the second service ticket, that is, whether the second service ticket is verified with the first service. The notes are the same, if they are the same, the verification is passed.

平台将针对第二服务票据的验证结果发送给流媒体服务设备;当验证结果显示验证通过时,流媒体服务设备将资源获取请求对应的流媒体资源发送给终端。The platform sends the verification result of the second service ticket to the streaming service device. When the verification result shows that the verification is passed, the streaming service device sends the streaming media resource corresponding to the resource acquisition request to the terminal.

当验证结果显示验证通过时,表示未出现异常情况,流媒体服务设备将终端请求的流媒体资源发送给终端。When the verification result shows that the verification is passed, it indicates that no abnormality occurs, and the streaming media service device sends the streaming media resource requested by the terminal to the terminal.

本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

图3为本申请实施例提供的一种应用于平台的流媒体资源获取方法的流程示意图,包括:FIG. 3 is a schematic flowchart of a method for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure, including:

S101:接收第一终端发送的路径获取请求。S101: Receive a path acquisition request sent by the first terminal.

在本实施例中,平台负责对流媒体系统的管理,如上所述,平台中可以存储各个终端的权限,这里的权限即为每个终端可以获取的路径,也可以理解为终端与流媒体服务设备的对应关系;路径可以理解为流媒体服务设备与流媒体资源的对应关系,也就是说,平台中存储了每个终端可以从哪个流媒体服务设备中可以获取哪些流媒体资源的信息。因此,第一终端需要获取流媒体资源时,首先要向平台请求获取流媒体资源的路径。In this embodiment, the platform is responsible for the management of the streaming media system. As described above, the permissions of each terminal can be stored in the platform, where the permissions are the paths that each terminal can obtain, and can also be understood as the terminal and the streaming media service device. The corresponding relationship; the path can be understood as the correspondence between the streaming media service device and the streaming media resource, that is, the platform stores information about which streaming media resources can be obtained from each streaming media service device. Therefore, when the first terminal needs to obtain the streaming media resource, the platform first needs to obtain the path of the streaming media resource.

假设第一终端需要获取流媒体资源A1,首先需要得到获取A1的路径(第一路径),因此,第一终端向平台发送路径获取请求,以请求得到第一路径。Assuming that the first terminal needs to obtain the streaming media resource A1, the path (the first path) of obtaining the A1 is first obtained. Therefore, the first terminal sends a path obtaining request to the platform to request the first path.

S102:对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据。S102: Perform verification on the first terminal, and when the first terminal is authenticated, send the first path corresponding to the path obtaining request and the first service ticket to the first terminal.

作为本申请的一种实施方式,本步骤中可以包括:As an implementation manner of this application, this step may include:

根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应,如果是,向所述 第一终端发送所述路径获取请求对应的第一路径;Determining, according to the corresponding relationship between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal, and if yes, to the Transmitting, by the first terminal, a first path corresponding to the path obtaining request;

判断所述第一终端是否成功登录所述流媒体系统;Determining whether the first terminal successfully logs in to the streaming media system;

如果是,向所述第一终端发送第一服务票据。If yes, the first service ticket is sent to the first terminal.

也就是说,平台验证第一终端是否合法包含两个方面:In other words, the platform verifies whether the first terminal is legal or not.

第一方面,验证第一终端是否有获取第一路径的权限。如上所述,平台中存储了流媒体系统中各个终端的权限,当平台验证第一终端没有权限获取第一路径时,可以不作处理,也可以向第一终端发送其没有权限的提示信息,在此不做限制;当平台验证终端有权限获取第一路径时,将第一路径以及第一服务票据发送给该终端。In the first aspect, it is verified whether the first terminal has the right to acquire the first path. As described above, the platform stores the rights of each terminal in the streaming media system. When the platform verifies that the first terminal does not have the right to obtain the first path, the platform may not process the information, and may send the prompt information without permission to the first terminal. This is not limited; when the platform verification terminal has the right to acquire the first path, the first path and the first service ticket are sent to the terminal.

上述对第一终端的权限做验证,可以避免用户越权获取流媒体资源的情况。The above verification of the authority of the first terminal can prevent the user from obtaining the streaming media resource beyond the authority.

第一路径即为上述获取A1的路径,第一路径中可以包括流媒体服务设备的标识信息,该标识信息可以为流媒体设备的序列号、地址等能够唯一标识该流媒体服务设备的信息。也就是说,可以从该流媒体服务设备中获取A1。假设第一路径中包括流媒体服务设备的标识信息为A。The first path is the path for obtaining the A1. The first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and address of the streaming media device, and the information that can uniquely identify the streaming media service device. That is, A1 can be obtained from the streaming service device. It is assumed that the identifier information of the streaming media service device in the first path is A.

第二方面,验证第一终端是否成功登录流媒体系统,如果是,将第一服务票据发送给第一终端。作为本申请的一种实施方式,可以在接收到第一终端发送的服务票据请求后,再判断第一终端是否成功登录流媒体系统,如果是,向第一终端发送其请求的第一服务票据。In a second aspect, it is verified whether the first terminal successfully logs in to the streaming media system, and if so, the first service ticket is sent to the first terminal. As an implementation manner of the present application, after receiving the service ticket request sent by the first terminal, it may determine whether the first terminal successfully logs in to the streaming media system, and if yes, send the first service ticket requested by the first terminal to the first terminal. .

需要说明的是,服务票据(ST,Service Ticket)可以为CAS(Central Authentication Service,一款适用于WEB的单点登录框架)中的一种用于验证用户身份的票据,该服务票据仅在有限的时间段内有效,不能重复使用。It should be noted that the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB). The service ticket is only limited. Valid during the time period and cannot be reused.

另外,在CAS的实现中,只有在终端中保存了TGC(Ticket Granting Cookie,CAS中表示单点登录成功的票据,放在用户的Cookie中)的情况下,平台才能为终端分配服务票据,而且只有在终端成功登录流媒体系统的情况下,终端中才会保存TGC。因此,只有在第一终端成功登录流媒体系统的情况下,平台才能为第一终端分配第一服务票据,并将第一服务票据发送给第一终端。 In addition, in the implementation of the CAS, the platform can allocate the service ticket to the terminal only if the TGC (Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie) is stored in the terminal, and The TGC is saved only in the terminal if the terminal successfully logs in to the streaming system. Therefore, only when the first terminal successfully logs in to the streaming media system, the platform can allocate the first service ticket to the first terminal and send the first service ticket to the first terminal.

S103:接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据。S103: Receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket.

终端在接收到第一路径及第一服务票据后,可以根据第一路径中包括的流媒体服务设备的标识信息A,确定第一路径对应的第一流媒体服务设备(即A),流媒体服务设备A即为能够提供终端需要的流媒体资源的设备。After receiving the first path and the first service ticket, the terminal may determine, according to the identifier information A of the streaming media service device included in the first path, the first streaming media service device (ie, A) corresponding to the first path, and the streaming media service. Device A is a device that can provide streaming media resources required by the terminal.

终端向流媒体服务设备A发送资源获取请求,该资源获取请求中包括第一服务票据。流媒体服务设备A接收到该资源获取请求后,将第二服务票据发送给平台。需要说明的是,正常情况下,第一服务票据与第二服务票据为相同的票据,如果出现了异常情况,比如非法用户入侵,而且该非法用户获取了之前使用过的服务票据,将该使用过的服务票据当作第二服务票据发送给平台,这种情况下,第二服务票据与第一服务票据不同。The terminal sends a resource acquisition request to the streaming media service device A, where the resource acquisition request includes the first service ticket. After receiving the resource acquisition request, the streaming service device A sends the second service ticket to the platform. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed. The service ticket is sent to the platform as a second service ticket, in which case the second service ticket is different from the first service ticket.

S104:对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。S104: Verify the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device passes the verification result display verification Sending, to the first terminal, a streaming media resource corresponding to the resource acquisition request.

如上所述,平台对第二服务票据进行验证,即验证第二服务票据是否与第一服务票据相同,如果相同,则验证通过。As described above, the platform verifies the second service ticket, that is, verifies whether the second service ticket is the same as the first service ticket, and if the same, the verification passes.

作为本申请的一种实施方式,平台向第一终端发送第一服务票据后,可以记录第一终端与第一服务票据的对应关系。对所述第二服务票据进行验证,可以包括:根据所记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二服务票据验证通过。As an implementation manner of the application, after the platform sends the first service ticket to the first terminal, the corresponding relationship between the first terminal and the first service ticket may be recorded. The verification of the second service ticket may include: determining, according to the recorded correspondence between the first terminal and the first service ticket, whether the second service ticket corresponds to the first terminal, if Yes, indicating that the second service ticket is verified to pass.

假设平台记录下终端X与服务票据X1的对应关系后,有非法用户入侵了终端X并篡改了服务票据,将服务票据变成了X2,终端X将服务票据X2发送给平台,这种情况下,平台判断终端X与服务票据X2不对应,也就是说,对第二服务票据验证未通过。这种情况下,平台可以不作处理,也可以 向终端X发送验证未通过的提示信息,在此不做限制。Assuming that the platform records the correspondence between the terminal X and the service ticket X1, an illegal user invades the terminal X and tampers with the service ticket, turns the service ticket into X2, and the terminal X sends the service ticket X2 to the platform. In this case, The platform judges that the terminal X does not correspond to the service ticket X2, that is, the verification of the second service ticket fails. In this case, the platform can be left unprocessed or The terminal X is sent a prompt message that the verification fails, and no limitation is imposed here.

正常情况下,没有非法用户入侵终端X时,终端X将服务票据X1发送给平台,平台判断终端X与服务票据X1对应,也就是说,对第二服务票据验证通过。Normally, when no illegal user invades the terminal X, the terminal X sends the service ticket X1 to the platform, and the platform determines that the terminal X corresponds to the service ticket X1, that is, the second service ticket is verified.

作为本申请的一种实施方式,当平台接收到第二服务票据后,可以调用CAS的API对第二服务票据进行校验,当校验成功后,会返回第二服务票据对应的终端的标识信息,该标识信息可以为终端的序列号、地址等能够唯一标识该终端的信息。判断返回的终端的标识信息与第二服务票据的对应关系与上述记录的对应关系是否一致,如果是,表示验证通过。As an implementation manner of the present application, after receiving the second service ticket, the platform may invoke the API of the CAS to check the second service ticket. After the verification succeeds, the identifier of the terminal corresponding to the second service ticket is returned. The information may be a serial number, an address, or the like of the terminal that can uniquely identify the terminal. It is determined whether the correspondence between the returned identification information of the terminal and the second service ticket is consistent with the corresponding relationship of the record, and if yes, the verification is passed.

在本实施方式中,验证结果有三种可能,第一种,验证通过,第二种对应关系不一致,第三种对服务票据校验不成功。In this embodiment, there are three possibilities for the verification result. The first one, the verification is passed, the second correspondence is inconsistent, and the third verification of the service ticket is unsuccessful.

平台把验证结果发给流媒体服务设备A,当验证结果显示验证通过时,流媒体服务设备A将流媒体资源A1发送给终端。也就是说,在终端为合法用户的情况下,通过层层验证,最终终端获取了自身所需要的流媒体资源。The platform sends the verification result to the streaming service device A. When the verification result shows that the verification is passed, the streaming media service device A sends the streaming media resource A1 to the terminal. That is to say, in the case that the terminal is a legitimate user, the layer terminal verifies that the final terminal acquires the streaming media resources required by itself.

应用本申请图3所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 3, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path. The device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

图4为本申请实施例提供的一种应用于终端的流媒体资源获取方法的流程示意图,包括:FIG. 4 is a schematic flowchart of a method for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure, including:

S201:向所述平台发送路径获取请求。S201: Send a path acquisition request to the platform.

在本实施例中,平台负责对流媒体系统的管理,如上所述,平台中可以存储各个终端的权限,这里的权限即为每个终端可以获取的路径,也可以理 解为终端与流媒体服务设备的对应关系;路径可以理解为流媒体服务设备与流媒体资源的对应关系,也就是说,平台中存储了每个终端可以从哪个流媒体服务设备中可以获取哪些流媒体资源的信息。因此,第一终端需要获取流媒体资源时,首先要向平台请求获取流媒体资源的路径。In this embodiment, the platform is responsible for managing the streaming media system. As described above, the permissions of each terminal may be stored in the platform, where the permissions are the paths that each terminal can obtain, and may also be The solution is the correspondence between the terminal and the streaming media service device; the path can be understood as the correspondence between the streaming media service device and the streaming media resource, that is, the platform stores which media service device can be obtained from each terminal. Information about streaming media resources. Therefore, when the first terminal needs to obtain the streaming media resource, the platform first needs to obtain the path of the streaming media resource.

假设终端需要获取流媒体资源A1,首先需要得到获取A1的路径(第一路径),因此,终端向平台发送路径获取请求,以请求得到第一路径。Assuming that the terminal needs to obtain the streaming media resource A1, the path (first path) of obtaining the A1 is first obtained. Therefore, the terminal sends a path obtaining request to the platform to request the first path.

S202:接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的。S202. The first path and the first service ticket corresponding to the path obtaining request sent by the platform are received, where the first path and the first service ticket are sent by the platform when the terminal is verified to be legal. of.

平台在接收到该路径获取请求后,对该终端的合法性进行验证。具体的,平台验证终端是否合法包含两个方面:After receiving the path acquisition request, the platform verifies the legality of the terminal. Specifically, whether the platform verifies that the terminal is legal or not includes two aspects:

第一方面,验证该终端是否有获取第一路径的权限。平台中存储了流媒体系统中各个终端的权限(终端与流媒体服务设备的对应关系)。当平台验证该终端没有权限获取第一路径时,可以不作处理,也可以向该终端发送其没有权限的提示信息,在此不做限制;当平台验证终端有权限获取第一路径时,将第一路径以及第一服务票据发送给该终端。In the first aspect, it is verified whether the terminal has the right to acquire the first path. The platform stores the rights of each terminal in the streaming media system (the correspondence between the terminal and the streaming media service device). When the platform verifies that the terminal does not have the right to obtain the first path, it may not process, or may send the terminal with the prompt information that does not have permission, and there is no restriction here; when the platform verification terminal has the right to obtain the first path, the first A path and a first service ticket are sent to the terminal.

上述对终端的权限做验证,可以避免用户越权获取流媒体资源的情况。The foregoing verification of the authority of the terminal can prevent the user from obtaining the streaming media resource beyond the authority.

第一路径即为上述获取A1的路径,第一路径中可以包括流媒体服务设备的标识信息,该标识信息可以为流媒体设备的序列号、地址等能够唯一标识该流媒体服务设备的信息。假设第一路径中包括流媒体服务设备的标识信息为A。The first path is the path for obtaining the A1. The first path may include the identifier information of the streaming media service device, where the identifier information may be the serial number and address of the streaming media device, and the information that can uniquely identify the streaming media service device. It is assumed that the identifier information of the streaming media service device in the first path is A.

第二方面,验证终端是否成功登录流媒体系统,如果是,将第一服务票据发送给该终端。作为本申请的一种实施方式,终端可以先向平台发送服务票据请求,平台在接收到终端发送的服务票据请求后,再判断该终端是否成功登录流媒体系统,如果是,向该终端发送其请求的第一服务票据。In a second aspect, it is verified whether the terminal successfully logs into the streaming media system, and if so, the first service ticket is sent to the terminal. As an implementation manner of the application, the terminal may first send a service ticket request to the platform, and after receiving the service ticket request sent by the terminal, the platform determines whether the terminal successfully logs into the streaming media system, and if yes, sends the service to the terminal. The first service ticket requested.

需要说明的是,服务票据(ST,Service Ticket)可以为CAS(Central Authentication Service,一款适用于WEB的单点登录框架)中的一种用于验证用户身份的票据,该服务票据仅在有限的时间段内有效,不能重复使用。 It should be noted that the service ticket (ST) can be a ticket for verifying the identity of the user in the CAS (Central Authentication Service, a single sign-on framework for WEB). The service ticket is only limited. Valid during the time period and cannot be reused.

另外,在CAS的实现中,只有在终端中保存了TGC(Ticket Granting Cookie,CAS中表示单点登录成功的票据,放在用户的Cookie中)的情况下,平台才能为终端分配服务票据,而且只有在终端成功登录流媒体系统的情况下,终端中才会保存TGC。因此,只有在第一终端是否成功登录流媒体系统的情况下,平台才能为第一终端分配第一服务票据,并将第一服务票据发送给第一终端。In addition, in the implementation of the CAS, the platform can allocate the service ticket to the terminal only if the TGC (Ticket Granting Cookie, the ticket indicating successful single sign-on in the CAS is placed in the user's cookie) is stored in the terminal, and The TGC is saved only in the terminal if the terminal successfully logs in to the streaming system. Therefore, the platform can allocate the first service ticket to the first terminal and send the first service ticket to the first terminal only if the first terminal successfully logs in to the streaming media system.

S203:向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据。S203: Send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket.

终端在接收到第一路径及第一服务票据后,可以根据第一路径中包括的流媒体服务设备的标识信息A,确定第一路径对应的第一流媒体服务设备(即A),流媒体服务设备A即为能够提供终端需要的流媒体资源的设备。After receiving the first path and the first service ticket, the terminal may determine, according to the identifier information A of the streaming media service device included in the first path, the first streaming media service device (ie, A) corresponding to the first path, and the streaming media service. Device A is a device that can provide streaming media resources required by the terminal.

终端向流媒体服务设备A发送资源获取请求,该资源获取请求中包括第一服务票据。流媒体服务设备A接收到该资源获取请求后,将第二服务票据发送给平台。需要说明的是,正常情况下,第一服务票据与第二服务票据为相同的票据,如果出现了异常情况,比如非法用户入侵,而且该非法用户获取了之前使用过的服务票据,将该使用过的服务票据当作第二服务票据发送给平台,这种情况下,第二服务票据与第一服务票据不同。The terminal sends a resource acquisition request to the streaming media service device A, where the resource acquisition request includes the first service ticket. After receiving the resource acquisition request, the streaming service device A sends the second service ticket to the platform. It should be noted that, under normal circumstances, the first service ticket and the second service ticket are the same ticket. If an abnormal situation occurs, such as an illegal user intrusion, and the illegal user obtains the previously used service ticket, the use will be performed. The service ticket is sent to the platform as a second service ticket, in which case the second service ticket is different from the first service ticket.

平台对第二服务票据进行验证,即验证第二服务票据是否与第一服务票据相同,如果相同,则验证通过。The platform verifies the second service ticket, that is, verifies whether the second service ticket is the same as the first service ticket, and if the same, the verification passes.

S204:接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。S204: Receive a streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device to the second service ticket sent by the platform, and The verification result is sent in the case that the verification is passed, and the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.

平台把验证结果发给流媒体服务设备A,当验证结果显示验证通过时,流媒体服务设备A将流媒体资源A1发送给终端。也就是说,在终端为合法用户的情况下,通过层层验证,最终终端获取了自身所需要的流媒体资源。The platform sends the verification result to the streaming service device A. When the verification result shows that the verification is passed, the streaming media service device A sends the streaming media resource A1 to the terminal. That is to say, in the case that the terminal is a legitimate user, the layer terminal verifies that the final terminal acquires the streaming media resources required by itself.

应用本申请图4所示实施例,终端向平台发送路径获取请求,平台在验 证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 4, the terminal sends a path acquisition request to the platform, and the platform is inspected. And when the terminal is legal, the path and the service ticket corresponding to the path obtaining request are returned to the terminal, and the terminal sends a resource obtaining request to the streaming media service device corresponding to the path, where the resource obtaining request includes the service ticket, and the streaming media service The device sends the service ticket to the platform, and the platform verifies the service ticket, and sends the verification result to the streaming media service device. When the verification result shows that the verification is passed, the streaming media service device sends the resource acquisition request to the terminal. Streaming media resources. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

与上述的方法实施例相对应,本申请实施例还提供一种流媒体资源获取装置。Corresponding to the foregoing method embodiment, the embodiment of the present application further provides a streaming media resource acquiring apparatus.

图5为本申请实施例提供的一种应用于平台的流媒体资源获取装置的结构示意图,包括:FIG. 5 is a schematic structural diagram of a device for acquiring a streaming media resource applied to a platform according to an embodiment of the present disclosure, including:

第一接收模块301,用于接收第一终端发送的路径获取请求;The first receiving module 301 is configured to receive a path acquisition request sent by the first terminal.

第一验证发送模块302,用于对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first verification sending module 302 is configured to perform verification on the first terminal, and when the first terminal is verified to be legal, send the first path corresponding to the path obtaining request and the first service ticket to the first terminal. ;

第二接收模块303,用于接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;a second receiving module 303, configured to receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is the first After receiving the resource acquisition request sent by the first terminal, the first-level media service device includes the first service ticket in the resource acquisition request;

第二验证发送模块304,用于对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。The second verification sending module 304 is configured to verify the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is The verification result shows that when the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.

在本申请所示实施例中,第一验证发送模块302,包括:第一判断子模块、第一发送子模块、第二判断子模块和第二发送子模块(图中未示出),其中,In the embodiment shown in the present application, the first verification sending module 302 includes: a first determining sub-module, a first sending sub-module, a second determining sub-module, and a second sending sub-module (not shown), wherein ,

第一判断子模块,用于根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否 对应;a first determining sub-module, configured to determine, according to a correspondence between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request and the first terminal are correspond;

第一发送子模块,用于当所述第一判断子模块判断结果为是时,向所述第一终端发送所述路径获取请求对应的第一路径;a first sending submodule, configured to: when the first determining submodule determines that the result is yes, send the first path corresponding to the path obtaining request to the first terminal;

第二判断子模块,用于判断所述第一终端是否成功登录所述流媒体系统;a second determining submodule, configured to determine whether the first terminal successfully logs in to the streaming media system;

第二发送子模块,用于当所述第二判断子模块判断结果为是时,向所述第一终端发送第一服务票据。The second sending submodule is configured to send the first service ticket to the first terminal when the second determining submodule determines that the result is yes.

在本申请所示实施例中,所述装置还可以包括:第三接收模块(图中未示出),用于接收所述第一终端发送的服务票据获取请求。In the embodiment shown in the present application, the apparatus may further include: a third receiving module (not shown), configured to receive a service ticket acquisition request sent by the first terminal.

在本申请所示实施例中,所述装置还可以包括:记录模块(图中未示出),用于记录所述第一终端与所述第一服务票据的对应关系;In the embodiment of the present application, the device may further include: a recording module (not shown) for recording a correspondence between the first terminal and the first service ticket;

第二验证发送模块304,具体可以用于:The second verification sending module 304 is specifically configured to:

根据所述记录模块记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二服务票据验证通过;将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Determining, according to the correspondence between the first terminal and the first service ticket recorded by the recording module, whether the second service ticket corresponds to the first terminal, and if yes, indicating that the second service ticket is Passing the verification result of the second service ticket to the first streaming media service device, so that the first streaming media service device sends the verification result to the first terminal when the verification result shows that the verification is passed The resource acquisition request corresponds to a streaming media resource.

应用本申请图5所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 5, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path. The device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

图6为本申请实施例提供的一种应用于终端的流媒体资源获取装置的结构示意图,包括: FIG. 6 is a schematic structural diagram of a device for acquiring a streaming media resource applied to a terminal according to an embodiment of the present disclosure, including:

第一发送模块401,用于向所述平台发送路径获取请求;a first sending module 401, configured to send a path acquisition request to the platform;

第三接收模块402,用于接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;The third receiving module 402 is configured to receive the first path corresponding to the path obtaining request sent by the platform, and the first service ticket, where the first path and the first service ticket are Sent when the terminal is legal;

第二发送模块403,用于向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;a second sending module 403, configured to send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource obtaining request includes the first service ticket;

第四接收模块404,用于接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。The fourth receiving module 404 is configured to receive the streaming media resource sent by the first streaming media service device, where the streaming media resource is the second service ticket sent by the first streaming media service device after receiving the platform The verification result is sent, and the verification result is sent, and the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request.

在本申请所示实施例中,所述装置还可以包括:第三发送模块(图中未示出),用于向所述平台发送服务票据获取请求。In the embodiment shown in the present application, the apparatus may further include: a third sending module (not shown) for sending a service ticket acquisition request to the platform.

应用本申请图6所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 6 , the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path. The device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供一种流媒体系统,如图1所示,包括:终端、流媒体服务设备及平台,其中,The embodiment of the present application further provides a streaming media system, as shown in FIG. 1 , including: a terminal, a streaming media service device, and a platform, where

所述终端,用于向所述平台发送路径获取请求;接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据;向所述第一路径对应的第一流媒体服务设备发送资源获取请求;接收所述第一流媒体服务设备发送的流媒体资源; The terminal is configured to send a path acquisition request to the platform, receive a first path corresponding to the path acquisition request sent by the platform, and a first service ticket; and send, to the first streaming media service device corresponding to the first path Sending a resource acquisition request; receiving a streaming media resource sent by the first streaming media service device;

所述流媒体服务设备,用于接收所述终端发送的资源获取请求;将所述资源获取请求中包括的服务票据发送给所述平台;接收所述平台发送的针对服务票据的验证结果,当所述验证结果显示验证通过时,向所述终端发送所述资源获取请求对应的的流媒体资源;The streaming media service device is configured to receive a resource acquisition request sent by the terminal, send the service ticket included in the resource acquisition request to the platform, and receive a verification result for the service ticket sent by the platform, when The verification result shows that the streaming media resource corresponding to the resource acquisition request is sent to the terminal when the verification is passed;

所述平台,用于接收第一终端发送的路径获取请求;对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;接收第一流媒体服务设备发送的第二服务票据;对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备。The platform is configured to receive a path acquisition request sent by the first terminal, and perform verification on the first terminal, and when the first terminal is verified to be legal, send the path corresponding to the path acquisition request to the first terminal. a path and a first service ticket; receiving a second service ticket sent by the first streaming service device; verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming service device.

在本实施例中,所述平台还用于根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应,如果是,向所述第一终端发送所述路径获取请求对应的第一路径;判断所述第一终端是否成功登录所述流媒体系统;如果是,向所述第一终端发送第一服务票据。In this embodiment, the platform is further configured to determine, according to the corresponding relationship between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal, and if And sending, by the first terminal, the first path corresponding to the path obtaining request; determining whether the first terminal successfully logs in to the streaming media system; if yes, sending the first service ticket to the first terminal.

在本实施例中,所述平台还用于接收所述第一终端发送的服务票据获取请求。In this embodiment, the platform is further configured to receive a service ticket acquisition request sent by the first terminal.

在本实施例中,所述平台还用于记录所述第一终端与所述第一服务票据的对应关系;根据所记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二服务票据验证通过。In this embodiment, the platform is further configured to record a correspondence between the first terminal and the first service ticket; and determine, according to the recorded correspondence between the first terminal and the first service ticket, Whether the second service ticket corresponds to the first terminal, and if yes, indicates that the second service ticket is verified to pass.

所述终端还用于向所述平台发送服务票据获取请求。The terminal is further configured to send a service ticket acquisition request to the platform.

应用上述实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取 了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the foregoing embodiment, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends a resource acquisition request to the streaming media service device corresponding to the path. The service acquisition ticket includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where the verification result shows that the verification is passed. The streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal. The service ticket in this solution is valid only for a limited period of time and cannot be reused even if it is obtained by an illegal user. The used service ticket can not obtain the streaming media resource from the streaming media service device, which improves the security of obtaining the streaming media resource.

本申请实施例还提供了一种电子设备,如图7所示,包括处理器701、通信接口702、存储器703和通信总线704,其中,处理器701,通信接口702,存储器703通过通信总线704完成相互间的通信,存储器703,用于存放计算机程序;处理器701,用于执行存储器703上所存放的程序时,实现所述流媒体资源获取方法,方法包括:The embodiment of the present application further provides an electronic device, as shown in FIG. 7, including a processor 701, a communication interface 702, a memory 703, and a communication bus 704. The processor 701, the communication interface 702, and the memory 703 pass through the communication bus 704. Completing the communication with each other, the memory 703 is configured to store the computer program, and the processor 701 is configured to implement the method for acquiring the streaming media resource when the program stored in the memory 703 is executed, and the method includes:

接收第一终端发送的路径获取请求;Receiving a path acquisition request sent by the first terminal;

对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;

接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;Receiving a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket;

对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Verifying that the second service ticket is sent to the first streaming media service device, so that the first streaming media service device displays the verification result when the verification result is displayed. And sending the streaming media resource corresponding to the resource acquisition request to the first terminal.

该电子设备可以为流媒体系统中的平台,上述终端及流媒体服务设备都可以属于流媒体系统。The electronic device can be a platform in a streaming media system, and both the terminal and the streaming media service device can belong to a streaming media system.

上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可 以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (RAM), or To include a Non-Volatile Memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration. Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.

应用本申请图7所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 7 , the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path. The device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供了一种可执行程序代码,所述可执行程序代码用于被运行以执行流媒体资源获取方法,方法包括:The embodiment of the present application further provides an executable program code, where the executable program code is used to execute a streaming media resource acquisition method, where the method includes:

接收第一终端发送的路径获取请求;Receiving a path acquisition request sent by the first terminal;

对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;

接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;Receiving a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket;

对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结 果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is at the verification node If the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal.

应用本申请所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in the present application, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path. a resource acquisition request, the resource acquisition request includes the service ticket, the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where the verification result is When the display verification is passed, the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行流媒体资源获取方法,方法包括:The embodiment of the present application further provides a storage medium, where the storage medium is used to store executable program code, where the executable program code is used to execute a streaming media resource acquisition method, and the method includes:

接收第一终端发送的路径获取请求;Receiving a path acquisition request sent by the first terminal;

对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal;

接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;Receiving a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket;

对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Verifying that the second service ticket is sent to the first streaming media service device, so that the first streaming media service device displays the verification result when the verification result is displayed. And sending the streaming media resource corresponding to the resource acquisition request to the first terminal.

应用本申请所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该 服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in the present application, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path. a resource acquisition request, which is included in the resource acquisition request a service ticket, the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device. When the verification result shows that the verification is passed, the streaming media service device sends The terminal sends the streaming media resource corresponding to the resource acquisition request. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供了一种终端设备,如图8所示,包括处理器801、通信接口802、存储器803和通信总线804,其中,处理器801,通信接口802,存储器803通过通信总线804完成相互间的通信,存储器803,用于存放计算机程序;处理器801,用于执行存储器803上所存放的程序时,实现所述流媒体资源获取方法,方法包括:The embodiment of the present application further provides a terminal device, as shown in FIG. 8, including a processor 801, a communication interface 802, a memory 803, and a communication bus 804. The processor 801, the communication interface 802, and the memory 803 pass through a communication bus 804. Completing the communication with each other, the memory 803 is configured to store the computer program, and the processor 801 is configured to implement the method for acquiring the streaming media resource when the program stored in the memory 803 is executed, and the method includes:

向平台发送路径获取请求;Send a path acquisition request to the platform;

接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;Receiving, by the platform, the first path and the first service ticket corresponding to the path obtaining request, where the first path and the first service ticket are sent by the platform when verifying that the terminal is legal;

向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;Sending a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket;

接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。Receiving the streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed. The result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.

该终端设备可以为流媒体系统中的终端,上述平台及流媒体服务设备都可以属于流媒体系统。The terminal device may be a terminal in a streaming media system, and the platform and the streaming media service device may belong to a streaming media system.

上述终端设备提到的通信总线可以是外设部件互连标准(Peripheral Component Interconnect,PCI)总线或扩展工业标准结构(Extended Industry Standard Architecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有 一根总线或一种类型的总线。The communication bus mentioned by the above terminal device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For the sake of convenience, the figure is only represented by a thick line, but it does not mean that only A bus or a type of bus.

通信接口用于上述终端设备与其他设备之间的通信。The communication interface is used for communication between the above terminal device and other devices.

存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration. Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.

应用本申请图8所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in FIG. 8 , the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal provides a streaming media service corresponding to the path. The device sends a resource acquisition request, where the resource acquisition request includes the service ticket, and the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where The verification result shows that the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal when the verification is passed. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供了一种可执行程序代码,所述可执行程序代码用于被运行以执行所述流媒体资源获取方法,方法包括:The embodiment of the present application further provides an executable program code, where the executable program code is used to execute the streaming media resource acquisition method, and the method includes:

向平台发送路径获取请求;Send a path acquisition request to the platform;

接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;Receiving, by the platform, the first path and the first service ticket corresponding to the path obtaining request, where the first path and the first service ticket are sent by the platform when verifying that the terminal is legal;

向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据; Sending a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket;

接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。Receiving the streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed. The result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.

应用本申请所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in the present application, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path. a resource acquisition request, the resource acquisition request includes the service ticket, the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where the verification result is When the display verification is passed, the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

本申请实施例还提供了一种存储介质,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行流媒体资源获取方法,方法包括:The embodiment of the present application further provides a storage medium, where the storage medium is used to store executable program code, where the executable program code is used to execute a streaming media resource acquisition method, and the method includes:

向平台发送路径获取请求;Send a path acquisition request to the platform;

接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;Receiving, by the platform, the first path and the first service ticket corresponding to the path obtaining request, where the first path and the first service ticket are sent by the platform when verifying that the terminal is legal;

向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;Sending a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket;

接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。 Receiving the streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed. The result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request.

应用本申请所示实施例,终端向平台发送路径获取请求,平台在验证该终端合法时,向该终端返回该路径获取请求对应的路径及服务票据,终端向该路径对应的流媒体服务设备发送资源获取请求,该资源获取请求中包括该服务票据,该流媒体服务设备将该服务票据发送给平台,平台对该服务票据进行验证,并将验证结果发送给该流媒体服务设备,在验证结果显示验证通过时,该流媒体服务设备向终端发送该资源获取请求对应的流媒体资源。本方案中的服务票据,仅在有限的时间段内有效,不能重复使用,即便非法用户获取了使用过的服务票据,也不能从流媒体服务设备中获取流媒体资源,提高了获取流媒体资源的安全性。Applying the embodiment shown in the present application, the terminal sends a path acquisition request to the platform, and when the platform verifies that the terminal is legal, the platform returns a path and a service ticket corresponding to the path acquisition request to the terminal, and the terminal sends the path to the streaming media service device corresponding to the path. a resource acquisition request, the resource acquisition request includes the service ticket, the streaming media service device sends the service ticket to the platform, the platform verifies the service ticket, and sends the verification result to the streaming media service device, where the verification result is When the display verification is passed, the streaming media service device sends the streaming media resource corresponding to the resource acquisition request to the terminal. The service ticket in this solution is valid only for a limited period of time and cannot be reused. Even if an illegal user obtains a used service ticket, the streaming media resource cannot be obtained from the streaming media service device, and the streaming media resource is improved. Security.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例、系统实施例、设备实施例、可执行程序代码实施例、存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in the present specification are described in a related manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the device embodiment, the system embodiment, the device embodiment, the executable program code embodiment, and the storage medium embodiment are relatively similar to the method embodiment, and the description is relatively simple. Part of the description of the example can be.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。One of ordinary skill in the art can understand that all or part of the steps in implementing the above method embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, which is referred to herein. Storage media such as ROM/RAM, disk, CD, etc.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (19)

一种流媒体资源获取方法,其特征在于,应用于流媒体系统中的平台,其中,所述流媒体系统中还包括终端及流媒体服务设备,所述方法包括:A method for acquiring a streaming media resource, which is characterized in that it is applied to a platform in a streaming media system, wherein the streaming media system further includes a terminal and a streaming media service device, and the method includes: 接收第一终端发送的路径获取请求;Receiving a path acquisition request sent by the first terminal; 对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;The first terminal is authenticated, and when the first terminal is verified to be legal, the first path corresponding to the path obtaining request and the first service ticket are sent to the first terminal; 接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;Receiving a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is received by the first streaming media service device After the resource acquisition request sent by the first terminal is sent, the resource acquisition request includes the first service ticket; 对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Verifying that the second service ticket is sent to the first streaming media service device, so that the first streaming media service device displays the verification result when the verification result is displayed. And sending the streaming media resource corresponding to the resource acquisition request to the first terminal. 根据权利要求1所述的方法,其特征在于,所述对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据,包括:The method according to claim 1, wherein the verifying the first terminal, when verifying that the first terminal is legal, sending the first corresponding to the path obtaining request to the first terminal The path and the first service ticket, including: 根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应,如果是,向所述第一终端发送所述路径获取请求对应的第一路径;Determining, according to the corresponding relationship between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal, and if yes, sending the path obtaining to the first terminal Request the corresponding first path; 判断所述第一终端是否成功登录所述流媒体系统;Determining whether the first terminal successfully logs in to the streaming media system; 如果是,向所述第一终端发送第一服务票据。If yes, the first service ticket is sent to the first terminal. 根据权利要求2所述的方法,其特征在于,在所述判断所述第一终端是否成功登录所述流媒体系统之前,还包括:The method according to claim 2, further comprising: before determining whether the first terminal successfully logs in to the streaming media system, 接收所述第一终端发送的服务票据获取请求。Receiving a service ticket acquisition request sent by the first terminal. 根据权利要求2或3所述的方法,其特征在于,在所述向所述第一终端发送第一服务票据之后,还包括: The method according to claim 2 or 3, further comprising: after the sending the first service ticket to the first terminal, 记录所述第一终端与所述第一服务票据的对应关系;Recording a correspondence between the first terminal and the first service ticket; 所述对所述第二服务票据进行验证,包括:The verifying the second service ticket includes: 根据所记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二服务票据验证通过。And determining, according to the recorded correspondence between the first terminal and the first service ticket, whether the second service ticket corresponds to the first terminal, and if yes, indicating that the second service ticket is verified to pass. 一种流媒体资源获取方法,其特征在于,应用于流媒体系统中的终端,其中,所述流媒体系统中还包括平台及流媒体服务设备,所述方法包括:A method for acquiring a streaming media resource, which is characterized in that it is applied to a terminal in a streaming media system, wherein the streaming media system further includes a platform and a streaming media service device, and the method includes: 向所述平台发送路径获取请求;Sending a path acquisition request to the platform; 接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;Receiving, by the platform, the first path and the first service ticket corresponding to the path obtaining request, where the first path and the first service ticket are sent by the platform when verifying that the terminal is legal; 向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;Sending a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource acquisition request includes the first service ticket; 接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。Receiving the streaming media resource sent by the first streaming media service device, where the streaming media resource is a verification result that is sent by the first streaming media service device for the second service ticket sent by the platform, and the verification is performed. The result is that the second service ticket is sent by the first streaming media service device after receiving the resource acquisition request. 根据权利要求1所述的方法,其特征在于,接收所述平台发送的第一服务票据之前,还包括:The method according to claim 1, wherein before receiving the first service ticket sent by the platform, the method further comprises: 向所述平台发送服务票据获取请求。A service ticket acquisition request is sent to the platform. 一种流媒体资源获取装置,其特征在于,应用于流媒体系统中的平台,其中,所述流媒体系统中还包括终端及流媒体服务设备,所述装置包括:A streaming media resource obtaining device, which is applied to a platform in a streaming media system, wherein the streaming media system further includes a terminal and a streaming media service device, and the device includes: 第一接收模块,用于接收第一终端发送的路径获取请求;a first receiving module, configured to receive a path acquisition request sent by the first terminal; 第一验证发送模块,用于对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服 务票据;a first verification sending module, configured to perform verification on the first terminal, and when the first terminal is verified to be legal, send the first path corresponding to the path obtaining request and the first service to the first terminal Bill 第二接收模块,用于接收第一流媒体服务设备发送的第二服务票据,其中,所述第一流媒体服务设备为所述第一路径对应的设备,所述第二服务票据为所述第一流媒体服务设备在接收到所述第一终端发送的资源获取请求后发送的,所述资源获取请求中包含所述第一服务票据;a second receiving module, configured to receive a second service ticket sent by the first streaming media service device, where the first streaming media service device is a device corresponding to the first path, and the second service ticket is the first service After the media service device receives the resource acquisition request sent by the first terminal, the resource acquisition request includes the first service ticket; 第二验证发送模块,用于对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。a second verification sending module, configured to perform verification on the second service ticket, and send a verification result for the second service ticket to the first streaming media service device, so that the first streaming media service device is in the The verification result shows that when the verification is passed, the streaming media resource corresponding to the resource acquisition request is sent to the first terminal. 根据权利要求7所述的装置,其特征在于,所述第一验证发送模块,包括:The device according to claim 7, wherein the first verification sending module comprises: 第一判断子模块,用于根据自身存储的终端与流媒体服务设备的对应关系,判断所述路径获取请求对应的第一流媒体服务设备与所述第一终端是否对应;a first determining sub-module, configured to determine, according to a correspondence between the terminal and the streaming media service device, whether the first streaming media service device corresponding to the path obtaining request corresponds to the first terminal; 第一发送子模块,用于当所述第一判断子模块判断结果为是时,向所述第一终端发送所述路径获取请求对应的第一路径;a first sending submodule, configured to: when the first determining submodule determines that the result is yes, send the first path corresponding to the path obtaining request to the first terminal; 第二判断子模块,用于判断所述第一终端是否成功登录所述流媒体系统;a second determining submodule, configured to determine whether the first terminal successfully logs in to the streaming media system; 第二发送子模块,用于当所述第二判断子模块判断结果为是时,向所述第一终端发送第一服务票据。The second sending submodule is configured to send the first service ticket to the first terminal when the second determining submodule determines that the result is yes. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises: 第三接收模块,用于接收所述第一终端发送的服务票据获取请求。The third receiving module is configured to receive a service ticket acquisition request sent by the first terminal. 根据权利要求8或9所述的装置,其特征在于,所述装置还包括:The device according to claim 8 or 9, wherein the device further comprises: 记录模块,用于记录所述第一终端与所述第一服务票据的对应关系;a recording module, configured to record a correspondence between the first terminal and the first service ticket; 所述第二验证发送模块,具体用于:The second verification sending module is specifically configured to: 根据所述记录模块记录的所述第一终端与所述第一服务票据的对应关系,判断所述第二服务票据与所述第一终端是否对应,如果是,表示对所述第二 服务票据验证通过;将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备,以使所述第一流媒体服务设备在所述验证结果显示验证通过时,向所述第一终端发送所述资源获取请求对应的流媒体资源。Determining, according to the correspondence between the first terminal and the first service ticket recorded by the recording module, whether the second service ticket corresponds to the first terminal, and if yes, indicating the second The service ticket verification is passed; the verification result for the second service ticket is sent to the first streaming media service device, so that the first streaming media service device, when the verification result shows that the verification is passed, to the first The terminal sends the streaming media resource corresponding to the resource acquisition request. 一种流媒体资源获取装置,其特征在于,应用于流媒体系统中的终端,其中,所述流媒体系统中还包括平台及流媒体服务设备,所述装置包括:A streaming media resource obtaining device, which is applied to a terminal in a streaming media system, wherein the streaming media system further includes a platform and a streaming media service device, and the device includes: 第一发送模块,用于向所述平台发送路径获取请求;a first sending module, configured to send a path acquisition request to the platform; 第三接收模块,用于接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据,其中,所述第一路径及第一服务票据为所述平台在验证所述终端合法的情况下发送的;a third receiving module, configured to receive the first path corresponding to the path obtaining request sent by the platform, and the first service ticket, where the first path and the first service ticket are the platform verifying the terminal Sent in case of legality; 第二发送模块,用于向所述第一路径对应的第一流媒体服务设备发送资源获取请求,所述资源获取请求中包括所述第一服务票据;a second sending module, configured to send a resource acquisition request to the first streaming media service device corresponding to the first path, where the resource obtaining request includes the first service ticket; 第四接收模块,用于接收所述第一流媒体服务设备发送的流媒体资源,其中,所述流媒体资源为所述第一流媒体服务设备在接收到所述平台发送的针对第二服务票据的验证结果、且所述验证结果显示验证通过的情况下发送的,所述第二服务票据为:所述第一流媒体服务设备接收到所述资源获取请求后向所述平台发送的。a fourth receiving module, configured to receive the streaming media resource sent by the first streaming media service device, where the streaming media resource is that the first streaming media service device receives the second service ticket sent by the platform If the verification result is sent, and the verification result is sent, the second service ticket is sent by the first streaming media service device to the platform after receiving the resource acquisition request. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises: 第三发送模块,用于向所述平台发送服务票据获取请求。And a third sending module, configured to send a service ticket acquisition request to the platform. 一种流媒体系统,其特征在于,包括:终端、流媒体服务设备及平台,其中,A streaming media system, comprising: a terminal, a streaming media service device, and a platform, wherein 所述终端,用于向所述平台发送路径获取请求;接收所述平台发送的所述路径获取请求对应的第一路径及第一服务票据;向所述第一路径对应的第一流媒体服务设备发送资源获取请求;接收所述第一流媒体服务设备发送的流媒体资源;The terminal is configured to send a path acquisition request to the platform, receive a first path corresponding to the path acquisition request sent by the platform, and a first service ticket; and send, to the first streaming media service device corresponding to the first path Sending a resource acquisition request; receiving a streaming media resource sent by the first streaming media service device; 所述流媒体服务设备,用于接收所述终端发送的资源获取请求;将所述资源获取请求中包括的服务票据发送给所述平台;接收所述平台发送的针对服务票据的验证结果,当所述验证结果显示验证通过时,向所述终端发送所 述资源获取请求对应的的流媒体资源;The streaming media service device is configured to receive a resource acquisition request sent by the terminal, send the service ticket included in the resource acquisition request to the platform, and receive a verification result for the service ticket sent by the platform, when The verification result shows that when the verification is passed, the terminal is sent to the terminal a streaming media resource corresponding to the resource obtaining request; 所述平台,用于接收第一终端发送的路径获取请求;对所述第一终端进行验证,当验证所述第一终端合法时,向所述第一终端发送所述路径获取请求对应的第一路径及第一服务票据;接收第一流媒体服务设备发送的第二服务票据;对所述第二服务票据进行验证,将针对所述第二服务票据的验证结果发送至所述第一流媒体服务设备。The platform is configured to receive a path acquisition request sent by the first terminal, and perform verification on the first terminal, and when the first terminal is verified to be legal, send the path corresponding to the path acquisition request to the first terminal. a path and a first service ticket; receiving a second service ticket sent by the first streaming service device; verifying the second service ticket, and transmitting a verification result for the second service ticket to the first streaming service device. 一种电子设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;An electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus; 存储器,用于存放计算机程序;a memory for storing a computer program; 处理器,用于执行存储器上所存放的程序时,执行权利要求1-4任一项所述的流媒体资源获取方法。The processor, when used to execute a program stored in the memory, executes the streaming media resource obtaining method according to any one of claims 1 to 4. 一种可执行程序代码,其特征在于,所述可执行程序代码用于被运行以执行权利要求1-4任一项所述的流媒体资源获取方法。An executable program code, the executable program code being operative to perform the streaming media resource acquisition method of any one of claims 1-4. 一种存储介质,其特征在于,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行权利要求1-4任一项所述的流媒体资源获取方法。A storage medium, characterized in that the storage medium is for storing executable program code for being executed to perform the streaming media resource acquisition method according to any one of claims 1-4. 一种终端设备,其特征在于,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;A terminal device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory complete communication with each other through the communication bus; 存储器,用于存放计算机程序;a memory for storing a computer program; 处理器,用于执行存储器上所存放的程序时,执行权利要求5-6任一项所述的流媒体资源获取方法。The processor, when used to execute a program stored in the memory, performs the streaming media resource obtaining method according to any one of claims 5-6. 一种可执行程序代码,其特征在于,所述可执行程序代码用于被运行以执行权利要求5-6任一项所述的流媒体资源获取方法。An executable program code, the executable program code being operative to perform the streaming media resource acquisition method of any one of claims 5-6. 一种存储介质,其特征在于,所述存储介质用于存储可执行程序代码,所述可执行程序代码用于被运行以执行权利要求5-6任一项所述的流媒体资源获取方法。 A storage medium, characterized in that the storage medium is for storing executable program code for being executed to perform the streaming media resource acquisition method according to any one of claims 5-6.
PCT/CN2017/099345 2016-09-08 2017-08-28 Streaming media resource obtaining method and apparatus, and streaming media system Ceased WO2018045892A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610809033.XA CN107809407B (en) 2016-09-08 2016-09-08 A kind of streaming media resource acquisition method, device and streaming media system
CN201610809033.X 2016-09-08

Publications (1)

Publication Number Publication Date
WO2018045892A1 true WO2018045892A1 (en) 2018-03-15

Family

ID=61562499

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099345 Ceased WO2018045892A1 (en) 2016-09-08 2017-08-28 Streaming media resource obtaining method and apparatus, and streaming media system

Country Status (2)

Country Link
CN (1) CN107809407B (en)
WO (1) WO2018045892A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030165241A1 (en) * 2000-06-16 2003-09-04 Fransdonk Robert W. Method and system to digitally sign and deliver content in a geographically controlled manner via a network
CN101582768A (en) * 2009-06-12 2009-11-18 中兴通讯股份有限公司 Login authentication method in electronic advertisement system and system
CN102868706A (en) * 2011-07-04 2013-01-09 中兴通讯股份有限公司 Method and system for realizing DSN content service access security
CN105516143A (en) * 2015-12-10 2016-04-20 浙江省公众信息产业有限公司 Anti-leech method, device and system for streaming media

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373853C (en) * 2005-10-10 2008-03-05 中兴通讯股份有限公司 Flow media service request authentication method and system
CN102469075A (en) * 2010-11-09 2012-05-23 中科正阳信息安全技术有限公司 Integrated authentication method based on WEB single sign-on
CN102868702B (en) * 2012-09-28 2015-09-02 用友软件股份有限公司 System login device and system login method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030165241A1 (en) * 2000-06-16 2003-09-04 Fransdonk Robert W. Method and system to digitally sign and deliver content in a geographically controlled manner via a network
CN101582768A (en) * 2009-06-12 2009-11-18 中兴通讯股份有限公司 Login authentication method in electronic advertisement system and system
CN102868706A (en) * 2011-07-04 2013-01-09 中兴通讯股份有限公司 Method and system for realizing DSN content service access security
CN105516143A (en) * 2015-12-10 2016-04-20 浙江省公众信息产业有限公司 Anti-leech method, device and system for streaming media

Also Published As

Publication number Publication date
CN107809407B (en) 2020-04-03
CN107809407A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US12141265B2 (en) Method and apparatus for facilitating the login of an account
CN110086768B (en) Service processing method and device
US9648008B2 (en) Terminal identification method, and method, system and apparatus of registering machine identification code
US9998438B2 (en) Verifying the security of a remote server
CN112532653B (en) Method and device for managing third-party account
JP2013541087A (en) Methods and apparatus for ephemeral trust devices
CN111030812A (en) Token verification method, device, storage medium and server
CN106549919B (en) An information registration and authentication method and device
US8819427B2 (en) Device specific secure licensing
US9154497B1 (en) Maintaining accountability of a shared password among multiple users
CN111259368A (en) Method and equipment for logging in system
CN115982694A (en) Resource access method, device, equipment and medium
WO2019001084A1 (en) Authentication method and device for video stream address
CN113761498A (en) Third party login information hosting method, system, equipment and storage medium
CN113886802A (en) Security authentication method, device, electronic equipment and storage medium
CN112989401A (en) Authority management method and device, electronic equipment and storage medium
CN114039873B (en) Audit method and operation and maintenance security audit system aiming at client type
WO2018045892A1 (en) Streaming media resource obtaining method and apparatus, and streaming media system
CN117499122A (en) Data access method, system, electronic device, storage medium and program product
CN111090850B (en) Authentication system, method and device
CN119519979B (en) Identity authentication method, device, electronic device and storage medium for networking equipment
TWI673621B (en) Information registration, authentication method and device
HK1226563A1 (en) Method and device for identifying user identity
HK1226563A (en) Method and device for identifying user identity
HK1235559A1 (en) Information registration and authentication method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17848065

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17848065

Country of ref document: EP

Kind code of ref document: A1