[go: up one dir, main page]

CN103747285A - Program playing method, server side and client - Google Patents

Program playing method, server side and client Download PDF

Info

Publication number
CN103747285A
CN103747285A CN201310741035.6A CN201310741035A CN103747285A CN 103747285 A CN103747285 A CN 103747285A CN 201310741035 A CN201310741035 A CN 201310741035A CN 103747285 A CN103747285 A CN 103747285A
Authority
CN
China
Prior art keywords
program
played
playing
film source
client
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201310741035.6A
Other languages
Chinese (zh)
Inventor
王俊峰
盖鹏
邢波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Information Technology Beijing Co Ltd
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 LeTV Information Technology Beijing Co Ltd filed Critical LeTV Information Technology Beijing Co Ltd
Priority to CN201310741035.6A priority Critical patent/CN103747285A/en
Publication of CN103747285A publication Critical patent/CN103747285A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a program playing method, a server side and a client, relates to the field of multimedia and can solve the problem that the consumption of bandwidth resources and storage resources of a live broadcast server is high. The method comprises the following steps: after the server side receives a program playing request sent by the client, the server side obtains a program list and generates a description file for describing a program to be played according to the program list and the program playing request, wherein the description file comprises a film source address of the program to be played and film source attribute information; if the program to be played is a live broadcast program, the film source address is located on the live broadcast server; if the program to be played is a request program, the film source address is located on a request server; then the server side sends the description file to the client so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains and plays a video stream of the program to be played according to the film source address and the film source attribute information.

Description

Program playing method, server and client
Technical Field
The present invention relates to the multimedia technology field, and in particular, to a program playing method, a server, and a client.
Background
With the continuous progress of internet technology, internet televisions bring a lot of convenient services to the lives of people, and more users prefer to watch televisions through the internet. Existing network television programs can be divided into live programs and on-demand programs, for live programs, usually before the programs are played, a server side edits a program list in advance according to a playing time interval, and viewers watch the programs played according to the program list through a client side.
Specifically, the live program is not live in a real sense, the programs in the program list include on-demand programs (such as a tv show, a movie, etc.) and live programs (such as a sports event live, etc.), before the programs are played, video resources of the on-demand programs in the program list need to be downloaded from an on-demand server to a live server, and the video resources of the live programs need to acquire live video from a live site in real time and store the live video in the live server. That is to say, in the prior art, videos of all programs on a program list are downloaded to a live broadcast server, and then the downloaded videos are packaged into a live broadcast stream (which can be understood as a pseudo live broadcast) and pushed to a client for playing.
It can be seen that a large amount of video resources need to be downloaded to the live server in advance before playing, which results in high consumption of bandwidth resources and storage resources of the live server.
Disclosure of Invention
The embodiment of the invention provides a program playing method, a server side and a client side, which can solve the problem of high consumption of bandwidth resources and storage resources of a live broadcast server.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, a method for playing a program is provided, where the method includes:
a server receives a program playing request sent by a client;
the server side obtains a program list and generates a description file for describing a program to be played according to the program list and the program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
In a second aspect, a method for playing back a program is provided, the method further comprising:
the client sends a program playing request to the server;
the client receives a description file which is sent by the server and used for describing a program to be played; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
In a third aspect, a server is provided, where the server includes:
the receiving unit is used for receiving a program playing request sent by a client;
the description generation unit is used for acquiring a program list and generating a description file for describing a program to be played according to the program list and the program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the sending unit is used for sending the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing.
In a fourth aspect, a client is provided, the client comprising:
the sending unit is used for sending a program playing request to the server;
the receiving unit is used for receiving a description file which is sent by the server and used for describing the program to be played; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the analyzing and playing unit is used for analyzing the description file to acquire the film source address and the film source attribute information and acquiring the video stream of the program to be played for playing according to the film source address and the film source attribute information.
The embodiment of the invention provides a program playing method, a server and a client, wherein after the server receives a program playing request sent by the client, the server acquires a program list and generates a description file for describing a program to be played according to the program list and the program playing request, and the description file comprises a film source address and film source attribute information of the program to be played; wherein, the film source address is positioned in a live broadcast server or an on-demand server; and then the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing. By adopting the scheme, the film source can be obtained from the live broadcast server or the on-demand server, the existing video resources of the on-demand server can be utilized, and all videos of the programs in the program list are not required to be downloaded to the live broadcast server in advance before playing, so that the problem of high consumption of bandwidth resources and storage resources of the live broadcast server can be solved.
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 description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a program playing method according to an example of the present invention;
fig. 2 is a schematic flow chart of another program playing method provided by the present invention;
fig. 3 is a schematic flow chart of another program playing method provided by the present invention;
fig. 4 is a schematic structural diagram of a server according to an example of the present invention;
fig. 5 is a schematic structural diagram of a client according to an example of the present invention;
fig. 6 is a schematic structural diagram of another client according to an example of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a program playing method, as shown in fig. 1, the method includes:
101. and the server receives a program playing request sent by the client.
102. The server side obtains the program list and generates a description file for describing the program to be played according to the program list and the program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server.
103. The server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
Correspondingly, an embodiment of the present invention further provides a client-side program playing method, as shown in fig. 2, where the method includes:
201. the client sends a program playing request to the server.
202. The client receives a description file which is sent by the server and used for describing the program to be played; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server.
203. The client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
The embodiment of the invention provides a program playing method, wherein after a server receives a program playing request sent by a client, the server acquires a program list and generates a description file for describing a program to be played according to the program list and the program playing request, wherein the description file comprises a film source address and film source attribute information of the program to be played; wherein, the film source address is positioned in a live broadcast server or an on-demand server; and then the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing. By adopting the scheme, the film source can be obtained from the live broadcast server or the on-demand server, the existing video resources of the on-demand server can be utilized, and all videos of the programs in the program list are not required to be downloaded to the live broadcast server in advance before playing, so that the problem of high consumption of bandwidth resources and storage resources of the live broadcast server can be solved.
In order to enable those skilled in the art to more clearly understand the technical solution provided by the embodiment of the present invention, another program playing method provided by the embodiment of the present invention is described in detail below by using a specific embodiment, as shown in fig. 3, the method includes:
301. the client sends a program playing request to the server.
Illustratively, the server maintains a program carousel mechanism (which may be referred to as a carousel) which includes an edited program list including programs distributed according to different time intervals, and according to the program list, the programs can be played to the user in 24 hours in turn and uninterruptedly according to the sequence of the program list, where the programs include on-demand programs (such as movies and television shows) and live programs (such as sports event scenes), and when playing, videos of the on-demand programs or the live programs are packaged into live video streams to be pushed to the client, so that the client plays in the live form, and thus when the user does not know how to select a large amount of programs, the user can be asked to play elaborately recommended programs in the form of pseudo live broadcast.
Specifically, when a user of the client needs to watch the carousel, the client sends a program playing request to the server, where the program playing request includes an address of the client, such as an IP (Internet Protocol) address of the user.
In addition, when the program playing request is not the first program playing request of the client regarding the program to be played, the program playing request further includes the resolution adopted when the program to be played is played previously and playing time information according to which the program to be played is played, wherein the playing time information according to indicates the stop time corresponding to the playing progress when the program to be played is previously stopped to be played or indicates the expected playing time input to the client.
302. The server side receives a program playing request sent by the client side, acquires a program list and generates a description file for describing a program to be played according to the program list and the program playing request.
For example, the program list may be programmed by a staff member before the program starts to be played, or may be automatically set by the client.
And when the server receives a program playing request sent by the client, the server acquires the generated program list and generates a description file for describing the program to be played according to the information in the program playing request. The specific description file may include the source address and the attribute information of the source of the program to be played. The source address refers to an address of a video of the program to be played, and the source attribute information may include resolution and play start time.
Specifically, the step of generating the description file may include:
and determining a target server for selecting the film source, and if the program to be played is the on-demand program, selecting the on-demand server closest to the client as the target server according to the address of the client. Because the resources for requesting video of the on-demand program are usually stored in each node (or server) on the CDN (Content delivery network), each CDN node can be considered as an on-demand server; and if the program to be played is a live program, determining the live server as a target server.
Then, when the program playing request is a first program playing request of the client about the program to be played, selecting a default film source of the program to be played on a destination server, using the address of the default film source as a film source address of the program to be played, and using the resolution of the default film source and the default playing starting time as film source attribute information of the program to be played, thereby obtaining a description file; or
When the program playing request is not the first program playing request of the client about the program to be played, selecting a film source with the same resolution as that adopted when the program to be played is played on the target server, and taking the address of the film source with the same resolution as the film source address of the program to be played;
determining the starting playing time of the playing according to the playing time information according to which the program to be played is played in the program playing request, where the playing time information indicates a stop time corresponding to a playing progress when the playing of the program to be played is previously stopped, or indicates an expected playing time input to the client. If the playing time information is the stopping time corresponding to the playing progress when the playing is previously terminated, the stopping time may be used as the playing starting time of the current playing (for example, the playing is previously paused, and the current request is a scene of continuing playing), or if the playing time information is the desired playing time of the client, the desired playing time of the client is used as the playing starting time of the current playing (for example, scenes of requesting review and previous skip, and certainly, if the playing is live, the previous skip is not supported).
And taking the resolution of the film source with the same resolution and the playing start time of the playing as the film source attribute information of the program to be played, thereby obtaining the description file. The slice source address may be a URL (Uniform Resource Locator).
The method has the advantages that when the program to be played is the on-demand program, the stored video resource can be obtained from the on-demand server closest to the program to be played, the method is not only quick, but also does not need to download a large amount of video resources to the live broadcast server in advance before playing like the prior art, and the live broadcast server only needs the video resource of the live broadcast program.
In addition, in the embodiment of the present invention, the description file may be in an m3u8 format, and m3u8 is an address list of a video slice file, for example, a certain video may be sliced, and the slicing time of each video may be different. After acquiring the m3u8 file, the user resolves all video slice addresses, and then downloads each video slice to the local in sequence. Finally, a new m3u8 file is established locally, and the local path of each slice is filled in sequence. The client can then play the video according to this new m3u8 file. The m3u8 file in the embodiment of the present invention is a newly created m3u8 file, and the m3u8 file includes the above-mentioned piece source attribute information in addition to the piece source address (i.e., the address of the video slice).
303. And the server side sends the description file to the client side.
304. After receiving the description file of the server, the client analyzes the description file to obtain the film source address and the film source attribute information.
305. And the client acquires the video stream of the program to be played according to the film source address, and plays the program to be played according to the resolution and the play starting time included in the film source attribute information.
Exemplarily, if the acquired film source address is an address of a default film source of a program to be played on an on-demand server closest to the client, the film source attribute information is resolution of the default film source and default playing start time; the client acquires the video stream of the default film source from the address of the default film source and starts playing from the default start playing time according to the resolution of the default film source.
If the acquired film source address is the address of the film source with the same resolution as the resolution of the last playing on the on-demand server closest to the client, the film source attribute information is the resolution of the film source with the same resolution (which can be understood as the resolution which is the same as the resolution of the last playing) and the playing start time of the current playing; the client obtains the video stream from the address of the film source with the same resolution, and starts playing from the playing start time of the current playing according to the resolution of the film source with the same resolution (or according to the resolution of the last playing).
For example, assuming that the client 1 initiates a program playing request for the first time in time slot a, when movie B is played in time slot a, the description file received by the client from the server indicates: the film source address is the address where the standard definition video X of the movie B on the CDN node 1 closest to the client 1 is located, the resolution is 800 × 600, the start playing time is 0:45:20, which is currently default for the system, and then the client 1 obtains the video stream of the standard definition video X from the address where the standard definition video X on the CDN node 1 is located, and starts playing from 0:45:20 according to the resolution of 800 × 600.
When client 1 plays standard definition video X to 1:05:19, and before that the client has set the resolution to high definition 1080 × 720, when client 1 initiates a program play request again, the client receives from the server a description file indicating: the film source address is the address of the high-definition video Y of the movie B on the CDN node 1 closest to the client 1, the resolution is 1080 × 720, and the start time is 1:05:19, then the client 1 obtains the video stream of the standard-definition video Y from the address of the standard-definition video Y on the CDN node 1, starts playing from 0:45:20, and starts playing from 1:05:19 according to the resolution of 1080 × 720.
Similarly, the method of the film source address on the live broadcast server is the same as the above method, and specific reference may be made to the above method, which is not described again.
As can be seen, in the playing method provided in the embodiment of the present invention, after the server receives the program playing request sent by the client, the server obtains the program list and generates the description file describing the program to be played according to the program list and the program playing request, where the description file includes the film source address and the film source attribute information of the program to be played; wherein, the film source address is positioned in a live broadcast server or an on-demand server; and then the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing. By adopting the scheme, when the program to be played is the on-demand program, the video of the on-demand program can be obtained from the on-demand server closest to the client, so that the existing video resource of the on-demand server can be utilized.
An embodiment of the present invention provides a server 01, and as shown in fig. 4, the server 01 includes:
a receiving unit 011, configured to receive a program playing request sent by a client;
a description generating unit 012, configured to acquire a program list and generate a description file describing a program to be played according to the program list and a program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the sending unit 013 is configured to send the description file to the client, so that the client parses the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing.
Optionally, the play request received by the receiving unit 011 includes an address of the client;
when the program playing request is not the first program playing request of the client about the program to be played, the program playing request further includes the resolution adopted when the program to be played is played previously and playing time information according to which the program to be played is to be played.
The playing time information represents the stop time corresponding to the playing progress when the program to be played is previously stopped playing, or represents the expected playing time input to the client.
Alternatively, the description generating unit 012 may be specifically configured to:
if the program to be played is an on-demand program, selecting an on-demand server closest to the client as a target server according to the address of the client; if the program to be played is a live program, determining a live server as a target server;
when the program playing request is a first program playing request of the client about the program to be played, selecting a default film source of the program to be played on a destination server, taking the address of the default film source as a film source address of the program to be played, and taking the resolution of the default film source and the default playing starting time as film source attribute information of the program to be played, thereby obtaining a description file; or
When the program playing request is not the first program playing request of the client about the program to be played, selecting a film source with the same resolution as that adopted when the program to be played is played in the past on a destination server, and taking the address of the film source with the same resolution as the film source address of the program to be played; determining the playing start time of the playing according to the playing time information; and taking the resolution of the film source with the same resolution and the playing start time of the playing as the film source attribute information of the program to be played, thereby obtaining a description file.
The embodiment of the invention provides a server, which acquires a program list and generates a description file for describing a program to be played according to the program list and a program playing request after receiving the program playing request sent by a client, wherein the description file comprises a film source address and film source attribute information of the program to be played; wherein, the film source address is positioned in a live broadcast server or an on-demand server; and then the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing. By adopting the scheme, when the program to be played is the on-demand program, the video of the on-demand program can be obtained from the on-demand server closest to the client, so that the existing video resource of the on-demand server can be utilized.
An embodiment of the present invention provides a client 02, and as shown in fig. 5, the client 02 includes:
a sending unit 021, configured to send a program playing request to a server;
a receiving unit 022, configured to receive a description file describing a program to be played, where the description file is sent by a server; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the parsing and playing unit 023 is configured to parse the description file to obtain a film source address and film source attribute information, and obtain the video stream of the program to be played according to the film source address and the film source attribute information for playing.
Optionally, as shown in fig. 6, the parsing and playing unit 023 may include:
an analyzing unit 0231, configured to analyze the description file to obtain a film source address and film source attribute information; wherein,
if the program playing request is a first program playing request of the client about the program to be played, the acquired film source address is the address of a default film source of the program to be played on a destination server, and the film source attribute information is the resolution of the default film source and the default playing starting time;
if the program playing request is not the first program playing request of the client about the program to be played, the acquired film source address is the address of the film source with the same resolution as that adopted by the target server when the program to be played is played previously, and the film source attribute information is the resolution of the film source with the same resolution and the playing starting time of the playing;
a playing unit 0232, configured to obtain the video stream of the program to be played according to the source address, and play the program to be played according to the resolution and the start playing time included in the source attribute information;
if the program to be played is a video-on-demand program, the target server is a video-on-demand server closest to the client, and if the program to be played is a live program, the target server is a live server; the playing start time of the playing is determined by the server according to the playing time information carried in the program playing request and used for playing the program to be played, and the playing time information according to the playing time information represents the stop time corresponding to the playing progress of the program to be played when the playing is previously stopped, or represents the expected playing time input to the client.
The embodiment of the invention provides a client, which firstly sends a program playing request to a server, and then obtains a description file for describing a program to be played from the server, wherein the description file comprises a film source address and film source attribute information of the program to be played; wherein, the film source address is positioned in a live broadcast server or an on-demand server; and then the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information. By adopting the scheme, when the program to be played is the on-demand program, the video of the on-demand program can be obtained from the on-demand server closest to the client, so that the existing video resource of the on-demand server can be utilized.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A method for playing back a program, the method comprising:
a server receives a program playing request sent by a client;
the server side obtains a program list and generates a description file for describing a program to be played according to the program list and the program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the server sends the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
2. The method of claim 1, wherein the request for playing back the program comprises an address of the client;
when the program playing request is not the first program playing request of the client about the program to be played, the program playing request further comprises the resolution adopted when the program to be played is played previously and playing time information according to which the program to be played is to be played;
the playing time information represents the stop time corresponding to the playing progress when the program to be played is previously stopped playing, or represents the expected playing time input into the client.
3. The method of claim 2, wherein the generating a description file describing the program to be played according to the program guide and the program playing request comprises:
if the program to be played is an on-demand program, selecting an on-demand server closest to the client as a target server according to the address of the client; if the program to be played is a live program, determining that the live server is a target server;
when the program playing request is a first program playing request of the client about the program to be played, selecting a default film source of the program to be played on the destination server, taking an address of the default film source as a film source address of the program to be played, and taking a resolution and a default starting playing time of the default film source as film source attribute information of the program to be played, thereby obtaining the description file; or
When the program playing request is not the first program playing request of the client about the program to be played, selecting a film source with the same resolution as that adopted when the program to be played is played in the past on the destination server, and taking the address of the film source with the same resolution as the film source address of the program to be played; determining the playing start time of the playing according to the playing time information; and taking the resolution of the film source with the same resolution and the playing start time of the playing as the film source attribute information of the program to be played, thereby obtaining the description file.
4. A method for playing back a program, the method further comprising:
the client sends a program playing request to the server;
the client receives a description file which is sent by the server and used for describing a program to be played; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played for playing according to the film source address and the film source attribute information.
5. The method of claim 4, wherein the parsing, by the client, the description file to obtain the film source address and the film source attribute information, and obtaining the video stream of the program to be played for playing according to the film source address and the film source attribute information comprises:
the client analyzes the description file to obtain the film source address and the film source attribute information; wherein,
if the program playing request is a first program playing request of the client about the program to be played, the acquired film source address is an address of a default film source of the program to be played on a destination server, and the film source attribute information is the resolution of the default film source and the default playing starting time;
if the program playing request is not the first program playing request of the client about the program to be played, the acquired film source address is the address of the film source with the same resolution as that adopted by the target server when the program to be played is played previously, and the film source attribute information is the resolution of the film source with the same resolution and the playing starting time of the playing;
the client acquires the video stream of the program to be played according to the film source address, and plays the program to be played according to the resolution and the playing starting time included in the film source attribute information;
if the program to be played is a program on demand, the target server is the program on demand server closest to the client, and if the program to be played is a live program, the target server is the live server; the playing start time of the playing is determined by the server according to the playing time information carried in the program playing request and used for playing the program to be played, and the playing time information according to the playing time information represents the stop time corresponding to the playing progress of the program to be played when the playing is previously stopped, or represents the expected playing time input to the client.
6. A server, characterized in that the server comprises:
the receiving unit is used for receiving a program playing request sent by a client;
the description generation unit is used for acquiring a program list and generating a description file for describing a program to be played according to the program list and the program playing request; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the sending unit is used for sending the description file to the client, so that the client analyzes the description file to obtain the film source address and the film source attribute information, and obtains the video stream of the program to be played according to the film source address and the film source attribute information for playing.
7. The server according to claim 6, wherein the play request received by the receiving unit includes an address of the client;
when the program playing request is not the first program playing request of the client about the program to be played, the program playing request further comprises the resolution adopted when the program to be played is played previously and playing time information according to which the program to be played is to be played;
the playing time information represents the stop time corresponding to the playing progress when the program to be played is previously stopped playing, or represents the expected playing time input into the client.
8. The server according to claim 7, wherein the description generation unit is specifically configured to:
if the program to be played is an on-demand program, selecting an on-demand server closest to the client as a target server according to the address of the client; if the program to be played is a live program, determining that the live server is a target server;
when the program playing request is a first program playing request of the client about the program to be played, selecting a default film source of the program to be played on the destination server, taking an address of the default film source as a film source address of the program to be played, and taking a resolution and a default starting playing time of the default film source as film source attribute information of the program to be played, thereby obtaining the description file; or
When the program playing request is not the first program playing request of the client about the program to be played, selecting a film source with the same resolution as that adopted when the program to be played is played in the past on the destination server, and taking the address of the film source with the same resolution as the film source address of the program to be played; determining the playing start time of the playing according to the playing time information; and taking the resolution of the film source with the same resolution and the playing start time of the playing as the film source attribute information of the program to be played, thereby obtaining the description file.
9. A client, the client comprising:
the sending unit is used for sending a program playing request to the server;
the receiving unit is used for receiving a description file which is sent by the server and used for describing the program to be played; the description file comprises the film source address and the film source attribute information of the program to be played; if the program to be played is a live program, the film source address is located in a live broadcast server, and if the program to be played is an on-demand program, the film source address is located in an on-demand server;
and the analyzing and playing unit is used for analyzing the description file to acquire the film source address and the film source attribute information and acquiring the video stream of the program to be played for playing according to the film source address and the film source attribute information.
10. The client according to claim 9, wherein the parsing and playing unit comprises:
the analysis unit is used for analyzing the description file to acquire the film source address and the film source attribute information; wherein,
if the program playing request is a first program playing request of the client about the program to be played, the acquired film source address is an address of a default film source of the program to be played on a destination server, and the film source attribute information is the resolution of the default film source and the default playing starting time;
if the program playing request is not the first program playing request of the client about the program to be played, the acquired film source address is the address of the film source with the same resolution as that adopted by the target server when the program to be played is played previously, and the film source attribute information is the resolution of the film source with the same resolution and the playing starting time of the playing;
the playing unit is used for acquiring the video stream of the program to be played according to the film source address and playing the program to be played according to the resolution and the playing starting time included in the film source attribute information;
if the program to be played is a video-on-demand program, the target server is a video-on-demand server closest to the client, and if the program to be played is a live program, the target server is the live server; the playing start time of the playing is determined by the server according to the playing time information carried in the program playing request and used for playing the program to be played, and the playing time information according to the playing time information represents the stop time corresponding to the playing progress of the program to be played when the playing is previously stopped, or represents the expected playing time input to the client.
CN201310741035.6A 2013-12-27 2013-12-27 Program playing method, server side and client Pending CN103747285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310741035.6A CN103747285A (en) 2013-12-27 2013-12-27 Program playing method, server side and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310741035.6A CN103747285A (en) 2013-12-27 2013-12-27 Program playing method, server side and client

Publications (1)

Publication Number Publication Date
CN103747285A true CN103747285A (en) 2014-04-23

Family

ID=50504267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310741035.6A Pending CN103747285A (en) 2013-12-27 2013-12-27 Program playing method, server side and client

Country Status (1)

Country Link
CN (1) CN103747285A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967879A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Video play method and apparatus
CN105812850A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 Video file playing method and system thereof
CN105812847A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 HLS video live broadcast method, server and system
CN106791943A (en) * 2016-12-07 2017-05-31 乐视控股(北京)有限公司 Electronic equipment, race loading method and device
WO2017181602A1 (en) * 2016-04-20 2017-10-26 乐视控股(北京)有限公司 On-demand playback method, device, electronic equipment and system
WO2017198153A1 (en) * 2016-05-16 2017-11-23 中兴通讯股份有限公司 Program playing management method, playing method and apparatus, and playing terminal
WO2018145572A1 (en) * 2017-02-07 2018-08-16 中兴通讯股份有限公司 Method and device for implementing vr live streaming, ott service system, and storage medium
CN111010620A (en) * 2019-12-03 2020-04-14 青岛海信电器股份有限公司 Method and device for multimedia resource carousel, electronic equipment and storage medium
CN111131845A (en) * 2019-12-03 2020-05-08 海信视像科技股份有限公司 Method, electronic device and storage medium for multimedia resource carousel
CN112468839A (en) * 2020-11-26 2021-03-09 上海哔哩哔哩科技有限公司 Playback method, system, device and readable storage medium of live content
CN115714766A (en) * 2022-11-08 2023-02-24 北京奇艺世纪科技有限公司 File conversion method, system and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964470A (en) * 2005-11-10 2007-05-16 中国电信股份有限公司 A video on demand/live broadcast system and method
CN101399965A (en) * 2008-09-28 2009-04-01 中兴通讯股份有限公司 Method and device for implementing media content positioning based on EPG server
WO2009140868A1 (en) * 2008-05-20 2009-11-26 华为技术有限公司 P2p based method, device and system for playing media
US20090313657A1 (en) * 2008-06-11 2009-12-17 At&T Intellectual Property I, L.P. System and Method for Scheduling a Remote Recording
CN102075795A (en) * 2010-12-21 2011-05-25 深圳市同洲电子股份有限公司 Method and system for releasing focus television programs
CN102130936A (en) * 2010-08-17 2011-07-20 华为技术有限公司 A method and device for supporting time shifting and looking back in a dynamic HTTP stream transmission scheme
CN102413369A (en) * 2011-11-14 2012-04-11 深圳市同洲电子股份有限公司 Method and system for requesting time-shifted program of digital television
CN102447956A (en) * 2010-09-30 2012-05-09 北京沃安科技有限公司 Method for sharing video of mobile phone and system
CN103200424A (en) * 2013-03-26 2013-07-10 天脉聚源(北京)传媒科技有限公司 Media program editing method and editing system
CN103455505A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Media acquiring method, media acquiring device and media acquiring system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1964470A (en) * 2005-11-10 2007-05-16 中国电信股份有限公司 A video on demand/live broadcast system and method
WO2009140868A1 (en) * 2008-05-20 2009-11-26 华为技术有限公司 P2p based method, device and system for playing media
US20090313657A1 (en) * 2008-06-11 2009-12-17 At&T Intellectual Property I, L.P. System and Method for Scheduling a Remote Recording
CN101399965A (en) * 2008-09-28 2009-04-01 中兴通讯股份有限公司 Method and device for implementing media content positioning based on EPG server
CN102130936A (en) * 2010-08-17 2011-07-20 华为技术有限公司 A method and device for supporting time shifting and looking back in a dynamic HTTP stream transmission scheme
CN102447956A (en) * 2010-09-30 2012-05-09 北京沃安科技有限公司 Method for sharing video of mobile phone and system
CN102075795A (en) * 2010-12-21 2011-05-25 深圳市同洲电子股份有限公司 Method and system for releasing focus television programs
CN102413369A (en) * 2011-11-14 2012-04-11 深圳市同洲电子股份有限公司 Method and system for requesting time-shifted program of digital television
CN103455505A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Media acquiring method, media acquiring device and media acquiring system
CN103200424A (en) * 2013-03-26 2013-07-10 天脉聚源(北京)传媒科技有限公司 Media program editing method and editing system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812850A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 Video file playing method and system thereof
CN105812847A (en) * 2014-12-31 2016-07-27 中国电信股份有限公司 HLS video live broadcast method, server and system
CN104967879B (en) * 2015-03-10 2018-10-19 腾讯科技(深圳)有限公司 Video broadcasting method and device
CN104967879A (en) * 2015-03-10 2015-10-07 腾讯科技(深圳)有限公司 Video play method and apparatus
WO2017181602A1 (en) * 2016-04-20 2017-10-26 乐视控股(北京)有限公司 On-demand playback method, device, electronic equipment and system
WO2017198153A1 (en) * 2016-05-16 2017-11-23 中兴通讯股份有限公司 Program playing management method, playing method and apparatus, and playing terminal
CN106791943A (en) * 2016-12-07 2017-05-31 乐视控股(北京)有限公司 Electronic equipment, race loading method and device
WO2018145572A1 (en) * 2017-02-07 2018-08-16 中兴通讯股份有限公司 Method and device for implementing vr live streaming, ott service system, and storage medium
CN111010620A (en) * 2019-12-03 2020-04-14 青岛海信电器股份有限公司 Method and device for multimedia resource carousel, electronic equipment and storage medium
CN111131845A (en) * 2019-12-03 2020-05-08 海信视像科技股份有限公司 Method, electronic device and storage medium for multimedia resource carousel
CN112468839A (en) * 2020-11-26 2021-03-09 上海哔哩哔哩科技有限公司 Playback method, system, device and readable storage medium of live content
US11706498B2 (en) 2020-11-26 2023-07-18 Shanghai Bilibili Technology Co., Ltd. Playback method, system, device and readable storage medium of live broadcast content
CN115714766A (en) * 2022-11-08 2023-02-24 北京奇艺世纪科技有限公司 File conversion method, system and device and electronic equipment
CN115714766B (en) * 2022-11-08 2025-07-22 北京奇艺世纪科技有限公司 File conversion method, system, device and electronic equipment

Similar Documents

Publication Publication Date Title
CN103747285A (en) Program playing method, server side and client
KR101868612B1 (en) Apparatus and method for providing streaming contents
JP6064249B2 (en) Dynamic adaptive streaming over hypertext transfer protocol client behavior framework and session management implementation
US10432690B1 (en) Manifest partitioning
JP6172688B2 (en) Content-specific identification and timing behavior in dynamic adaptive streaming over hypertext transfer protocols
US9338211B2 (en) Apparatus and method for providing streaming content
CN102547478B (en) Triggered slice on-demand system and method of streaming media based on CDN (Content Distribution Network)
US20160080470A1 (en) Server-side playlist stitching
US10277660B1 (en) Apparatus and method for providing streaming content
US20170134466A1 (en) Server-side session control in media streaming by media player devices
US20160134900A1 (en) Streaming media processing method, apparatus, and system
WO2019014574A1 (en) Processing media data using file tracks for web content
TW201511539A (en) Method and apparatus for processing motion video
CN114401430B (en) Video playback method, device, server, system and storage medium
CN113923502B (en) Live video playing method and device
JP5868433B2 (en) Method and apparatus for resuming suspended media
CN118474481A (en) Method, apparatus and non-volatile computer readable medium for receiving media data
CN106331763B (en) Method for seamlessly playing fragmented media file and device for implementing method
EP3285455B1 (en) Content item aggregation method and related device and communication system
EP3048796A1 (en) Information system, information delivery method and iptv system based on multi-screen interaction
US20180324480A1 (en) Client and Method for Playing a Sequence of Video Streams, and Corresponding Server and Computer Program Product
US10966278B2 (en) Channel acquisition management
CN108271040B (en) Method and device for playing video
CN108156490B (en) Method, system and storage medium for playing back live television by using mobile terminal
KR101936384B1 (en) Method and apparatus for providing playing list to force viewers to watch video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180914

AD01 Patent right deemed abandoned