摘要:
Embodiments of the present invention disclose a method for sharing media content, a terminal device, and a content sharing system. A method for sharing media content may include: if detecting that N second terminal devices are playing M pieces of media content online, obtaining, by a first terminal device, M network addresses from the N second terminal devices; obtaining, based on the M network addresses, M pieces of media content from a content server, editing the M pieces of media content obtained from the content server, to obtain first media content, and generating editing information according to an editing manner used when the first media content is obtained; sending the editing information to the content server; receiving a second network address sent by the content server; and publishing the second network address on a social networking server. The solutions of the embodiments of the present invention enhance flexibility of content sharing and user interactivity in a social networking service scenario.
摘要:
A memory management method and apparatus are disclosed, to resolve an existing problem that a memory reclaiming rate is relatively low, severely affecting memory allocation performance in a scenario in which system memory is insufficient. The method includes: determining a memory page that needs to be swapped out of a memory (S21); for each memory page that needs to be swapped out, generating, based on the memory page, a work task used to reclaim the memory page (S22); and determining a dedicated worker thread in an idle state, and allocating each work task to the dedicated worker thread in an idle state for execution (S23). In this way, a plurality of CPUs process memory reclaiming in parallel, thereby accelerating memory reclaiming, and improving user experience.
摘要:
Embodiments of the present invention disclose a method for sharing media content, a terminal device, and a content sharing system. A method for sharing media content may include: if detecting that N second terminal devices are playing M pieces of media content online, obtaining, by a first terminal device, M network addresses from the N second terminal devices; obtaining, based on the M network addresses, M pieces of media content from a content server, editing the M pieces of media content obtained from the content server, to obtain first media content, and generating editing information according to an editing manner used when the first media content is obtained; sending the editing information to the content server; receiving a second network address sent by the content server; and publishing the second network address on a social networking server. The technical solutions of the embodiments of the present invention are helpful to. The solutions of the embodiments of the present invention enhance flexibility of content sharing and user interactivity in a social networking service scenario.
摘要:
An application process management method and a terminal device are disclosed. The method includes: starting an application on a terminal device (410); and updating a group status of a process of the application when an event that the application switches from the foreground to the background occurs, so that at least some of target processes of the application are transferred from a foreground process group to a background process group (420), where the target process is a process that still meets, after the application switches to the background, a condition for staying in the foreground process group. The method can mitigate frame freezing of a foreground application.
摘要:
Embodiments of the present invention disclose a channel change method and a related apparatus. The channel change method includes: receiving a live stream of a first channel, where the live stream of the first channel includes N media file sets; separately encoding the live stream of the first channel in different coding manners, to generate both a main stream and a sub stream; and generating a playlist of the first channel according to channel information of the first channel, coding information of the main stream, and coding information of the sub stream, where the playlist is used to: when a client sends a channel change instruction, instruct the client to perform channel change according to the main stream and the sub stream. Technical solutions provided in the embodiments of the present invention help improve channel change efficiency of an OTT video service.
摘要:
Embodiments of the present invention provide a remote access method and device. The method includes: acquiring, by a local area network terminal, information about accessible content on at least one online device in the local area network; aggregating, by the local area network terminal, the information about the accessible content on the at least one online device; and sending, by the local area network terminal, the aggregated information about the accessible content on the at least one online device to a remote client, so that the remote client presents the information about the accessible content on the at least one online device. In this way, a remote client can present information about accessible content on an online device in a local area network. Therefore, the remote client does not need to acquire address information of each online device in the local area network to separately access each online device to acquire information about accessible content on the online device. In this way, the remote client can perform remote access in a simpler and more convenient manner.
摘要:
Embodiments of the present invention disclose a channel change method and a related apparatus. The channel change method includes: receiving a live stream of a first channel, where the live stream of the first channel includes N media file sets; separately encoding the live stream of the first channel in different coding manners, to generate both a main stream and a sub stream; and generating a playlist of the first channel according to channel information of the first channel, coding information of the main stream, and coding information of the sub stream, where the playlist is used to: when a client sends a channel change instruction, instruct the client to perform channel change according to the main stream and the sub stream. Technical solutions provided in the embodiments of the present invention help improve channel change efficiency of an OTT video service.
摘要:
This application discloses an image file obtaining method, including: determining a first value of each of N tasks in program source code (501), where the first value is first duration required for executing each of the N tasks or the first value is a ratio of the first duration to second duration, the second duration is duration required for loading each of the N tasks, and N is a positive integer; sorting the N tasks in descending order of the first values (502); and linking the sorted N tasks to obtain an image file (503). According to the method, after downloading the image file, an embedded apparatus successively loads and executes the N tasks, thereby shortening a startup time period of the embedded apparatus.
摘要:
This application provides a resource scheduling method and apparatus, a computer device, and the like. According to this method, a resource management and control policy is determined and implemented with an aim of improving overall user experience. The overall user experience is determined based on weights of performance, a temperature, and power consumption in a current application scene of a device, and user experience of the performance, the temperature, and the power consumption. The scheduling method that converges three factors: the performance, the temperature, and the power consumption can be used to avoid a seesaw effect that may be caused by scheduling of a single factor, and improve comprehensive experience of a user on a device.