Abstract:
A bandwidth measurement method includes sending a first test packet on a test path that includes a to-be-measured link, sending a second test packet on the test path, setting at least one of a quantity of label layers in a first segment routing (SR) label or a quantity of label layers in a second SR label as a reference quantity of label layers for bandwidth measurement, and determining an available bandwidth on the to-be-measured link based on the reference quantity of label layers in response to the to-be-measured link failing to be congested with first test packets and being congested with second test packets. The first test packet includes the first SR label that indicates a forwarding relationship of the first test packet on the to-be-measured link. The second test packet includes a second SR label that indicates a forwarding relationship of the second test packet on the to-be-measured link.
Abstract:
An image presentation method, where the method includes obtaining identification information of a first object when a switching instruction for switching the first object to a second object is received, where one of the first object or the second object is a first 360-degree panorama, the other is a first strip panorama, the first strip panorama includes multiple front sub-images used to display a first region, an ith front sub-image in the multiple front sub-images corresponds to a front image in a jth 360-degree panorama in multiple 360-degree panoramas and displays an ith sub-region in the first region, and the first 360-degree panorama is one of the multiple 360-degree panoramas, obtaining, according to the identification information of the first object, the second object corresponding to the identification information of the first object, and presenting the second object.
Abstract:
Disclosure of the present invention provide a method and an apparatus for processing a video stream. The method includes: acquiring a request message from a terminal, where the request message carries address information of multiple sub video screens, according to the address information, acquiring multiple substreams corresponding to the multiple sub video screens in a one-to-one manner, merging the multiple substreams into a single stream, and generating an indication message used to indicate a picture parameter of the single stream, and sending the single stream and the indication message to the terminal, so that the terminal decodes the single stream and displays decoded multiple sub video screens according to the indication message.
Abstract:
Embodiments of the present invention provide a streaming media segment preparation method and apparatus. The method includes: determining at least one quality point, where the at least one quality point is separately used to indicate quality of at least one target segment of streaming media in a first time period; and determining, according to the at least one quality point, the at least one target segment of the streaming media in the first time period. In the embodiments of the present invention, streaming media segments are prepared by taking a quality factor of the streaming media segments into consideration, which may avoid the problem that redundant segments are generated during preparation of the streaming media segments according to bit rates, thereby reducing a storage volume of a server.
Abstract:
An image presentation method, where the method includes obtaining identification information of a first object when a switching instruction for switching the first object to a second object is received, where one of the first object or the second object is a first 360-degree panorama, the other is a first strip panorama, the first strip panorama includes multiple front sub-images used to display a first region, an ith front sub-image in the multiple front sub-images corresponds to a front image in a jth 360-degree panorama in multiple 360-degree panoramas and displays an ith sub-region in the first region, and the first 360-degree panorama is one of the multiple 360-degree panoramas, obtaining, according to the identification information of the first object, the second object corresponding to the identification information of the first object, and presenting the second object.
Abstract:
Embodiments of the present invention provide media file receiving and media file sending methods, apparatuses, and systems. A media file receiving method includes: obtaining, by a client, an MPD fragment address of a first MPD fragment from a media presentation description MPD fragment index file according to a start-to-play time point requested by a user; sending, by the client, a first MPD fragment obtaining request including the MPD fragment address of the first MPD fragment to a server; receiving, by the client, the first MPD fragment fed back by the server, and sending a media segment obtaining request to the server according to media description information in the first MPD fragment; and receiving, by the client, a media segment fed back by the server. With the media receiving method according to the embodiments of the present invention, an objective of rapidly starting playing a media file can be achieved.
Abstract:
Embodiments of the present invention provide media file receiving and media file sending methods, apparatuses, and systems. A media file receiving method includes: obtaining, by a client, an MPD fragment address of a first MPD fragment from a media presentation description MPD fragment index file according to a start-to-play time point requested by a user; sending, by the client, a first MPD fragment obtaining request including the MPD fragment address of the first MPD fragment to a server; receiving, by the client, the first MPD fragment fed back by the server, and sending a media segment obtaining request to the server according to media description information in the first MPD fragment; and receiving, by the client, a media segment fed back by the server. With the media receiving method according to the embodiments of the present invention, an objective of rapidly starting playing a media file can be achieved.
Abstract:
Embodiments of the present invention provide a streaming media segment preparation method and apparatus. The method includes: determining at least one quality point, where the at least one quality point is separately used to indicate quality of at least one target segment of streaming media in a first time period; and determining, according to the at least one quality point, the at least one target segment of the streaming media in the first time period. In the embodiments of the present invention, streaming media segments are prepared by taking a quality factor of the streaming media segments into consideration, which may avoid the problem that redundant segments are generated during preparation of the streaming media segments according to bit rates, thereby reducing a storage volume of a server.