WO2014169588A1 - Method and apparatus for selecting playable code rate content - Google Patents

Method and apparatus for selecting playable code rate content Download PDF

Info

Publication number
WO2014169588A1
WO2014169588A1 PCT/CN2013/084682 CN2013084682W WO2014169588A1 WO 2014169588 A1 WO2014169588 A1 WO 2014169588A1 CN 2013084682 W CN2013084682 W CN 2013084682W WO 2014169588 A1 WO2014169588 A1 WO 2014169588A1
Authority
WO
WIPO (PCT)
Prior art keywords
code rate
terminal
current terminal
index file
current
Prior art date
Application number
PCT/CN2013/084682
Other languages
French (fr)
Chinese (zh)
Inventor
余勇
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014169588A1 publication Critical patent/WO2014169588A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25825Management of client data involving client display capabilities, e.g. screen resolution of a mobile phone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams

Definitions

  • the present invention relates to the field of communication network technologies, and in particular, to a method and apparatus for selecting playable content.
  • HTTP Hypertext Transfer Protocol
  • HAS Adaptive Streaming
  • One key to HAS technology is to cut the content of the content (that is, the same channel or movie) in sequence.
  • Each patch has the same bit rate, resolution, and code.
  • Each slice has the same length of time, usually 2 to 10. About seconds, the description information and access links of such a group of tablets constitute a playlist.
  • the server can provide multiple video files of different code rates for the same content, so there are multiple playlists, each of which provides segments of different code rates. These playlists and shards are deployed on the server, and the terminal sequentially requests the shards of a playlist from the server to play using the HTTP protocol. Because the code rates of different playlists are different, the terminal can dynamically select the slices of different code rates according to the changed network conditions, thereby realizing the adaptation of the code rate.
  • the server In order to select a suitable playlist for the terminal, the server also provides an index file, which records the code rate information, the access link and the encoding format of all the optional playlists, and the description of the playlist for each code rate in the index file is small according to the code rate. Arrange to the big.
  • the terminal when the terminal requests to play the content, the first obtains the index file, and according to the information of the playlist in the index file and the available bandwidth information of the terminal, first requests the playlist of the lowest bit rate in the index file, and successfully plays a slice. , Try to request a higher bit rate playlist within the available bandwidth range until it stabilizes to a suitable bit rate.
  • the terminal may often exceed the maximum supported bit rate of the terminal, causing the playback to be stuck, black screen or flower screen for a period of time, and then automatically reduced.
  • the code rate requests the low bit rate of the slice to be played again, so that the user's playback experience is not good.
  • the embodiment of the invention provides a method and a device for selecting a playable content rate, which is used to prevent the terminal from requesting the content exceeding the maximum support code rate of the terminal to cause the play abnormality when playing the content.
  • a method for selecting a playable content rate includes: receiving a content play instruction of a user, where the content play instruction includes a uniform resource location URL of an index file; and sending a content play request to the server, where The content play request includes the URL of the index file and the terminal code rate capability indication; the receiving server obtains the maximum support code rate of the current terminal according to the terminal code rate capability indication, and filters according to the current terminal maximum support code rate.
  • the returned index file, the index file returned by the filtering includes information of a playlist selected by the server in the index file, and the code rate of the playlist is less than or equal to a maximum support code rate of the current terminal;
  • the playlist is selected in the index file returned after the filtering.
  • the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
  • the terminal code rate capability indication includes a terminal type, a current terminal decoding mode, and the receiving the server obtains a maximum support of the current terminal according to the terminal code rate capability indication.
  • the code rate and the index file returned after being filtered according to the current maximum supported bit rate of the terminal include: receiving, by the server, the maximum supported code rate of the current terminal obtained by querying from the terminal management server according to the terminal type and the current terminal decoding mode. And index file returned after filtering according to the current maximum supported bit rate of the terminal.
  • the method before the sending the content play request to the server, the method further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes The maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal; determining the current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are respectively the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum supported code rate of the current terminal rate rate capability information.
  • the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or according to the terminal The type queries the terminal management server to obtain the terminal code rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate;
  • Receiving, by the server, the index file returned by the current terminal according to the terminal code rate capability indication and filtering according to the maximum supported code rate of the current terminal, and the index file returned after the filtering includes the server The information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, specifically: receiving the server directly from the terminal rate capability indication to the current The maximum support code rate of the terminal and the minimum support code rate of the current terminal, the index file returned after filtering according to the current terminal maximum support code rate and the current terminal minimum support code rate, and the index file returned after the filtering includes the server in the The information of the playlist selected in the index file, where the code rate of the playlist is less than or The maximum bit rate supported on the terminal and the terminal equal to or greater than the minimum supported rate.
  • the method for selecting a playable content rate includes: receiving a content play request sent by a terminal, where the content play request includes a uniform resource location URL of an index file, and a terminal code rate capability indication;
  • the terminal code rate capability indicates that the current terminal maximum support code rate is obtained;
  • the filtered index file is generated according to the current terminal maximum support code rate, and the code rate of the play list is less than or equal to the current terminal maximum support code rate;
  • the terminal returns the filtered index file, so that the terminal selects a playlist in the filtered index file.
  • the terminal code rate capability indication includes current terminal code rate capability information
  • the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
  • the terminal code rate capability indication includes a terminal type, a current terminal decoding mode, and the obtaining, according to the terminal code rate capability indication, a current terminal maximum supported code rate, including: The terminal type is queried from the terminal management server to obtain the terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; and the current terminal decoding format according to the current content encoding format.
  • the current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum supported code rate is obtained.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate, and the terminal code rate capability indication according to the terminal Obtaining the current maximum supported code rate of the terminal
  • the method further includes: obtaining the minimum supported code rate of the current terminal directly from the terminal code rate capability indication; generating the filtered index file according to the maximum supported code rate of the current terminal, where the filtering
  • the index file includes the information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: according to the current terminal maximum support code rate and the current terminal
  • the minimum supported code rate generates a filtered index file, where the filtered index file includes information of a playlist selected in the index file, and the code rate of the playlist is less than or equal to a maximum support code rate of the current terminal. And greater than or equal to the current terminal minimum support code rate.
  • the terminal code rate capability information further includes a terminal minimum support code rate, where the current terminal code rate capability information further includes a current terminal The minimum supported code rate; the obtaining, according to the terminal code rate capability indication, the maximum supported code rate of the current terminal, further comprising: acquiring the minimum supported code rate of the current terminal; and generating, by using the maximum supported code rate of the current terminal, the filtered An index file, where the filtered index file includes the information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: according to the current terminal maximum Generating a filtered index file by supporting a code rate and a current minimum supported code rate, where the filtered index file includes information of a playlist selected in the index file, and a code rate of the playlist is less than or equal to the The current terminal supports a maximum code rate and is greater than or equal to the current terminal minimum support code rate.
  • the method for selecting a playable content rate includes: receiving a content play instruction of a user, where the content play instruction includes a uniform resource location URL of an index file; and sending a content play request to the server, where The content play request includes a URL of the index file; receiving an index file returned by the server according to the URL of the index file;
  • the pre-terminal bit rate capability information generates a filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes information of a playlist selected in the index file, The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal; and the playlist is selected from the filtered index file.
  • the method before the generating the filtered index file according to the current terminal code rate capability information, the method further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes the terminal maximum Supporting a code rate, a content encoding format, and a terminal decoding mode; determining a current terminal code rate capability information in the terminal code rate capability information according to a current terminal decoding mode and a current content encoding format, and content coding of the current terminal code rate capability information
  • the format and the terminal decoding mode are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum supported code rate is the terminal maximum supported code rate of the current terminal rate rate capability information.
  • the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or querying from the terminal management server according to the terminal type Obtaining the terminal code rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate;
  • the code rate of the playlist is less than or equal to the current terminal maximum supported code rate.
  • the code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate.
  • the terminal for selecting playable content content provided by the embodiment of the present invention includes: a user interaction unit, configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and Sending the URL of the index file to the sending unit;
  • the sending unit is configured to receive a URL of the index file from the user interaction unit, and send a content play request to the server, where the content play request includes a URL of the index file and a terminal code rate capability indication;
  • a receiving unit configured to receive, by the server, the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and filtering according to the maximum supported code rate of the current terminal
  • the index file returned by the filtering includes the information of the playlist selected by the server in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
  • the selecting unit is configured to receive, after the filtering, an index file returned from the receiving unit, and select a playlist from the index file returned after the filtering.
  • the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate.
  • the terminal code rate capability indication includes a terminal type, a current terminal decoding mode
  • the receiving unit is configured to receive, by the server, the obtained by using the terminal code rate capability indication.
  • the current terminal maximum supported code rate and the index file returned after being filtered according to the current terminal maximum supported code rate include: the receiving unit is configured to receive, by the server, the terminal management server according to the terminal type and the current terminal decoding mode.
  • the middle query obtains the maximum supported code rate of the current terminal, and returns an index file that is filtered according to the maximum supported code rate of the current terminal.
  • the terminal further includes:
  • An acquiring unit configured to acquire terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum support code rate, a content encoding format, a terminal decoding mode, and a device before the sending unit sends a content play request to the server.
  • the terminal code rate capability information is sent to the determining unit;
  • the determining unit is configured to receive the terminal code rate capability information from the acquiring unit, and determine a current terminal code rate capability information in the terminal code rate capability information according to a current terminal decoding mode and a current content encoding format, where The content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the maximum terminal of the current terminal code rate capability information. Supporting a code rate, and transmitting the current terminal code rate capability information to the sending unit.
  • the acquiring unit is specifically configured to obtain, obtain, or obtain a query from a terminal management server according to a terminal type. Terminal bit rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate;
  • the receiving unit is configured to receive, by the server, the index file that is obtained after the server obtains the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and is filtered according to the maximum supported code rate of the current terminal, where the receiving unit is configured to:
  • the server directly obtains the current terminal maximum support code rate and the current terminal minimum support code rate from the terminal code rate capability indication, and returns an index file that is filtered according to the current terminal maximum support code rate and the current terminal minimum support code rate.
  • the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum support code of the current terminal. rate.
  • the server for selecting the playable content rate includes: a receiving unit, configured to receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, and a terminal code rate. The capability indication, and sending the terminal code rate capability indication to the obtaining unit, and sending the URL of the index file to the filtering unit;
  • the acquiring unit is configured to receive the terminal code rate capability indication from the receiving unit, and obtain a maximum supported code rate of the current terminal according to the terminal code rate capability indication, and send the maximum supported code rate of the terminal to the filtering unit. ;
  • the filtering unit is configured to receive, by the receiving unit, a URL of the index file, receive, by the acquiring unit, a maximum supported code rate of the terminal, and select, according to the maximum supported code rate of the current terminal, a playlist information.
  • the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the sending unit.
  • the sending unit is configured to receive the filtered index file from the filtering unit, and return the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
  • the terminal code rate capability indication includes current terminal code rate capability information
  • the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
  • the terminal code rate capability indication includes Terminal type, current terminal decoding mode
  • the acquiring unit configured to obtain, according to the terminal code rate capability indication, the maximum supported code rate of the current terminal, specifically: the obtaining unit is configured to query, according to the terminal type, the terminal code rate capability information from the terminal management server, where
  • the terminal code rate capability information includes a terminal maximum support code rate, a content encoding format, and a terminal decoding mode.
  • the current terminal code rate capability information is determined in the terminal code rate capability information according to the current content encoding format and the current terminal decoding mode.
  • the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current content encoding format and the current terminal decoding mode, and the current terminal code rate capability information includes a current terminal maximum supported bit rate. Obtaining a maximum supported code rate of the current terminal.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate
  • the acquiring unit further includes: Obtaining the minimum support code rate of the current terminal directly in the terminal code rate capability indication;
  • the filtering unit is configured to generate the filtered information according to the maximum supported code rate of the current terminal, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, where the filtering unit is configured to: And the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported by the current terminal, according to the information about the current terminal maximum supported code rate and the terminal minimum supported code rate. Code rate.
  • the terminal code rate capability information further includes a terminal minimum support code rate, where the current terminal code rate capability information further includes a current terminal Minimum support code rate;
  • the obtaining unit further includes: acquiring a minimum supported code rate of the current terminal; the filtering unit, configured to generate filtered information according to the maximum supported code rate of the current terminal, where a code rate of the playlist is less than or And the filtering, the filtering unit is configured to generate the filtered index file according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, where the filtered index file includes Information of the playlist selected in the index file, the code rate of the playlist is less than or equal to the current
  • the terminal supports a maximum code rate and is greater than or equal to the current terminal minimum support code rate.
  • the terminal for selecting the playable rate content includes: a user interaction unit, configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and Sending the URL of the index file to the sending unit;
  • the sending unit is configured to receive a URL of the index file from the user interaction unit, and send a content play request to a server, where the content play request includes a URL of the index file;
  • a receiving unit configured to receive an index file returned by the server according to a URL of the index file, and send the index file to a filtering unit;
  • the filtering unit is configured to receive the index file from the receiving unit, and generate a filtered index file according to current terminal code rate capability information, where the current terminal code rate capability information includes information of a selected playlist, The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the selecting unit;
  • the selecting unit is configured to receive the filtered index file from the filtering unit, and select a playlist from the filtered index file.
  • the terminal further includes:
  • an acquiring unit configured to obtain, according to the current terminal code rate capability information, the terminal code rate capability information, where the terminal code rate capability information includes a maximum support code rate of the terminal, a content encoding format,
  • the terminal decoding mode is determined according to the current terminal decoding mode and the current content encoding format, and the current terminal code rate capability information is determined, and the content encoding format and the terminal decoding mode of the current terminal rate capability information are respectively
  • the current terminal decoding mode and the current content encoding format are the same, the current terminal maximum support code rate is the terminal maximum support code rate of the current terminal code rate capability information, and the current terminal code rate capability information is sent to the Filter unit.
  • the acquiring unit configured to obtain terminal rate capability information, specifically includes: the acquiring unit, configured to Terminal management server query acquisition, or obtain from the terminal operating system The terminal code rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate
  • the filtering unit is configured to generate, according to the current terminal code rate capability information, the filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file is included in the index file.
  • the information of the selected playlist, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtering unit is configured to generate a filtered index file according to the current terminal code rate capability information.
  • the current terminal code rate capability information includes a current terminal maximum supported code rate and a current terminal minimum supported code rate
  • the filtered index file includes information of a playlist selected in the index file, and a code rate of the playlist. Less than or equal to the current terminal maximum supported code rate and greater than or equal to the current terminal minimum supported code rate.
  • the embodiment of the present invention sends a content play request to the server after receiving the content play instruction of the user, where the request includes the terminal code rate capability indication, and the server according to the terminal code rate capability. Instructing to obtain the maximum supported code rate of the current terminal, and returning the filtered index file according to the maximum supported code rate of the current terminal, the terminal selects a playlist in the filtered index file, thereby preventing the terminal from requesting the maximum supported bit rate exceeding the current terminal.
  • the content causes an abnormal playback and improves the user's playback experience.
  • FIG. 1 is a flowchart of a method for selecting playable content rate according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for selecting playable content rate according to another embodiment of the present invention
  • FIG. 3 is still another embodiment of the present invention.
  • FIG. 4 is a signaling flowchart of selecting a playable code rate content according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of selecting a playable code according to another embodiment of the present invention
  • Signaling flow chart of rate content FIG. 6 is a signaling flowchart of selecting a playable code rate content according to another embodiment of the present invention
  • FIG. 7 is a structural diagram of a terminal for selecting a playable code rate content according to an embodiment of the present invention
  • FIG. 9 is a structural diagram of a terminal for selecting a playable rate content according to still another embodiment of the present invention
  • FIG. 10 is a structural diagram of a terminal for selecting a playable rate content based on a computer system according to an embodiment of the present invention
  • FIG. 11 is a structural diagram of a server for selecting a playable rate content based on a computer system according to an embodiment of the present invention.
  • FIG. 12 is a structural diagram of a terminal for selecting a playable rate content based on a computer system according to another embodiment of the present invention.
  • An embodiment of the present invention provides a method for selecting a playable content rate, which is applicable to a terminal, where the terminal sends a terminal code rate capability indication to a server, and the server obtains a maximum support code rate of the current terminal according to the terminal code rate capability indication.
  • the method includes:
  • Step 101 Receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file.
  • Step 102 Send a content play request to the server, where the content play request includes a URL of the index file and a terminal code rate capability indication.
  • the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate; the step further includes: acquiring terminal terminal rate capability information, The terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; according to the current terminal decoding mode, the current content encoding format Determining the current terminal code rate capability information in the terminal code rate capability information, where the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, respectively
  • the current terminal maximum support code rate is the maximum supported code rate of the terminal of the current terminal code rate capability information.
  • the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or selecting a terminal from the terminal according to the terminal type The management server queries and obtains the terminal code rate capability information.
  • the terminal code rate capability indication includes a terminal type and a current terminal decoding mode.
  • Step 103 Receive an index file that is obtained after the server obtains the maximum supported code rate of the current terminal according to the terminal code rate capability indication and is filtered according to the maximum supported code rate of the current terminal, and the index file returned by the filtering includes the The information of the playlist selected by the server in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal.
  • the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate and the current terminal minimum support code rate, and the step specifically includes: receiving The server directly obtains the current terminal maximum support code rate and the current terminal minimum support code rate from the terminal code rate capability indication, and returns an index that is filtered according to the current terminal maximum support code rate and the current terminal minimum support code rate.
  • a file, the index file returned by the filtering includes information of a playlist selected by the server in the index file, where a code rate of the playlist is less than or equal to a maximum support code rate of the terminal and greater than or equal to the The terminal supports the minimum bit rate.
  • the terminal code rate capability indication includes a terminal type and a current terminal decoding mode
  • the step specifically includes: receiving, by the server, the query from the terminal management server according to the terminal type and the current terminal decoding manner The maximum support code rate of the terminal and the index file returned after filtering according to the maximum supported code rate of the current terminal.
  • Step 104 Select a playlist from the index file returned after the filtering.
  • the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the index file returned after the filtering, and the playlist with the lowest code rate is usually selected first.
  • An embodiment of the present invention provides a method for selecting a playable content rate, and describes a process performed by a server.
  • the terminal sends a terminal code rate capability indication to the server, where the server obtains the current terminal according to the terminal code rate capability indication.
  • Support for playback in the index file after the bit rate is supported
  • Figure 2 includes:
  • Step 201 Receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, and a terminal code rate capability indication.
  • the terminal code rate capability indicator includes the current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate, and optionally, the terminal code rate capability further includes a minimum support code. rate.
  • the terminal code rate capability indication includes a terminal type and a current terminal decoding mode.
  • Step 202 Acquire a maximum supported code rate of the current terminal according to the terminal code rate capability indication.
  • the step is specifically: obtaining the maximum supported code rate of the current terminal directly from the terminal rate capability indication, and optionally, the step further includes: directly obtaining, from the terminal code rate capability indication, the current terminal minimum Support code rate.
  • the step is specifically: querying, according to the terminal type, the terminal code rate capability information from the terminal management server, where the terminal code rate capability information includes a maximum support code rate, a content encoding format, and a terminal decoding mode of the terminal;
  • the encoding format, the current terminal decoding mode, the current terminal code rate capability information is determined in the terminal code rate capability information, and the content encoding format and the terminal decoding mode of the current terminal rate capability information are respectively related to the current content.
  • the encoding format, the current terminal decoding mode is the same, the current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum supported code rate is obtained.
  • Step 203 Generate a filtered index file according to the maximum supported code rate of the current terminal, where a code rate of the playlist is less than or equal to a maximum supported code rate of the current terminal.
  • the current terminal code rate capability information includes a current terminal maximum support code rate and a current terminal minimum support code rate
  • the step specifically includes: generating, according to the current terminal maximum support code rate and the current terminal minimum support code rate, the filtered An index file, where the filtered index file includes information of a playlist selected in the index file, where a code rate of the playlist is less than or equal to a maximum support code rate of the current terminal and greater than or equal to the current terminal. Minimum supported bit rate.
  • Step 204 Return the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
  • An embodiment of the present invention provides a method for selecting playable content content, please refer to the figure.
  • the terminal after obtaining the index file sent by the server, the terminal filters the information of the playlist in the index file according to the maximum support code rate of the current terminal, and the method includes:
  • Step 301 Receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file.
  • Step 302 Send a request for obtaining an index file to the server, where the request for obtaining the index file includes a URL of the index file.
  • Step 303 Receive an index file returned by the server according to the URL of the index file.
  • Step 304 Generate a filtered index file according to the current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes the selected playback in the index file.
  • the information of the list, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal.
  • the step further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; and according to the current terminal decoding mode and the current content encoding format. Determining the current terminal code rate capability information in the terminal code rate capability information, where the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, respectively.
  • the maximum support code rate of the terminal is the maximum supported code rate of the terminal of the current terminal code rate capability information.
  • the obtaining the terminal code rate capability information includes: obtaining, by the terminal operating system, or querying, by the terminal management server, the terminal code rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate.
  • the step is further: generating a filtered index file according to the current terminal code rate capability information, where a code rate of the playlist is less than or equal to The current terminal maximum supported code rate is greater than or equal to the current terminal minimum supported code rate.
  • Step 305 Select a playlist from the filtered index file.
  • the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and the playlist with the lowest bit rate is usually selected first.
  • One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
  • the terminal reports the terminal type and the terminal rate capability information to the terminal management server, such as the User Agent Prof. (UAProf) or the Open Mobile Alliance Terminal Management Server (Open Mob i le Al). l iance Dev ice Dev ice Management, OMA DM), or save the terminal bit rate capability in the internal system of the terminal, such as the operating system.
  • the bit rate capability of the terminal is as shown in Table 1, and includes a content encoding format, a terminal decoding mode, and a maximum supported bit rate of the terminal, and optionally a terminal minimum supported bit rate.
  • the content encoding format takes any encoding format supported by the terminal, such as H.263/H.264/MPEG-4, and the terminal decoding mode includes hard solutions and soft solutions. Since the terminal supports different code rate values for different content encoding formats and terminal decoding modes, it has multiple pieces of bit rate capability information.
  • Step 401 After receiving the content play instruction of the user, the content play instruction includes a Uniform Resource Locator (URL) of the index file, and sends a content play request to the server, where the content play request includes the index File URL, current terminal bit rate capability information.
  • URL Uniform Resource Locator
  • the method further includes: acquiring terminal code rate capability information, determining current terminal code rate capability information in the terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate.
  • the method for obtaining the terminal rate capability information may be obtained by querying from the terminal management server according to the terminal type, or obtained from the terminal operating system, where the terminal code rate capability information includes the maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal.
  • the terminal code rate capability information includes the maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal.
  • different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the terminal acquires at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal.
  • Encoding format, terminal decoding mode, optional, terminal bit rate capability information usage Form to indicate.
  • the terminal management server may be a UAProf or an OMA DM server.
  • the step of determining the current terminal code rate capability information in the terminal code rate capability information is specifically: acquiring a current terminal decoding mode, a current content encoding format, and searching for a content encoding format and a terminal decoding mode in the terminal code rate capability information, respectively.
  • the current terminal code rate capability information of the current terminal decoding mode and the current content encoding format is used as current terminal code rate capability information.
  • the terminal code rate capability information further includes a minimum supported code rate of the terminal, so that the current terminal code rate capability information further includes a current terminal minimum supported code rate.
  • the method for obtaining the current terminal decoding mode is to read from the configuration of the used playing software
  • the method for obtaining the current content encoding format is to read from the configuration of the adopted playing software or obtain the query from the server before requesting the playing, Or the server has previously issued the content encoding format.
  • the user accesses the media website by using the browser or accesses the content page by using the video client
  • the user requests the user to request to play the content by clicking the play link of the content
  • the play link is the URL of the index file, for example: ht Tp: ⁇ 10: 8080/M0VIEl/ INDEX.
  • the video is played by the qiyi client on the terminal of the type HUAWEI _ 9200U, according to the terminal type HUAWEI _9200U from the UAProf server
  • the obtained bit rate capability information is shown in Table 2:
  • the decoding mode adopted by the qiyi client is obtained, that is, the current terminal decoding mode is a hard solution, and the content encoding format previously configured by the server is obtained in the configuration file of the qiyi client, that is, the current content encoding format is H.264. Therefore, the current terminal code rate capability information matching the playing software is determined in Table 2, as shown in Table 3, wherein the current terminal maximum support code rate is 3000000 bps, and the information of Table 3 is sent to the server.
  • Table 3 Current terminal rate capability information of the HUAWEI-9200U Content encoding format terminal decoding mode terminal maximum supported bit rate terminal minimum supported bit rate
  • the terminal code rate capability information further includes a minimum supported code rate of the terminal.
  • the video is played by the Quickt ime client on the terminal of type IPAD1
  • the terminal bit rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 4:
  • the current terminal decoding mode is a hard solution
  • the encoding format of the content provided by the video server that is, the current content
  • the encoding format is H.264, so that the current terminal code rate capability information matching the playing software is determined in Table 4, as shown in Table 5, wherein the current terminal maximum supported bit rate is 3000000 bps, and the current terminal minimum supported bit rate. For 300,000 bps, send the information of Table 5 to the server.
  • Step 402 The server receives the content play request, and obtains an index file according to the URL of the index file, and generates information of the playlist according to the current terminal maximum support code rate in the current terminal code rate capability information, and the code rate of the playlist Less than or equal to the current terminal maximum support Code rate.
  • the server determines that the request is a request for obtaining the filtered index file, and obtains an index file according to the URL of the index file, where the index file is included in the index file.
  • An access link containing the complete playlist, the corresponding bitrate, and the content encoding format.
  • the current content encoding format of the current content in the index file is H.264
  • the information of the complete playlist included is as follows.
  • the code rates of the six playlists are respectively It is 200Kbps, 500Kbps, 1Mbps, 2Mbps, 3Mbps, 4Mbps, and access links containing various playlists:
  • Http / / example, com/ 02. m3u8
  • the server filters the index file according to the maximum supported code rate of the current terminal code rate capability information, that is, the current terminal maximum support code rate is 3000000 bps, and the selected code rate is less than or equal to The playlist of 3000000bps, the information of the playlist contained in the filtered index file is as follows:
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is playing abnormally.
  • the server according to the current terminal code rate capability information, the terminal maximum support code rate and the terminal minimum support code rate, that is, the current terminal maximum support code rate and the current terminal minimum support code rate, respectively.
  • the index file is filtered, and a playlist with a code rate less than or equal to 3000000bps and greater than or equal to 300,000bps is selected.
  • the filtered index file contains the following playlist information:
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
  • Step 403 The server returns the filtered index file to the terminal.
  • Step 404 The terminal selects a playlist from the filtered index file.
  • the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and usually the playlist with the lowest bit rate is selected first, that is, according to the index file.
  • the access link of the provided playlist obtains the playlist, and further obtains the slice according to the access link of the slice included in the playlist, thereby playing the slice.
  • the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 200 Kbps; for example, in the present
  • the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps.
  • One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
  • Step 501 After receiving the content play instruction of the user, the content play instruction includes a Uniform Resource Locator (URL) of the index file, acquires the terminal type and the current terminal decoding mode, and sends a content play request to the server.
  • the content play request includes a URL of the index file, the current terminal decoding mode, and the terminal type.
  • the user accesses the media website by using the browser or accesses the content page by using the video client, the user requests to play the content by clicking the play link of the content, and the play link is the URL of the index file, for example: ht Tp: ⁇ 10: 8080/MOVIE1 / INDEX. M3U8.
  • the method for obtaining the current terminal decoding mode is to read from the configuration of the used playing software, and the method for obtaining the terminal type may be read from the terminal operating system.
  • the video is played by the qiyi client on the terminal of the type HUAWEI _ 9200U, and the terminal type read from the terminal operating system is HUAWEI -9200U, configured from the qiyi client.
  • the decoding method adopted by the file is read, that is, the current terminal decoding mode is a hard solution.
  • the video is played by the Quit ti time client on the terminal of type IPAD1, and the terminal type read from the terminal operating system is I PAD 1 , from Qui ckt
  • the decoding mode adopted by the ime configuration file is read, that is, the current terminal decoding mode is a hard solution.
  • Step 502 The server receives the content play request, obtains the terminal code rate capability information according to the terminal type according to the URL of the index file, and determines current terminal code rate capability information in the terminal code rate capability information, where
  • the terminal code rate capability information includes a content encoding format, a terminal decoding mode, and a terminal maximum supported code rate, and the terminal decoding mode and the content encoding format of the current terminal code rate capability information are respectively related to the current terminal decoding mode and the current content encoding.
  • the format is the same, the maximum supported code rate of the terminal that obtains the current terminal code rate capability information, that is, the maximum supported code rate of the current terminal; and the code rate of the playlist generated by the filtered index file according to the current maximum supported code rate of the current terminal is smaller than Or equal to the current terminal maximum supported bit rate.
  • the server determines, according to the type of the terminal included in the request, that the request is a file that obtains the filtered index file, and obtains an index file according to the URL of the index file, where the index file includes the complete file.
  • the access link of the playlist, the corresponding bit rate, and the content encoding format is a file that obtains the filtered index file, and obtains an index file according to the URL of the index file, where the index file includes the complete file.
  • the current content encoding format of the index file in the index file is H.264
  • the information of the complete playlist included is as follows, and the code rates of the six playlists are respectively It is 200Kbps, 500Kbps, 1Mbps, 2Mbps, 3Mbps, 4Mbps, and access links containing various playlists:
  • Ht tp / / exampl e, com/ 03.
  • Http / / example, com/05. m3u8
  • the server obtains the terminal code rate capability information according to the terminal type, and may obtain the terminal code rate capability information from the terminal management server according to the terminal type.
  • different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the server obtains at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal.
  • the encoding format, the terminal decoding mode, and optionally, the terminal bit rate capability information are represented by a table.
  • the bit rate capability information of each terminal may also include the minimum supported bit rate of the terminal.
  • the terminal management server may be a UAProf or an OMA DM server.
  • the terminal code rate capability obtained from the UAProf server according to the terminal type HUAWEI_9200U is as shown in Table 6:
  • the current content encoding format of the index file that is, the current content encoding format is H.264 and the current terminal decoding mode is a hard solution
  • the current terminal code rate matching the playing software is determined in the terminal bit rate capability information shown in Table 6.
  • the index file is filtered, and the playlist with the code rate less than or equal to 3000000 bps is selected, and the filtered index file includes the playlist information as follows:
  • Http 11 example, com/ 01. m3u8
  • Http 11 example, com/ 02. m3u8
  • Http 11 example, com/ 04.
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is playing abnormally.
  • the terminal code rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 8, and the terminal code rate capability information further includes the terminal minimum support code rate:
  • the current content encoding format in the index file that is, the current content encoding format is H.263 and
  • the current terminal decoding mode is a hard solution.
  • the current terminal code rate capability information shown in Table 8 the current terminal code rate capability information matching the playing software is determined, as shown in Table 9, where the current terminal maximum supported bit rate is 3000000bps, the current terminal minimum support code rate is 300000bps:
  • the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps and greater than or equal to 300,000 bps is selected, and filtered.
  • the following index file contains the following playlists:
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
  • Step 503 The server returns the filtered index file to the terminal.
  • Step 504 The terminal selects a playlist from the filtered index file for playing. Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and the minimum code is usually selected first.
  • the playlist of the rate that is, the playlist is obtained according to the access link of the playlist provided in the index file, and the slice is further obtained according to the access link of the slice included in the playlist, thereby playing the slice.
  • the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 200 Kbps; for example, in the present
  • the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps.
  • One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
  • Step 601 After the terminal receives the content play instruction of the user, the content play instruction includes a Uniform Resource Loca tor (URL) of the index file, and sends a content play request to the server, where the content play request includes The URL of the index file.
  • the content play instruction includes a Uniform Resource Loca tor (URL) of the index file
  • the user accesses the media website by using the browser or accesses the content page by using the video client, the user requests to play the content by clicking the play link of the content, and the play link is the URL of the index file, for example: ht Tp: ⁇ 10: 8080/MOVIE1 / INDEX. M3U8.
  • Step 602 The server receives the request for acquiring an index file, and returns the index file to the terminal according to the URL of the index file, where the index file includes a complete playlist access link, a corresponding code rate, and a content code. format.
  • the information of the complete playlist included in the index file returned by the server is as follows. There are a total of six playlists, and the code rates are 200 Kbps, 500 Kbps, 1 Mbps, 2 Mbps, and 3 Mbps. , 4Mbps, and the acquisition address of each playlist, the index file also contains the content encoding format, that is, the current content encoding format is H.264:
  • Step 603 After receiving the index file returned by the server, the terminal generates a filtered index file according to the current terminal code rate capability information, where the current terminal code rate capability information includes information of the current terminal list, where the code rate of the playlist is less than Or equal to the current terminal maximum supported bit rate.
  • the method before the generating the filtered index file according to the current terminal code rate capability information, the method further includes: acquiring terminal code rate capability information, and determining a current terminal code in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format.
  • Rate capability information the terminal code rate capability information includes a content encoding format, a terminal decoding mode, and a maximum supported code rate of the terminal, where the content encoding format and the terminal decoding mode of the current terminal bit rate capability information are respectively related to the current content encoding format
  • the maximum terminal support code rate of the current terminal code rate capability information is the current terminal maximum support code rate.
  • the terminal code rate capability information further includes a minimum supported code rate of the terminal, and the minimum supported code rate of the terminal of the current terminal code rate capability information is a minimum supported code rate of the current terminal.
  • the method for obtaining the bit rate capability of the terminal may be that the terminal obtains the query from the terminal management server according to the terminal type, or obtains the method from the terminal operating system, and the method for obtaining the current terminal decoding mode is read from the configuration of the adopted playing software.
  • different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the terminal acquires at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal.
  • the terminal management server may be a UAProf or an OMA DM server.
  • the method for obtaining the current content encoding format may be reading from the cable 1 file.
  • the video is played by the qiyi client on the terminal of the type HUAWEI_9200U, and the current terminal decoding mode obtained by the terminal is a hard solution, and the content encoding format in the index file is H.264.
  • Table 10 shows the terminal bit rate capability information obtained from the UAProf server according to the terminal type HUAWEI-9200U:
  • the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps is selected, and the information of the playlist included in the filtered index file is as follows:
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is playing abnormally.
  • the video is played by the Quick t ime client on the terminal of the type of IPAD1, and the current terminal decoding mode obtained by the terminal is a hard solution, and the content encoding format in the index file is H. 264.
  • the terminal code rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 12.
  • the terminal code rate capability information further includes a minimum supported code rate of the terminal:
  • the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps and greater than or equal to 300,000 bps is selected, and filtered.
  • Post index package The information of the included playlist is as follows:
  • the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request.
  • the content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
  • Step 604 The terminal selects a playlist from the filtered index file.
  • the playlists included in the filtered index file are playlists of terminal playable bit rates.
  • the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and usually the playlist with the lowest bit rate is selected first, that is, according to the index file.
  • the access link of the provided playlist obtains the playlist, and further obtains the slice according to the access link of the slice included in the playlist, thereby playing the slice.
  • the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbp s, and first select a playlist of 200 Kbp s; for example,
  • the terminal after determining that the current available bandwidth is 2 Mbps, the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps.
  • the embodiment of the present invention provides a terminal for selecting content that can play the code rate. As shown in FIG. 7, the terminal 700 includes:
  • the user interaction unit 701 is configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and send the URL of the index file to the sending unit 702;
  • the sending unit 702 is configured to receive a URL of the index file from the user interaction unit 701, and send a content play request to the server, where the content play request includes a URL of the index file, and a terminal code rate capability indication;
  • the receiving unit 703 is configured to receive, by the server, the index file that is obtained by the server according to the terminal code rate capability indication and the maximum supported code rate of the current terminal, and is filtered according to the maximum supported code rate of the current terminal, and includes the server in the The information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
  • the selecting unit 704 is configured to receive, from the receiving unit 703, the index file returned after the filtering, and select a playlist from the index file returned after the filtering.
  • the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate, and the terminal 700 further includes:
  • the obtaining unit 705 is configured to obtain, after the sending unit 702 sends a content play request to the server, the terminal code rate capability information, where the terminal code rate capability information includes a maximum support code rate of the terminal, a content encoding format, a terminal decoding manner, and Transmitting the terminal code rate capability to the determining unit 706;
  • the determining unit 706 is configured to receive the terminal code rate capability information from the acquiring unit 705, and determine current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal The content encoding format and the terminal decoding mode of the terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum support code of the current terminal code rate capability information. Rate, the current terminal code rate capability information is sent to the sending unit 702.
  • the obtaining unit 705 is specifically configured to be obtained from the terminal operating system, or according to the terminal The end type queries the terminal management server to obtain the terminal code rate capability information.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate
  • the receiving unit 703 is specifically configured to receive, by the server, the maximum support code rate of the current terminal directly from the terminal code rate capability indication.
  • the current terminal minimum supported code rate, the index file returned after filtering according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, and the filtered returned index file includes the server selected in the index file.
  • the information of the playlist, the code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate.
  • the terminal code rate capability indicator includes a terminal type and a current terminal decoding mode
  • the receiving unit 703 is specifically configured to receive, by the server, the current terminal according to the terminal type and the current terminal decoding manner.
  • the maximum supported code rate and the index file returned after filtering according to the current maximum supported bit rate of the terminal.
  • the embodiment of the present invention provides a server for selecting content that can play the code rate.
  • the server 800 includes:
  • the receiving unit 801 is configured to receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, a terminal code rate capability indication, and send the terminal code rate capability indication to the acquiring unit 802, where The URL of the index file is sent to the filtering unit 803;
  • the obtaining unit 802 is configured to receive the terminal code rate capability indication from the receiving unit 801, and obtain the current terminal maximum support code rate according to the terminal code rate capability indication, and send the terminal maximum support code rate to the filtering unit 803;
  • the filtering unit 803 is configured to receive the URL of the index file from the receiving unit 801, receive the maximum supported code rate of the terminal from the obtaining unit 802, and select the information of the playlist according to the maximum supported code rate of the current terminal, The coded rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the sending unit 804;
  • the sending unit 804 is configured to receive the filtered index file from the filtering unit 803, and Returning the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
  • the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate and the current terminal minimum support code rate, and the obtaining unit 802 is further used to The terminal code rate capability indication directly acquires the current terminal minimum support code rate; the filtering unit 803 is specifically configured to generate a filtered index file according to the current terminal maximum support code rate and the terminal minimum support code rate, where The filtered index file includes information of a playlist selected in the index file, and the code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate.
  • the terminal code rate capability indication includes a terminal type and a current terminal decoding mode
  • the obtaining unit 802 is specifically configured to query, according to the terminal type, the terminal code rate capability information from the terminal management server, where the terminal code rate capability information includes the terminal maximum Supporting a code rate, a content encoding format, and a terminal decoding mode; determining a current terminal code rate capability information in the terminal code rate capability information according to the current content encoding format and the current terminal decoding mode, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are the same as the current content encoding format and the current terminal decoding mode, and the current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum support code is obtained. rate;
  • the terminal code rate capability information further includes a minimum support code rate of the terminal, where the current terminal code rate capability information further includes a minimum support code rate of the current terminal, and the obtaining unit 802 is further configured to obtain a minimum support code rate of the current terminal;
  • the unit 803 is specifically configured to generate, according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, the filtered index file, where the filtered index file includes information of a playlist selected in the index file, The code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate.
  • the embodiment of the present invention provides a terminal for selecting content that can play the code rate.
  • the terminal 900 includes:
  • the user interaction unit 901 is configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and send the URL of the index file to the sending unit 902;
  • the sending unit 902 is configured to receive a URL of the index file from the user interaction unit 901, and send a content play request to the server, where the content play request includes a URL of the index file;
  • the receiving unit 903 is configured to receive an index file that is returned by the server according to the URL of the index file, and send the index file to the filtering unit 904;
  • the filtering unit 904 is configured to receive the index file from the receiving unit, and generate a filtered index file according to current terminal code rate capability information, where the current terminal code rate capability information includes information of a playlist, the playing The code rate of the list is less than or equal to the current terminal maximum support code rate, the filtered index file is sent to the selection unit 905;
  • the selecting unit 905 is configured to receive the filtered index file from the filtering unit 904, and select a playlist from the filtered index file.
  • the terminal 900 further includes an obtaining unit 906, configured to obtain, after the filtering unit generates the filtered index file according to the current terminal code rate capability information, the terminal code rate capability information, where the terminal code rate capability information includes The maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal; determining the current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum support code rate of the current terminal code rate capability information, and the The current terminal bit rate capability information is sent to the filtering unit 904.
  • the obtaining unit 906 is configured to: obtain the terminal code rate capability information, and obtain the terminal code rate capability information from the terminal management server according to the terminal type.
  • the current terminal code rate capability information further includes a current terminal minimum support code rate;
  • the filtering unit 904 is specifically configured to generate, according to the current terminal code rate capability information, the filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate and a current terminal maximum table information, and the playlist code The rate is less than or equal to the current terminal maximum supported code rate and greater than or equal to the current terminal minimum supported code rate.
  • the terminal in the embodiment of the present invention can be implemented based on a computer system, and the methods shown in FIG. 1, FIG. 4, and FIG. 5 can all be implemented in a terminal based on a computer system.
  • Figure 10 illustrates an embodiment of a terminal implemented in accordance with a computer system.
  • the terminal in this embodiment may include: a processor 1001, a memory 1002, and a communication interface 1003, where:
  • the communication interface 1003 is configured to communicate with a server.
  • the message exchanged between the terminal and the server and the user (as shown in Figures 1, 4 and 5 of the method embodiment) is transmitted and received through the communication interface 1003.
  • the communication interface 1003 is configured to receive a content play instruction of the user, and send a content play request to the server;
  • the memory 1002 is configured to store the program instruction;
  • the processor 1001 is configured to call the memory 1002 to be stored after sending the content play request to the server.
  • the program instruction is: performing the following operations: receiving, by the server, obtaining an index file that is returned by the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and filtering, according to the maximum supported code rate of the current terminal, and returning after filtering
  • the index file includes the information of the playlist selected by the server in the index file, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and is selected from the index file returned after the filtering. playlist.
  • the processor 1001 may be a central processing unit (centr l proces s ing uni t, CPU), an application specific integrated circuit (ASIC), or the like.
  • the terminal in this embodiment may include a bus 1004.
  • the processor 1001, the memory 1002, and the communication interface 1003 can be connected and communicated via the bus 1004.
  • the memory 1002 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
  • the processor 1001 can also be used to perform the steps described in FIG. 1 , FIG. 4 and FIG. 5 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
  • the server in the embodiment of the present invention can be implemented based on a computer system, FIG. 2, FIG. 4, and FIG.
  • the method shown in 5 can be implemented in a server based on a computer system.
  • Figure 11 illustrates an embodiment of a server implemented in accordance with a computer system.
  • the server in this embodiment may include: a processor 1101, a memory 1102, and a communication interface 1103, where:
  • the communication interface 1103 is configured to communicate with the terminal. Messages between the terminal and the server (as shown in Figures 2, 4, and 5 of the method embodiment) are transmitted and received through the communication interface 1103. Specifically, the communication interface 1103 is configured to receive a content play request sent by the terminal; the memory 1102 is configured to store the program instruction; the processor 1101 is configured to: after receiving the content play request of the terminal, invoke the program instruction stored in the memory 1102, and perform the following operations: Obtaining a maximum supported code rate of the current terminal according to the terminal code rate capability indication; generating filtered information according to the current terminal maximum supported code rate, where the code rate of the playlist is less than or equal to the current terminal maximum support code And returning the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
  • the processor 1101 may be a central processing unit (centr l proces s ing uni t, CPU), an application specific integrated circuit (appl icat ion- spec if i c integrated c i rcui t, ASIC).
  • the server in this embodiment may include a bus 1104.
  • the processor 1101, the memory 1102, and the communication interface 1103 can be connected and communicated via the bus 1104.
  • the memory 1102 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
  • the processor 1101 can also be used to perform the steps described in FIG. 2, FIG. 4, and FIG. 5 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
  • the terminal in the embodiment of the present invention can be implemented based on a computer system, and the methods shown in FIG. 3 and FIG. 6 can be implemented in a terminal based on a computer system.
  • Figure 12 illustrates an embodiment of a terminal implemented in accordance with a computer system.
  • the terminal in this embodiment may include: a processor 1201, a memory 1202, and a communication interface 1203, where:
  • the communication interface 1203 is configured to communicate with a service server.
  • the messages exchanged between the terminal and the server and the user are both transmitted and received through the communication interface 1203.
  • the communication interface 1203 is configured to receive a content play instruction of the user and send a content play request to the server;
  • the memory 1202 is configured to store the program instruction;
  • the processor 1201 is configured to After the server sends the content play request, the program instruction stored in the memory 1202 is invoked, and the following operations are performed: receiving an index file returned by the server according to the URL of the index file; generating a filtered index file according to the current terminal code rate capability information,
  • the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes information of a playlist selected in the index file, where a code rate of the playlist is less than or equal to the current
  • the terminal supports the maximum bit rate; and selects a playlist from the filtered index file.
  • the processor 1201 may be a central processing unit (central l proces s ing uni t, CPU), an application specific integrated circuit (ASIC), or the like.
  • the terminal in this embodiment may include a bus 1204.
  • the processor 1201, the memory 1202, and the communication interface 1203 can be connected and communicated via the bus 1204.
  • the memory 1202 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
  • the processor 1201 can also be used to perform the steps described in FIG. 3 and FIG. 6 in the method embodiment, and the embodiments of the present invention are not described in detail herein.

Abstract

An embodiment of the present invention provides a method and apparatus for selecting playable code rate content, the method comprising: receiving from a user a content play instruction comprising the uniform resource locator (URL) of an index file; sending to a server a content play request comprising the URL of the index file and a terminal code rate capacity indicator; receiving the index file, which is returned after being filtered according to a current maximal terminal support code rate obtained by the server according to the terminal code rate capacity indicator; and selecting a play list from the index file returned after being filtered. By adopting the method and apparatus of the present invention, the play abnormality, which results from a request for the content exceeding the maximal terminal support code rate when the content is played by the terminal, can be avoided, and user experience is improved.

Description

选择可播放码率内容的方法和装置 技术领域  Method and apparatus for selecting playable content content
本发明涉及通信网络技术领域, 尤其涉及一种选择可播放码率内容的 方法和装置。  The present invention relates to the field of communication network technologies, and in particular, to a method and apparatus for selecting playable content.
背景技术 Background technique
基于超文本传输协议的自适应流媒体 ( Hyper text Transfer Protoco l ( HTTP ) Adapt ive Streaming , HAS )技术采用 HTTP 的方式向用户传送媒 体内容, 该技术因为可以降低头端服务器的技术复杂度, 而且提升了媒体 内容在网络设备中的穿透能力, 目前已成为流媒体视频行业发展的趋势。  Hypertext Transfer Protocol (HTTP) Adaptive Streaming (HAS) technology uses HTTP to deliver media content to users. This technology can reduce the technical complexity of the headend server. It has improved the penetration of media content in network devices and has become a trend in the development of streaming video industry.
HAS技术的一个关键是将内容(即同一个频道或者电影)顺序的切割成 分片, 每个分片的码率、 分辨率、 编码相同, 每个分片的时间长度相同, 一般为 2到 10秒左右, 这样的一组分片的描述信息和访问链接构成一个播 放列表。 服务器针对同一份内容可以提供不同码率的多个视频文件, 因此 存在多个播放列表, 每个播放列表提供不同码率的分片。 这些播放列表及 分片部署在服务器上, 终端使用 HTTP协议从服务器顺序请求某个播放列表 的分片进行播放。 因为不同播放列表的码率不同, 终端可以根据变化的网 络情况动态选择不同码率的分片, 从而实现码率的自适应。 为了终端选择 合适的播放列表, 服务器还提供一个索引文件, 记录了所有可选播放列表 的码率信息、 访问链接以及编码格式, 且索引文件中对于每种码率播放列 表的描述按照码率从小到大排列。  One key to HAS technology is to cut the content of the content (that is, the same channel or movie) in sequence. Each patch has the same bit rate, resolution, and code. Each slice has the same length of time, usually 2 to 10. About seconds, the description information and access links of such a group of tablets constitute a playlist. The server can provide multiple video files of different code rates for the same content, so there are multiple playlists, each of which provides segments of different code rates. These playlists and shards are deployed on the server, and the terminal sequentially requests the shards of a playlist from the server to play using the HTTP protocol. Because the code rates of different playlists are different, the terminal can dynamically select the slices of different code rates according to the changed network conditions, thereby realizing the adaptation of the code rate. In order to select a suitable playlist for the terminal, the server also provides an index file, which records the code rate information, the access link and the encoding format of all the optional playlists, and the description of the playlist for each code rate in the index file is small according to the code rate. Arrange to the big.
现有技术中, 终端请求播放内容时, 首先获取到索引文件, 根据索引 文件中的播放列表的信息以及终端可用带宽信息, 先请求索引文件中最低 码率的播放列表, 成功播放一个分片后, 尝试请求可用带宽范围内更高码 率的播放列表, 直至稳定至某一个合适的码率。 终端在可用带宽范围内逐 步尝试更高码率内容的过程中, 往往可能出现请求播放内容的码率超出终 端最大支持码率的情况, 导致播放会卡顿、 黑屏或花屏一段时间, 然后自 动降低码率请求低码率的分片再播放, 从而用户播放体验不好。  In the prior art, when the terminal requests to play the content, the first obtains the index file, and according to the information of the playlist in the index file and the available bandwidth information of the terminal, first requests the playlist of the lowest bit rate in the index file, and successfully plays a slice. , Try to request a higher bit rate playlist within the available bandwidth range until it stabilizes to a suitable bit rate. In the process of gradually trying to try higher bit rate content in the available bandwidth range, the terminal may often exceed the maximum supported bit rate of the terminal, causing the playback to be stuck, black screen or flower screen for a period of time, and then automatically reduced. The code rate requests the low bit rate of the slice to be played again, so that the user's playback experience is not good.
因此, 现有技术中终端在播放内容时, 存在可能请求了超出终端最大 支持码率的内容而播放异常的问题, 因此降低了用户播放体验。 发明内容 Therefore, in the prior art, when the terminal plays the content, there is a problem that the content exceeding the maximum supported bit rate of the terminal is requested to be played abnormally, thereby reducing the user playing experience. Summary of the invention
本发明实施例提供了一种选择可播放码率内容的方法和装置, 用于避 免终端在播放内容时, 请求了超出终端最大支持码率的内容导致播放异常。  The embodiment of the invention provides a method and a device for selecting a playable content rate, which is used to prevent the terminal from requesting the content exceeding the maximum support code rate of the terminal to cause the play abnormality when playing the content.
第一方面, 本发明实施例提供的选择可播放码率内容的方法包括: 接 收用户的内容播放指令, 所述内容播放指令中包含索引文件的统一资源定 位 URL; 向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件 的 URL、终端码率能力指示;接收所述服务器根据所述终端码率能力指示获 取到当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回 的索引文件, 所述过滤后返回的索引文件包含所述服务器在所述索引文件 中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端 最大支持码率; 从所述过滤后返回的索引文件中选择播放列表。  In a first aspect, a method for selecting a playable content rate according to an embodiment of the present invention includes: receiving a content play instruction of a user, where the content play instruction includes a uniform resource location URL of an index file; and sending a content play request to the server, where The content play request includes the URL of the index file and the terminal code rate capability indication; the receiving server obtains the maximum support code rate of the current terminal according to the terminal code rate capability indication, and filters according to the current terminal maximum support code rate. The returned index file, the index file returned by the filtering includes information of a playlist selected by the server in the index file, and the code rate of the playlist is less than or equal to a maximum support code rate of the current terminal; The playlist is selected in the index file returned after the filtering.
在第一方面的第一种可能的实现方式中, 所述终端码率能力指示包含 当前终端码率能力信息, 所述当前终端码率能力信息包含所述当前终端最 大支持码率。  In a first possible implementation manner of the first aspect, the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
在第一方面的第二种可能的实现方式中, 所述终端码率能力指示包括 终端类型、 当前终端解码方式; 所述接收所述服务器根据所述终端码率能 力指示获取到当前终端最大支持码率、 根据所述当前终端最大支持码率过 滤后返回的索引文件包括: 接收所述服务器根据所述终端类型、 所述当前 终端解码方式从终端管理服务器中查询获取到当前终端最大支持码率、 根 据所述当前终端最大支持码率过滤后返回的索引文件。  In a second possible implementation manner of the first aspect, the terminal code rate capability indication includes a terminal type, a current terminal decoding mode, and the receiving the server obtains a maximum support of the current terminal according to the terminal code rate capability indication. The code rate and the index file returned after being filtered according to the current maximum supported bit rate of the terminal include: receiving, by the server, the maximum supported code rate of the current terminal obtained by querying from the terminal management server according to the terminal type and the current terminal decoding mode. And index file returned after filtering according to the current maximum supported bit rate of the terminal.
结合第一方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述向服务器发送内容播放请求之前还包括: 获取终端码率能力信息, 所 述终端码率能力信息包含终端最大支持码率、 内容编码格式、 终端解码方 式; 根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息 中确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格 式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持 码率。  With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner, before the sending the content play request to the server, the method further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes The maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal; determining the current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are respectively the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum supported code rate of the current terminal rate rate capability information.
结合第一方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述获取终端码率能力信息包括: 从终端操作系统中获取、 或者根据终端 类型从终端管理服务器中查询获取所述终端码率能力信息。 With reference to the third possible implementation manner of the foregoing aspect, in the fourth possible implementation manner, the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or according to the terminal The type queries the terminal management server to obtain the terminal code rate capability information.
结合第一方面的第一种、 第三种或第四种可能的实现方式, 在第五种 可能的实现方式中, 所述当前终端码率能力信息还包含当前终端最小支持 码率; 所述接收所述服务器根据所述终端码率能力指示获取到当前终端最 大支持码率、 根据所述当前终端最大支持码率过滤后返回的索引文件, 所 述过滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放列 表的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率具 体包括: 接收所述服务器从所述终端码率能力指示中直接获取到当前终端 最大支持码率和当前终端最小支持码率、 根据所述当前终端最大支持码率 和当前终端最小支持码率过滤后返回的索引文件, 所述过滤后返回的索引 文件包含所述服务器在所述索引文件中选择的播放列表的信息, 所述播放 列表的码率小于或等于所述终端最大支持码率且大于或等于所述终端最小 支持码率。 第二方面, 本发明实施例提供的选择可播放码率内容的方法包括: 接 收终端发送的内容播放请求, 所述内容播放请求包含索引文件的统一资源 定位 URL、终端码率能力指示; 根据所述终端码率能力指示获取当前终端最 大支持码率; 根据所述当前终端最大支持码率生成过滤后的索引文件, 所 播放列表的码率小于或等于所述当前终端最大支持码率; 向所述终端返回 所述过滤后的索引文件, 以便终端在所述过滤后的索引文件中选择播放列 表。  With reference to the first, third or fourth possible implementation manner of the first aspect, in a fifth possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate; Receiving, by the server, the index file returned by the current terminal according to the terminal code rate capability indication and filtering according to the maximum supported code rate of the current terminal, and the index file returned after the filtering includes the server The information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, specifically: receiving the server directly from the terminal rate capability indication to the current The maximum support code rate of the terminal and the minimum support code rate of the current terminal, the index file returned after filtering according to the current terminal maximum support code rate and the current terminal minimum support code rate, and the index file returned after the filtering includes the server in the The information of the playlist selected in the index file, where the code rate of the playlist is less than or The maximum bit rate supported on the terminal and the terminal equal to or greater than the minimum supported rate. In a second aspect, the method for selecting a playable content rate according to an embodiment of the present invention includes: receiving a content play request sent by a terminal, where the content play request includes a uniform resource location URL of an index file, and a terminal code rate capability indication; The terminal code rate capability indicates that the current terminal maximum support code rate is obtained; the filtered index file is generated according to the current terminal maximum support code rate, and the code rate of the play list is less than or equal to the current terminal maximum support code rate; The terminal returns the filtered index file, so that the terminal selects a playlist in the filtered index file.
在第二方面的第一种可能的实现方式中, 所述终端码率能力指示包含 当前终端码率能力信息, 所述当前终端码率能力信息包括所述当前终端最 大支持码率。  In a first possible implementation manner of the second aspect, the terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
在第二方面的第二种可能的实现方式中, 所述终端码率能力指示包括 终端类型、 当前终端解码方式; 所述根据所述终端码率能力指示获取当前 终端最大支持码率包括: 根据所述终端类型从终端管理服务器中查询获取 终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内容 编码格式、 终端解码方式; 根据当前内容编码格式、 所述当前终端解码方 式在所述终端码率能力信息中确定当前终端码率能力信息, 所述当前终端 码率能力信息的内容编码格式、 终端解码方式分别与所述当前内容编码格 式、 所述当前终端解码方式相同, 所述当前终端码率能力信息包含当前终 端最大支持码率, 获取所述当前终端最大支持码率。 In a second possible implementation manner of the second aspect, the terminal code rate capability indication includes a terminal type, a current terminal decoding mode, and the obtaining, according to the terminal code rate capability indication, a current terminal maximum supported code rate, including: The terminal type is queried from the terminal management server to obtain the terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; and the current terminal decoding format according to the current content encoding format. Square Determining the current terminal code rate capability information in the terminal code rate capability information, where the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current content encoding format and the current terminal decoding mode, respectively The current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum supported code rate is obtained.
结合第二方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述当前终端码率能力信息还包含当前终端最小支持码率; 所述根据所述 终端码率能力指示获取当前终端最大支持码率还包括从所述终端码率能力 指示中直接获取所述当前终端最小支持码率; 所述根据所述当前终端最大 支持码率生成过滤后的索引文件, 所述过滤后的索引文件包含在所述索引 文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前 终端最大支持码率包括: 根据所述当前终端最大支持码率和当前终端最小 支持码率生成过滤后的索引文件, 所述过滤后的索引文件包含在所述索引 文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前 终端最大支持码率且大于或等于所述当前终端最小支持码率。  With reference to the first possible implementation manner of the second aspect, in a third possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate, and the terminal code rate capability indication according to the terminal Obtaining the current maximum supported code rate of the terminal, the method further includes: obtaining the minimum supported code rate of the current terminal directly from the terminal code rate capability indication; generating the filtered index file according to the maximum supported code rate of the current terminal, where the filtering The index file includes the information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: according to the current terminal maximum support code rate and the current terminal The minimum supported code rate generates a filtered index file, where the filtered index file includes information of a playlist selected in the index file, and the code rate of the playlist is less than or equal to a maximum support code rate of the current terminal. And greater than or equal to the current terminal minimum support code rate.
结合第二方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述终端码率能力信息还包含终端最小支持码率, 所述当前终端码率能力 信息还包含当前终端最小支持码率; 所述根据所述终端码率能力指示获取 当前终端最大支持码率还包括: 获取所述当前终端最小支持码率; 所述根 据所述当前终端最大支持码率生成过滤后的索引文件, 所述过滤后的索引 文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表的码率 小于或等于所述当前终端最大支持码率包括: 根据所述当前终端最大支持 码率和当前终端最小支持码率生成过滤后的索引文件, 所述过滤后的索引 文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表的码率 小于或等于所述当前终端最大支持码率且大于或等于所述当前终端最小支 持码率。 第三方面, 本发明实施例提供的选择可播放码率内容的方法包括: 接 收用户的内容播放指令, 所述内容播放指令中包含索引文件的统一资源定 位 URL; 向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件 的 URL; 接收所述服务器根据所述索引文件的 URL返回的索引文件; 根据当 前终端码率能力信息生成过滤后的索引文件, 所述当前终端码率能力信息 包含当前终端最大支持码率, 所述过滤后的索引文件包含在所述索引文件 中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端 最大支持码率; 从所述过滤后的索引文件中选择播放列表。 With reference to the second possible implementation manner of the second aspect, in a fourth possible implementation, the terminal code rate capability information further includes a terminal minimum support code rate, where the current terminal code rate capability information further includes a current terminal The minimum supported code rate; the obtaining, according to the terminal code rate capability indication, the maximum supported code rate of the current terminal, further comprising: acquiring the minimum supported code rate of the current terminal; and generating, by using the maximum supported code rate of the current terminal, the filtered An index file, where the filtered index file includes the information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: according to the current terminal maximum Generating a filtered index file by supporting a code rate and a current minimum supported code rate, where the filtered index file includes information of a playlist selected in the index file, and a code rate of the playlist is less than or equal to the The current terminal supports a maximum code rate and is greater than or equal to the current terminal minimum support code rate. In a third aspect, the method for selecting a playable content rate according to an embodiment of the present invention includes: receiving a content play instruction of a user, where the content play instruction includes a uniform resource location URL of an index file; and sending a content play request to the server, where The content play request includes a URL of the index file; receiving an index file returned by the server according to the URL of the index file; The pre-terminal bit rate capability information generates a filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes information of a playlist selected in the index file, The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal; and the playlist is selected from the filtered index file.
在第三方面的第一种可能的实现方式中, 所述根据当前终端码率能力 信息生成过滤后的索引文件之前还包括: 获取终端码率能力信息, 所述终 端码率能力信息包含终端最大支持码率、 内容编码格式、 终端解码方式; 根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息中确 定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所 述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持码 率。  In a first possible implementation manner of the third aspect, before the generating the filtered index file according to the current terminal code rate capability information, the method further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes the terminal maximum Supporting a code rate, a content encoding format, and a terminal decoding mode; determining a current terminal code rate capability information in the terminal code rate capability information according to a current terminal decoding mode and a current content encoding format, and content coding of the current terminal code rate capability information The format and the terminal decoding mode are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum supported code rate is the terminal maximum supported code rate of the current terminal rate rate capability information.
结合第三方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述获取终端码率能力信息包括: 从终端操作系统中获取、 或者根据终端 类型从终端管理服务器中查询获取所述终端码率能力信息。  With reference to the first possible implementation manner of the third aspect, in the second possible implementation manner, the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or querying from the terminal management server according to the terminal type Obtaining the terminal code rate capability information.
结合第三方面或第三方面的第一种或第二种可能的实现方式, 在第三 种可能的实现方式中, 所述当前终端码率能力信息还包括当前终端最小支 持码率; 所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所述播放列表的码率小于或等于所述当前终端最大支持码率且大于或等于 所述当前终端最小支持码率。 第四方面, 本发明实施例提供的选择可播放码率内容的终端包括: 用户交互单元, 用于接收用户的内容播放指令, 所述内容播放指令中 包含索引文件的统一资源定位 URL ,以及将所述索引文件的 URL发送给发送 单元;  With reference to the third aspect or the first or the second possible implementation manner of the third aspect, in a third possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate; The code rate of the playlist is less than or equal to the current terminal maximum supported code rate. The code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate. In a fourth aspect, the terminal for selecting playable content content provided by the embodiment of the present invention includes: a user interaction unit, configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and Sending the URL of the index file to the sending unit;
所述发送单元, 用于从所述用户交互单元接收所述索引文件的 URL , 以 及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL、 终端码率能力指示;  The sending unit is configured to receive a URL of the index file from the user interaction unit, and send a content play request to the server, where the content play request includes a URL of the index file and a terminal code rate capability indication;
接收单元, 接收单元, 用于接收所述服务器根据所述终端码率能力指 示获取到当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后 滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表的 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率; a receiving unit, configured to receive, by the server, the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and filtering according to the maximum supported code rate of the current terminal The index file returned by the filtering includes the information of the playlist selected by the server in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
所述选择单元, 用于从所述接收单元接收所述过滤后返回的索引文件, 以及从所述过滤后返回的索引文件中选择播放列表。  The selecting unit is configured to receive, after the filtering, an index file returned from the receiving unit, and select a playlist from the index file returned after the filtering.
在第四方面的第一种可能的实现方式中, 所述终端码率能力指示包含 当前终端码率能力信息, 所述当前终端码率能力信息包含当前终端最大支 持码率。  In a first possible implementation manner of the fourth aspect, the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate.
在第四方面的第二种可能的实现方式中, 所述终端码率能力指示包括 终端类型、 当前终端解码方式; 所述接收单元用于接收所述服务器根据所 述终端码率能力指示获取到当前终端最大支持码率、 根据所述当前终端最 大支持码率过滤后返回的索引文件包括: 所述接收单元用于接收所述服务 器根据所述终端类型、 所述当前终端解码方式从终端管理服务器中查询获 取到当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回 的索引文件。  In a second possible implementation manner of the fourth aspect, the terminal code rate capability indication includes a terminal type, a current terminal decoding mode, and the receiving unit is configured to receive, by the server, the obtained by using the terminal code rate capability indication. The current terminal maximum supported code rate and the index file returned after being filtered according to the current terminal maximum supported code rate include: the receiving unit is configured to receive, by the server, the terminal management server according to the terminal type and the current terminal decoding mode. The middle query obtains the maximum supported code rate of the current terminal, and returns an index file that is filtered according to the maximum supported code rate of the current terminal.
结合第四方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述终端还包括:  With reference to the first possible implementation of the fourth aspect, in a third possible implementation, the terminal further includes:
获取单元, 用于在所述发送单元向服务器发送内容播放请求之前, 获 取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内 容编码格式、 终端解码方式, 以及将所述终端码率能力信息发送给确定单 元;  An acquiring unit, configured to acquire terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum support code rate, a content encoding format, a terminal decoding mode, and a device before the sending unit sends a content play request to the server. The terminal code rate capability information is sent to the determining unit;
所述确定单元, 用于从所述获取单元接收所述终端码率能力信息, 以 及根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息中 确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所 述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持码 率, 将所述当前终端码率能力信息发送给所述发送单元。  The determining unit is configured to receive the terminal code rate capability information from the acquiring unit, and determine a current terminal code rate capability information in the terminal code rate capability information according to a current terminal decoding mode and a current content encoding format, where The content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the maximum terminal of the current terminal code rate capability information. Supporting a code rate, and transmitting the current terminal code rate capability information to the sending unit.
结合第四方面的第三种可能的实现方式, 在第四种可能的实现方式中, 所述获取单元, 具体用于从终端操作系统中获取、 或者根据终端类型从终 端管理服务器中查询获取所述终端码率能力信息。 结合第四方面的第一种、 第三种或第四种可能的实现方式, 在第五种 可能的实现方式中, 所述当前终端码率能力信息还包含当前终端最小支持 码率; 所述接收单元用于接收所述服务器根据所述终端码率能力指示获取 到当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回的 索引文件包括: 所述接收单元用于接收所述服务器从所述终端码率能力指 示中直接获取到当前终端最大支持码率和当前终端最小支持码率、 根据所 述当前终端最大支持码率和当前终端最小支持码率过滤后返回的索引文 件; 所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所 述播放列表的码率小于或等于所述当前终端最大支持码率且大于或等于所 述当前终端最小支持码率。 第五方面, 本发明实施例提供的选择可播放码率内容的服务器包括: 接收单元, 用于接收终端发送的内容播放请求, 所述内容播放请求包 含索引文件的统一资源定位 URL、终端码率能力指示, 以及将所述终端码率 能力指示发送给获取单元, 将所述索引文件的 URL发送给过滤单元; With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the acquiring unit is specifically configured to obtain, obtain, or obtain a query from a terminal management server according to a terminal type. Terminal bit rate capability information. With reference to the first, third or fourth possible implementation manner of the fourth aspect, in a fifth possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate; The receiving unit is configured to receive, by the server, the index file that is obtained after the server obtains the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and is filtered according to the maximum supported code rate of the current terminal, where the receiving unit is configured to: The server directly obtains the current terminal maximum support code rate and the current terminal minimum support code rate from the terminal code rate capability indication, and returns an index file that is filtered according to the current terminal maximum support code rate and the current terminal minimum support code rate. The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum support code of the current terminal. rate. In a fifth aspect, the server for selecting the playable content rate according to the embodiment of the present invention includes: a receiving unit, configured to receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, and a terminal code rate. The capability indication, and sending the terminal code rate capability indication to the obtaining unit, and sending the URL of the index file to the filtering unit;
所述获取单元, 用于从所述接收单元接收所述终端码率能力指示, 以 及根据所述终端码率能力指示获取当前终端最大支持码率, 将所述终端最 大支持码率发送给过滤单元;  The acquiring unit is configured to receive the terminal code rate capability indication from the receiving unit, and obtain a maximum supported code rate of the current terminal according to the terminal code rate capability indication, and send the maximum supported code rate of the terminal to the filtering unit. ;
所述过滤单元, 用于从所述接收单元接收所述索引文件的 URL ,从所述 获取单元接收所述终端最大支持码率, 并根据所述当前终端最大支持码率 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率, 将所述过滤后的索引文件发送给发送单元;  The filtering unit is configured to receive, by the receiving unit, a URL of the index file, receive, by the acquiring unit, a maximum supported code rate of the terminal, and select, according to the maximum supported code rate of the current terminal, a playlist information. The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the sending unit.
所述发送单元, 用于从所述过滤单元接收所述过滤后的索引文件, 以 及向所述终端返回所述过滤后的索引文件, 以便终端在所述过滤后的索引 文件中选择播放列表。  The sending unit is configured to receive the filtered index file from the filtering unit, and return the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
在第五方面的第一种可能的实现方式中, 所述终端码率能力指示包含 当前终端码率能力信息, 所述当前终端码率能力信息包括所述当前终端最 大支持码率。  In a first possible implementation manner of the fifth aspect, the terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes a maximum supported code rate of the current terminal.
在第五方面的第二种可能的实现方式中, 所述终端码率能力指示包括 终端类型、 当前终端解码方式; In a second possible implementation manner of the fifth aspect, the terminal code rate capability indication includes Terminal type, current terminal decoding mode;
所述获取单元, 用于根据所述终端码率能力指示获取当前终端最大支 持码率具体包括: 所述获取单元用于根据所述终端类型从终端管理服务器 中查询获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持 码率、 内容编码格式、 终端解码方式; 根据当前内容编码格式、 所述当前 终端解码方式在所述终端码率能力信息中确定当前终端码率能力信息, 所 述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述所述 当前内容编码格式、 所述当前终端解码方式相同, 所述当前终端码率能力 信息包含当前终端最大支持码率 , 获取所述当前终端最大支持码率。  The acquiring unit, configured to obtain, according to the terminal code rate capability indication, the maximum supported code rate of the current terminal, specifically: the obtaining unit is configured to query, according to the terminal type, the terminal code rate capability information from the terminal management server, where The terminal code rate capability information includes a terminal maximum support code rate, a content encoding format, and a terminal decoding mode. The current terminal code rate capability information is determined in the terminal code rate capability information according to the current content encoding format and the current terminal decoding mode. The content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current content encoding format and the current terminal decoding mode, and the current terminal code rate capability information includes a current terminal maximum supported bit rate. Obtaining a maximum supported code rate of the current terminal.
结合第五方面的第一种可能的实现方式, 在第三种可能的实现方式中, 所述当前终端码率能力信息还包含当前终端最小支持码率; 所述获取 单元进一步还包括: 从所述终端码率能力指示中直接获取所述当前终端最 小支持码率;  With reference to the first possible implementation manner of the fifth aspect, in a third possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate, and the acquiring unit further includes: Obtaining the minimum support code rate of the current terminal directly in the terminal code rate capability indication;
所述过滤单元, 用于根据所述当前终端最大支持码率生成过滤后的索 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所述过滤单元, 用于根据所述当前终端最大支持码率和终端最小支持码率 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率且大于或等于所述当前终端最小支持码率。  The filtering unit is configured to generate the filtered information according to the maximum supported code rate of the current terminal, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, where the filtering unit is configured to: And the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported by the current terminal, according to the information about the current terminal maximum supported code rate and the terminal minimum supported code rate. Code rate.
结合第五方面的第二种可能的实现方式, 在第四种可能的实现方式中, 所述终端码率能力信息还包含终端最小支持码率, 所述当前终端码率能力 信息还包含当前终端最小支持码率;  With reference to the second possible implementation manner of the fifth aspect, in a fourth possible implementation, the terminal code rate capability information further includes a terminal minimum support code rate, where the current terminal code rate capability information further includes a current terminal Minimum support code rate;
所述获取单元进一步还包括: 获取所述当前终端最小支持码率; 所述过滤单元, 用于根据所述当前终端最大支持码率生成过滤后的索 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率具体包 括: 所述过滤单元, 用于根据所述当前终端最大支持码率和当前终端最小 支持码率生成过滤后的索引文件, 所述过滤后的索引文件包含在所述索引 文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前 终端最大支持码率且大于或等于所述当前终端最小支持码率。 第六方面, 本发明实施例提供的选择可播放码率内容的终端包括: 用户交互单元, 用于接收用户的内容播放指令, 所述内容播放指令中 包含索引文件的统一资源定位 URL ,以及将所述索引文件的 URL发送给发送 单元; The obtaining unit further includes: acquiring a minimum supported code rate of the current terminal; the filtering unit, configured to generate filtered information according to the maximum supported code rate of the current terminal, where a code rate of the playlist is less than or And the filtering, the filtering unit is configured to generate the filtered index file according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, where the filtered index file includes Information of the playlist selected in the index file, the code rate of the playlist is less than or equal to the current The terminal supports a maximum code rate and is greater than or equal to the current terminal minimum support code rate. The sixth aspect, the terminal for selecting the playable rate content provided by the embodiment of the present invention includes: a user interaction unit, configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and Sending the URL of the index file to the sending unit;
所述发送单元, 用于从所述用户交互单元接收所述索引文件的 URL , 以 及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL;  The sending unit is configured to receive a URL of the index file from the user interaction unit, and send a content play request to a server, where the content play request includes a URL of the index file;
接收单元, 用于接收所述服务器根据所述索引文件的 URL返回的索引 文件, 以及将所述索引文件发送给过滤单元;  a receiving unit, configured to receive an index file returned by the server according to a URL of the index file, and send the index file to a filtering unit;
所述过滤单元, 用于从所述接收单元接收所述索引文件, 根据当前终 端码率能力信息生成过滤后的索引文件, 所述当前终端码率能力信息包括 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率, 将所述过滤后的索引文件发送给选择单元;  The filtering unit is configured to receive the index file from the receiving unit, and generate a filtered index file according to current terminal code rate capability information, where the current terminal code rate capability information includes information of a selected playlist, The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the selecting unit;
所述选择单元, 用于从所述过滤单元接收所述过滤后的索引文件, 以 及从所述过滤后的索引文件中选择播放列表。  The selecting unit is configured to receive the filtered index file from the filtering unit, and select a playlist from the filtered index file.
在第六方面的第一种可能的实现方式中, 所述终端还包括:  In a first possible implementation manner of the sixth aspect, the terminal further includes:
获取单元, 用于在所述过滤单元根据当前终端码率能力信息生成过滤 后的索引文件之前, 获取终端码率能力信息, 所述终端码率能力信息包含 终端最大支持码率、 内容编码格式、 终端解码方式; 根据当前终端解码方 式、 当前内容编码格式在所述终端码率能力信息中确定当前终端码率能力 信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与 所述当前终端解码方式、 当前内容编码格式相同, 所述当前终端最大支持 码率为所述当前终端码率能力信息的终端最大支持码率, 以及将所述当前 终端码率能力信息发送给所述过滤单元。  And an acquiring unit, configured to obtain, according to the current terminal code rate capability information, the terminal code rate capability information, where the terminal code rate capability information includes a maximum support code rate of the terminal, a content encoding format, The terminal decoding mode is determined according to the current terminal decoding mode and the current content encoding format, and the current terminal code rate capability information is determined, and the content encoding format and the terminal decoding mode of the current terminal rate capability information are respectively The current terminal decoding mode and the current content encoding format are the same, the current terminal maximum support code rate is the terminal maximum support code rate of the current terminal code rate capability information, and the current terminal code rate capability information is sent to the Filter unit.
结合第六方面的第一种可能的实现方式, 在第二种可能的实现方式中, 所述获取单元, 用于获取终端码率能力信息具体包括: 所述获取单元, 用 于根据终端类型从终端管理服务器查询获取、 或者从终端操作系统中获取 所述终端码率能力信息。 With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner, the acquiring unit, configured to obtain terminal rate capability information, specifically includes: the acquiring unit, configured to Terminal management server query acquisition, or obtain from the terminal operating system The terminal code rate capability information.
结合第六方面或第六方面的第一种或第二种可能的实现方式, 在第三 种可能的实现方式中, 所述当前终端码率能力信息还包括当前终端最小支 持码率;  With reference to the sixth aspect or the first or the second possible implementation manner of the sixth aspect, in a third possible implementation, the current terminal code rate capability information further includes a current terminal minimum support code rate;
所述过滤单元, 用于根据当前终端码率能力信息生成过滤后的索引文 件, 所述当前终端码率能力信息包括当前终端最大支持码率, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率包括: 所述过滤单元, 用于 根据当前终端码率能力信息生成过滤后的索引文件, 所述当前终端码率能 力信息包括当前终端最大支持码率和当前终端最小支持码率, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率且大于或等于所述当前终端 最小支持码率。  The filtering unit is configured to generate, according to the current terminal code rate capability information, the filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file is included in the index file. The information of the selected playlist, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtering unit is configured to generate a filtered index file according to the current terminal code rate capability information. The current terminal code rate capability information includes a current terminal maximum supported code rate and a current terminal minimum supported code rate, and the filtered index file includes information of a playlist selected in the index file, and a code rate of the playlist. Less than or equal to the current terminal maximum supported code rate and greater than or equal to the current terminal minimum supported code rate.
由以上技术方案可以看出, 由于本发明实施例通过终端在接收用户的 内容播放指令后, 向服务器发送内容播放请求, 所述请求中包含终端码率 能力指示, 服务器根据所述终端码率能力指示获取到当前终端最大支持码 率、 根据所述当前终端最大支持码率返回过滤后的索引文件, 终端在过滤 后的索引文件中选择播放列表, 从而避免终端请求了超出当前终端最大支 持码率的内容导致播放异常, 提高了用户播放体验。  As shown in the foregoing technical solution, the embodiment of the present invention sends a content play request to the server after receiving the content play instruction of the user, where the request includes the terminal code rate capability indication, and the server according to the terminal code rate capability. Instructing to obtain the maximum supported code rate of the current terminal, and returning the filtered index file according to the maximum supported code rate of the current terminal, the terminal selects a playlist in the filtered index file, thereby preventing the terminal from requesting the maximum supported bit rate exceeding the current terminal. The content causes an abnormal playback and improves the user's playback experience.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明实施例提供的选择可播放码率内容的方法流程图; 图 2为本发明另一个实施例提供的选择可播放码率内容的方法流程图; 图 3为本发明再一个实施例提供的选择可播放码率内容的方法流程图; 图 4为本发明实施例提供的选择可播放码率内容的信令流程图; 图 5为本发明另一个实施例提供的选择可播放码率内容的信令流程图; 图 6为本发明再一个实施例提供的选择可播放码率内容的信令流程图; 图 7 为本发明实施例提供的选择可播放码率内容的终端的结构图; 图 8为本发明实施例提供的选择可播放码率内容的服务器的结构图; 图 9 为本发明再一个实施例提供的选择可播放码率内容的终端的结构 图; 1 is a flowchart of a method for selecting playable content rate according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for selecting playable content rate according to another embodiment of the present invention; FIG. 3 is still another embodiment of the present invention. FIG. 4 is a signaling flowchart of selecting a playable code rate content according to an embodiment of the present invention; FIG. 5 is a schematic diagram of selecting a playable code according to another embodiment of the present invention; Signaling flow chart of rate content; FIG. 6 is a signaling flowchart of selecting a playable code rate content according to another embodiment of the present invention; FIG. 7 is a structural diagram of a terminal for selecting a playable code rate content according to an embodiment of the present invention; FIG. 9 is a structural diagram of a terminal for selecting a playable rate content according to still another embodiment of the present invention; FIG.
图 10为本发明实施例提供的基于计算机系统的选择可播放码率内容的 终端的结构图;  10 is a structural diagram of a terminal for selecting a playable rate content based on a computer system according to an embodiment of the present invention;
图 11为本发明实施例提供的基于计算机系统的选择可播放码率内容的 服务器的结构图;  FIG. 11 is a structural diagram of a server for selecting a playable rate content based on a computer system according to an embodiment of the present invention;
图 12为本发明另一实施例提供的基于计算机系统的选择可播放码率内 容的终端的结构图。  FIG. 12 is a structural diagram of a terminal for selecting a playable rate content based on a computer system according to another embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进 行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的 范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明一个实施例提供了一种选择可播放码率内容的方法, 适用于终 端, 终端将终端码率能力指示发送给服务器, 服务器根据所述终端码率能 力指示获取到当前终端最大支持码率后对索引文件中的播放列表的信息过 滤, 请参照图 1 , 该方法包括:  An embodiment of the present invention provides a method for selecting a playable content rate, which is applicable to a terminal, where the terminal sends a terminal code rate capability indication to a server, and the server obtains a maximum support code rate of the current terminal according to the terminal code rate capability indication. After filtering the information of the playlist in the index file, please refer to FIG. 1, the method includes:
步骤 101 : 接收用户的内容播放指令, 所述内容播放指令中包含索引文 件的统一资源定位 URL。  Step 101: Receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file.
步骤 102 : 向服务器发送内容播放请求, 所述内容播放请求包含所述索 引文件的 URL、 终端码率能力指示。  Step 102: Send a content play request to the server, where the content play request includes a URL of the index file and a terminal code rate capability indication.
可选的, 所述终端码率能力指示包含当前终端码率能力信息, 所述当 前终端码率能力信息包含所述当前终端最大支持码率; 该步骤之前还包括: 获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内容编码格式、 终端解码方式; 根据当前终端解码方式、 当前内容编码格 式在所述终端码率能力信息中确定当前终端码率能力信息, 所述当前终端 码率能力信息的内容编码格式、 终端解码方式分别与所述当前终端解码方 式、 当前内容编码格式相同, 所述当前终端最大支持码率为所述当前终端 码率能力信息的终端最大支持码率; 可选的, 所述获取终端码率能力信息 包括: 从终端操作系统中获取、 或者根据终端类型从终端管理服务器中查 询获取所述终端码率能力信息。 Optionally, the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate; the step further includes: acquiring terminal terminal rate capability information, The terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; according to the current terminal decoding mode, the current content encoding format Determining the current terminal code rate capability information in the terminal code rate capability information, where the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, respectively The current terminal maximum support code rate is the maximum supported code rate of the terminal of the current terminal code rate capability information. Optionally, the acquiring the terminal code rate capability information includes: acquiring from a terminal operating system, or selecting a terminal from the terminal according to the terminal type The management server queries and obtains the terminal code rate capability information.
可选的, 所述终端码率能力指示包括终端类型、 当前终端解码方式。 步骤 103:接收所述服务器根据所述终端码率能力指示获取到当前终端 最大支持码率、 根据所述当前终端最大支持码率过滤后返回的索引文件, 所述过滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放 列表的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率。  Optionally, the terminal code rate capability indication includes a terminal type and a current terminal decoding mode. Step 103: Receive an index file that is obtained after the server obtains the maximum supported code rate of the current terminal according to the terminal code rate capability indication and is filtered according to the maximum supported code rate of the current terminal, and the index file returned by the filtering includes the The information of the playlist selected by the server in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal.
可选的, 所述终端码率能力指示包含当前终端码率能力信息, 所述当 前终端码率能力信息包含所述当前终端最大支持码率以及当前终端最小支 持码率, 该步骤具体包括: 接收所述服务器从所述终端码率能力指示中直 接获取到当前终端最大支持码率和当前终端最小支持码率、 根据所述当前 终端最大支持码率和当前终端最小支持码率过滤后返回的索引文件, 所述 过滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表 的信息, 所述播放列表的码率小于或等于所述终端最大支持码率且大于或 等于所述终端最小支持码率。  Optionally, the terminal code rate capability indication includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate and the current terminal minimum support code rate, and the step specifically includes: receiving The server directly obtains the current terminal maximum support code rate and the current terminal minimum support code rate from the terminal code rate capability indication, and returns an index that is filtered according to the current terminal maximum support code rate and the current terminal minimum support code rate. a file, the index file returned by the filtering includes information of a playlist selected by the server in the index file, where a code rate of the playlist is less than or equal to a maximum support code rate of the terminal and greater than or equal to the The terminal supports the minimum bit rate.
可选的, 所述终端码率能力指示包括终端类型、 当前终端解码方式, 该步骤具体包括: 接收所述服务器根据所述终端类型、 所述当前终端解码 方式从终端管理服务器中查询获取到当前终端最大支持码率、 根据所述当 前终端最大支持码率过滤后返回的索引文件。  Optionally, the terminal code rate capability indication includes a terminal type and a current terminal decoding mode, where the step specifically includes: receiving, by the server, the query from the terminal management server according to the terminal type and the current terminal decoding manner The maximum support code rate of the terminal and the index file returned after filtering according to the maximum supported code rate of the current terminal.
步骤 104 : 从所述过滤后返回的索引文件中选择播放列表。  Step 104: Select a playlist from the index file returned after the filtering.
具体的, 可以是终端确定当前可用带宽后, 从所述过滤后返回的索引 文件中选择小于或等于当前可用带宽的码率的播放列表, 通常首先选择最 低码率的播放列表。  Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the index file returned after the filtering, and the playlist with the lowest code rate is usually selected first.
本发明一个实施例提供了一种选择可播放码率内容的方法, 描述了服 务器执行的流程, 终端将终端码率能力指示发送给服务器, 服务器根据所 述终端码率能力指示获取到当前终端最大支持码率后对索引文件中的播放 列表的信息过滤, 请参照图 2 , 该方法包括: An embodiment of the present invention provides a method for selecting a playable content rate, and describes a process performed by a server. The terminal sends a terminal code rate capability indication to the server, where the server obtains the current terminal according to the terminal code rate capability indication. Support for playback in the index file after the bit rate is supported For information filtering of the list, please refer to Figure 2, which includes:
步骤 201 : 接收终端发送的内容播放请求, 所述内容播放请求包含索引 文件的统一资源定位 URL、 终端码率能力指示。  Step 201: Receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, and a terminal code rate capability indication.
可选的, 终端码率能力指示包含当前终端码率能力信息, 所述当前终 端码率能力信息包括所述当前终端最大支持码率, 可选的, 所述终端码率 能力还包含最小支持码率。  Optionally, the terminal code rate capability indicator includes the current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate, and optionally, the terminal code rate capability further includes a minimum support code. rate.
可选的, 终端码率能力指示包括终端类型、 当前终端解码方式。  Optionally, the terminal code rate capability indication includes a terminal type and a current terminal decoding mode.
步骤 202: 根据所述终端码率能力指示获取当前终端最大支持码率。 可选的, 该步骤具体为: 从所述终端码率能力指示中直接获取当前终 端最大支持码率, 可选的, 该步骤还包括: 从所述终端码率能力指示中直 接获取当前终端最小支持码率。  Step 202: Acquire a maximum supported code rate of the current terminal according to the terminal code rate capability indication. Optionally, the step is specifically: obtaining the maximum supported code rate of the current terminal directly from the terminal rate capability indication, and optionally, the step further includes: directly obtaining, from the terminal code rate capability indication, the current terminal minimum Support code rate.
可选的, 该步骤具体为: 根据终端类型从终端管理服务器中查询获取 终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内容 编码格式、 终端解码方式; 根据当前内容编码格式、 所述当前终端解码方 式在所述终端码率能力信息中确定当前终端码率能力信息, 所述当前终端 码率能力信息的内容编码格式、 终端解码方式分别与所述所述当前内容编 码格式、 所述当前终端解码方式相同, 所述当前终端码率能力信息包含当 前终端最大支持码率, 获取所述当前终端最大支持码率。  Optionally, the step is specifically: querying, according to the terminal type, the terminal code rate capability information from the terminal management server, where the terminal code rate capability information includes a maximum support code rate, a content encoding format, and a terminal decoding mode of the terminal; The encoding format, the current terminal decoding mode, the current terminal code rate capability information is determined in the terminal code rate capability information, and the content encoding format and the terminal decoding mode of the current terminal rate capability information are respectively related to the current content. The encoding format, the current terminal decoding mode is the same, the current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum supported code rate is obtained.
步骤 203: 根据所述当前终端最大支持码率生成过滤后的索引文件, 所 播放列表的码率小于或等于所述当前终端最大支持码率。  Step 203: Generate a filtered index file according to the maximum supported code rate of the current terminal, where a code rate of the playlist is less than or equal to a maximum supported code rate of the current terminal.
可选的, 当前终端码率能力信息包括当前终端最大支持码率以及当前 终端最小支持码率, 该步骤具体包括: 根据所述当前终端最大支持码率和 当前终端最小支持码率生成过滤后的索引文件, 所述过滤后的索引文件包 含在所述索引文件中选择的播放列表的信息, 所述播放列表的码率小于或 等于所述当前终端最大支持码率且大于或等于所述当前终端最小支持码 率。  Optionally, the current terminal code rate capability information includes a current terminal maximum support code rate and a current terminal minimum support code rate, and the step specifically includes: generating, according to the current terminal maximum support code rate and the current terminal minimum support code rate, the filtered An index file, where the filtered index file includes information of a playlist selected in the index file, where a code rate of the playlist is less than or equal to a maximum support code rate of the current terminal and greater than or equal to the current terminal. Minimum supported bit rate.
步骤 204: 向所述终端返回所述过滤后的索引文件, 以便终端在所述过 滤后的索引文件中选择播放列表。 本发明一个实施例提供了一种选择可播放码率内容的方法, 请参照图Step 204: Return the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file. An embodiment of the present invention provides a method for selecting playable content content, please refer to the figure.
3 , 适用于终端, 终端获取到服务器发送的索引文件后, 根据当前终端最大 支持码率对索引文件中的播放列表的信息过滤, 该方法包括: 3, Applicable to the terminal, after obtaining the index file sent by the server, the terminal filters the information of the playlist in the index file according to the maximum support code rate of the current terminal, and the method includes:
步骤 301: 接收用户的内容播放指令, 所述内容播放指令中包含索引文 件的统一资源定位 URL。  Step 301: Receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file.
步骤 302: 向服务器发送获取索引文件的请求, 所述获取索引文件的请 求包含所述索引文件的 URL。  Step 302: Send a request for obtaining an index file to the server, where the request for obtaining the index file includes a URL of the index file.
步骤 303: 接收所述服务器根据所述索引文件的 URL返回的索引文件。 步骤 304: 根据当前终端码率能力信息生成过滤后的索引文件, 所述当 前终端码率能力信息包含当前终端最大支持码率, 所述过滤后的索引文件 包含在所述索引文件中选择的播放列表的信息, 所述播放列表的码率小于 或等于所述当前终端最大支持码率。  Step 303: Receive an index file returned by the server according to the URL of the index file. Step 304: Generate a filtered index file according to the current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes the selected playback in the index file. The information of the list, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal.
可选的, 该步骤之前还包括: 获取终端码率能力信息, 所述终端码率 能力信息包含终端最大支持码率、 内容编码格式、 终端解码方式; 根据当 前终端解码方式、 当前内容编码格式在所述终端码率能力信息中确定当前 终端码率能力信息, 所述当前终端码率能力信息的内容编码格式、 终端解 码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所述当前 终端最大支持码率为所述当前终端码率能力信息的终端最大支持码率。  Optionally, the step further includes: acquiring terminal code rate capability information, where the terminal code rate capability information includes a terminal maximum supported code rate, a content encoding format, and a terminal decoding mode; and according to the current terminal decoding mode and the current content encoding format. Determining the current terminal code rate capability information in the terminal code rate capability information, where the content encoding format and the terminal decoding mode of the current terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, respectively. The maximum support code rate of the terminal is the maximum supported code rate of the terminal of the current terminal code rate capability information.
可选的, 所述获取终端码率能力信息包括: 从终端操作系统中获取、 或者根据终端类型从终端管理服务器中查询获取所述终端码率能力信息。  Optionally, the obtaining the terminal code rate capability information includes: obtaining, by the terminal operating system, or querying, by the terminal management server, the terminal code rate capability information.
可选的, 所述当前终端码率能力信息还包括当前终端最小支持码率; 该步骤进一步为: 根据当前终端码率能力信息生成过滤后的索引文件, 所 播放列表的码率小于或等于所述当前终端最大支持码率且大于或等于所述 当前终端最小支持码率。  Optionally, the current terminal code rate capability information further includes a current terminal minimum support code rate. The step is further: generating a filtered index file according to the current terminal code rate capability information, where a code rate of the playlist is less than or equal to The current terminal maximum supported code rate is greater than or equal to the current terminal minimum supported code rate.
步骤 305: 从所述过滤后的索引文件中选择播放列表。  Step 305: Select a playlist from the filtered index file.
具体的, 可以是终端确定当前可用带宽后, 从所述过滤后的索引文件 中选择小于或等于当前可用带宽的码率的播放列表, 通常首先选择最低码 率的播放列表。 本发明一个实施例提供了选择可播放码率内容的信令流程图, 如图 4 所示。 Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and the playlist with the lowest bit rate is usually selected first. One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
终端在出厂时或入网前, 将终端类型以及终端码率能力信息上报给终 端管理服务器, 例如用户代理描述服务器(User Agent Prof i le, UAProf ) 或开放移动联盟终端管理服务器 ( Open Mob i le Al l iance Dev ice Dev ice Management , OMA DM ), 或者将终端码率能力保存在终端内部系统, 例如操 作系统中。 所述终端码率能力如表 1 所示, 包括内容编码格式、 终端解码 方式、 终端最大支持码率, 可选的还包括终端最小支持码率。 其中, 内容 编码格式取值为终端支持的任一编码格式, 如 H. 263/H. 264/MPEG-4等, 终 端解码方式取值包括硬解和软解。 因为针对不同的内容编码格式、 终端解 码方式, 终端的支持码率值不同, 因此具有多条终端码率能力信息。  The terminal reports the terminal type and the terminal rate capability information to the terminal management server, such as the User Agent Prof. (UAProf) or the Open Mobile Alliance Terminal Management Server (Open Mob i le Al). l iance Dev ice Dev ice Management, OMA DM), or save the terminal bit rate capability in the internal system of the terminal, such as the operating system. The bit rate capability of the terminal is as shown in Table 1, and includes a content encoding format, a terminal decoding mode, and a maximum supported bit rate of the terminal, and optionally a terminal minimum supported bit rate. The content encoding format takes any encoding format supported by the terminal, such as H.263/H.264/MPEG-4, and the terminal decoding mode includes hard solutions and soft solutions. Since the terminal supports different code rate values for different content encoding formats and terminal decoding modes, it has multiple pieces of bit rate capability information.
表 1 终端码率能力信息表  Table 1 Terminal Bit Rate Capability Information Table
Figure imgf000016_0001
步骤 401 : 终端接收到用户的内容播放指令后, 所述内容播放指令中包 含索引文件的统一资源定位(Uniform Resource Locator , URL) , 向服务器 发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL、 当前终端 码率能力信息。
Figure imgf000016_0001
Step 401: After receiving the content play instruction of the user, the content play instruction includes a Uniform Resource Locator (URL) of the index file, and sends a content play request to the server, where the content play request includes the index File URL, current terminal bit rate capability information.
可选的, 在发送内容播放请求之前还包括: 获取终端码率能力信息, 在终端码率能力信息中确定出当前终端码率能力信息, 所述当前终端码率 能力信息包含当前终端最大支持码率。  Optionally, before the content play request is sent, the method further includes: acquiring terminal code rate capability information, determining current terminal code rate capability information in the terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate.
其中, 获取终端码率能力信息的方式可以是根据终端类型从终端管理 服务器查询获取、 或者从终端操作系统中获取, 终端码率能力信息包含终 端最大支持码率、 内容编码格式、 终端解码方式。 通常, 不同的内容编码 格式和终端解码方式对应有不同的终端最大支持码率, 因此终端获取到至 少一条终端码率能力信息, 其中每条终端码率能力信息包含有终端最大支 持码率、 内容编码格式、 终端解码方式, 可选的, 终端码率能力信息使用 表格来表示。 具体的, 终端管理服务器可以是 UAProf 或者 OMA DM服务器。 其中, 在终端码率能力信息中确定出当前终端码率能力信息的步骤具 体为: 获取当前终端解码方式、 当前内容编码格式, 在终端码率能力信息 中查找内容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前 内容编码格式相同的一条终端码率能力信息作为当前终端码率能力信息。 可选的, 终端码率能力信息还包含终端最小支持码率, 从而当前终端码率 能力信息还包含当前终端最小支持码率。 The method for obtaining the terminal rate capability information may be obtained by querying from the terminal management server according to the terminal type, or obtained from the terminal operating system, where the terminal code rate capability information includes the maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal. Generally, different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the terminal acquires at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal. Encoding format, terminal decoding mode, optional, terminal bit rate capability information usage Form to indicate. Specifically, the terminal management server may be a UAProf or an OMA DM server. The step of determining the current terminal code rate capability information in the terminal code rate capability information is specifically: acquiring a current terminal decoding mode, a current content encoding format, and searching for a content encoding format and a terminal decoding mode in the terminal code rate capability information, respectively. The current terminal code rate capability information of the current terminal decoding mode and the current content encoding format is used as current terminal code rate capability information. Optionally, the terminal code rate capability information further includes a minimum supported code rate of the terminal, so that the current terminal code rate capability information further includes a current terminal minimum supported code rate.
具体的, 获取当前终端解码方式的方法为从采用的播放软件的配置中 读取, 获取当前内容编码格式的方法为从采用的播放软件的配置中读取或 者在请求播放前向服务器查询获得, 或者服务器事先下发过内容编码格式。 具体的, 可以是用户使用浏览器访问媒体网站或者使用视频客户端访问内 容页面时, 通过点击内容的播放链接来发送用户请求播放内容的指令, 所 述播放链接为索引文件的 URL,例如: ht tp:〃10: 8080/M0VIEl/ INDEX. M3U8 o 例如, 在本实施例的第一个例子中, 在类型为 HUAWEI _ 9200U的终端上 通过 qiyi客户端播放视频, 根据终端类型 HUAWEI _9200U从 UAProf服务器 获取到的终端码率能力信息如表 2所示: Specifically, the method for obtaining the current terminal decoding mode is to read from the configuration of the used playing software, and the method for obtaining the current content encoding format is to read from the configuration of the adopted playing software or obtain the query from the server before requesting the playing, Or the server has previously issued the content encoding format. Specifically, when the user accesses the media website by using the browser or accesses the content page by using the video client, the user requests the user to request to play the content by clicking the play link of the content, and the play link is the URL of the index file, for example: ht Tp: 〃10: 8080/M0VIEl/ INDEX. M3U8 o For example, in the first example of this embodiment, the video is played by the qiyi client on the terminal of the type HUAWEI _ 9200U, according to the terminal type HUAWEI _9200U from the UAProf server The obtained bit rate capability information is shown in Table 2:
表 2 HUAWEI -9200U的终端码率能力信息表  Table 2 Terminal rate capability information table of the HUAWEI-9200U
Figure imgf000017_0001
Figure imgf000017_0001
在 qiyi客户端的配置文件中获取到其采用的解码方式、 即当前终端解 码方式为硬解, 在 qiyi客户端的配置文件中获取到服务器事先配置的内容 编码格式、 即当前内容编码格式为 H. 264 ,从而在表 2中确定出与播放软件 相匹配的当前终端码率能力信息, 如表 3 所示, 其中, 当前终端最大支持 码率为 3000000bps , 向服务器发送表 3的信息。  The decoding mode adopted by the qiyi client is obtained, that is, the current terminal decoding mode is a hard solution, and the content encoding format previously configured by the server is obtained in the configuration file of the qiyi client, that is, the current content encoding format is H.264. Therefore, the current terminal code rate capability information matching the playing software is determined in Table 2, as shown in Table 3, wherein the current terminal maximum support code rate is 3000000 bps, and the information of Table 3 is sent to the server.
表 3 HUAWEI -9200U的当前终端码率能力信息表 内容编码格式 终端解码方式 终端最大支持码率 终端最小支持码 率 Table 3 Current terminal rate capability information of the HUAWEI-9200U Content encoding format terminal decoding mode terminal maximum supported bit rate terminal minimum supported bit rate
H. 264 硬解 3000000 无  H. 264 Hard solution 3000000 None
可选的, 终端码率能力信息还包含终端最小支持码率。 例如, 在本实 施例的第二个例子中, 在类型为 IPAD1的终端上通过 Quickt ime客户端播 放视频, 根据终端类型 IPAD1从 UAProf服务器获取到的终端码率能力如表 4所示: Optionally, the terminal code rate capability information further includes a minimum supported code rate of the terminal. For example, in the second example of the embodiment, the video is played by the Quickt ime client on the terminal of type IPAD1, and the terminal bit rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 4:
表 4 IPAD1的终端码率能力信息表  Table 4 Terminal code rate capability information table of IPAD1
Figure imgf000018_0001
Figure imgf000018_0001
在播放软件 Qui ckt ime 的配置文件中获取到其采用的解码方式、 即当 前终端解码方式为硬解, 在访问该视频服务器时已经获取到该视频服务器 提供的所有内容的编码格式、 即当前内容编码格式为 H. 264 ,从而在表 4中 确定出与播放软件相匹配的当前终端码率能力信息, 如表 5 所示, 其中, 当前终端最大支持码率为 3000000bps , 当前终端最小支持码率为 300000bps , 向服务器发送表 5的信息。  Obtaining the decoding mode adopted by the playback software Quicktime, that is, the current terminal decoding mode is a hard solution, and the encoding format of the content provided by the video server, that is, the current content, has been obtained when accessing the video server. The encoding format is H.264, so that the current terminal code rate capability information matching the playing software is determined in Table 4, as shown in Table 5, wherein the current terminal maximum supported bit rate is 3000000 bps, and the current terminal minimum supported bit rate. For 300,000 bps, send the information of Table 5 to the server.
表 5 IPAD1的当前终端码率能力信息表  Table 5 Current terminal bit rate capability information table of IPAD1
Figure imgf000018_0002
Figure imgf000018_0002
步骤 402: 服务器接收所述内容播放请求,根据索引文件的 URL获取索 引文件, 根据所述当前终端码率能力信息中的当前终端最大支持码率生成 播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大支持 码率。 Step 402: The server receives the content play request, and obtains an index file according to the URL of the index file, and generates information of the playlist according to the current terminal maximum support code rate in the current terminal code rate capability information, and the code rate of the playlist Less than or equal to the current terminal maximum support Code rate.
具体的, 服务器接收到内容播放请求后, 根据请求中包含了终端码率 能力信息判断出这是一个获取过滤后的索引文件的请求, 并根据索引文件 的 URL获取索引文件, 所述索引文件中包含完整的播放列表的访问链接、 对应的码率以及内容编码格式。  Specifically, after receiving the content play request, the server determines that the request is a request for obtaining the filtered index file, and obtains an index file according to the URL of the index file, where the index file is included in the index file. An access link containing the complete playlist, the corresponding bitrate, and the content encoding format.
例如, 在本实施例的第一、 二个例子中, 服务器读取到索引文件中的 当前内容编码格式为 H.264、 包含的完整的播放列表的信息如下, 6个播放 列表的码率分别是 200Kbps, 500Kbps, 1Mbps, 2Mbps, 3Mbps, 4Mbps, 以 及包含各个播放列表的访问链接:  For example, in the first and second examples of the embodiment, the current content encoding format of the current content in the index file is H.264, and the information of the complete playlist included is as follows. The code rates of the six playlists are respectively It is 200Kbps, 500Kbps, 1Mbps, 2Mbps, 3Mbps, 4Mbps, and access links containing various playlists:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000
http: / / example. com/ 01. m3u8  Http: / / example. com/ 01. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
http: / / example, com/ 02. m3u8  Http: / / example, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
http: / / example, com/03. m3u8  Http: / / example, com/03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
http: / / example, com/ 04. m3u8  Http: / / example, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
http://example.com/05.m3u8  Http://example.com/05.m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000
例如, 在本实施例的第一个例子中, 服务器根据当前终端码率能力信 息的终端最大支持码率、 即当前终端最大支持码率为 3000000bps, 对索引 文件进行过滤, 选择码率小于或等于 3000000bps的播放列表, 过滤后的索 引文件包含的播放列表的信息如下:  For example, in the first example of the embodiment, the server filters the index file according to the maximum supported code rate of the current terminal code rate capability information, that is, the current terminal maximum support code rate is 3000000 bps, and the selected code rate is less than or equal to The playlist of 3000000bps, the information of the playlist contained in the filtered index file is as follows:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000
http: / / example. com/ 01. m3u8  Http: / / example. com/ 01. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000 ht tp: / / exampl e, com/ 02. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000 Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常。  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is playing abnormally.
例如, 在在本实施例的第二个例子中, 服务器根据当前终端码率能力 信息的终端最大支持码率和终端最小支持码率、 即当前终端最大支持码率 和当前终端最小支持码率分别为 3000000bps和 300000bps , 对索引文件进 行过滤, 选择码率小于或等于 3000000bps且大于或等于 300000bps的播放 列表, 过滤后的索引文件包含的播放列表的信息如下:  For example, in the second example of the embodiment, the server according to the current terminal code rate capability information, the terminal maximum support code rate and the terminal minimum support code rate, that is, the current terminal maximum support code rate and the current terminal minimum support code rate, respectively. For 3000000bps and 300000bps, the index file is filtered, and a playlist with a code rate less than or equal to 3000000bps and greater than or equal to 300,000bps is selected. The filtered index file contains the following playlist information:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
ht tp: / / exampl e, com/ 02. m3u8  Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常, 而且过滤后的 索引文件也不包含低于当前终端最小支持码率的播放列表的信息, 从而避 免了终端刚开始播放时请求低于最低播放能力的内容导致的一段时间的低 质量画面, 提升用户体验。  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
步骤 403: 服务器向终端返回所述过滤后的索引文件。 步骤 404: 终端从所述过滤后的索引文件中选择播放列表。 Step 403: The server returns the filtered index file to the terminal. Step 404: The terminal selects a playlist from the filtered index file.
具体的, 可以是终端确定当前可用带宽后, 从所述过滤后的索引文件 中选择小于或等于当前可用带宽的码率的播放列表, 通常首先选择最低码 率的播放列表, 即根据索引文件中提供的播放列表的访问链接获取到该播 放列表, 进一步的根据该播放列表中包含的分片的访问链接获取到分片, 从而播放该分片。  Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and usually the playlist with the lowest bit rate is selected first, that is, according to the index file. The access link of the provided playlist obtains the playlist, and further obtains the slice according to the access link of the slice included in the playlist, thereby playing the slice.
例如, 在本实施例的第一个例子中, 终端确定出当前可用带宽为 2Mbps 后, 可以选择码率为 200Kbps , 500Kbps , 1Mbps , 2Mbps的播放列表, 首先 选择 200Kbps 的播放列表; 例如, 在本实施例的第二个例子中, 终端确定 出当前可用带宽为 2Mbps后, 可以选择码率为 500Kbps , 1Mbps , 2Mbps的 播放列表, 首先选择 500Kbps的播放列表。  For example, in the first example of the embodiment, after determining that the current available bandwidth is 2 Mbps, the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 200 Kbps; for example, in the present In the second example of the embodiment, after determining that the current available bandwidth is 2 Mbps, the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps.
本发明一个实施例提供了选择可播放码率内容的信令流程图, 如图 5 所示。 One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
终端向终端管理器上报终端码率能力的描述参考图 4对应的实施例中 相应描述。  A description of the terminal's ability to report the terminal bit rate to the terminal manager is described with reference to the corresponding embodiment in FIG.
步骤 501 : 终端接收到用户的内容播放指令后, 所述内容播放指令中包 含索引文件的统一资源定位(Uniform Resource Locator , URL) , 获取终端 类型和当前终端解码方式, 并向服务器发送内容播放请求, 所述内容播放 请求包含所述索引文件的 URL、 所述当前终端解码方式、 所述终端类型。  Step 501: After receiving the content play instruction of the user, the content play instruction includes a Uniform Resource Locator (URL) of the index file, acquires the terminal type and the current terminal decoding mode, and sends a content play request to the server. The content play request includes a URL of the index file, the current terminal decoding mode, and the terminal type.
具体的, 可以是用户使用浏览器访问媒体网站或者使用视频客户端访 问内容页面时, 通过点击内容的播放链接来发送用户请求播放内容的指令, 所 述 播 放 链 接 为 索 引 文 件 的 URL , 例 如 : ht tp:〃10: 8080/MOVIE1 / INDEX. M3U8。  Specifically, when the user accesses the media website by using the browser or accesses the content page by using the video client, the user requests to play the content by clicking the play link of the content, and the play link is the URL of the index file, for example: ht Tp: 〃10: 8080/MOVIE1 / INDEX. M3U8.
其中, 获取当前终端解码方式的方法为从采用的播放软件的配置中读 取, 获取终端类型的方法可以为从终端操作系统中读取。  The method for obtaining the current terminal decoding mode is to read from the configuration of the used playing software, and the method for obtaining the terminal type may be read from the terminal operating system.
例如, 在本实施例的第一个例子中, 在类型为 HUAWEI _ 9200U的终端上 通过 qiyi 客户端播放视频, 从终端操作系统中读取到的终端类型为 HUAWEI -9200U, 从 qiyi客户端的配置文件中读取到其采用的解码方式、 即 当前终端解码方式为硬解。 例如, 在本实施例的第二个例子中, 在类型为 IPAD1 的终端上通过 Qu i ck t i me客户端播放视频 ,从终端操作系统中读取到的终端类型为 I PAD 1 , 从 Qui ckt ime 的配置文件中读取到其采用的解码方式、 即当前终端解码方 式为硬解。 For example, in the first example of the embodiment, the video is played by the qiyi client on the terminal of the type HUAWEI _ 9200U, and the terminal type read from the terminal operating system is HUAWEI -9200U, configured from the qiyi client. The decoding method adopted by the file is read, that is, the current terminal decoding mode is a hard solution. For example, in the second example of the embodiment, the video is played by the Quit ti time client on the terminal of type IPAD1, and the terminal type read from the terminal operating system is I PAD 1 , from Qui ckt The decoding mode adopted by the ime configuration file is read, that is, the current terminal decoding mode is a hard solution.
步骤 502: 服务器接收所述内容播放请求,根据所述索引文件的 URL获 根据所述终端类型获取终端码率能力信息, 在所述终端码率能力信息中确 定当前终端码率能力信息, 所述终端码率能力信息包含内容编码格式、 终 端解码方式以及终端最大支持码率, 所述当前终端码率能力信息的终端解 码方式和内容编码格式分别与所述当前终端解码方式和所述当前内容编码 格式相同, 获取所述当前终端码率能力信息的终端最大支持码率、 即当前 终端最大支持码率; 根据所述当前终端最大支持码率生成过滤后的索引文 所述播放列表的码率小于或等于所述当前终端最大支持码率。  Step 502: The server receives the content play request, obtains the terminal code rate capability information according to the terminal type according to the URL of the index file, and determines current terminal code rate capability information in the terminal code rate capability information, where The terminal code rate capability information includes a content encoding format, a terminal decoding mode, and a terminal maximum supported code rate, and the terminal decoding mode and the content encoding format of the current terminal code rate capability information are respectively related to the current terminal decoding mode and the current content encoding. The format is the same, the maximum supported code rate of the terminal that obtains the current terminal code rate capability information, that is, the maximum supported code rate of the current terminal; and the code rate of the playlist generated by the filtered index file according to the current maximum supported code rate of the current terminal is smaller than Or equal to the current terminal maximum supported bit rate.
具体的, 服务器接收到内容播放请求后, 根据请求中包含了终端类型 判断出这是一个获取过滤后的索引文件的请求, 并根据索引文件的 URL获 取索引文件, 所述索引文件中包含完整的播放列表的访问链接、 对应的码 率以及内容编码格式。  Specifically, after receiving the content play request, the server determines, according to the type of the terminal included in the request, that the request is a file that obtains the filtered index file, and obtains an index file according to the URL of the index file, where the index file includes the complete file. The access link of the playlist, the corresponding bit rate, and the content encoding format.
例如, 在本实施例的第一、 二个例子中, 服务器读取到索引文件中的 当前内容编码格式为 H. 264、 包含的完整的播放列表的信息如下, 6个播放 列表的码率分别是 200Kbps , 500Kbps , 1Mbps , 2Mbps , 3Mbps , 4Mbps , 以 及包含各个播放列表的访问链接:  For example, in the first and second examples of the embodiment, the current content encoding format of the index file in the index file is H.264, and the information of the complete playlist included is as follows, and the code rates of the six playlists are respectively It is 200Kbps, 500Kbps, 1Mbps, 2Mbps, 3Mbps, 4Mbps, and access links containing various playlists:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000
ht tp: //exampl e. com/ 01. m3u8  Ht tp: //exampl e. com/ 01. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
ht tp: / / exampl e, com/ 02. m3u8  Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000 Ht tp: / / exampl e, com/ 03. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
http: / / example, com/ 04. m3u8  Http: / / example, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
http: / / example, com/05. m3u8  Http: / / example, com/05. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000
具体的, 服务器根据终端类型获取终端码率能力信息可以是根据终端 类型从终端管理服务器查询获取所述终端码率能力信息。 通常, 不同的内 容编码格式和终端解码方式对应有不同的终端最大支持码率, 因此服务器 获取到至少一条终端码率能力信息, 其中每条终端码率能力信息包含有终 端最大支持码率、 内容编码格式、 终端解码方式, 可选的, 终端码率能力 信息使用表格来表示。 其中, 每一条终端码率能力信息还可以包含终端最 小支持码率。 具体的, 终端管理服务器可以是 UAProf 或者 OMA DM服务器。  Specifically, the server obtains the terminal code rate capability information according to the terminal type, and may obtain the terminal code rate capability information from the terminal management server according to the terminal type. Generally, different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the server obtains at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal. The encoding format, the terminal decoding mode, and optionally, the terminal bit rate capability information are represented by a table. The bit rate capability information of each terminal may also include the minimum supported bit rate of the terminal. Specifically, the terminal management server may be a UAProf or an OMA DM server.
例如, 在本实施例的第一个例子中, 根据终端类型 HUAWEI_9200U从 UAProf服务器获取到的终端码率能力如表 6所示:  For example, in the first example of the embodiment, the terminal code rate capability obtained from the UAProf server according to the terminal type HUAWEI_9200U is as shown in Table 6:
表 6 HUAWEI-9200U的终端码率能力信息表  Table 6 Terminal rate capability information table of the HUAWEI-9200U
Figure imgf000023_0001
Figure imgf000023_0001
根据索引文件的内容编码格式、 即当前内容编码格式为 H.264 以及当 前终端解码方式为硬解, 在表 6 所示的终端码率能力信息中确定出与播放 软件相匹配的当前终端码率能力信息, 如表 7 所示, 其中当前终端最大支 持码率为 3000000bps:  According to the content encoding format of the index file, that is, the current content encoding format is H.264 and the current terminal decoding mode is a hard solution, and the current terminal code rate matching the playing software is determined in the terminal bit rate capability information shown in Table 6. Capability information, as shown in Table 7, where the current terminal maximum support code rate is 3000000bps:
表 7 HUAWEI-9200U的当前终端码率能力信息表  Table 7 Current terminal bit rate capability information table of the HUAWEI-9200U
Figure imgf000023_0002
在本实施例中, 根据当前终端最大支持码率值为 3000000bps, 对索引 文件进行过滤, 选择码率小于或等于 3000000bps的播放列表, 过滤后的索 引文件包含的播放列表的信息如下:
Figure imgf000023_0002
In this embodiment, according to the current maximum supported code rate value of the terminal is 3000000 bps, the index file is filtered, and the playlist with the code rate less than or equal to 3000000 bps is selected, and the filtered index file includes the playlist information as follows:
#EXTM3U  #EXTM3U
#EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :200000  #EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :200000
http: 11 example, com/ 01. m3u8  Http: 11 example, com/ 01. m3u8
#EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :500000  #EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :500000
http: 11 example, com/ 02. m3u8  Http: 11 example, com/ 02. m3u8
#EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: 4000000  #EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: 4000000
http: 11 example, com/03. m3u8  Http: 11 example, com/03. m3u8
#EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :2000000  #EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :2000000
http: 11 example, com/ 04. m3u8  Http: 11 example, com/ 04. m3u8
#EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :3000000  #EXT- -X- STREAM- INF: PROGRAM-ID- =1, BANDWIDTH: :3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常。 例如, 在本实施例的第二个例子中, 根据终端类型 IPAD1从 UAProf服 务器获取到的终端码率能力如表 8 所示, 所述终端码率能力信息还包括终 端最小支持码率:  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is playing abnormally. For example, in the second example of the embodiment, the terminal code rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 8, and the terminal code rate capability information further includes the terminal minimum support code rate:
表 8 IPAD1的终端码率能力信息表  Table 8 Terminal code rate capability information table of IPAD1
Figure imgf000024_0001
Figure imgf000024_0001
根据索引文件中的内容编码格式、 即当前内容编码格式为 H.263 以及 当前终端解码方式为硬解, 在表 8 所示的终端码率能力信息中确定出与播 放软件相匹配的当前终端码率能力信息, 如表 9 所示, 其中, 当前终端最 大支持码率为 3000000bps , 当前终端最小支持码率为 300000bps : According to the content encoding format in the index file, that is, the current content encoding format is H.263 and The current terminal decoding mode is a hard solution. In the terminal code rate capability information shown in Table 8, the current terminal code rate capability information matching the playing software is determined, as shown in Table 9, where the current terminal maximum supported bit rate is 3000000bps, the current terminal minimum support code rate is 300000bps:
表 9 IPAD1的当前终端码率能力信息表  Table 9 Current terminal bit rate capability information table of IPAD1
Figure imgf000025_0001
Figure imgf000025_0001
在本实施例中, 根据当前终端最大支持码率值为 3000000bps和当前终 端最小支持码率值为 300000bps , 对索引文件进行过滤, 选择码率小于或等 于 3000000bps且大于或等于 300000bps的播放列表, 过滤后的索引文件包 含的播放列表如下:  In this embodiment, according to the current maximum supported code rate value of the terminal is 3000000 bps and the minimum supported code rate value of the current terminal is 300,000 bps, the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps and greater than or equal to 300,000 bps is selected, and filtered. The following index file contains the following playlists:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
ht tp: / / exampl e, com/ 02. m3u8  Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常, 而且过滤后的 索引文件也不包含低于当前终端最小支持码率的播放列表的信息, 从而避 免了终端刚开始播放时请求低于最低播放能力的内容导致的一段时间的低 质量画面, 提升用户体验。  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
步骤 503: 服务器向终端返回所述过滤后的索引文件。  Step 503: The server returns the filtered index file to the terminal.
步骤 504 : 终端从所述过滤后的索引文件中选择播放列表进行播放。 具体的, 可以是终端确定当前可用带宽后, 从所述过滤后的索引文件 中选择小于或等于当前可用带宽的码率的播放列表, 通常首先选择最低码 率的播放列表, 即根据索引文件中提供的播放列表的访问链接获取到该播 放列表, 进一步的根据该播放列表中包含的分片的访问链接获取到分片, 从而播放该分片。 Step 504: The terminal selects a playlist from the filtered index file for playing. Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and the minimum code is usually selected first. The playlist of the rate, that is, the playlist is obtained according to the access link of the playlist provided in the index file, and the slice is further obtained according to the access link of the slice included in the playlist, thereby playing the slice.
例如, 在本实施例的第一个例子中, 终端确定出当前可用带宽为 2Mbps 后, 可以选择码率为 200Kbps , 500Kbps , 1Mbps , 2Mbps的播放列表, 首先 选择 200Kbps 的播放列表; 例如, 在本实施例的第二个例子中, 终端确定 出当前可用带宽为 2Mbps后, 可以选择码率为 500Kbps , 1Mbps , 2Mbps的 播放列表, 首先选择 500Kbps的播放列表。  For example, in the first example of the embodiment, after determining that the current available bandwidth is 2 Mbps, the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 200 Kbps; for example, in the present In the second example of the embodiment, after determining that the current available bandwidth is 2 Mbps, the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps.
本发明一个实施例提供了选择可播放码率内容的信令流程图, 如图 6 所示。 One embodiment of the present invention provides a signaling flow diagram for selecting playable rate content, as shown in FIG.
终端向终端管理器上报终端码率能力的描述参考图 4对应的实施例中 相应描述。  A description of the terminal's ability to report the terminal bit rate to the terminal manager is described with reference to the corresponding embodiment in FIG.
步骤 601 : 终端接收到用户的内容播放指令后, 所述内容播放指令中包 含索引文件的统一资源定位(Uni form Resource Loca tor , URL) , 向服务器 发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL。  Step 601: After the terminal receives the content play instruction of the user, the content play instruction includes a Uniform Resource Loca tor (URL) of the index file, and sends a content play request to the server, where the content play request includes The URL of the index file.
具体的, 可以是用户使用浏览器访问媒体网站或者使用视频客户端访 问内容页面时, 通过点击内容的播放链接来发送用户请求播放内容的指令, 所 述 播 放 链 接 为 索 引 文 件 的 URL , 例 如 : ht tp:〃10: 8080/MOVIE1 / INDEX. M3U8。  Specifically, when the user accesses the media website by using the browser or accesses the content page by using the video client, the user requests to play the content by clicking the play link of the content, and the play link is the URL of the index file, for example: ht Tp: 〃10: 8080/MOVIE1 / INDEX. M3U8.
步骤 602 : 服务器接收所述获取索引文件的请求,根据所述索引文件的 URL向所述终端返回所述索引文件,所述索引文件包含完整的播放列表的访 问链接、 对应的码率以及内容编码格式。  Step 602: The server receives the request for acquiring an index file, and returns the index file to the terminal according to the URL of the index file, where the index file includes a complete playlist access link, a corresponding code rate, and a content code. format.
例如, 在本实施例的第一、 二个例子中, 服务器返回的索引文件中包 含的完整播放列表的信息如下,总共有 6个播放列表,码率分别是 200Kbps , 500Kbps , 1Mbps , 2Mbps , 3Mbps , 4Mbps , 以及包含各个播放列表的获取地 址, 索引文件中还包含内容编码格式、 即当前内容编码格式为 H. 264 :  For example, in the first and second examples of the embodiment, the information of the complete playlist included in the index file returned by the server is as follows. There are a total of six playlists, and the code rates are 200 Kbps, 500 Kbps, 1 Mbps, 2 Mbps, and 3 Mbps. , 4Mbps, and the acquisition address of each playlist, the index file also contains the content encoding format, that is, the current content encoding format is H.264:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000 ht tp: / / exampl e, com/ 01. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000 Ht tp: / / exampl e, com/ 01. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
ht tp: / / exampl e, com/ 02. m3u8  Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
ht tp: / / exampl e, com/ 05. m3u8  Ht tp: / / exampl e, com/ 05. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000.  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH 000000.
步骤 603: 终端接收到服务器返回的索引文件后,根据当前终端码率能 力信息生成过滤后的索引文件, 所述当前终端码率能力信息包含当前终端 列表的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率。  Step 603: After receiving the index file returned by the server, the terminal generates a filtered index file according to the current terminal code rate capability information, where the current terminal code rate capability information includes information of the current terminal list, where the code rate of the playlist is less than Or equal to the current terminal maximum supported bit rate.
可选的, 在根据当前终端码率能力信息生成过滤后的索引文件之前还 包括: 获取终端码率能力信息, 根据当前终端解码方式、 当前内容编码格 式在终端码率能力信息中确定当前终端码率能力信息, 所述终端码率能力 信息包含内容编码格式、 终端解码方式以及终端最大支持码率, 所述当前 终端码率能力信息的内容编码格式和终端解码方式分别与所述当前内容编 码格式和所述当前终端解码方式相同, 所述当前终端码率能力信息的终端 最大支持码率为当前终端最大支持码率。 可选的, 终端码率能力信息还包 含终端最小支持码率, 当前终端码率能力信息的终端最小支持码率为当前 终端最小支持码率。  Optionally, before the generating the filtered index file according to the current terminal code rate capability information, the method further includes: acquiring terminal code rate capability information, and determining a current terminal code in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format. Rate capability information, the terminal code rate capability information includes a content encoding format, a terminal decoding mode, and a maximum supported code rate of the terminal, where the content encoding format and the terminal decoding mode of the current terminal bit rate capability information are respectively related to the current content encoding format The maximum terminal support code rate of the current terminal code rate capability information is the current terminal maximum support code rate. Optionally, the terminal code rate capability information further includes a minimum supported code rate of the terminal, and the minimum supported code rate of the terminal of the current terminal code rate capability information is a minimum supported code rate of the current terminal.
其中, 获取终端码率能力的方式可以是终端根据终端类型从终端管理 服务器查询获取、 或者从终端操作系统中获取, 获取当前终端解码方式的 方法为从采用的播放软件的配置中读取。 通常, 不同的内容编码格式和终 端解码方式对应有不同的终端最大支持码率, 因此终端获取到至少一条终 端码率能力信息, 其中每条终端码率能力信息包含有终端最大支持码率、 内容编码格式、 终端解码方式, 可选的, 终端码率能力信息使用表格来表 具体的, 终端管理服务器可以是 UAProf 或者 OMA DM服务器。 其中, 获取当前内容编码格式的方式可以是从索 1文件中读取。 The method for obtaining the bit rate capability of the terminal may be that the terminal obtains the query from the terminal management server according to the terminal type, or obtains the method from the terminal operating system, and the method for obtaining the current terminal decoding mode is read from the configuration of the adopted playing software. Generally, different content encoding formats and terminal decoding modes have different maximum support code rates of the terminal, so the terminal acquires at least one terminal code rate capability information, where each terminal code rate capability information includes the maximum supported bit rate and content of the terminal. Encoding format, terminal decoding mode, optional, terminal bit rate capability information using a table to form Specifically, the terminal management server may be a UAProf or an OMA DM server. The method for obtaining the current content encoding format may be reading from the cable 1 file.
例如, 在本实施例的第一个例子中, 在类型为 HUAWEI_9200U的终端上 通过 qiyi客户端播放视频, 终端获取到的当前终端解码方式为硬解、 索引 文件中的内容编码格式为 H.264,根据终端类型 HUAWEI-9200U从 UAProf服 务器获取到的终端码率能力信息如表 10所示:  For example, in the first example of the embodiment, the video is played by the qiyi client on the terminal of the type HUAWEI_9200U, and the current terminal decoding mode obtained by the terminal is a hard solution, and the content encoding format in the index file is H.264. Table 10 shows the terminal bit rate capability information obtained from the UAProf server according to the terminal type HUAWEI-9200U:
表 10 HUAWEI-9200U的终端码率能力信息表  Table 10 Terminal rate capability information table of the HUAWEI-9200U
Figure imgf000028_0001
Figure imgf000028_0001
在本实施例中, 根据当前终端最大支持码率值为 3000000bps, 对索引 文件进行过滤, 选择码率小于或等于 3000000bps的播放列表, 过滤后的索 引文件包含的播放列表的信息如下:  In this embodiment, according to the current maximum supported code rate value of the terminal is 3000000 bps, the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps is selected, and the information of the playlist included in the filtered index file is as follows:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=200000
http: / / example. com/ 01. m3u8  Http: / / example. com/ 01. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
http: / / example, com/ 02. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH^I OOOOOO Http: / / example, com/ 02. m3u8 #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH^I OOOOOO
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常。  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is playing abnormally.
例如, 在本实施例的第二个例子中, 在类型为 IPAD1 的终端上通过 Quick t ime客户端播放视频, 终端获取到的当前终端解码方式为硬解、 索引 文件中的内容编码格式为 H. 264 , 根据终端类型 IPAD1从 UAProf 服务器获 取到的终端码率能力如表 12所示, 所述终端码率能力信息还包括终端最小 支持码率:  For example, in the second example of the embodiment, the video is played by the Quick t ime client on the terminal of the type of IPAD1, and the current terminal decoding mode obtained by the terminal is a hard solution, and the content encoding format in the index file is H. 264. The terminal code rate capability obtained from the UAProf server according to the terminal type IPAD1 is as shown in Table 12. The terminal code rate capability information further includes a minimum supported code rate of the terminal:
表 12 IPAD1的终端码率能力信息表  Table 12 Terminal code rate capability information table of IPAD1
Figure imgf000029_0001
Figure imgf000029_0001
在本实施例中, 根据当前终端最大支持码率值为 3000000bps和当前终 端最小支持码率值为 300000bps , 对索引文件进行过滤, 选择码率小于或等 于 3000000bps且大于或等于 300000bps的播放列表, 过滤后的索引文件包 含的播放列表的信息如下: In this embodiment, according to the current maximum supported code rate value of the terminal is 3000000 bps and the minimum supported code rate value of the current terminal is 300,000 bps, the index file is filtered, and a playlist with a code rate less than or equal to 3000000 bps and greater than or equal to 300,000 bps is selected, and filtered. Post index package The information of the included playlist is as follows:
#EXTM3U  #EXTM3U
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=500000
ht tp: / / exampl e, com/ 02. m3u8  Ht tp: / / exampl e, com/ 02. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=1000000
ht tp: / / exampl e, com/ 03. m3u8  Ht tp: / / exampl e, com/ 03. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=2000000
ht tp: / / exampl e, com/ 04. m3u8  Ht tp: / / exampl e, com/ 04. m3u8
#EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000  #EXT-X- STREAM- INF: PROGRAM- ID=1, BANDWIDTH=3000000
在本实施例中, 因为通过当前终端码率能力信息进行过滤, 生成的过 滤后的索引文件中不包含超出当前终端最大支持码率的播放列表的信息, 从而避免了终端因为请求超出播放能力的内容而播放异常, 而且过滤后的 索引文件也不包含低于当前终端最小支持码率的播放列表的信息, 从而避 免了终端刚开始播放时请求低于最低播放能力的内容导致的一段时间的低 质量画面, 提升用户体验。  In this embodiment, because the filtering is performed by the current terminal code rate capability information, the generated filtered index file does not include the information of the playlist that exceeds the maximum supported bit rate of the current terminal, thereby avoiding the terminal being unable to exceed the playing capability due to the request. The content is played abnormally, and the filtered index file does not contain the information of the playlist lower than the minimum support code rate of the current terminal, thereby avoiding the low period of time caused by requesting the content below the minimum playback capability when the terminal starts playing. Quality picture to enhance user experience.
步骤 604 : 终端从所述过滤后的索引文件中选择播放列表。  Step 604: The terminal selects a playlist from the filtered index file.
所述过滤后的索引文件中包含的播放列表都是终端可播放码率的播放 列表。  The playlists included in the filtered index file are playlists of terminal playable bit rates.
具体的, 可以是终端确定当前可用带宽后, 从所述过滤后的索引文件 中选择小于或等于当前可用带宽的码率的播放列表, 通常首先选择最低码 率的播放列表, 即根据索引文件中提供的播放列表的访问链接获取到该播 放列表, 进一步的根据该播放列表中包含的分片的访问链接获取到分片, 从而播放该分片。  Specifically, after the terminal determines the currently available bandwidth, the playlist that is less than or equal to the code rate of the currently available bandwidth is selected from the filtered index file, and usually the playlist with the lowest bit rate is selected first, that is, according to the index file. The access link of the provided playlist obtains the playlist, and further obtains the slice according to the access link of the slice included in the playlist, thereby playing the slice.
例如, 在本实施例的第一个例子中, 终端确定出当前可用带宽为 2Mbp s 后, 可以选择码率为 200Kbps , 500Kbps , 1Mbps , 2Mbp s的播放列表, 首先 选择 200Kbp s 的播放列表; 例如, 在本实施例的第二个例子中, 终端确定 出当前可用带宽为 2Mbps后, 可以选择码率为 500Kbp s , 1Mbps , 2Mbps的 播放列表, 首先选择 500Kbps的播放列表。 本发明实施例提供了选择可播放码率内容的终端, 如图 7 所示, 该终 端 700包括: For example, in the first example of the embodiment, after determining that the current available bandwidth is 2 Mbp s, the terminal may select a playlist with a code rate of 200 Kbps, 500 Kbps, 1 Mbps, and 2 Mbp s, and first select a playlist of 200 Kbp s; for example, In the second example of the embodiment, after determining that the current available bandwidth is 2 Mbps, the terminal can select a playlist with a code rate of 500 Kbps, 1 Mbps, and 2 Mbps, and first select a playlist of 500 Kbps. The embodiment of the present invention provides a terminal for selecting content that can play the code rate. As shown in FIG. 7, the terminal 700 includes:
用户交互单元 701 , 用于接收用户的内容播放指令, 所述内容播放指令 中包含索引文件的统一资源定位 URL,以及将所述索引文件的 URL发送给发 送单元 702 ;  The user interaction unit 701 is configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and send the URL of the index file to the sending unit 702;
发送单元 702 ,用于从所述用户交互单元 701接收所述索引文件的 URL, 以及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL、 终端码率能力指示;  The sending unit 702 is configured to receive a URL of the index file from the user interaction unit 701, and send a content play request to the server, where the content play request includes a URL of the index file, and a terminal code rate capability indication;
接收单元 703 ,用于接收所述服务器根据所述终端码率能力指示获取到 当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回的索 的索引文件包含所述服务器在所述索引文件中选择的播放列表的信息, 所 述播放列表的码率小于或等于所述当前终端最大支持码率;  The receiving unit 703 is configured to receive, by the server, the index file that is obtained by the server according to the terminal code rate capability indication and the maximum supported code rate of the current terminal, and is filtered according to the maximum supported code rate of the current terminal, and includes the server in the The information of the playlist selected in the index file, where the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
选择单元 704 ,用于从所述接收单元 703接收所述过滤后返回的索引文 件, 以及从所述过滤后返回的索引文件中选择播放列表。 可选的, 终端码率能力指示包含当前终端码率能力信息, 所述当前终 端码率能力信息包含当前终端最大支持码率, 该终端 700进一步的还可以 包括:  The selecting unit 704 is configured to receive, from the receiving unit 703, the index file returned after the filtering, and select a playlist from the index file returned after the filtering. Optionally, the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes a current terminal maximum support code rate, and the terminal 700 further includes:
获取单元 705 ,用于在所述发送单元 702向服务器发送内容播放请求之 前, 获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码 率、 内容编码格式、 终端解码方式, 以及将所述终端码率能力发送给确定 单元 706;  The obtaining unit 705 is configured to obtain, after the sending unit 702 sends a content play request to the server, the terminal code rate capability information, where the terminal code rate capability information includes a maximum support code rate of the terminal, a content encoding format, a terminal decoding manner, and Transmitting the terminal code rate capability to the determining unit 706;
确定单元 706 , 用于从获取单元 705接收所述终端码率能力信息, 以及 根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息中确 定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所 述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持码 率, 将所述当前终端码率能力信息发送给发送单元 702。  The determining unit 706 is configured to receive the terminal code rate capability information from the acquiring unit 705, and determine current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal The content encoding format and the terminal decoding mode of the terminal code rate capability information are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum support code of the current terminal code rate capability information. Rate, the current terminal code rate capability information is sent to the sending unit 702.
可选的, 获取单元 705 , 具体用于从终端操作系统中获取、 或者根据终 端类型从终端管理服务器中查询获取所述终端码率能力信息。 Optionally, the obtaining unit 705 is specifically configured to be obtained from the terminal operating system, or according to the terminal The end type queries the terminal management server to obtain the terminal code rate capability information.
可选的, 所述当前终端码率能力信息还包含当前终端最小支持码率, 接收单元 703 具体用于接收所述服务器从所述终端码率能力指示中直接获 取到当前终端最大支持码率和当前终端最小支持码率、 根据所述当前终端 最大支持码率和当前终端最小支持码率过滤后返回的索引文件, 所述过滤 后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表的信 息, 所述播放列表的码率小于或等于所述当前终端最大支持码率且大于或 等于所述当前终端最小支持码率。 可选的, 终端码率能力指示包括终端类型、 当前终端解码方式, 接收 单元 703具体用于接收所述服务器根据所述终端类型、 所述当前终端解码 方式从终端管理服务器中查询获取到当前终端最大支持码率、 根据所述当 前终端最大支持码率过滤后返回的索引文件。  Optionally, the current terminal code rate capability information further includes a current terminal minimum support code rate, and the receiving unit 703 is specifically configured to receive, by the server, the maximum support code rate of the current terminal directly from the terminal code rate capability indication. The current terminal minimum supported code rate, the index file returned after filtering according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, and the filtered returned index file includes the server selected in the index file. The information of the playlist, the code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate. Optionally, the terminal code rate capability indicator includes a terminal type and a current terminal decoding mode, and the receiving unit 703 is specifically configured to receive, by the server, the current terminal according to the terminal type and the current terminal decoding manner. The maximum supported code rate and the index file returned after filtering according to the current maximum supported bit rate of the terminal.
本发明实施例提供了选择可播放码率内容的服务器, 如图 8 所示, 该 服务器 800包括: The embodiment of the present invention provides a server for selecting content that can play the code rate. As shown in FIG. 8, the server 800 includes:
接收单元 801 , 用于接收终端发送的内容播放请求, 所述内容播放请求 包含索引文件的统一资源定位 URL、终端码率能力指示, 以及将所述终端码 率能力指示发送给获取单元 802 , 将所述索引文件的 URL发送给过滤单元 803;  The receiving unit 801 is configured to receive a content play request sent by the terminal, where the content play request includes a uniform resource location URL of the index file, a terminal code rate capability indication, and send the terminal code rate capability indication to the acquiring unit 802, where The URL of the index file is sent to the filtering unit 803;
获取单元 802 , 用于从接收单元 801接收所述终端码率能力指示, 以及 根据所述终端码率能力指示获取当前终端最大支持码率, 将所述终端最大 支持码率发送给过滤单元 803;  The obtaining unit 802 is configured to receive the terminal code rate capability indication from the receiving unit 801, and obtain the current terminal maximum support code rate according to the terminal code rate capability indication, and send the terminal maximum support code rate to the filtering unit 803;
过滤单元 803 , 用于从接收单元 801接收所述索引文件的 URL, 从获取 单元 802接收所述终端最大支持码率, 并根据所述当前终端最大支持码率 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率, 将所述过滤后的索引文件发送给发送单元 804 ;  The filtering unit 803 is configured to receive the URL of the index file from the receiving unit 801, receive the maximum supported code rate of the terminal from the obtaining unit 802, and select the information of the playlist according to the maximum supported code rate of the current terminal, The coded rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and the filtered index file is sent to the sending unit 804;
发送单元 804 , 用于从过滤单元 803接收所述过滤后的索引文件, 以及 向所述终端返回所述过滤后的索引文件, 以便终端在所述过滤后的索引文 件中选择播放列表。 可选的, 终端码率能力指示包含当前终端码率能力信息, 所述当前终 端码率能力信息包括所述当前终端最大支持码率以及当前终端最小支持码 率, 获取单元 802 , 进一步用于从所述终端码率能力指示中直接获取所述当 前终端最小支持码率; 过滤单元 803 , 具体用于根据所述当前终端最大支持 码率和终端最小支持码率生成过滤后的索引文件, 所述过滤后的索引文件 包含在所述索引文件中选择的播放列表的信息, 所述播放列表的码率小于 或等于所述当前终端最大支持码率且大于或等于所述当前终端最小支持码 率。 所述终端码率能力指示包括终端类型、 当前终端解码方式, 获取单元 802 具体用于根据所述终端类型从终端管理服务器中查询获取终端码率能 力信息, 所述终端码率能力信息包含终端最大支持码率、 内容编码格式、 终端解码方式; 根据当前内容编码格式、 所述当前终端解码方式在所述终 端码率能力信息中确定当前终端码率能力信息, 所述当前终端码率能力信 息的内容编码格式、 终端解码方式分别与所述所述当前内容编码格式、 所 述当前终端解码方式相同, 所述当前终端码率能力信息包含当前终端最大 支持码率, 获取所述当前终端最大支持码率; The sending unit 804 is configured to receive the filtered index file from the filtering unit 803, and Returning the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file. Optionally, the terminal code rate capability indicator includes current terminal code rate capability information, where the current terminal code rate capability information includes the current terminal maximum support code rate and the current terminal minimum support code rate, and the obtaining unit 802 is further used to The terminal code rate capability indication directly acquires the current terminal minimum support code rate; the filtering unit 803 is specifically configured to generate a filtered index file according to the current terminal maximum support code rate and the terminal minimum support code rate, where The filtered index file includes information of a playlist selected in the index file, and the code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate. The terminal code rate capability indication includes a terminal type and a current terminal decoding mode, and the obtaining unit 802 is specifically configured to query, according to the terminal type, the terminal code rate capability information from the terminal management server, where the terminal code rate capability information includes the terminal maximum Supporting a code rate, a content encoding format, and a terminal decoding mode; determining a current terminal code rate capability information in the terminal code rate capability information according to the current content encoding format and the current terminal decoding mode, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are the same as the current content encoding format and the current terminal decoding mode, and the current terminal code rate capability information includes a current terminal maximum supported code rate, and the current terminal maximum support code is obtained. rate;
所述终端码率能力信息还包含终端最小支持码率, 所述当前终端码率 能力信息还包含当前终端最小支持码率, 获取单元 802 进一步还用于获取 所述当前终端最小支持码率; 过滤单元 803 , 具体用于根据所述当前终端最 大支持码率和当前终端最小支持码率生成过滤后的索引文件, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率且大于或等于所述当前终端 最小支持码率。  The terminal code rate capability information further includes a minimum support code rate of the terminal, where the current terminal code rate capability information further includes a minimum support code rate of the current terminal, and the obtaining unit 802 is further configured to obtain a minimum support code rate of the current terminal; The unit 803 is specifically configured to generate, according to the current terminal maximum supported code rate and the current terminal minimum supported code rate, the filtered index file, where the filtered index file includes information of a playlist selected in the index file, The code rate of the playlist is less than or equal to the current terminal maximum support code rate and greater than or equal to the current terminal minimum support code rate.
本发明实施例提供了选择可播放码率内容的终端, 如图 9 所示, 该终 端 900包括: 用户交互单元 901 , 用于接收用户的内容播放指令, 所述内容播放指令 中包含索引文件的统一资源定位 URL,以及将所述索引文件的 URL发送给发 送单元 902 ; The embodiment of the present invention provides a terminal for selecting content that can play the code rate. As shown in FIG. 9, the terminal 900 includes: The user interaction unit 901 is configured to receive a content play instruction of the user, where the content play instruction includes a uniform resource location URL of the index file, and send the URL of the index file to the sending unit 902;
发送单元 902 , 用于从用户交互单元 901接收所述索引文件的 URL, 以 及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL;  The sending unit 902 is configured to receive a URL of the index file from the user interaction unit 901, and send a content play request to the server, where the content play request includes a URL of the index file;
接收单元 903 ,用于接收所述服务器根据所述索引文件的 URL返回的索 引文件, 以及将所述索引文件发送给过滤单元 904 ;  The receiving unit 903 is configured to receive an index file that is returned by the server according to the URL of the index file, and send the index file to the filtering unit 904;
过滤单元 904 , 用于从所述接收单元接收所述索引文件,根据当前终端 码率能力信息生成过滤后的索引文件, 所述当前终端码率能力信息包括当 的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大支 持码率, 将所述过滤后的索引文件发送给选择单元 905;  The filtering unit 904 is configured to receive the index file from the receiving unit, and generate a filtered index file according to current terminal code rate capability information, where the current terminal code rate capability information includes information of a playlist, the playing The code rate of the list is less than or equal to the current terminal maximum support code rate, the filtered index file is sent to the selection unit 905;
选择单元 905 , 用于从过滤单元 904接收所述过滤后的索引文件, 以及 从所述过滤后的索引文件中选择播放列表。 可选的, 终端 900进一步还包含获取单元 906 , 用于在所述过滤单元根 据当前终端码率能力信息生成过滤后的索引文件之前, 获取终端码率能力 信息, 所述终端码率能力信息包含终端最大支持码率、 内容编码格式、 终 端解码方式; 根据当前终端解码方式、 当前内容编码格式在所述终端码率 能力信息中确定当前终端码率能力信息, 所述当前终端码率能力信息的内 容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码 格式相同, 所述当前终端最大支持码率为所述当前终端码率能力信息的终 端最大支持码率, 以及将所述当前终端码率能力信息发送给所述过滤单元 904。  The selecting unit 905 is configured to receive the filtered index file from the filtering unit 904, and select a playlist from the filtered index file. Optionally, the terminal 900 further includes an obtaining unit 906, configured to obtain, after the filtering unit generates the filtered index file according to the current terminal code rate capability information, the terminal code rate capability information, where the terminal code rate capability information includes The maximum supported bit rate, the content encoding format, and the terminal decoding mode of the terminal; determining the current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, where the current terminal code rate capability information is The content encoding format and the terminal decoding mode are the same as the current terminal decoding mode and the current content encoding format, and the current terminal maximum support code rate is the terminal maximum support code rate of the current terminal code rate capability information, and the The current terminal bit rate capability information is sent to the filtering unit 904.
可选的, 获取单元 906 , 用于获取终端码率能力信息具体包括: 根据终 端类型从终端管理服务器查询获取、 或者从终端操作系统中获取所述终端 码率能力信息。 可选的, 所述当前终端码率能力信息还包括当前终端最小支持码率; 过滤单元 904 , 具体用于根据当前终端码率能力信息生成过滤后的索引文 件, 所述当前终端码率能力信息包括当前终端最大支持码率和当前终端最 表的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率且 大于或等于所述当前终端最小支持码率。 Optionally, the obtaining unit 906 is configured to: obtain the terminal code rate capability information, and obtain the terminal code rate capability information from the terminal management server according to the terminal type. Optionally, the current terminal code rate capability information further includes a current terminal minimum support code rate; The filtering unit 904 is specifically configured to generate, according to the current terminal code rate capability information, the filtered index file, where the current terminal code rate capability information includes a current terminal maximum supported code rate and a current terminal maximum table information, and the playlist code The rate is less than or equal to the current terminal maximum supported code rate and greater than or equal to the current terminal minimum supported code rate.
本发明实施例中的终端可以基于计算机系统来实现, 图 1、 图 4、 图 5 所示的方法均可在基于计算机系统的终端来实现。 图 10示出了基于计算机 系统来实现的终端的实施例。 本实施例中终端可以包括: 处理器 1001、 存 储器 1002和通信接口 1003 , 其中: The terminal in the embodiment of the present invention can be implemented based on a computer system, and the methods shown in FIG. 1, FIG. 4, and FIG. 5 can all be implemented in a terminal based on a computer system. Figure 10 illustrates an embodiment of a terminal implemented in accordance with a computer system. The terminal in this embodiment may include: a processor 1001, a memory 1002, and a communication interface 1003, where:
通信接口 1003 , 用于与服务器通信。 终端与服务器、 用户之间交互的 消息 (如方法实施例图 1、 4、 5所示) 均通过通信接口 1003发送和接收。 具体地, 通信接口 1003用于接收用户的内容播放指令, 以及向服务器发送 内容播放请求; 存储器 1002用于存储程序指令; 处理器 1001用于在向服 务器发送内容播放请求之后, 调用存储器 1002中存储的程序指令, 执行如 下操作: 接收所述服务器根据所述终端码率能力指示获取到当前终端最大 支持码率、 根据所述当前终端最大支持码率过滤后返回的索引文件, 所述 过滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表 的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率; 从 所述过滤后返回的索引文件中选择播放列表。  The communication interface 1003 is configured to communicate with a server. The message exchanged between the terminal and the server and the user (as shown in Figures 1, 4 and 5 of the method embodiment) is transmitted and received through the communication interface 1003. Specifically, the communication interface 1003 is configured to receive a content play instruction of the user, and send a content play request to the server; the memory 1002 is configured to store the program instruction; the processor 1001 is configured to call the memory 1002 to be stored after sending the content play request to the server. The program instruction is: performing the following operations: receiving, by the server, obtaining an index file that is returned by the maximum supported code rate of the current terminal according to the terminal code rate capability indication, and filtering, according to the maximum supported code rate of the current terminal, and returning after filtering The index file includes the information of the playlist selected by the server in the index file, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, and is selected from the index file returned after the filtering. playlist.
其中, 处理器 1001 可以是中央处理器 (centra l proces s ing uni t, CPU )、 专用集成电路 ( appl icat ion - spec if i c integrated c i rcui t, ASIC ) 等。其中,本实施例中的终端可以包括总线 1004。处理器 1001、存储器 1002 以及通信接口 1003之间可通过总线 1004连接并通信。 其中, 存储器 1002 可以包括: 随机存取存储器( random acces s memory, RAM ), 只读存储器 ( read-only memory, ROM ), 磁盘等具有存储功能的实体;  The processor 1001 may be a central processing unit (centr l proces s ing uni t, CPU), an application specific integrated circuit (ASIC), or the like. The terminal in this embodiment may include a bus 1004. The processor 1001, the memory 1002, and the communication interface 1003 can be connected and communicated via the bus 1004. The memory 1002 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
处理器 1001还可以用于执行方法实施例中图 1、 图 4、 图 5描述的各 步骤, 本发明实施例在此不再详述。  The processor 1001 can also be used to perform the steps described in FIG. 1 , FIG. 4 and FIG. 5 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
本发明实施例中的服务器可以基于计算机系统来实现, 图 2、 图 4、 图 5所示的方法均可在基于计算机系统的服务器来实现。 图 11示出了基于计 算机系统来实现的服务器的实施例。 本实施例中服务器可以包括: 处理器 1101、 存储器 1102和通信接口 1103 , 其中: The server in the embodiment of the present invention can be implemented based on a computer system, FIG. 2, FIG. 4, and FIG. The method shown in 5 can be implemented in a server based on a computer system. Figure 11 illustrates an embodiment of a server implemented in accordance with a computer system. The server in this embodiment may include: a processor 1101, a memory 1102, and a communication interface 1103, where:
通信接口 1103 , 用于与终端通信。 终端与服务器之间交互的消息 (如 方法实施例图 2、 4、 5所示) 均通过通信接口 1103发送和接收。 具体地, 通信接口 1103用于接收终端发送的内容播放请求; 存储器 1102用于存储 程序指令; 处理器 1101用于在接收终端的内容播放请求之后, 调用存储器 1102 中存储的程序指令, 执行如下操作: 根据所述终端码率能力指示获取 当前终端最大支持码率; 根据所述当前终端最大支持码率生成过滤后的索 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率; 向所 述终端返回所述过滤后的索引文件, 以便终端在所述过滤后的索引文件中 选择播放列表。  The communication interface 1103 is configured to communicate with the terminal. Messages between the terminal and the server (as shown in Figures 2, 4, and 5 of the method embodiment) are transmitted and received through the communication interface 1103. Specifically, the communication interface 1103 is configured to receive a content play request sent by the terminal; the memory 1102 is configured to store the program instruction; the processor 1101 is configured to: after receiving the content play request of the terminal, invoke the program instruction stored in the memory 1102, and perform the following operations: Obtaining a maximum supported code rate of the current terminal according to the terminal code rate capability indication; generating filtered information according to the current terminal maximum supported code rate, where the code rate of the playlist is less than or equal to the current terminal maximum support code And returning the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
其中, 处理器 1101 可以是中央处理器 (centra l proces s ing uni t, CPU )、 专用集成电路 ( appl icat ion - spec if i c integrated c i rcui t, ASIC ) 等。 其中, 本实施例中的服务器可以包括总线 1104。 处理器 1101、 存储器 1102以及通信接口 1103之间可通过总线 1104连接并通信。 其中, 存储器 1102可以包括: 随机存取存储器 ( random acces s memory, RAM ), 只读存 储器( read-only memory, ROM ), 磁盘等具有存储功能的实体;  The processor 1101 may be a central processing unit (centr l proces s ing uni t, CPU), an application specific integrated circuit (appl icat ion- spec if i c integrated c i rcui t, ASIC). The server in this embodiment may include a bus 1104. The processor 1101, the memory 1102, and the communication interface 1103 can be connected and communicated via the bus 1104. The memory 1102 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
处理器 1101还可以用于执行方法实施例中图 2、 图 4、 图 5描述的各 步骤, 本发明实施例在此不再详述。  The processor 1101 can also be used to perform the steps described in FIG. 2, FIG. 4, and FIG. 5 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
本发明实施例中的终端可以基于计算机系统来实现, 图 3、 图 6所示的 方法均可在基于计算机系统的终端来实现。 图 12示出了基于计算机系统来 实现的终端的实施例。本实施例中终端可以包括:处理器 1201、存储器 1202 和通信接口 1203 , 其中: The terminal in the embodiment of the present invention can be implemented based on a computer system, and the methods shown in FIG. 3 and FIG. 6 can be implemented in a terminal based on a computer system. Figure 12 illustrates an embodiment of a terminal implemented in accordance with a computer system. The terminal in this embodiment may include: a processor 1201, a memory 1202, and a communication interface 1203, where:
通信接口 1203 , 用于与业务服务器通信。 终端与服务器、 用户之间交 互的消息 (如方法实施例图 3、 图 6所示) 均通过通信接口 1203发送和接 收。 具体地, 通信接口 1203用于接收用户的内容播放指令以及向服务器发 送内容播放请求; 存储器 1202用于存储程序指令; 处理器 1201用于在向 服务器发送内容播放请求之后, 调用存储器 1202中存储的程序指令, 执行 如下操作: 接收所述服务器根据所述索引文件的 URL返回的索引文件; 根 据当前终端码率能力信息生成过滤后的索引文件, 所述当前终端码率能力 信息包含当前终端最大支持码率, 所述过滤后的索引文件包含在所述索引 文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前 终端最大支持码率; 从所述过滤后的索引文件中选择播放列表。 The communication interface 1203 is configured to communicate with a service server. The messages exchanged between the terminal and the server and the user (as shown in FIG. 3 and FIG. 6 of the method embodiment) are both transmitted and received through the communication interface 1203. Specifically, the communication interface 1203 is configured to receive a content play instruction of the user and send a content play request to the server; the memory 1202 is configured to store the program instruction; the processor 1201 is configured to After the server sends the content play request, the program instruction stored in the memory 1202 is invoked, and the following operations are performed: receiving an index file returned by the server according to the URL of the index file; generating a filtered index file according to the current terminal code rate capability information, The current terminal code rate capability information includes a current terminal maximum supported code rate, and the filtered index file includes information of a playlist selected in the index file, where a code rate of the playlist is less than or equal to the current The terminal supports the maximum bit rate; and selects a playlist from the filtered index file.
其中, 处理器 1201 可以是中央处理器 (centra l proces s ing uni t, CPU )、 专用集成电路 ( appl icat ion - spec if i c integrated c i rcui t, ASIC ) 等。其中,本实施例中的终端可以包括总线 1204。处理器 1201、存储器 1202 以及通信接口 1203之间可通过总线 1204连接并通信。 其中, 存储器 1202 可以包括: 随机存取存储器( random acces s memory, RAM ), 只读存储器 ( read-only memory, ROM ), 磁盘等具有存储功能的实体;  The processor 1201 may be a central processing unit (central l proces s ing uni t, CPU), an application specific integrated circuit (ASIC), or the like. The terminal in this embodiment may include a bus 1204. The processor 1201, the memory 1202, and the communication interface 1203 can be connected and communicated via the bus 1204. The memory 1202 may include: a random access memory (RAM), a read-only memory (ROM), a disk and the like having a storage function;
处理器 1201还可以用于执行方法实施例中图 3、 图 6描述的各步骤, 本发明实施例在此不再详述。  The processor 1201 can also be used to perform the steps described in FIG. 3 and FIG. 6 in the method embodiment, and the embodiments of the present invention are not described in detail herein.
以上对本发明所提供的一种进行了详细介绍, 本文中应用了具体个例 对本发明的原理及实施方式进行了阐述, 以上实施例的说明只是用于帮助 理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员, 依 据本发明的思想, 在具体实施方式及应用范围上均会有改变之处, 综上所 述, 本说明书内容不应理解为对本发明的限制。 The foregoing provides a detailed description of the present invention. The principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only to assist in understanding the method of the present invention and its core ideas; In the meantime, the present invention is not limited by the scope of the present invention.

Claims

权利要求 Rights request
1、 一种选择可播放码率内容的方法, 其特征在于, 所述方法包括: 接收用户的内容播放指令, 所述内容播放指令中包含索引文件的统一 资源定位 URL; 1. A method of selecting playable code rate content, characterized in that the method includes: receiving a user's content playback instruction, where the content playback instruction includes a unified resource positioning URL of the index file;
向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL、 终端码率能力指示; Send a content playback request to the server, where the content playback request includes the URL of the index file and a terminal code rate capability indication;
接收所述服务器根据所述终端码率能力指示获取到当前终端最大支持 码率、 根据所述当前终端最大支持码率过滤后返回的索引文件, 所述过滤 后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表的信 息, 所述播放列表的码率小于或等于所述当前终端最大支持码率; Receive the index file returned by the server after obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication and filtering it according to the maximum supported code rate of the current terminal. The index file returned after filtering contains the information of the server. The information of the playlist selected in the index file, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
从所述过滤后返回的索引文件中选择播放列表。 Select a playlist from the index file returned after said filtering.
2、 根据权利要求 1所述的方法, 其特征在于: 2. The method according to claim 1, characterized in that:
所述终端码率能力指示包含当前终端码率能力信息, 所述当前终端码 率能力信息包含所述当前终端最大支持码率。 The terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes the current terminal maximum supported code rate.
3、 根据权利要求 2所述的方法, 其特征在于, 所述向服务器发送内容 播放请求之前还包括: 3. The method according to claim 2, characterized in that before sending the content playback request to the server, the method further includes:
获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码 率、 内容编码格式、 终端解码方式; Obtain terminal code rate capability information, which includes the terminal's maximum supported code rate, content encoding format, and terminal decoding method;
根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息 中确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格 式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持 码率。 The current terminal code rate capability information is determined in the terminal code rate capability information according to the current terminal decoding mode and the current content coding format. The content coding format and terminal decoding mode of the current terminal code rate capability information are respectively the same as the current terminal decoding method. The method and the current content encoding format are the same, and the current terminal's maximum supported code rate is the terminal's maximum supported code rate based on the current terminal's code rate capability information.
4、 根据权利要求 3所述的方法, 其特征在于, 所述获取终端码率能力 信息包括: 4. The method according to claim 3, characterized in that the obtaining terminal code rate capability information includes:
从终端操作系统中获取、 或者根据终端类型从终端管理服务器中查询 获取所述终端码率能力信息。 The terminal code rate capability information is obtained from the terminal operating system or is queried from the terminal management server according to the terminal type.
5、 根据权利要求 2、 3或 4所述的方法, 其特征在于: 5. The method according to claim 2, 3 or 4, characterized in that:
所述当前终端码率能力信息还包含当前终端最小支持码率; The current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述接收所述服务器根据所述终端码率能力指示获取到当前终端最大 支持码率、 根据所述当前终端最大支持码率过滤后返回的索引文件, 所述 过滤后返回的索引文件包含所述服务器在所述索引文件中选择的播放列表 的信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率具体 包括: 接收所述服务器从所述终端码率能力指示中直接获取到当前终端最 大支持码率和当前终端最小支持码率、 根据所述当前终端最大支持码率和 当前终端最小支持码率过滤后返回的索引文件, 所述过滤后返回的索引文 件包含所述服务器在所述索引文件中选择的播放列表的信息, 所述播放列 表的码率小于或等于所述终端最大支持码率且大于或等于所述终端最小支 持码率。 The receiving server obtains the current maximum terminal code rate capability indication based on the terminal code rate capability indication. Support code rate, index file returned after filtering according to the maximum supported code rate of the current terminal, the index file returned after filtering contains information about the playlist selected by the server in the index file, the playlist The code rate is less than or equal to the current terminal's maximum supported code rate. Specifically, receiving the server directly obtains the current terminal's maximum supported code rate and the current terminal's minimum supported code rate from the terminal's code rate capability indication, according to the current terminal's code rate capability indication. The index file returned after filtering the maximum supported code rate of the terminal and the minimum supported code rate of the current terminal. The index file returned after filtering contains information about the playlist selected by the server in the index file. The code of the playlist The rate is less than or equal to the maximum supported code rate of the terminal and greater than or equal to the minimum supported code rate of the terminal.
6、 根据权利要求 1所述的方法, 其特征在于: 6. The method according to claim 1, characterized in that:
所述终端码率能力指示包括终端类型、 当前终端解码方式; The terminal code rate capability indication includes terminal type and current terminal decoding mode;
所述接收所述服务器根据所述终端码率能力指示获取到当前终端最大 支持码率、 根据所述当前终端最大支持码率过滤后返回的索引文件包括: 接收所述服务器根据所述终端类型、 所述当前终端解码方式从终端管理服 务器中查询获取到当前终端最大支持码率、 根据所述当前终端最大支持码 率过滤后返回的索引文件。 The receiving the index file returned by the server after obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication and filtering it according to the maximum supported code rate of the current terminal includes: receiving the index file returned by the server according to the terminal type, The current terminal decoding method queries and obtains the maximum supported code rate of the current terminal from the terminal management server, and returns an index file filtered according to the maximum supported code rate of the current terminal.
7、 一种选择可播放码率内容的方法, 其特征在于, 所述方法包括: 接收终端发送的内容播放请求, 所述内容播放请求包含索引文件的统 一资源定位 URL、 终端码率能力指示; 7. A method of selecting playable code rate content, characterized in that the method includes: receiving a content playback request sent by a terminal, where the content playback request includes the unified resource positioning URL of the index file and the terminal code rate capability indication;
根据所述终端码率能力指示获取当前终端最大支持码率; Obtain the maximum supported code rate of the current terminal according to the terminal code rate capability indication;
根据所述当前终端最大支持码率生成过滤后的索引文件, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率; A filtered index file is generated according to the maximum supported code rate of the current terminal. The filtered index file contains information about the playlist selected in the index file. The code rate of the playlist is less than or equal to the current code rate. The terminal’s maximum supported code rate;
向所述终端返回所述过滤后的索引文件, 以便终端在所述过滤后的索 引文件中选择播放列表。 The filtered index file is returned to the terminal so that the terminal can select a playlist in the filtered index file.
8、 根据权利要求 7所述的方法, 其特征在于: 8. The method according to claim 7, characterized in that:
所述终端码率能力指示包含当前终端码率能力信息, 所述当前终端码 率能力信息包括所述当前终端最大支持码率。 The terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes the current terminal maximum supported code rate.
9、 根据权利要求 8所述的方法, 其特征在于: 9. The method according to claim 8, characterized in that:
所述当前终端码率能力信息还包含当前终端最小支持码率; The current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述根据所述终端码率能力指示获取当前终端最大支持码率还包括从 所述终端码率能力指示中直接获取所述当前终端最小支持码率; Obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication further includes: Directly obtain the minimum supported code rate of the current terminal from the terminal code rate capability indication;
所述根据所述当前终端最大支持码率生成过滤后的索引文件, 所述过 滤后的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放 列表的码率小于或等于所述当前终端最大支持码率包括: 根据所述当前终 端最大支持码率和当前终端最小支持码率生成过滤后的索引文件, 所述过 滤后的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放 列表的码率小于或等于所述当前终端最大支持码率且大于或等于所述当前 终端最小支持码率。 The filtered index file is generated according to the maximum supported code rate of the current terminal, the filtered index file contains information about the playlist selected in the index file, and the code rate of the playlist is less than or equal to the The current terminal's maximum supported code rate includes: generating a filtered index file based on the current terminal's maximum supported code rate and the current terminal's minimum supported code rate, and the filtered index file contains the playlist selected in the index file. information, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported code rate of the current terminal.
10、 根据权利要求 7所述的方法, 其特征在于: 10. The method according to claim 7, characterized in that:
所述终端码率能力指示包括终端类型、 当前终端解码方式; The terminal code rate capability indication includes terminal type and current terminal decoding mode;
所述根据所述终端码率能力指示获取当前终端最大支持码率包括: 根据所述终端类型从终端管理服务器中查询获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内容编码格式、 终端解码 方式; Obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication includes: querying and obtaining terminal code rate capability information from the terminal management server according to the terminal type, where the terminal code rate capability information includes the terminal's maximum supported code rate. , content encoding format, terminal decoding method;
根据当前内容编码格式、 所述当前终端解码方式在所述终端码率能力 信息中确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编 码格式、 终端解码方式分别与所述当前内容编码格式、 所述当前终端解码 方式相同, 所述当前终端码率能力信息包含当前终端最大支持码率, 获取 所述当前终端最大支持码率。 The current terminal code rate capability information is determined in the terminal code rate capability information according to the current content coding format and the current terminal decoding mode. The content coding format and terminal decoding mode of the current terminal code rate capability information are respectively the same as the current terminal code rate capability information. The content encoding format and the current terminal decoding method are the same. The current terminal code rate capability information includes the current terminal's maximum supported code rate, and the current terminal's maximum supported code rate is obtained.
11、 根据权利要求 10所述的方法, 其特征在于: 11. The method according to claim 10, characterized in that:
所述终端码率能力信息还包含终端最小支持码率, 所述当前终端码率 能力信息还包含当前终端最小支持码率; The terminal code rate capability information also includes the terminal's minimum supported code rate, and the current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述根据所述终端码率能力指示获取当前终端最大支持码率还包括: 获取所述当前终端最小支持码率; The obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication further includes: obtaining the minimum supported code rate of the current terminal;
所述根据所述当前终端最大支持码率生成过滤后的索引文件, 所述过 滤后的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放 列表的码率小于或等于所述当前终端最大支持码率包括: 根据所述当前终 端最大支持码率和当前终端最小支持码率生成过滤后的索引文件, 所述过 滤后的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放 列表的码率小于或等于所述当前终端最大支持码率且大于或等于所述当前 终端最小支持码率。 The filtered index file is generated according to the maximum supported code rate of the current terminal, the filtered index file contains information about the playlist selected in the index file, and the code rate of the playlist is less than or equal to the The current terminal's maximum supported code rate includes: generating a filtered index file based on the current terminal's maximum supported code rate and the current terminal's minimum supported code rate, and the filtered index file contains the playlist selected in the index file. information, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported code rate of the current terminal.
12、 一种选择可播放码率内容的方法, 其特征在于, 所述方法包括: 接收用户的内容播放指令, 所述内容播放指令中包含索引文件的统一 资源定位 URL; 12. A method of selecting playable code rate content, characterized in that the method includes: receiving a content playback instruction from the user, where the content playback instruction includes a unified resource positioning URL of the index file;
向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL; Send a content playback request to the server, where the content playback request includes the URL of the index file;
接收所述服务器根据所述索引文件的 URL返回的索引文件; Receive the index file returned by the server according to the URL of the index file;
根据当前终端码率能力信息生成过滤后的索引文件, 所述当前终端码 率能力信息包含当前终端最大支持码率, 所述过滤后的索引文件包含在所 述索引文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所 述当前终端最大支持码率; Generate a filtered index file based on the current terminal code rate capability information, the current terminal code rate capability information includes the maximum supported code rate of the current terminal, and the filtered index file includes information on the playlist selected in the index file. , the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal;
从所述过滤后的索引文件中选择播放列表。 Select a playlist from the filtered index file.
13、 根据权利要求 12所述的方法, 其特征在于, 所述根据当前终端码 率能力信息生成过滤后的索引文件之前还包括: 13. The method according to claim 12, characterized in that before generating the filtered index file according to the current terminal code rate capability information, the method further includes:
获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码 率、 内容编码格式、 终端解码方式; Obtain terminal code rate capability information, which includes the terminal's maximum supported code rate, content encoding format, and terminal decoding method;
根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息 中确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格 式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持 码率。 The current terminal code rate capability information is determined in the terminal code rate capability information according to the current terminal decoding mode and the current content coding format. The content coding format and terminal decoding mode of the current terminal code rate capability information are respectively the same as the current terminal decoding method. The method and the current content encoding format are the same, and the current terminal's maximum supported code rate is the terminal's maximum supported code rate based on the current terminal's code rate capability information.
14、 根据权利要求 13所述的方法, 其特征在于, 所述获取终端码率能 力信息包括: 14. The method according to claim 13, characterized in that the obtaining terminal code rate capability information includes:
从终端操作系统中获取、 或者根据终端类型从终端管理服务器中查询 获取所述终端码率能力信息。 The terminal code rate capability information is obtained from the terminal operating system or is queried from the terminal management server according to the terminal type.
15、 根据权利要求 12、 13或 14所述的方法, 其特征在于: 15. The method according to claim 12, 13 or 14, characterized in that:
所述当前终端码率能力信息还包括当前终端最小支持码率; The current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所 述播放列表的码率小于或等于所述当前终端最大支持码率且大于或等于所 述当前终端最小支持码率。 The code rate of the playlist is less than or equal to the current terminal's maximum supported code rate, including: the playlist's code rate is less than or equal to the current terminal's maximum supported code rate and greater than or equal to the current terminal's minimum supported code rate. .
16、 一种选择可播放码率内容的终端, 其特征在于, 所述终端包括: 用户交互单元, 用于接收用户的内容播放指令, 所述内容播放指令中 包含索引文件的统一资源定位 URL,以及将所述索引文件的 URL发送给发 送单元; 16. A terminal that selects playable code rate content, characterized in that the terminal includes: a user interaction unit, configured to receive content playback instructions from the user, in the content playback instructions Containing the unified resource location URL of the index file, and sending the URL of the index file to the sending unit;
所述发送单元, 用于从所述用户交互单元接收所述索引文件的 URL, 以及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL、 终端码率能力指示; The sending unit is configured to receive the URL of the index file from the user interaction unit, and send a content playback request to the server, where the content playback request includes the URL of the index file and a terminal code rate capability indication;
接收单元, 用于接收所述服务器根据所述终端码率能力指示获取到当 前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回的索引 索引文件包含所述服务器在所述索引文件中选择的播放列表的信息, 所述 播放列表的码率小于或等于所述当前终端最大支持码率; A receiving unit, configured to receive an index returned by the server after obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication and filtering it according to the maximum supported code rate of the current terminal. Information about the playlist selected in the file, and the code rate of the play list is less than or equal to the maximum supported code rate of the current terminal;
所述选择单元, 用于从所述接收单元接收所述过滤后返回的索引文件, 以及从所述过滤后返回的索引文件中选择播放列表。 The selection unit is configured to receive the index file returned after filtering from the receiving unit, and select a playlist from the index file returned after filtering.
17、 根据权利要求 16所述的终端, 其特征在于: 17. The terminal according to claim 16, characterized in that:
所述终端码率能力指示包含当前终端码率能力信息, 所述当前终端码 率能力信息包含当前终端最大支持码率。 The terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes the current terminal's maximum supported code rate.
18、 根据权利要求 17所述的终端, 其特征在于, 所述终端还包括: 获取单元, 用于在所述发送单元向服务器发送内容播放请求之前, 获 取终端码率能力信息, 所述终端码率能力信息包含终端最大支持码率、 内 容编码格式、 终端解码方式, 以及将所述终端码率能力信息发送给确定单 元; 18. The terminal according to claim 17, characterized in that, the terminal further includes: an acquisition unit, configured to acquire terminal code rate capability information before the sending unit sends a content playback request to the server, the terminal code The rate capability information includes the terminal's maximum supported bit rate, content encoding format, and terminal decoding method, and the terminal bit rate capability information is sent to the determination unit;
所述确定单元, 用于从所述获取单元接收所述终端码率能力信息, 以 及根据当前终端解码方式、 当前内容编码格式在所述终端码率能力信息中 确定当前终端码率能力信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述当前终端解码方式、 当前内容编码格式相同, 所 述当前终端最大支持码率为所述当前终端码率能力信息的终端最大支持码 率, 将所述当前终端码率能力信息发送给所述发送单元。 The determining unit is configured to receive the terminal code rate capability information from the acquisition unit, and determine the current terminal code rate capability information in the terminal code rate capability information according to the current terminal decoding mode and the current content encoding format, so The content encoding format and terminal decoding method of the current terminal code rate capability information are respectively the same as the current terminal decoding method and the current content encoding format. The maximum supported code rate of the current terminal is the terminal maximum supported by the current terminal code rate capability information. The code rate is supported, and the current terminal code rate capability information is sent to the sending unit.
19、 根据权利要求 18所述的终端, 其特征在于: 19. The terminal according to claim 18, characterized in that:
所述获取单元, 具体用于从终端操作系统中获取、 或者根据终端类型 从终端管理服务器中查询获取所述终端码率能力信息。 The obtaining unit is specifically configured to obtain the terminal code rate capability information from the terminal operating system, or query and obtain the terminal code rate capability information from the terminal management server according to the terminal type.
20、 根据权利要求 17、 18或 19所述的终端, 其特征在于: 20. The terminal according to claim 17, 18 or 19, characterized in that:
所述当前终端码率能力信息还包含当前终端最小支持码率; 所述接收单元用于接收所述服务器根据所述终端码率能力指示获取到 当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回的索 引文件包括: 所述接收单元用于接收所述服务器从所述终端码率能力指示 中直接获取到当前终端最大支持码率和当前终端最小支持码率、 根据所述 当前终端最大支持码率和当前终端最小支持码率过滤后返回的索引文件; 所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所 述播放列表的码率小于或等于所述当前终端最大支持码率且大于或等于所 述当前终端最小支持码率。 The current terminal code rate capability information also includes the current terminal's minimum supported code rate; The receiving unit is configured to receive the index file returned by the server after obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication and filtering it according to the maximum supported code rate of the current terminal. The receiving unit is configured to: The receiving server directly obtains the maximum supported code rate of the current terminal and the minimum supported code rate of the current terminal from the terminal code rate capability indication, and returns the result after filtering according to the maximum supported code rate of the current terminal and the minimum supported code rate of the current terminal. Index file; The code rate of the play list is less than or equal to the maximum supported code rate of the current terminal, including: the code rate of the play list is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported code rate of the current terminal. Supported code rates.
21、 根据权利要求 16所述的终端, 其特征在于: 21. The terminal according to claim 16, characterized in that:
所述终端码率能力指示包括终端类型、 当前终端解码方式; The terminal code rate capability indication includes terminal type and current terminal decoding mode;
所述接收单元用于接收所述服务器根据所述终端码率能力指示获取到 当前终端最大支持码率、 根据所述当前终端最大支持码率过滤后返回的索 引文件包括: 所述接收单元用于接收所述服务器根据所述终端类型、 所述 当前终端解码方式从终端管理服务器中查询获取到当前终端最大支持码 率、 根据所述当前终端最大支持码率过滤后返回的索引文件。 The receiving unit is configured to receive the index file returned by the server after obtaining the maximum supported code rate of the current terminal according to the terminal code rate capability indication and filtering it according to the maximum supported code rate of the current terminal. The receiving unit is configured to: Receive the index file returned by the server after querying and obtaining the maximum supported code rate of the current terminal from the terminal management server according to the terminal type and the current terminal decoding method, and filtering it according to the maximum supported code rate of the current terminal.
22、 一种选择可播放码率内容的服务器, 其特征在于, 所述服务器包 括: 22. A server that selects playable code rate content, characterized in that the server includes:
接收单元, 用于接收终端发送的内容播放请求, 所述内容播放请求包 含索引文件的统一资源定位 URL、 终端码率能力指示, 以及将所述终端码 率能力指示发送给获取单元, 将所述索引文件的 URL发送给过滤单元; 所述获取单元, 用于从所述接收单元接收所述终端码率能力指示, 以 及根据所述终端码率能力指示获取当前终端最大支持码率, 将所述终端最 大支持码率发送给过滤单元; The receiving unit is configured to receive a content playback request sent by the terminal, the content playback request includes the unified resource positioning URL of the index file, the terminal code rate capability indication, and send the terminal code rate capability indication to the acquisition unit, and The URL of the index file is sent to the filtering unit; the obtaining unit is configured to receive the terminal code rate capability indication from the receiving unit, and obtain the current terminal maximum supported code rate according to the terminal code rate capability indication, and obtain the current terminal code rate capability indication. The maximum supported code rate of the terminal is sent to the filtering unit;
所述过滤单元, 用于从所述接收单元接收所述索引文件的 URL, 从所 述获取单元接收所述终端最大支持码率, 并根据所述当前终端最大支持码 选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最 大支持码率, 将所述过滤后的索引文件发送给发送单元; The filtering unit is configured to receive the URL of the index file from the receiving unit, receive the terminal's maximum supported code rate from the acquisition unit, and select the playlist information based on the current terminal's maximum supported code, If the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, send the filtered index file to the sending unit;
所述发送单元, 用于从所述过滤单元接收所述过滤后的索引文件, 以 及向所述终端返回所述过滤后的索引文件, 以便终端在所述过滤后的索引 文件中选择播放列表。 The sending unit is configured to receive the filtered index file from the filtering unit, and return the filtered index file to the terminal, so that the terminal selects a playlist in the filtered index file.
23、 根据权利要求 22的服务器, 其特征在于: 23. The server according to claim 22, characterized in that:
所述终端码率能力指示包含当前终端码率能力信息, 所述当前终端码 率能力信息包括所述当前终端最大支持码率。 The terminal code rate capability indication includes current terminal code rate capability information, and the current terminal code rate capability information includes the current terminal maximum supported code rate.
24、 根据权利要求 23的服务器, 其特征在于: 24. The server according to claim 23, characterized in that:
所述当前终端码率能力信息还包含当前终端最小支持码率; The current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述获取单元进一步还包括: 从所述终端码率能力指示中直接获取所 述当前终端最小支持码率; The obtaining unit further includes: directly obtaining the current terminal minimum supported code rate from the terminal code rate capability indication;
所述过滤单元, 用于根据所述当前终端最大支持码率生成过滤后的索 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率包括: 所述过滤单元, 用于根据所述当前终端最大支持码率和终端最小支持码率 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率且大于或等于所述当前终端最小支持码率。 The filtering unit is configured to generate filtered search information according to the maximum supported code rate of the current terminal. The code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, including: the filtering unit, used to According to the information of the playlist selected according to the maximum code rate supported by the current terminal and the minimum code rate supported by the terminal, the code rate of the play list is less than or equal to the maximum code rate supported by the current terminal and greater than or equal to the minimum code rate supported by the current terminal. Code rate.
25、 根据权利要求 22的服务器, 其特征在于: 25. The server according to claim 22, characterized in that:
所述终端码率能力指示包括终端类型、 当前终端解码方式; The terminal code rate capability indication includes terminal type and current terminal decoding mode;
所述获取单元, 用于根据所述终端码率能力指示获取当前终端最大支 持码率具体包括: 所述获取单元用于根据所述终端类型从终端管理服务器 中查询获取终端码率能力信息, 所述终端码率能力信息包含终端最大支持 码率、 内容编码格式、 终端解码方式; 根据当前内容编码格式、 所述当前 终端解码方式在所述终端码率能力信息中确定当前终端码率能力信息, 所 述当前终端码率能力信息的内容编码格式、 终端解码方式分别与所述所述 当前内容编码格式、 所述当前终端解码方式相同, 所述当前终端码率能力 信息包含当前终端最大支持码率 , 获取所述当前终端最大支持码率。 The obtaining unit is configured to obtain the maximum supported code rate of the current terminal according to the terminal code rate capability indication, which specifically includes: The obtaining unit is configured to query and obtain terminal code rate capability information from the terminal management server according to the terminal type, so The terminal code rate capability information includes the terminal's maximum supported code rate, content encoding format, and terminal decoding method; the current terminal code rate capability information is determined in the terminal code rate capability information according to the current content encoding format and the current terminal decoding method, The content encoding format and terminal decoding method of the current terminal code rate capability information are respectively the same as the current content encoding format and the current terminal decoding method. The current terminal code rate capability information includes the current terminal's maximum supported code rate. , obtain the maximum supported code rate of the current terminal.
26、 根据权利要求 25的服务器, 其特征在于: 26. The server according to claim 25, characterized in that:
所述终端码率能力信息还包含终端最小支持码率, 所述当前终端码率 能力信息还包含当前终端最小支持码率; The terminal code rate capability information also includes the terminal's minimum supported code rate, and the current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述获取单元进一步还包括: 获取所述当前终端最小支持码率; 所述过滤单元, 用于根据所述当前终端最大支持码率生成过滤后的索 信息, 所述播放列表的码率小于或等于所述当前终端最大支持码率具体包 括: 所述过滤单元, 用于根据所述当前终端最大支持码率和当前终端最小 支持码率生成过滤后的索引文件, 所述过滤后的索引文件包含在所述索引 文件中选择的播放列表的信息, 所述播放列表的码率小于或等于所述当前 终端最大支持码率且大于或等于所述当前终端最小支持码率。 The obtaining unit further includes: obtaining the minimum supported code rate of the current terminal; the filtering unit, configured to generate filtered search information according to the maximum supported code rate of the current terminal, and the code rate of the playlist is less than or Equivalent to the current terminal's maximum supported code rate specific package including: the filtering unit, configured to generate a filtered index file according to the maximum supported code rate of the current terminal and the minimum supported code rate of the current terminal, the filtered index file containing the playlist selected in the index file information, the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported code rate of the current terminal.
27、 一种选择可播放码率内容的终端, 其特征在于, 所述终端包括: 用户交互单元, 用于接收用户的内容播放指令, 所述内容播放指令中 包含索引文件的统一资源定位 URL,以及将所述索引文件的 URL发送给发 送单元; 27. A terminal that selects playable code rate content, characterized in that the terminal includes: a user interaction unit, configured to receive content playback instructions from the user, where the content playback instructions include the unified resource positioning URL of the index file, and sending the URL of the index file to the sending unit;
所述发送单元, 用于从所述用户交互单元接收所述索引文件的 URL, 以及向服务器发送内容播放请求, 所述内容播放请求包含所述索引文件的 URL; The sending unit is configured to receive the URL of the index file from the user interaction unit, and send a content playback request to the server, where the content playback request includes the URL of the index file;
接收单元, 用于接收所述服务器根据所述索引文件的 URL返回的索引 文件, 以及将所述索引文件发送给过滤单元; A receiving unit, configured to receive the index file returned by the server according to the URL of the index file, and send the index file to the filtering unit;
所述过滤单元, 用于从所述接收单元接收所述索引文件, 根据当前终 端码率能力信息生成过滤后的索引文件, 所述当前终端码率能力信息包括 择的播放列表的信息, 所述播放列表的码率小于或等于所述当前终端最大 支持码率, 将所述过滤后的索引文件发送给选择单元; The filtering unit is configured to receive the index file from the receiving unit, and generate a filtered index file according to the current terminal code rate capability information, where the current terminal code rate capability information includes information on the selected playlist, If the code rate of the playlist is less than or equal to the maximum supported code rate of the current terminal, send the filtered index file to the selection unit;
所述选择单元, 用于从所述过滤单元接收所述过滤后的索引文件, 以 及从所述过滤后的索引文件中选择播放列表。 The selection unit is configured to receive the filtered index file from the filtering unit, and select a playlist from the filtered index file.
28、 根据权利要求 27所述的终端, 其特征在于, 所述终端还包括: 获取单元, 用于在所述过滤单元根据当前终端码率能力信息生成过滤 后的索引文件之前, 获取终端码率能力信息, 所述终端码率能力信息包含 终端最大支持码率、 内容编码格式、 终端解码方式; 根据当前终端解码方 式、 当前内容编码格式在所述终端码率能力信息中确定当前终端码率能力 信息, 所述当前终端码率能力信息的内容编码格式、 终端解码方式分别与 所述当前终端解码方式、 当前内容编码格式相同, 所述当前终端最大支持 码率为所述当前终端码率能力信息的终端最大支持码率, 以及将所述当前 终端码率能力信息发送给所述过滤单元。 28. The terminal according to claim 27, characterized in that, the terminal further includes: an acquisition unit, configured to obtain the terminal code rate before the filtering unit generates the filtered index file based on the current terminal code rate capability information. Capability information, the terminal code rate capability information includes the terminal's maximum supported code rate, content encoding format, and terminal decoding method; the current terminal code rate capability is determined in the terminal code rate capability information according to the current terminal decoding method and the current content encoding format. information, the content encoding format and terminal decoding method of the current terminal code rate capability information are the same as the current terminal decoding method and the current content encoding format respectively, the maximum supported code rate of the current terminal is the current terminal code rate capability information The maximum supported code rate of the terminal, and the current terminal code rate capability information is sent to the filtering unit.
29、 根据权利要求 28所述的终端, 其特征在于: 29. The terminal according to claim 28, characterized in that:
所述获取单元, 用于获取终端码率能力信息具体包括: 所述获取单元, 用于根据终端类型从终端管理服务器查询获取、 或者从终端操作系统中获 取所述终端码率能力信息。 The obtaining unit is used to obtain terminal code rate capability information specifically including: the obtaining unit, It is used to query and obtain the terminal code rate capability information from the terminal management server according to the terminal type, or obtain the terminal code rate capability information from the terminal operating system.
30、 根据权利要求 27、 28或 29所述的终端, 其特征在于: 30. The terminal according to claim 27, 28 or 29, characterized in that:
所述当前终端码率能力信息还包括当前终端最小支持码率; The current terminal code rate capability information also includes the current terminal's minimum supported code rate;
所述过滤单元, 用于根据当前终端码率能力信息生成过滤后的索引文 件, 所述当前终端码率能力信息包括当前终端最大支持码率, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率包括: 所述过滤单元, 用于 根据当前终端码率能力信息生成过滤后的索引文件, 所述当前终端码率能 力信息包括当前终端最大支持码率和当前终端最小支持码率, 所述过滤后 的索引文件包含在所述索引文件中选择的播放列表的信息, 所述播放列表 的码率小于或等于所述当前终端最大支持码率且大于或等于所述当前终端 最小支持码率。 The filtering unit is configured to generate a filtered index file based on the current terminal code rate capability information. The current terminal code rate capability information includes the current terminal's maximum supported code rate. The filtered index file is included in the index file. The information of the playlist selected in, the code rate of the play list is less than or equal to the maximum supported code rate of the current terminal, including: the filtering unit, used to generate a filtered index file according to the current terminal code rate capability information, so The current terminal code rate capability information includes the current terminal's maximum supported code rate and the current terminal's minimum supported code rate. The filtered index file contains information about the playlist selected in the index file. The code rate of the playlist It is less than or equal to the maximum supported code rate of the current terminal and greater than or equal to the minimum supported code rate of the current terminal.
PCT/CN2013/084682 2013-04-20 2013-09-30 Method and apparatus for selecting playable code rate content WO2014169588A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310138610.3 2013-04-20
CN2013101386103A CN103269331A (en) 2013-04-20 2013-04-20 Method and device for selectively playing code rate content

Publications (1)

Publication Number Publication Date
WO2014169588A1 true WO2014169588A1 (en) 2014-10-23

Family

ID=49012940

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/084682 WO2014169588A1 (en) 2013-04-20 2013-09-30 Method and apparatus for selecting playable code rate content

Country Status (2)

Country Link
CN (1) CN103269331A (en)
WO (1) WO2014169588A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103269331A (en) * 2013-04-20 2013-08-28 华为技术有限公司 Method and device for selectively playing code rate content
CN104010232B (en) 2014-05-23 2017-12-12 惠州Tcl移动通信有限公司 A kind of intelligence plays method, system, player and the mobile terminal of Online Video
CN104702976A (en) * 2015-02-10 2015-06-10 深圳创维数字技术有限公司 Video playing method and equipment
CN106993014B (en) * 2016-01-20 2020-12-18 中兴通讯股份有限公司 Cache content adjusting method, device and system
CN107454445A (en) * 2016-05-31 2017-12-08 北京风行在线技术有限公司 A kind of method and apparatus for carrying out video playback scheduling
CN107801057A (en) * 2016-08-31 2018-03-13 法乐第(北京)网络科技有限公司 One kind plays code check and determines method and device
CN109996092B (en) * 2017-12-29 2021-01-15 华为技术有限公司 Method and device for video playing
CN110049355A (en) * 2018-01-17 2019-07-23 华为技术有限公司 Method for broadcasting multimedia file and device
CN108900851A (en) * 2018-06-19 2018-11-27 中兴通讯股份有限公司 The transmission method of file, the playback method and device of video are described
CN109120939B (en) * 2018-07-16 2021-04-06 北京奇艺世纪科技有限公司 Video App decoding method and device
CN111432246B (en) * 2020-03-23 2022-11-15 广州市百果园信息技术有限公司 Method, device and storage medium for pushing video data
CN111404966B (en) * 2020-04-03 2020-12-15 广东利通科技投资有限公司 Data processing method of expressway video monitoring system
CN114025241A (en) * 2021-10-19 2022-02-08 山东百盟信息技术有限公司 Management control method and system for television playing capability

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090154556A1 (en) * 2007-12-12 2009-06-18 Electronics And Telecommunications Research Institute Adaptive multimedia system for providing multimedia contents and codec to user terminal and method thereof
CN101697549A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Method and system for displaying stream media and stream media management server
CN102123303A (en) * 2011-03-25 2011-07-13 天脉聚源(北京)传媒科技有限公司 Audio/video file playing method and system as well as transmission control device
CN102802138A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Video file processing method and system, and video proxy system
CN103269331A (en) * 2013-04-20 2013-08-28 华为技术有限公司 Method and device for selectively playing code rate content

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US2097584A (en) * 1936-05-12 1937-11-02 Clark Equipment Co Brake shoe construction
US20050097615A1 (en) * 2003-08-05 2005-05-05 G-4, Inc. System for selecting and optimizing display of video files
AU2005238984A1 (en) * 2004-04-30 2005-11-10 Fuse Holdings Pty Ltd Video encoder and content distribution system
CN101018140A (en) * 2007-03-08 2007-08-15 四川长虹电器股份有限公司 Content-oriented service differentiating method
CN101540645A (en) * 2008-03-21 2009-09-23 华为技术有限公司 Method and device for distributing dynamic content
US8612620B2 (en) * 2008-04-11 2013-12-17 Mobitv, Inc. Client capability adjustment
CN101365125B (en) * 2008-09-27 2012-03-21 腾讯科技(深圳)有限公司 Multipath video communication method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090154556A1 (en) * 2007-12-12 2009-06-18 Electronics And Telecommunications Research Institute Adaptive multimedia system for providing multimedia contents and codec to user terminal and method thereof
CN101697549A (en) * 2009-10-23 2010-04-21 中兴通讯股份有限公司 Method and system for displaying stream media and stream media management server
CN102123303A (en) * 2011-03-25 2011-07-13 天脉聚源(北京)传媒科技有限公司 Audio/video file playing method and system as well as transmission control device
CN102802138A (en) * 2011-05-25 2012-11-28 腾讯科技(深圳)有限公司 Video file processing method and system, and video proxy system
CN103269331A (en) * 2013-04-20 2013-08-28 华为技术有限公司 Method and device for selectively playing code rate content

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114651449A (en) * 2020-04-26 2022-06-21 华为技术有限公司 Method and device for adjusting streaming media parameter dynamic adaptive network
CN114651449B (en) * 2020-04-26 2023-09-29 华为技术有限公司 Method and device for adjusting stream media parameter dynamic self-adaptive network

Also Published As

Publication number Publication date
CN103269331A (en) 2013-08-28

Similar Documents

Publication Publication Date Title
WO2014169588A1 (en) Method and apparatus for selecting playable code rate content
CA2843594C (en) System and method for adapting video communications
US10116572B2 (en) Method, device, and system for acquiring streaming media data
RU2598800C2 (en) Device orientation capability exchange signaling and server adaptation of multimedia content in response to device orientation
JP6231583B2 (en) Transport diversity and time shift buffer support for media streaming over the network
EP2932397B1 (en) Method and apparatus for performing adaptive streaming on media contents
US20150200992A1 (en) Method for downloading, at a client terminal, an upcoming sequence of segments of a multimedia content, and corresponding terminal
CN110933517B (en) Code rate switching method, client and computer readable storage medium
KR20120035187A (en) Method and apparatus to facilitate client controlled sessionless adaptation
JP2013510453A (en) Streaming with optional broadcast delivery of data segments
WO2012171507A1 (en) Method and device for transmitting data file to client
US10856015B2 (en) Method for operating a cache arranged along a transmission path between client terminals and at least one server, and corresponding cache
CN106464738B (en) Method for operating a network device and corresponding network device
CN105306520B (en) Method for operating a cache and corresponding cache
CN105900433B (en) Method for providing a content part of a multimedia content to a client terminal and corresponding cache
CN105359485B (en) Method for obtaining content parts of multimedia content by a client terminal
US11671681B2 (en) Method of processing an error during the rendering of a digital content
CA3225592A1 (en) Systems and methods for selecting a data delivery network
CN117834947A (en) Layered coding method, device, equipment and computer readable medium for media stream
JP2015008475A (en) Streaming by broadcast distribution of option of data segment
WO2015058334A1 (en) Streaming media resource management method, server and client

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: 13882088

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: 13882088

Country of ref document: EP

Kind code of ref document: A1