WO2017101311A1 - 一种实现直播到点播切换的方法、客户端和服务器 - Google Patents

一种实现直播到点播切换的方法、客户端和服务器 Download PDF

Info

Publication number
WO2017101311A1
WO2017101311A1 PCT/CN2016/088451 CN2016088451W WO2017101311A1 WO 2017101311 A1 WO2017101311 A1 WO 2017101311A1 CN 2016088451 W CN2016088451 W CN 2016088451W WO 2017101311 A1 WO2017101311 A1 WO 2017101311A1
Authority
WO
WIPO (PCT)
Prior art keywords
demand
demand video
video
switching
live
Prior art date
Application number
PCT/CN2016/088451
Other languages
English (en)
French (fr)
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 乐视控股(北京)有限公司
Priority to US15/243,215 priority Critical patent/US20170171605A1/en
Publication of WO2017101311A1 publication Critical patent/WO2017101311A1/zh

Links

Images

Classifications

    • 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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • the present invention relates to the field of video playback technologies, and in particular, to a method, a client, and a server for implementing live to on-demand switching.
  • the existing "wheeling station” which is a distinctive TV station, is the hottest program that editors carefully select from the mass video library and broadcasts in chronological order. If the user does not want to search for what to order at the moment, you can first look at the carousel.
  • the carousel can set up multiple programs, including integrated stations, movie stations, TV drama stations, animation stations, sports stations, documentaries, TV stations 1080P and music stations.
  • the carousel channel of the carousel is the first to broadcast 7 ⁇ 24 hours in the world's major channels, realizing “millisecond” switching live broadcast to on-demand.
  • the carousel (live content) can switch the corresponding on-demand content for playback.
  • the carousel is currently playing the tenth episode of the TV series "My name is Hao Cong", and the steps to switch to the tenth episode of the on-demand are as follows:
  • the present invention is to overcome the shortcomings of the existing live broadcast switching on-demand technology, and according to an aspect of the present invention, a method for implementing live to on-demand switching is proposed.
  • the live switching on-demand instruction includes an on-demand video name and an on-demand video set number, or further includes a definition and/or an on-demand video type;
  • the corresponding on-demand video is played according to the on-demand video parameters.
  • the corresponding on-demand video is played according to the on-demand video parameters, including:
  • the start time and the current time of the on-demand video are obtained, and the on-demand video play time is determined according to the start time and the current time of the on-demand video;
  • the on-demand video is played after skipping the title position of the on-demand video, and the on-demand video parameters returned by the server include the title position.
  • the embodiment of the present invention further provides a method for implementing live to on-demand switching, including:
  • the live switching on-demand command is an instruction input by the user based on the carousel, and the live switching on-demand instruction includes an on-demand video name and an on-demand video set number, or includes a definition and/or an on-demand video type. ;
  • the on-demand video parameters of the corresponding on-demand video are obtained, the on-demand video parameters are returned to the guest The client, and instructs the client to play the corresponding on-demand video according to the on-demand video parameters.
  • the on-demand video parameter further includes a slice header position of the on-demand video.
  • the embodiment of the present invention further provides a client that implements live to on-demand switching, including:
  • the instruction acquisition module is configured to acquire a live broadcast on-demand instruction input by the user based on the carousel, and the live broadcast on-demand instruction includes an on-demand video name, an on-demand video set number and definition, or an on-demand video type;
  • a sending module configured to send a live broadcast switching on-demand command to the server, instructing the server to return an on-demand video parameter according to the live switching on-demand command, where the on-demand video parameter includes a corresponding playback URL of the on-demand video;
  • the playing module is configured to play the corresponding on-demand video according to the on-demand video parameter after acquiring the on-demand video parameter.
  • the playing module includes:
  • the obtaining unit is configured to obtain a current play identifier, where the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter;
  • the playing unit is configured to: when the current playing identifier is used to indicate the live broadcast video of the client, obtain the start time and the current time of the on-demand video, and determine the on-demand video playing time according to the start time and the current time of the on-demand video; the on-demand video has been Play on-demand video at the playback time.
  • the playing unit when the current play identifier is used to indicate that the client does not play the on-demand video, the playing unit is further configured to:
  • the on-demand video is played after skipping the title position of the on-demand video, and the on-demand video parameters returned by the server include the title position.
  • the embodiment of the present invention further provides a server for implementing live to on-demand switching, including:
  • the receiving module is configured to receive a live switching on-demand command sent by the client, where the live switching on-demand command is an instruction input by the user based on the carousel, and the live switching on-demand command includes an on-demand video name, an on-demand video set number, and a definition, or includes On-demand video type;
  • a search module configured to search for an on-demand video parameter of the corresponding on-demand video according to the live broadcast switching on-demand instruction, where the on-demand video parameter includes a play URL of the corresponding on-demand video;
  • the sending module is configured to: after obtaining the on-demand video parameter of the corresponding on-demand video, return the on-demand video parameter to the client, and instruct the client to play the corresponding on-demand video according to the on-demand video parameter.
  • the on-demand video parameter further includes a slice header position of the on-demand video.
  • a method, a client, and a server for implementing live-to-on-demand switching provided by an embodiment of the present invention can obtain an accurate broadcast from a server side by transmitting a live broadcast on-demand command including an on-demand video name and an on-demand video set to the server side.
  • the play URL of the on-demand video and then play the on-demand video.
  • the method only needs one step operation to enable the client to obtain the corresponding on-demand video from the server, and quickly and accurately switch to the on-demand playback content, and the operation is simple, and the switching efficiency can be improved.
  • FIG. 1 is a schematic diagram of a first step of a live broadcast handover to on-demand method in the prior art
  • FIG. 2 is a schematic diagram of a second step of a live broadcast switching to on-demand method in the prior art
  • FIG. 3 is a schematic diagram of a third step of a live broadcast handover to on-demand method in the prior art
  • FIG. 4 is a schematic diagram of a fourth step of a live broadcast switching to on-demand method in the prior art
  • FIG. 5 is a flowchart of a method for implementing live-to-on-demand switching on a client side according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for implementing live to on-demand switching on the client side in the first embodiment
  • FIG. 7 is a flowchart of a method for implementing live-to-on-demand switching on a server side according to an embodiment of the present invention
  • FIG. 8 is a flowchart of a method for implementing live to on-demand switching on the server side in Embodiment 2;
  • FIG. 9 is a first structural diagram of a client that implements live-to-on-demand switching according to an embodiment of the present invention.
  • FIG. 10 is a second structural diagram of a client implementing live-to-on-demand switching according to an embodiment of the present invention.
  • FIG. 11 is a structural diagram of a server for realizing live to on-demand switching according to an embodiment of the present invention.
  • FIG. 12 is a structural block diagram of a client for realizing live to on-demand switching according to an embodiment of the present invention.
  • FIG. 13 is a structural block diagram of a server for implementing live to on-demand switching according to an embodiment of the present invention.
  • a method for implementing live-to-on-demand switching on a client side includes steps 101-103:
  • Step 101 Acquire a live switching on-demand command input by the user based on the carousel, the live switching on-demand instruction includes an on-demand video name and an on-demand video set number, or further includes a definition and/or an on-demand video type.
  • the live broadcast on-demand command that needs to be sent to the server includes the on-demand video name and the on-demand video set number, so that the server can accurately locate the video that the user needs to watch and want to watch according to the on-demand video name and the number of on-demand video sets.
  • Episode Specifically, the user first needs to select the video program that he wants to order, and then the remote controller can be used to send an instruction (for example, pressing the confirmation button), and the local device or the player can determine the on-demand in the live broadcast switching on-demand command according to the program selected by the user.
  • Video name and number of on-demand video episodes are examples of the video programs.
  • the “on-demand video set number” in the embodiment of the present invention is used to determine a unique video in the video related to the on-demand video name.
  • the number of on-demand video episodes may be the number of episodes of the TV series (which episode of the TV series, such as episode 10), or the number of episodes of the television program (which phase of the television program, such as 2015-9-27), Or the release time of the movie (for example, some movies with the same name, can be distinguished according to the release time or other information) and so on.
  • the live broadcast on-demand command may further include a definition for selecting a desired definition in the video of the plurality of definition formats.
  • the server returns a resolution on-demand video by default, or returns the on-demand video that is most suitable for the client's network state according to the network state of the client.
  • the live switching on-demand command may further include an on-demand video type
  • the on-demand video Types include TV dramas, movies, variety shows, documentaries, and more.
  • the server can distinguish and cull programs having the same video name in other on-demand video types according to the type of the on-demand video; on the other hand, the server can narrow the search range according to the on-demand video type, that is, only in the corresponding on-demand video type set. Search for on-demand videos that users need.
  • Step 102 Send a live broadcast switch-on-demand command to the server, instruct the server to return an on-demand video parameter according to the live broadcast switch-on-demand command, and the on-demand video parameter includes a play URL of the corresponding on-demand video.
  • the client may determine the live broadcast switch-on-demand command according to the operation of the user, and then send the live broadcast switch-on-demand command to the server, and after the server returns the play URL of the corresponding on-demand video, the client may use the play URL ( Uniform Resource Locator, Uniform Resource Locator) for playback.
  • the play URL Uniform Resource Locator, Uniform Resource Locator
  • the on-demand video parameter may also include a title position of the on-demand video, so that the user can directly watch the positive video of the on-demand video by skipping the title position through the client.
  • Step 103 After acquiring the on-demand video parameters, play the corresponding on-demand video according to the on-demand video parameters.
  • the client plays the corresponding on-demand video according to the play URL in the on-demand video parameter.
  • a method for realizing live-to-on-demand switching on the client side is provided by the embodiment of the present invention.
  • the live broadcast switching on-demand command including the on-demand video name and the on-demand video set number is sent to the server side, so that accurate on-demand can be obtained from the server side.
  • the play URL of the video which in turn plays the on-demand video.
  • the method only needs one step operation to enable the client to obtain the corresponding on-demand video from the server, and quickly and accurately switch to the on-demand playback content, and the operation is simple, and the switching efficiency can be improved.
  • the corresponding on-demand video is played according to the on-demand video parameter in step 103, specifically including steps A1-A3:
  • Step A1 Obtain a current play identifier, where the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter;
  • step A2 when the current play identifier is used to indicate the live broadcast video of the client, the start time and the current time of the on-demand video are obtained, and the on-demand video play time is determined according to the start time and the current time of the on-demand video;
  • Step A3 Play the on-demand video at the time when the on-demand video has been played.
  • step A4 if the current play identifier is used to indicate that the client does not play the on-demand video, proceed to step A4:
  • step A4 the on-demand video is played at the start time of the on-demand video; or, the on-demand video is played after skipping the title position of the on-demand video, and the on-demand video parameters returned by the server include the title position.
  • the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter, that is, whether the client plays the on-demand video synchronously with the server.
  • the current play identifier may be represented by a status bit; for example, the status bits are divided into 0 and 1.
  • the status bit 0 is used to indicate that the current play identifier is used to indicate the live broadcast video of the client, and the status bit 1 is used to indicate the current play identifier.
  • the status bit 1 is used to indicate that the current play identifier is used to indicate the live broadcast video of the client, and the status bit 0 is used to indicate that the current play identifier is used to indicate that the client does not play the on-demand video.
  • the current play identifier may be divided into two states: the current play identifier may exist, and the client may obtain the current play identifier, and the client broadcasts the on-demand video at the same time (equivalent to the current play identifier is used to indicate the client). If the current playback identifier is in a non-existent state, the client cannot obtain the current playback identifier, or the current playback identifier obtained by the client is empty. In this case, the client is instructed to perform the above step A4 (equivalent The current play identifier is used to indicate that the client does not broadcast the on-demand video.
  • the method for implementing the live broadcast to the on-demand switching provided by the embodiment of the present invention can determine whether the on-demand video is played according to the user's needs by determining the current play identifier, and can meet the user's needs without cumbersome operations, and can also improve Switching efficiency.
  • the user only needs to send a live broadcast switch-on-demand command to obtain the URL of the on-demand video.
  • FIG. 6, which includes steps 201-208:
  • Step 201 The client acquires a live broadcast on-demand command input by the user based on the carousel.
  • the live broadcast switching on-demand instruction includes an on-demand video name, an on-demand video set number, and a definition.
  • Step 202 Send a live broadcast on-demand command to the server.
  • the server After step 202, the server returns the on-demand video parameters according to the live switching on-demand command, and the on-demand video parameters include the play URL and the title of the corresponding on-demand video.
  • Step 203 Receive the on-demand video parameters returned by the server.
  • Step 204 Acquire a current play identifier.
  • the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter.
  • Step 205 Determine whether the current play identifier is used to instruct the client to broadcast the on-demand video. After determining that the current play identifier is used to instruct the client to broadcast the on-demand video, proceed to step 206. Otherwise, proceed to step 208.
  • Step 206 Acquire an on-demand video start playing time and a current time, and determine an on-demand video elapsed time according to the on-demand video start playing time and the current time.
  • the current time minus the start play time is the time when the on-demand video has been played.
  • the on-demand video starts playing at 15:00:00 and the current time is 15:20:00.
  • the on-demand video has been played for 20 minutes, that is, the on-demand video has been played for 20 minutes.
  • Step 207 Play an on-demand video at the time when the on-demand video has been played.
  • the on-demand video starts playing at the 20th minute position of the on-demand video timeline.
  • Step 208 Play the on-demand video after skipping the title position of the on-demand video.
  • the on-demand video parameters returned by the server can determine the title position of the on-demand video.
  • the embodiment of the present invention further provides a method for implementing live-to-on-demand switching on the server side.
  • the method includes steps 301-303:
  • Step 301 Receive a live switching on-demand command sent by the client, where the live-switching on-demand command is an instruction input by the user based on the carousel, and the live switching on-demand command includes an on-demand video name and an on-demand video set number, or further includes a definition and/or Or on-demand video type.
  • Step 302 Search for an on-demand video parameter of the corresponding on-demand video according to the live handover on-demand command, and the on-demand video parameter includes a play URL of the corresponding on-demand video.
  • the server may determine the set of on-demand videos that need to be searched according to the type of the on-demand video in the live-on switching on-demand command, and the on-demand video required by the user may be accurately determined according to the on-demand video name and the number of on-demand video sets, and may be finally determined according to the definition.
  • the on-demand of the client The URL of the video.
  • the on-demand video parameter further includes a title location of the on-demand video.
  • the client can skip the title position of the on-demand video and directly play the positive part of the user's interest.
  • Step 303 After obtaining the on-demand video parameters of the corresponding on-demand video, return the on-demand video parameters to the client, and instruct the client to play the corresponding on-demand video according to the on-demand video parameters.
  • the method for implementing live-to-on-demand switching on the server side provided by the embodiment of the present invention can directly and accurately determine the on-demand video required by the user according to the live broadcast switching on-demand command sent by the client, thereby returning accurate on-demand video playback to the client.
  • the URL which in turn causes the client to play the on-demand video.
  • the method only needs one step operation to send a corresponding link of the on-demand video to the client, so that the client can quickly and accurately switch to the on-demand content, the operation is simple, and the switching efficiency can be improved.
  • the user only needs to send a live broadcast switch-on-demand command to obtain the URL of the on-demand video.
  • FIG. 8 which includes steps 401-410.
  • Step 401 The client acquires a live broadcast on-demand command input by the user based on the carousel.
  • the live broadcast switching on-demand instruction includes an on-demand video name, an on-demand video set number, a definition, and an on-demand video type.
  • Step 402 The client sends a live switching on-demand command to the server.
  • Step 403 The server searches for and determines an on-demand video parameter of the corresponding on-demand video according to the live handover on-demand instruction.
  • the on-demand video parameters include a play URL and a slice header position of the corresponding on-demand video.
  • Step 404 The server sends the on-demand video parameter to the client.
  • Step 405 The client receives the on-demand video parameter returned by the server.
  • Step 406 The client acquires the current play identifier.
  • the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter.
  • Step 407 The client determines whether the current play identifier is used to instruct the client to broadcast the on-demand video. After determining that the current play identifier is used to instruct the client to broadcast the on-demand video, proceed to step 408. Otherwise, proceed to step 410.
  • Step 408 The client obtains the on-play time and the current time of the on-demand video, and determines the on-demand video elapsed time according to the on-demand video start time and the current time.
  • Step 409 The client plays the on-demand video at the time when the on-demand video has been played.
  • Step 410 The client plays the on-demand video after skipping the title position of the on-demand video.
  • a method for implementing live-to-on-demand switching is provided by the embodiment of the present invention.
  • the live-on switching on-demand command including the on-demand video name and the on-demand video set number is sent to the server side, so that accurate on-demand video playback can be obtained from the server side.
  • the URL which in turn plays the on-demand video.
  • the method only needs one step operation to enable the client to obtain the corresponding on-demand video from the server, and quickly and accurately switch to the on-demand playback content, and the operation is simple, and the switching efficiency can be improved.
  • By judging the current playing identifier it is possible to determine whether to play the on-demand video according to the user's needs, and the user's demand can be satisfied without cumbersome operations, and the switching efficiency can also be improved.
  • the method flow of realizing live to on-demand switching is described in detail above.
  • the method can also be implemented by a corresponding device.
  • the structure and function of the device are described in detail below.
  • a client that implements live-to-on-demand switching is provided in the embodiment of the present invention. As shown in FIG. 9, the client includes:
  • the instruction acquisition module 51 is configured to acquire a live broadcast on-demand command input by the user based on the carousel, and the live broadcast on-demand instruction includes an on-demand video name, an on-demand video set number, and a definition, or an on-demand video type.
  • the sending module 52 is configured to send a live broadcast switch-on-demand command to the server, and instruct the server to return an on-demand video parameter according to the live broadcast switching-on-demand command, where the on-demand video parameter includes a play URL of the corresponding on-demand video;
  • the playing module 53 is configured to play the corresponding on-demand video according to the on-demand video parameter after acquiring the on-demand video parameter.
  • the playing module 53 specifically includes: an obtaining unit 531 and a playing unit 532.
  • the obtaining unit 531 is configured to obtain a current play identifier, where the current play identifier is used to indicate whether the client broadcasts the on-demand video after acquiring the on-demand video parameter.
  • the playing unit 532 is configured to: when the current play identifier is used to indicate the live broadcast video of the client, obtain the on-play time and the current time of the on-demand video, and determine the on-demand video play time according to the start time and the current time of the on-demand video; the on-demand video has been Play on-demand video at the playback time.
  • the playing unit 532 is further configured to:
  • the on-demand video is played after skipping the title position of the on-demand video, and the on-demand video parameters returned by the server include the title position.
  • the embodiment of the present invention further provides a server for implementing live-to-on-demand switching.
  • the server includes:
  • the receiving module 61 is configured to receive a live switching on-demand command sent by the client, where the live switching on-demand command is an instruction input by the user based on the carousel, and the live switching on-demand command includes an on-demand video name, an on-demand video set number, and a definition, or Including on-demand video types;
  • the searching module 62 is configured to search for an on-demand video parameter of the corresponding on-demand video according to the live switching on-demand command, where the on-demand video parameter includes a play URL of the corresponding on-demand video;
  • the sending module 63 is configured to: after obtaining the on-demand video parameter of the corresponding on-demand video, return the on-demand video parameter to the client, and instruct the client to play the corresponding on-demand video according to the on-demand video parameter.
  • the on-demand video parameters also include the in-video location of the on-demand video.
  • a method, a client, and a server for implementing live-to-on-demand switching provided by an embodiment of the present invention can obtain an accurate broadcast from a server side by transmitting a live broadcast on-demand command including an on-demand video name and an on-demand video set to the server side.
  • the play URL of the on-demand video and then play the on-demand video.
  • the method only needs one step operation to enable the client to obtain the corresponding on-demand video from the server, and quickly and accurately switch to the on-demand playback content, and the operation is simple, and the switching efficiency can be improved.
  • FIG. 12 is a block diagram showing a structure of a client implementing live to on-demand switching according to another embodiment of the present invention.
  • the client 1100 may be a host server with computing capabilities, A human computer PC, or a portable computer or terminal that can be carried.
  • the specific embodiments of the present invention do not limit the specific implementation of the computing node.
  • the client 1100 includes a processor 1110, a communications interface 1120, a memory array 1130, and a bus 1140.
  • the processor 1110, the communication interface 1120, and the memory 1130 complete communication with each other through the bus 1140.
  • the communication interface 1120 is configured to communicate with a network element, where the network element includes, for example, a virtual machine management center, shared storage, and the like.
  • the processor 1110 is configured to execute a program.
  • the processor 1110 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • ASIC Application Specific Integrated Circuit
  • the memory 1130 is used to store files.
  • the memory 1130 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • Memory 1130 can also be a memory array.
  • the memory 1130 may also be partitioned, and the blocks may be combined into a virtual volume according to certain rules.
  • the above program may be program code including computer operating instructions. This program can be used to:
  • a method for implementing live to on-demand switching including:
  • the live switching on-demand instruction includes an on-demand video name and an on-demand video set number, or further includes a definition and/or an on-demand video type;
  • the corresponding on-demand video is played according to the on-demand video parameters.
  • the corresponding on-demand video is played according to the on-demand video parameters, including:
  • the start time and the current time of the on-demand video are obtained, and the on-demand video play time is determined according to the start time and the current time of the on-demand video;
  • the on-demand video is played after skipping the title position of the on-demand video, and the on-demand video parameters returned by the server include the title position.
  • FIG. 13 is a block diagram showing the structure of a server for realizing live to on-demand switching according to another embodiment of the present invention.
  • the server 2200 may be a host server having a computing capability, a personal computer PC, or a portable computer or terminal that can be carried.
  • the specific embodiments of the present invention do not limit the specific implementation of the computing node.
  • the server 2200 includes a processor 2210, a communications interface 2220, a memory array 2230, and a bus 2240.
  • the processor 2210, the communication interface 2220, and the memory 2230 complete communication with each other through the bus 2240.
  • the communication interface 2220 is for communicating with a network element, wherein the network element includes, for example, a virtual machine management center, shared storage, and the like.
  • the processor 2210 is for executing a program.
  • the processor 2210 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention.
  • ASIC Application Specific Integrated Circuit
  • the memory 2230 is for storing files.
  • the memory 2230 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • Memory 2230 can also be a memory array.
  • the memory 2230 may also be partitioned, and the blocks may be combined into a virtual volume according to certain rules.
  • the above program may be program code including computer operating instructions. This program can be used to:
  • a method for implementing live to on-demand switching including:
  • the live switching on-demand command is an instruction input by the user based on the carousel, and the live switching on-demand instruction includes an on-demand video name and an on-demand video set number, or includes a definition and/or an on-demand video type. ;
  • the on-demand video parameters are returned to the client, and the client is instructed to play the corresponding on-demand video according to the on-demand video parameters.
  • the on-demand video parameter further includes a slice header position of the on-demand video.
  • FIG. 5 to FIG. 13 As an example, which does not mean that the specific examples applied to the present invention can be limited to In a particular process or embodiment structure, one of ordinary skill in the art will appreciate that the specific embodiments provided above are only a few examples of various preferred uses, and any embodiment embodying the claims of the present invention should be in the present invention. Within the scope of the technical solution.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本发明公开了一种实现直播到点播切换的方法、客户端和服务器,其中,该方法包括:获取用户基于轮播台输入的直播切换点播指令,直播切换点播指令包括点播视频名称和点播视频集数;将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数;获取点播视频参数后,根据点播视频参数播放相应的点播视频。该方法只需要一步操作即可使客户端从服务器获取相应的点播视频,快速准确地切换至点播播放内容,操作简单,可以提高切换效率。

Description

一种实现直播到点播切换的方法、客户端和服务器
本申请要求在2015年12月15日提交中国专利局、申请号为201510939930.8、发明名称为“一种实现直播到点播切换的方法、客户端和服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及视频播放技术领域,具体地,涉及一种实现直播到点播切换的方法、客户端和服务器。
背景技术
现有的“轮播台”,它是一个有特色的电视台,是编辑们从海量视频库里为用户精挑细选的时下最热节目,并按照时间顺序播出。如果用户一时没想好搜索点播什么内容,可以先看看轮播台。轮播台为满足不同爱好用户的需求,可以设置多档节目,包括综合台、电影台、电视剧台、动漫台、体育台、纪录片台、电视台1080P和音乐台等,观看方便,换台快捷。轮播台的轮播频道首创全球数大频道7×24小时播放,实现“毫秒级”切换直播转点播。
轮播台(直播内容)可以切换对应的点播内容进行播放,具体的,例如,轮播台当前播放为电视剧《我叫郝聪明》第10集,切换为点播第十集的步骤如下:
1)、选择当前播放剧集,如我叫郝聪明第10集。具体参见图1所示。
2)、按确定键后进入TV版点播对应的电视剧。具体参见图2所示。
3)、选择第10集。具体参见图3所示。
4)、确定播放,从头开始播放。具体参见图4所示。
在实现本发明过程中,发明人发现现有技术中至少存在如下问题:
1、操作繁琐。
2、用户按确定键并不能立即定位到选择的剧集,如《我叫郝聪明》第10集或第11集。
发明内容
本发明是为了克服现有直播切换点播技术中交互流程过于繁琐的缺陷,根据本发明的一个方面,提出一种实现直播到点播切换的方法。
本发明实施例提供的一种实现直播到点播切换的方法,包括:
获取用户基于轮播台输入的直播切换点播指令,直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL;
获取点播视频参数后,根据点播视频参数播放相应的点播视频。
在上述技术方案中,根据点播视频参数播放相应的点播视频,包括:
获取当前播放标识,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频;
在当前播放标识用于指示客户端直播点播视频时,获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间;
在点播视频已播放时间处播放点播视频。
在上述技术方案中,在当前播放标识用于指示客户端不直播点播视频时,
在点播视频的开始时间处播放点播视频;或
跳过点播视频的片头位置后播放点播视频,服务器返回的点播视频参数包括片头位置。
基于同样的发明构思,本发明实施例还提供一种实现直播到点播切换的方法,包括:
接收客户端发送的直播切换点播指令,直播切换点播指令为用户基于轮播台输入的指令,且直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
根据直播切换点播指令搜索相应点播视频的点播视频参数,点播视频参数包括相应的点播视频的播放URL;
在获取到相应点播视频的点播视频参数后,将点播视频参数返回至客 户端,并指示客户端根据点播视频参数播放相应的点播视频。
在上述技术方案中,点播视频参数还包括点播视频的片头位置。
本发明实施例还提供一种实现直播到点播切换的客户端,包括:
指令获取模块,用于获取用户基于轮播台输入的直播切换点播指令,直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
发送模块,用于将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL;
播放模块,用于在获取点播视频参数后,根据点播视频参数播放相应的点播视频。
在上述技术方案中,播放模块包括:
获取单元,用于获取当前播放标识,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频;
播放单元,用于在当前播放标识用于指示客户端直播点播视频时,获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间;在点播视频已播放时间处播放点播视频。
在上述技术方案中,在当前播放标识用于指示客户端不直播点播视频时,播放单元还用于:
在点播视频的开始时间处播放点播视频;或
跳过点播视频的片头位置后播放点播视频,服务器返回的点播视频参数包括片头位置。
基于同样的发明构思,本发明实施例还提供一种实现直播到点播切换的服务器,包括:
接收模块,用于接收客户端发送的直播切换点播指令,直播切换点播指令为用户基于轮播台输入的指令,且直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
搜索模块,用于根据直播切换点播指令搜索相应点播视频的点播视频参数,点播视频参数包括相应的点播视频的播放URL;
发送模块,用于在获取到相应点播视频的点播视频参数后,将点播视频参数返回至客户端,并指示客户端根据点播视频参数播放相应的点播视频。
在上述技术方案中,点播视频参数还包括点播视频的片头位置。
本发明实施例提供的一种实现直播到点播切换的方法、客户端和服务器,通过将包含点播视频名称和点播视频集数的直播切换点播指令发送至服务器侧,从而可以从服务器侧处获取精确的点播视频的播放URL,进而播放该点播视频。该方法只需要一步操作即可使客户端从服务器获取相应的点播视频,快速准确地切换至点播播放内容,操作简单,可以提高切换效率。通过判断当前播放标识,从而可以根据用户需求确定是否对该点播视频进行播放,用户与播放器之间的交互流程简单,不需要繁琐的操作即可满足用户的需求,同时也可以提高切换效率。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。
下面通过附图和实施例,对本发明的技术方案做进一步的详细描述。
附图说明
附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。在附图中:
图1为现有技术中直播切换到点播方法第一步的示意图;
图2为现有技术中直播切换到点播方法第二步的示意图;
图3为现有技术中直播切换到点播方法第三步的示意图;
图4为现有技术中直播切换到点播方法第四步的示意图;
图5为本发明实施例中客户端侧实现直播到点播切换的方法流程图;
图6为实施例一中客户端侧实现直播到点播切换的方法流程图;
图7为本发明实施例中服务器侧实现直播到点播切换的方法流程图;
图8为实施例二中服务器侧实现直播到点播切换的方法流程图;
图9为本发明实施例中实现直播到点播切换的客户端的第一结构图;
图10为本发明实施例中实现直播到点播切换的客户端的第二结构图;
图11为本发明实施例中实现直播到点播切换的服务器的结构图;
图12为本发明实施例中实现直播到点播切换的客户端的结构框图;
图13为本发明实施例中实现直播到点播切换的服务器的结构框图。
具体实施方式
下面结合附图,对本发明的具体实施方式进行详细描述,但应当理解本发明的保护范围并不受具体实施方式的限制。
根据本发明实施例,提供了一种客户端侧实现直播到点播切换的方法,参见图5所示,该方法包括步骤101-103:
步骤101:获取用户基于轮播台输入的直播切换点播指令,该直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型。
在本发明实施例中,需要发送至服务器端的直播切换点播指令包括点播视频名称和点播视频集数,从而服务器根据点播视频名称和点播视频集数即可以准确定位用户需要观看的视频和想看的集数。具体的,用户首先需要选中想要点播的视频节目,之后操作遥控器即可发送指令(例如按下确认按键),本地设备或播放器根据用户选中的节目即可确定直播切换点播指令中的点播视频名称和点播视频集数。
需要说明的是,本发明实施例中的“点播视频集数”用于在与该点播视频名称相关的视频中确定唯一的视频。具体的,点播视频集数可以为电视剧的集数(电视剧的哪一集,如第10集),或者电视节目的期数(电视节目的哪一期,如第2015-9-27期),或者电影的上映时间(例如某些电影同名,可以根据上映时间或其他信息进行区分)等。
可选的,该直播切换点播指令还可以包括清晰度,用于在多种清晰度格式的视频中选取所需的清晰度。当直播切换点播指令中不包括清晰度时,服务器默认返回一种清晰度的点播视频,或者根据客户端的网络状态返回最适合客户端网络状态的清晰度的点播视频。
可选的,该直播切换点播指令还可以包括点播视频类型,该点播视频 类型具体包括电视剧、电影、综艺节目、纪录片等。一方面,服务器可以根据该点播视频类型区分并剔除其他点播视频类型中具有相同视频名称的节目;另一方面,服务器可以根据该点播视频类型缩小搜索范围,即只在相应的点播视频类型集合中搜索用户需要的点播视频。
步骤102:将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL。
在本发明实施例中,客户端根据用户的操作可以确定直播切换点播指令,进而可以将直播切换点播指令发送至服务器,待服务器返回相应的点播视频的播放URL后,即可根据该播放URL(Uniform Resource Locator,统一资源定位符)进行播放。
可选的,点播视频参数还可以包括点播视频的片头位置,从而方便用户通过客户端跳过片头位置,从而直接观看点播视频的正片。
步骤103:获取点播视频参数后,根据点播视频参数播放相应的点播视频。
具体的,客户端根据点播视频参数中的播放URL播放相应的点播视频。
本发明实施例提供的一种客户端侧实现直播到点播切换的方法,通过将包含点播视频名称和点播视频集数的直播切换点播指令发送至服务器侧,从而可以从服务器侧处获取精确的点播视频的播放URL,进而播放该点播视频。该方法只需要一步操作即可使客户端从服务器获取相应的点播视频,快速准确地切换至点播播放内容,操作简单,可以提高切换效率。
可选的,步骤103中的根据点播视频参数播放相应的点播视频,具体包括步骤A1-A3:
步骤A1、获取当前播放标识,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频;
步骤A2、在当前播放标识用于指示客户端直播点播视频时,获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间;
步骤A3、在点播视频已播放时间处播放点播视频。
可选的,在上述步骤A1后,若当前播放标识用于指示客户端不直播点播视频,则继续步骤A4:
步骤A4、在点播视频的开始时间处播放点播视频;或者,跳过点播视频的片头位置后播放点播视频,服务器返回的点播视频参数包括片头位置。
在本发明实施例中,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频,即指示客户端是否与服务器同步播放该点播视频。具体的,当前播放标识可以以一个状态位来表示;例如状态位分为0和1,状态位0用于表示当前播放标识用于指示客户端直播点播视频,状态位1用于表示当前播放标识用于指示客户端不直播点播视频;或者,状态位1用于表示当前播放标识用于指示客户端直播点播视频,状态位0用于表示当前播放标识用于指示客户端不直播点播视频。
或者,当前播放标识可以分为存在或不存在两种状态,在当前播放标识存在时,客户端可以获取到当前播放标识,此时指示客户端直播点播视频(相当于当前播放标识用于指示客户端直播点播视频);若当前播放标识为不存在的状态,则客户端不能获取到当前播放标识,或者说客户端获取到的当前播放标识为空,此时指示客户端进行上述步骤A4(相当于当前播放标识用于指示客户端不直播该点播视频)。
本发明实施例提供的实现直播到点播切换的方法,通过判断当前播放标识,从而可以根据用户需求确定是否对该点播视频进行播放,不需要繁琐的操作即可满足用户的需求,同时也可以提高切换效率。
下面通过一个实施例详细介绍客户端侧实现直播到点播切换的方法流程。
实施例一
在实施例一中,用户通过客户端仅仅需要发送直播切换点播指令即可获取到点播视频的URL,具体参见图6所示,包括步骤201-208:
步骤201:客户端获取用户基于轮播台输入的直播切换点播指令。
在实施例一中,该直播切换点播指令包括点播视频名称、点播视频集数和清晰度。
步骤202:将直播切换点播指令发送至服务器。
步骤202后,服务器会根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL和片头位置。
步骤203:接收服务器返回的点播视频参数。
步骤204:获取当前播放标识。
实施例一中,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频。
步骤205:判断当前播放标识是否用于指示客户端直播该点播视频,在确定当前播放标识用于指示客户端直播该点播视频后,继续步骤206,否则继续步骤208。
步骤206:获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间。
具体的,当前时间减去开始播放时间即为点播视频已播放时间。例如,点播视频开始播放时间为15:00:00,当前时间为15:20:00,则点播视频已播放时间为20分钟,即该点播视频已经播放了20分钟。
步骤207:在点播视频已播放时间处播放点播视频。
具体的,以上述例子为例,即在点播视频时间轴的第20分钟位置处开始播放该点播视频。
步骤208:跳过点播视频的片头位置后播放点播视频。
其中,根据服务器返回的点播视频参数即可以确定点播视频的片头位置。
基于同样的发明构思,本发明实施例还提供一种服务器侧实现直播到点播切换的方法,参见图7所示,该方法包括步骤301-303:
步骤301:接收客户端发送的直播切换点播指令,该直播切换点播指令为用户基于轮播台输入的指令,且直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型。
步骤302:根据直播切换点播指令搜索相应点播视频的点播视频参数,点播视频参数包括相应的点播视频的播放URL。
具体的,服务器根据直播切换点播指令中的点播视频类型可以确定需要搜索的点播视频的集合,根据点播视频名称和点播视频集数即可以精确确定用户所需的点播视频,根据清晰度可以最终确定返回至客户端的点播 视频的URL。
可选的,该点播视频参数还包括点播视频的片头位置。客户端在获取到该片头位置后,可以跳过点播视频的片头位置,直接播放用户感兴趣的正片部分。
步骤303:在获取到相应点播视频的点播视频参数后,将点播视频参数返回至客户端,并指示客户端根据点播视频参数播放相应的点播视频。
本发明实施例提供的一种服务器侧实现直播到点播切换的方法,根据客户端发送的直播切换点播指令可以直接准确地确定用户所需的点播视频,从而向客户端返回精确的点播视频的播放URL,进而使客户端播放该点播视频。该方法只需要一步操作即可向客户端发送相应的点播视频的链接,可以使客户端快速准确地切换至点播播放内容,操作简单,同时可以提高切换效率。
下面通过实施例二详细介绍客户端和服务器实现直播到点播切换方法的交互流程。
实施例二
在实施例二中,用户通过客户端仅仅需要发送直播切换点播指令即可获取到点播视频的URL,具体参见图8所示,包括步骤401-410:
步骤401:客户端获取用户基于轮播台输入的直播切换点播指令。
在实施例二中,该直播切换点播指令包括点播视频名称、点播视频集数、清晰度和点播视频类型。
步骤402:客户端将直播切换点播指令发送至服务器。
步骤403:服务器根据直播切换点播指令搜索并确定相应点播视频的点播视频参数。
具体的,在实施例二中,点播视频参数包括相应的点播视频的播放URL和片头位置。
步骤404:服务器将该点播视频参数发送至客户端。
步骤405:客户端接收服务器返回的点播视频参数。
步骤406:客户端获取当前播放标识。
实施例二中,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频。
步骤407:客户端判断当前播放标识是否用于指示客户端直播该点播视频,在确定当前播放标识用于指示客户端直播该点播视频后,继续步骤408,否则继续步骤410。
步骤408:客户端获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间。
步骤409:客户端在点播视频已播放时间处播放点播视频。
步骤410:客户端跳过点播视频的片头位置后播放点播视频。
本发明实施例提供的一种实现直播到点播切换的方法,通过将包含点播视频名称和点播视频集数的直播切换点播指令发送至服务器侧,从而可以从服务器侧处获取精确的点播视频的播放URL,进而播放该点播视频。该方法只需要一步操作即可使客户端从服务器获取相应的点播视频,快速准确地切换至点播播放内容,操作简单,可以提高切换效率。通过判断当前播放标识,从而可以根据用户需求确定是否对该点播视频进行播放,不需要繁琐的操作即可满足用户的需求,同时也可以提高切换效率。
以上详细介绍了该实现直播到点播切换的方法流程,该方法也可以通过相应的装置实现,下面详细介绍该装置的结构和功能。
本发明实施例提供的一种实现直播到点播切换的客户端,参见图9所示,该客户端包括:
指令获取模块51,用于获取用户基于轮播台输入的直播切换点播指令,直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
发送模块52,用于将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL;
播放模块53,用于在获取点播视频参数后,根据点播视频参数播放相应的点播视频。
可选的,参见图10所示,播放模块53具体包括:获取单元531和播放单元532。
获取单元531用于获取当前播放标识,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频;
播放单元532用于在当前播放标识用于指示客户端直播点播视频时,获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间;在点播视频已播放时间处播放点播视频。
可选的,在当前播放标识用于指示客户端不直播点播视频时,播放单元532还用于:
在点播视频的开始时间处播放点播视频;或
跳过点播视频的片头位置后播放点播视频,服务器返回的点播视频参数包括片头位置。
基于同样的发明构思,本发明实施例还提供一种实现直播到点播切换的服务器,参见图11所示,该服务器包括:
接收模块61,用于接收客户端发送的直播切换点播指令,直播切换点播指令为用户基于轮播台输入的指令,且直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
搜索模块62,用于根据直播切换点播指令搜索相应点播视频的点播视频参数,点播视频参数包括相应的点播视频的播放URL;
发送模块63,用于在获取到相应点播视频的点播视频参数后,将点播视频参数返回至客户端,并指示客户端根据点播视频参数播放相应的点播视频。
可选的,点播视频参数还包括点播视频的片头位置。
本发明实施例提供的一种实现直播到点播切换的方法、客户端和服务器,通过将包含点播视频名称和点播视频集数的直播切换点播指令发送至服务器侧,从而可以从服务器侧处获取精确的点播视频的播放URL,进而播放该点播视频。该方法只需要一步操作即可使客户端从服务器获取相应的点播视频,快速准确地切换至点播播放内容,操作简单,可以提高切换效率。通过判断当前播放标识,从而可以根据用户需求确定是否对该点播视频进行播放,用户与播放器之间的交互流程简单,不需要繁琐的操作即可满足用户的需求,同时也可以提高切换效率。
图12示出了本发明的另一个实施例的一种实现直播到点播切换的客户端结构框图。所述客户端1100可以是具备计算能力的主机服务器、个 人计算机PC、或者可携带的便携式计算机或终端等。本发明具体实施例并不对计算节点的具体实现做限定。
该客户端1100包括处理器(processor)1110、通信接口(Communications Interface)1120、存储器(memory array)1130和总线1140。其中,处理器1110、通信接口1120、以及存储器1130通过总线1140完成相互间的通信。
通信接口1120用于与网元通信,其中网元包括例如虚拟机管理中心、共享存储等。
处理器1110用于执行程序。处理器1110可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。
存储器1130用于存放文件。存储器1130可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器1130也可以是存储器阵列。存储器1130还可能被分块,并且所述块可按一定的规则组合成虚拟卷。
在一种可能的实施方式中,上述程序可为包括计算机操作指令的程序代码。该程序具体可用于:
在第一方面,提供一种实现直播到点播切换的方法,包括:
获取用户基于轮播台输入的直播切换点播指令,直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
将直播切换点播指令发送至服务器,指示服务器根据直播切换点播指令返回点播视频参数,点播视频参数包括相应的点播视频的播放URL;
获取点播视频参数后,根据点播视频参数播放相应的点播视频。
在上述技术方案中,根据点播视频参数播放相应的点播视频,包括:
获取当前播放标识,当前播放标识用于指示客户端在获取点播视频参数后是否直播点播视频;
在当前播放标识用于指示客户端直播点播视频时,获取点播视频开始播放时间和当前时间,并根据点播视频开始播放时间和当前时间确定点播视频已播放时间;
在点播视频已播放时间处播放点播视频。
在上述技术方案中,在当前播放标识用于指示客户端不直播点播视频时,
在点播视频的开始时间处播放点播视频;或
跳过点播视频的片头位置后播放点播视频,服务器返回的点播视频参数包括片头位置。
图13示出了本发明的另一个实施例的一种实现直播到点播切换的服务器结构框图。所述服务器2200可以是具备计算能力的主机服务器、个人计算机PC、或者可携带的便携式计算机或终端等。本发明具体实施例并不对计算节点的具体实现做限定。
该服务器2200包括处理器(processor)2210、通信接口(Communications Interface)2220、存储器(memory array)2230和总线2240。其中,处理器2210、通信接口2220、以及存储器2230通过总线2240完成相互间的通信。
通信接口2220用于与网元通信,其中网元包括例如虚拟机管理中心、共享存储等。
处理器2210用于执行程序。处理器2210可能是一个中央处理器CPU,或者是专用集成电路ASIC(Application Specific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。
存储器2230用于存放文件。存储器2230可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。存储器2230也可以是存储器阵列。存储器2230还可能被分块,并且所述块可按一定的规则组合成虚拟卷。
在一种可能的实施方式中,上述程序可为包括计算机操作指令的程序代码。该程序具体可用于:
在第一方面,提供一种实现直播到点播切换的方法,包括:
接收客户端发送的直播切换点播指令,直播切换点播指令为用户基于轮播台输入的指令,且直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
根据直播切换点播指令搜索相应点播视频的点播视频参数,点播视频参数包括相应的点播视频的播放URL;
在获取到相应点播视频的点播视频参数后,将点播视频参数返回至客户端,并指示客户端根据点播视频参数播放相应的点播视频。
在上述技术方案中,点播视频参数还包括点播视频的片头位置。
本发明能有多种不同形式的具体实施方式,上面以图5-图13为例结合附图对本发明的技术方案作举例说明,这并不意味着本发明所应用的具体实例只能局限在特定的流程或实施例结构中,本领域的普通技术人员应当了解,上文所提供的具体实施方案只是多种优选用法中的一些示例,任何体现本发明权利要求的实施方式均应在本发明技术方案所要求保护的范围之内。
最后应说明的是:以上所述仅为本发明的优选实施例而已,并不用于限制本发明,尽管参照前述实施例对本发明进行了详细的说明,对于本领域的技术人员来说,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (12)

  1. 一种实现直播到点播切换的方法,其特征在于,包括:
    获取用户基于轮播台输入的直播切换点播指令,所述直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
    将所述直播切换点播指令发送至服务器,指示所述服务器根据所述直播切换点播指令返回点播视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    获取所述点播视频参数后,根据所述点播视频参数播放相应的点播视频。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述点播视频参数播放相应的点播视频,包括:
    获取当前播放标识,所述当前播放标识用于指示客户端在获取点播视频参数后是否直播所述点播视频;
    当所述当前播放标识用于指示客户端直播所述点播视频时,获取点播视频开始播放时间和当前时间,并根据所述点播视频开始播放时间和所述当前时间确定点播视频已播放时间;
    在所述点播视频已播放时间处播放所述点播视频。
  3. 根据权利要求2所述的方法,其特征在于,当所述当前播放标识用于指示客户端不直播所述点播视频时,
    在所述点播视频的开始时间处播放所述点播视频;或
    跳过点播视频的片头位置后播放所述点播视频,所述服务器返回的所述点播视频参数包括所述片头位置。
  4. 一种实现直播到点播切换的方法,其特征在于,包括:
    接收客户端发送的直播切换点播指令,所述直播切换点播指令为用户基于轮播台输入的指令,且所述直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
    根据所述直播切换点播指令搜索相应点播视频的点播视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    在获取到相应点播视频的点播视频参数后,将所述点播视频参数返回 至所述客户端,并指示所述客户端根据所述点播视频参数播放相应的点播视频。
  5. 根据权利要求4所述的方法,其特征在于,所述点播视频参数还包括点播视频的片头位置。
  6. 一种实现直播到点播切换的客户端,其特征在于,包括:
    指令获取模块,用于获取用户基于轮播台输入的直播切换点播指令,所述直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
    发送模块,用于将所述直播切换点播指令发送至服务器,指示所述服务器根据所述直播切换点播指令返回点播视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    播放模块,用于在获取所述点播视频参数后,根据所述点播视频参数播放相应的点播视频。
  7. 根据权利要求6所述的客户端,其特征在于,所述播放模块包括:
    获取单元,用于获取当前播放标识,所述当前播放标识用于指示客户端在获取点播视频参数后是否直播所述点播视频;
    播放单元,用于当所述当前播放标识用于指示客户端直播所述点播视频时,获取点播视频开始播放时间和当前时间,并根据所述点播视频开始播放时间和所述当前时间确定点播视频已播放时间;在所述点播视频已播放时间处播放所述点播视频。
  8. 根据权利要求7所述的客户端,其特征在于,当所述当前播放标识用于指示客户端不直播所述点播视频时,所述播放单元还用于:
    在所述点播视频的开始时间处播放所述点播视频;或
    跳过点播视频的片头位置后播放所述点播视频,所述服务器返回的所述点播视频参数包括所述片头位置。
  9. 一种实现直播到点播切换的服务器,其特征在于,包括:
    接收模块,用于接收客户端发送的直播切换点播指令,所述直播切换点播指令为用户基于轮播台输入的指令,且所述直播切换点播指令包括点播视频名称、点播视频集数和清晰度,或者还包括点播视频类型;
    搜索模块,用于根据所述直播切换点播指令搜索相应点播视频的点播 视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    发送模块,用于在获取到相应点播视频的点播视频参数后,将所述点播视频参数返回至所述客户端,并指示所述客户端根据所述点播视频参数播放相应的点播视频。
  10. 根据权利要求9所述的服务器,其特征在于,所述点播视频参数还包括点播视频的片头位置。
  11. 一种实现直播到点播切换的客户端,其特征在于,包括:存储器、通信接口和处理器;
    所述存储器用于存储程序代码;
    所述处理器读取所述存储器中存储的程序代码,执行:
    获取用户基于轮播台输入的直播切换点播指令,所述直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
    将所述直播切换点播指令发送至服务器,指示所述服务器根据所述直播切换点播指令返回点播视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    获取所述点播视频参数后,根据所述点播视频参数播放相应的点播视频。
  12. 一种实现直播到点播切换的服务器,其特征在于,包括:存储器、通信接口和处理器;
    所述存储器用于存储程序代码;
    所述处理器读取所述存储器中存储的程序代码,执行:
    接收客户端发送的直播切换点播指令,所述直播切换点播指令为用户基于轮播台输入的指令,且所述直播切换点播指令包括点播视频名称和点播视频集数,或者还包括清晰度和/或点播视频类型;
    根据所述直播切换点播指令搜索相应点播视频的点播视频参数,所述点播视频参数包括相应的点播视频的播放URL;
    在获取到相应点播视频的点播视频参数后,将所述点播视频参数返回至所述客户端,并指示所述客户端根据所述点播视频参数播放相应的点播 视频。
PCT/CN2016/088451 2015-12-15 2016-07-04 一种实现直播到点播切换的方法、客户端和服务器 WO2017101311A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/243,215 US20170171605A1 (en) 2015-12-15 2016-08-22 Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510939930.8 2015-12-15
CN201510939930.8A CN105915929A (zh) 2015-12-15 2015-12-15 一种实现直播到点播切换的方法、客户端和服务器

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/243,215 Continuation US20170171605A1 (en) 2015-12-15 2016-08-22 Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast

Publications (1)

Publication Number Publication Date
WO2017101311A1 true WO2017101311A1 (zh) 2017-06-22

Family

ID=56744091

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088451 WO2017101311A1 (zh) 2015-12-15 2016-07-04 一种实现直播到点播切换的方法、客户端和服务器

Country Status (2)

Country Link
CN (1) CN105915929A (zh)
WO (1) WO2017101311A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437329A (zh) * 2020-11-05 2021-03-02 上海幻电信息科技有限公司 一种播放视频的方法、装置、设备、及可读存储介质
CN115037951A (zh) * 2021-03-05 2022-09-09 上海哔哩哔哩科技有限公司 直播处理方法及装置

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109168022A (zh) * 2018-11-05 2019-01-08 北京奇艺世纪科技有限公司 一种推荐点播视频的方法、装置及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685561A (zh) * 2012-05-08 2012-09-19 华为技术有限公司 节目轮播的方法、系统、终端设备和节目点播装置
CN103607642A (zh) * 2013-11-01 2014-02-26 乐视网信息技术(北京)股份有限公司 一种多媒体节目的点播方法及电子设备
CN103686245A (zh) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 一种基于hls协议的点播与直播切换方法和装置
CN103731691A (zh) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 一种智能电视的轮播节目点播方法及装置

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100574230C (zh) * 2006-08-30 2009-12-23 鸿富锦精密工业(深圳)有限公司 遥控装置、无线家庭网络系统及自动切换播放方法
CN101110844B (zh) * 2007-08-21 2010-07-28 华为技术有限公司 一种节目片段预取方法及一种对等网络节点

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685561A (zh) * 2012-05-08 2012-09-19 华为技术有限公司 节目轮播的方法、系统、终端设备和节目点播装置
CN103607642A (zh) * 2013-11-01 2014-02-26 乐视网信息技术(北京)股份有限公司 一种多媒体节目的点播方法及电子设备
CN103686245A (zh) * 2013-11-22 2014-03-26 乐视致新电子科技(天津)有限公司 一种基于hls协议的点播与直播切换方法和装置
CN103731691A (zh) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 一种智能电视的轮播节目点播方法及装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437329A (zh) * 2020-11-05 2021-03-02 上海幻电信息科技有限公司 一种播放视频的方法、装置、设备、及可读存储介质
CN112437329B (zh) * 2020-11-05 2024-01-26 上海幻电信息科技有限公司 一种播放视频的方法、装置、设备、及可读存储介质
CN115037951A (zh) * 2021-03-05 2022-09-09 上海哔哩哔哩科技有限公司 直播处理方法及装置
CN115037951B (zh) * 2021-03-05 2024-03-12 上海哔哩哔哩科技有限公司 直播处理方法及装置

Also Published As

Publication number Publication date
CN105915929A (zh) 2016-08-31

Similar Documents

Publication Publication Date Title
US10091552B2 (en) Methods and systems for selecting optimized viewing portions
US9143835B2 (en) Preview and playback method of video streams and system thereof
US20130311575A1 (en) Systems and methods for receiving multiple user messages that identify a media asset segment position
US20130173765A1 (en) Systems and methods for assigning roles between user devices
US20120174039A1 (en) Systems and methods for navigating through content in an interactive media guidance application
CN104427355B (zh) 一种多媒体资源的播放方法及装置
WO2017113712A1 (zh) 视频切换方法和装置
US20170171605A1 (en) Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast
CN101267543A (zh) 提供和管理元数据的方法、以及使用所述方法的设备
TW201043034A (en) Systems and methods for creating variable length clips from a media stream
US20170220869A1 (en) Automatic supercut creation and arrangement
TW200926813A (en) Method for retrieving content accessible to television receiver and system for retrieving content accessible to television receiver
US11606600B2 (en) Systems and methods for recording media assets
WO2017101311A1 (zh) 一种实现直播到点播切换的方法、客户端和服务器
KR20140071485A (ko) 비디오 스트림들을 획득하기 위한 시스템 및 방법
KR20070047301A (ko) 네트워크 내에서 관련 콘텐트를 탐색하는 방법 및 디바이스
WO2015090161A1 (zh) 通过智能电视提供电视节目的方法及系统
CN113132194A (zh) 一种信息流转方法、装置、设备、服务器及存储介质
US10862935B2 (en) Distribution device and information device
CN105898363A (zh) 视频播放的方法、服务器和终端设备
CN107465946B (zh) 视频播放方法、装置、系统及终端设备
WO2014161420A1 (zh) 一种电视数据卡、电视播放系统及电视节目播放方法
CN101296366B (zh) 数据管理方法和关联内容管理终端及系统
CN103931157A (zh) 用于渲染多媒体资产的方法、相关系统、媒体客户端和相关媒体服务器
JP5816852B2 (ja) コンテンツ検索装置、コンテンツ検索方法、プログラム

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

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

Country of ref document: EP

Kind code of ref document: A1