IP Library › Granted Patent US 11,711,280
Granted Patent B2
US 11,711,280 · App. 17/713,566 · Granted Jul 25, 2023

Metrics collection method and apparatus for streaming media, computer, and storage medium

Inventor: Zhuoyun Zhang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
H04L43/08H04L65/60
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,711,280
App. No.
17/713,566
Granted
Jul 25, 2023
Kind
B2
Abstract

A metrics collection method includes: transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media; obtaining a media data response message transmitted by the application service device, the media data response message including metrics collection configuration information, and the metrics collection configuration information including metrics collection environment information and network slice information; obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media; determining, based on the network slice information, a network path for reporting the metrics data; and reporting the metrics data to the application service device through the network path.

Claims (85)

1. A metrics collection method for streaming media, performed on a terminal device, the method comprising:

transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media;

obtaining a media data response message transmitted by the application service device, the media data response message comprising metrics collection configuration information, and the metrics collection configuration information comprising metrics collection environment information and network slice information;

obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media;

determining, based on the network slice information, a network path for reporting the metrics data; and

reporting the metrics data to the application service device through the network path.

2. The method according to claim 1 , wherein the metrics collection configuration information comprises a metrics collection time range; and

the obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media comprises:

obtaining a system time, and determining the system time as the environment information of the streaming media; and

when the system time is within the metrics collection time range, determining that the environment information matches the metrics collection environment information, and collecting the metrics data corresponding to the streaming media.

3. The method according to claim 1 , wherein the metrics collection configuration information comprises a metrics collection geographic area; and

the obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media comprises:

obtaining a geographic location of the terminal device corresponding to the streaming media, and determining the geographic location as the environment information of the streaming media; and

when the geographic location is located within the metrics collection geographic area, determining that the environment information matches the metrics collection environment information, and collecting the metrics data corresponding to the streaming media.

4. The method according to claim 1 , wherein the metrics collection configuration information comprises a metrics collection data type; and

the method further comprises:

obtaining a data type of the streaming media; and

collecting the metrics data corresponding to the streaming media when the data type of the streaming media belongs to the metrics collection data type.

5. The method according to claim 1 , wherein the metrics collection configuration information comprises a reporting interval; and

the reporting the metrics data to the application service device through the network path comprises:

reporting the metrics data to the application service device through the network path based on a time interval indicated by the reporting interval.

6. The method according to claim 1 , wherein the metrics collection configuration information comprises a metrics collection object, and the media data response message further comprises media display data; and

the collecting metrics data corresponding to the streaming media comprises:

creating a metrics collection task, to obtain metrics data associated with the metrics collection object in the metrics collection configuration information; and

performing the metrics collection task for the media display data, to obtain the metrics data associated with the metrics collection object.

7. The method according to claim 6 , wherein the performing the metrics collection task for the media display data, to obtain metrics data associated with the metrics collection object comprises:

displaying the media display data through a media player, and monitoring a display process of the media display data based on the metrics collection task;

obtaining data that is generated in the display process and is associated with the metrics collection object, and determining the data associated with the metrics collection object as the metrics data; and

obtaining, through a media session handler, the metrics data determined based on the media player; and

the reporting the metrics data to the application service device through the network path comprises:

reporting the metrics data to the application service device based on the media session handler and the network path.

8. The method according to claim 1 , wherein the transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media comprises:

obtaining a media identifier and a media content category of the streaming media in response to the trigger operation for the streaming media; and

encapsulating the media identifier and the media content category into the media data obtaining request, and transmitting the media data obtaining request to the application service device,

the media data obtaining request being used for instructing the application service device to obtain metrics collection configuration information corresponding to the media content category, obtain media display data corresponding to the media identifier, and generate the media data response message based on the metrics collection configuration information and the media display data.

9. The method according to claim 1 , wherein the transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media comprises:

obtaining a media identifier of the streaming media in response to the trigger operation for the streaming media; and

encapsulating the media identifier into the media data obtaining request, and transmitting the media data obtaining request to the application service device,

the media data obtaining request being used for instructing the application service device to obtain media display data corresponding to the media identifier, determine at least one media content category of the streaming media based on the media display data, obtain corresponding metrics collection configuration information based on the at least one media content category, and generate the media data response message based on the metrics collection configuration information and the media display data.

10. The method according to claim 1 , wherein the determining, based on the network slice information, a network path for reporting the metrics data comprises:

when the network slice information comprises at least two candidate network paths and priorities of the candidate network paths, determining, from the at least two candidate network paths based on a path selection algorithm and the priorities of the candidate network paths, the network path for reporting the metrics data.

11. A metrics collection apparatus for streaming media, the apparatus comprising a processor and a memory,

the processor being connected to the memory, the memory being configured to store program code, the processor being configured to invoke the program code, to perform:

transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media;

obtaining a media data response message transmitted by the application service device, the media data response message comprising metrics collection configuration information, and the metrics collection configuration information comprising metrics collection environment information and network slice information;

obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media;

determining, based on the network slice information, a network path for reporting the metrics data; and

reporting the metrics data to the application service device through the network path.

12. The apparatus according to claim 11 , wherein the metrics collection configuration information comprises a metrics collection time range; and

the obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media comprises:

obtaining a system time, and determining the system time as the environment information of the streaming media; and

when the system time is within the metrics collection time range, determining that the environment information matches the metrics collection environment information, and collecting the metrics data corresponding to the streaming media.

13. The apparatus according to claim 11 , wherein the metrics collection configuration information comprises a metrics collection geographic area; and

the obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media comprises:

obtaining a geographic location of the terminal device corresponding to the streaming media, and determining the geographic location as the environment information of the streaming media; and

when the geographic location is located within the metrics collection geographic area, determining that the environment information matches the metrics collection environment information, and collecting the metrics data corresponding to the streaming media.

14. The apparatus according to claim 11 , wherein the metrics collection configuration information comprises a metrics collection data type; and

the processor is further configured to perform:

obtaining a data type of the streaming media; and

collecting the metrics data corresponding to the streaming media when the data type of the streaming media belongs to the metrics collection data type.

15. The apparatus according to claim 11 , wherein the metrics collection configuration information comprises a reporting interval; and

the reporting the metrics data to the application service device through the network path comprises:

reporting the metrics data to the application service device through the network path based on a time interval indicated by the reporting interval.

16. The apparatus according to claim 11 , wherein the metrics collection configuration information comprises a metrics collection object, and the media data response message further comprises media display data; and

the collecting metrics data corresponding to the streaming media comprises:

creating a metrics collection task, to obtain metrics data associated with the metrics collection object in the metrics collection configuration information; and

performing the metrics collection task for the media display data, to obtain the metrics data associated with the metrics collection object.

17. The apparatus according to claim 16 , wherein the performing the metrics collection task for the media display data, to obtain metrics data associated with the metrics collection object comprises:

displaying the media display data through a media player, and monitoring a display process of the media display data based on the metrics collection task;

obtaining data that is generated in the display process and is associated with the metrics collection object, and determining the data associated with the metrics collection object as the metrics data; and

obtaining, through a media session handler, the metrics data determined based on the media player; and

the reporting the metrics data to the application service device through the network path comprises:

reporting the metrics data to the application service device based on the media session handler and the network path.

18. The apparatus according to claim 11 , wherein the transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media comprises:

obtaining a media identifier and a media content category of the streaming media in response to the trigger operation for the streaming media; and

encapsulating the media identifier and the media content category into the media data obtaining request, and transmitting the media data obtaining request to the application service device,

the media data obtaining request being used for instructing the application service device to obtain metrics collection configuration information corresponding to the media content category, obtain media display data corresponding to the media identifier, and generate the media data response message based on the metrics collection configuration information and the media display data.

19. The apparatus according to claim 11 , wherein the determining, based on the network slice information, a network path for reporting the metrics data comprises:

when the network slice information comprises at least two candidate network paths and priorities of the candidate network paths, determining, from the at least two candidate network paths based on a path selection algorithm and the priorities of the candidate network paths, the network path for reporting the metrics data.

20. A non-transitory computer-readable storage medium, storing a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to perform:

transmitting a media data obtaining request to an application service device in response to a trigger operation for streaming media;

obtaining a media data response message transmitted by the application service device, the media data response message comprising metrics collection configuration information, and the metrics collection configuration information comprising metrics collection environment information and network slice information;

obtaining environment information of the streaming media, and when the environment information matches the metrics collection environment information, collecting metrics data corresponding to the streaming media;

determining, based on the network slice information, a network path for reporting the metrics data; and

reporting the metrics data to the application service device through the network path.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 5, 2022
From: ZHANG, ZHUOYUN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 059504/0609 →
Priority Claims (1)
CN 202010414508.1 · May 15, 2020 · national
Continuity (2)
Continuation PCTCN2021088161 · Apr 19, 2021
Related Publication 20220231932A1 · Jul 21, 2022