Patent Document ID: 9965468
Application ID: 15024461

Base Claim:
1. A method for acquiring a network resource, comprising: extracting language configuration information of a browser; extracting language information from the language configuration information, wherein the language information is included in setting information of a language preference of each of a video, an audio, and a subtitle, and wherein extracting the language information includes: connecting the language information in the setting information using a comma to obtain a character string of the video, a character string of the audio, and a character string of the subtitle; and separating the character string of the video, the character string of the audio, and the character string of the subtitle into different pieces of language information according to the comma, wherein when there is a semicolon in the language information, a character string preceding the semicolon is extracted, and wherein when there is no semicolon in the language information, an entire character string is extracted; storing the language information into a language list by successively storing the language information into a corresponding language list of the video, the audio, or the subtitle; sending a hypertext transfer protocol (HTTP) request to a web server to request a media play page or a media list page; loading a web page returned by the web server; locating a position of a media element; matching a value of a language attribute of a specified resource element in the media element with the language information in the language list; selecting a media resource address; requesting a media resource from the web server according to the media resource address; loading the media resource; and presenting the web page including the media resource to a user.

---

Claim 4:
4. The method according to claim 1 , wherein matching the value of the language attribute of the specified resource element in the media element with the language information in the language list, and wherein selecting the media resource address comprises: successively extracting the language information in the language list when the specified resource element in the media element has the language attribute; successively matching the extracted language information with values of language attributes of all specified resource elements in the media element; selecting the media resource address specified by a value of a resource address attribute of a first specified resource element when there is a matched value of the language attribute of the first specified resource element; selecting the media resource address specified by the value of the resource address attribute of the resource element that is first specified in the media element when there is no matched value of the language attribute of the first specified resource element; and selecting the media resource address specified by the value of the resource address attribute of the resource element that is first specified in the media element when the specified resource element in the media element has no language attribute.