A kind of system and method for realizing video seamless switching between multi-screen
Technical field
The present invention relates to audio-video processing technology fields, and in particular to a kind of system for realizing video seamless switching between multi-screen
And method.
Background technique
One user usually possesses muti-piece screen, such as TV (television set), mobile terminal (smart phone or plate electricity
Brain, iOS android operating system), PC (computer) etc..In a terminal, realize that video playing breakpoint management compares
Generally.
Such as: application No. is a kind of 201110144970.5, entitled " audio/video continuous play seamless switching systems
And method " Chinese invention patent disclose a kind of audio/video continuous play seamless switching system and method, comprising: multipath pipe
Module, data buffering module, data outputting module and at least two document storage servers are managed, are filled after system initialization
Operation when encountering the abnormal conditions such as network failure or read error in audio-video document playing process for TV, carries out
Bumpless transfer operation achievees the purpose that system is continuously broadcasted, and avoids manual operation bring triviality and uncertainty.
For another example application No. is 201510150780.2, entitled " seamless handover methods of live video stream "
Chinese invention patent application discloses a kind of seamless handover method of live video stream, comprising: video flowing acquisition terminal receives user
After the specification switching request of terminal, original encoding device example is kept to continue to run, and starts a new encoder example;It will newly regard again
Frequency stream carries out frame number synchronization with original video stream;Then in new video stream select a key frame, and since the key frame to
User terminal transmits new video stream, and original video stream terminates after having transmitted the previous frame data of the key frame, and the frame of the key frame
Number and original video stream the last one key frame frame number between spacing be greater than new video stream GOP length 1/2;Then it closes again
Close original encoding device example.Front-end collection compression device of this method suitable for RTP Transport System for Real-time.
The above-mentioned prior art is all based on the breakpoint in same terminal and plays seamless switching.In reality, user possesses more
Media information number of terminals amount and type are gradually enriched, but due to the access network of multiple terminal, the difference of information acquisition platform, are made
The situation that independent of one another, resource cannot be shared at plurality of devices.With the continuous propulsion of integration of three networks process, how to using
The terminals such as set-top box, computer, PAD terminal and the smart phone of person carry out efficient association, to provide multiple business for user
The multi-screen interactive experience of fusion has become currently considered main problem.Multi-screen interactive technology refers to TV, computer, hand
Machine, PAD and the various multi-media information terminal parts with network accessibility establish correspondence by related protocol, realize more
Screen can watch the video content that operator's platform provides simultaneously, and can carry out video sharing between multiple screens, seamless switching, broadcast
Put the functions such as control.
But it is existing across screen handoff technique the switching based on identical time stamp is carried out between different file formats when, lead to
Often rely on dynamic analysis, it is difficult to accomplish breakpoint seamless switching, or even the problem of handoff procedure point of interruption can not be connected occur.
Summary of the invention
Goal of the invention of the invention is to provide a kind of system and method for realizing video seamless switching between multi-screen, and user can be with
Some video of viewing repeatedly is completed with continued access on multiple screens is intended to, cross screen playing realizes seamless switching.
In order to solve the above-mentioned technical problem, The technical solution adopted by the invention is as follows:
A kind of system for realizing video seamless switching between multi-screen, including the first video playing terminal and the second video playing it is whole
End, screens switch server, wherein
First video playing terminal and the second video playing terminal are suitable for playing video file, and to currently
The video file of broadcasting carries out screens switch operation;
The screens switch server is suitable for detecting and records first video playing terminal and second video
The information that facility information, the screens switch of playback terminal operate, the letter operated according to the facility information and the screens switch
Breath determines the incision frame that the video file that second video playing terminal plays is switched to from first video playing terminal
The time point is sent to second video playing terminal by corresponding time point;
The media player of first video playing terminal and/or second video playing terminal includes media formats
Decoder, stream media protocol stack module and audio/video decoder further include that screens switch communication module and screens switch data are slow
Rush device, the screens switch communication module is for realizing first video playing terminal and second video playing terminal
Data communication function, the screens switch data buffer are used to execute screens switch operation in first video playing terminal
When, store the switch data for the video being currently played.
Further, the screens switch server includes central server, resolver and decision device, the central service
Device is connect with first video playing terminal, the second video playing terminal and the decision device respectively, the resolver difference
It is connect with first video playing terminal and second video playing terminal, wherein
The central server is suitable for recording the information of screens switch operation, and the information of the screens switch operation is at least
Timestamp information including first video playing terminal newest execution screens switch operation when playing the video file;
The resolver, which is suitable for offline generating the video file, corresponds to first video playing terminal and institute
State the time static table of the second video playing terminal;
The decision device is suitable for being obtained described in same timestamp according to the timestamp information and the time static table
Time offset between first video playing terminal and second video playing terminal, as the time point.
Further, the screens switch server further includes bit stream converter, and the bit stream converter connects the decision device, is fitted
The time offset sent for receiving the bit stream converter pushes code stream according to the time offset and enters described second
Video playing terminal.
Further, the central server includes user information store, facility information memory, binding relationship storage
Device and video playing information-storing device, wherein
The user information store is suitable for storage user in first video playing terminal and/or second view
Registration information on frequency playback terminal, the registration information include user account information and password;
The facility information memory is suitable for storing first video playing terminal and second video playing is whole
The facility information at end, including device type, resolution ratio and/or code rate;
The binding relationship memory is suitable for storing first video playing terminal and second video playing is whole
Corresponding relationship between the facility information at end and the registration information;
The video playing information-storing device is suitable for storing first video playing terminal and/or second video
The screens switch operation information of playback terminal.
Further, further include video server, the video server respectively with the resolver, first video
Playback terminal is connected with second video playing terminal, it is suitable for handling all media contents into system,
Generate the relative index file for being directed to different media formats.
According to another aspect of the present invention, a kind of method for realizing video seamless switching between multi-screen is additionally provided, including
Following steps:
Pass through the first video playing terminal playing video file;
Execute screens switch operation;
It is cut according to the facility information and the screen of first video playing terminal and second video playing terminal
Operation information is changed, determines that second video playing terminal plays the incision frame corresponding time point of the video file;
The time point is sent to second video playing terminal, will pass through second video terminal according to institute
Time point is stated to continue to play the video file.
Further, the facility information according to first video playing terminal and second video playing terminal
With the screens switch operation information, determine second video playing terminal play the video file incision frame it is corresponding
The step of time point, specifically includes the following steps:
The information of screens switch is recorded, the information of the screens switch includes at least the video file in first view
The newest timestamp information for executing screens switch operation of frequency playback terminal;
The video file is generated offline whole corresponding to first video playing terminal and second video playing
The time static table at end;
According to the timestamp information and the time static table, the first video playing terminal described in same timestamp is obtained
Time offset between second video playing terminal, as the time point.
Further, this method further includes:
Code stream, which is pushed, according to the time offset enters second video playing terminal;
Second video playing terminal continues to play the video file.
It further, further include following step before described the step of passing through the first video playing terminal playing video file
It is rapid:
Registration information of the user in first video playing terminal and/or second video playing terminal is stored,
The registration information includes user account information and password;
Store the facility information of first video playing terminal and second video playing terminal, including equipment class
Type, resolution ratio and/or code rate;
The facility information and the registration for storing first video playing terminal and second video playing terminal are believed
Corresponding relationship between breath.
Further, further includes:
Receive all media contents into system;
The relative index file generated for different media formats executes screens switch in first video playing terminal
When operation, the switch data for the video being currently played is stored, and the switch data of storage is sent to the second video playing
Terminal.
Further, further include media content processing step, specifically include:
Receive all media contents into system;
Generate the relative index file for being directed to different media formats.
The invention discloses a kind of system and method for realizing video seamless switching between multi-screen, realize computer, mobile phone,
The multimedia terminals such as PAD are in media content playing process, and media content is from a terminal screen to another terminal screen
Seamless switching improves the convenience of user's access, obtains the flexibility of content, and user can be with being intended to continued access on multiple screens
It repeatedly completes to watch some video, cross screen playing realizes seamless switching.
The above description is only an overview of the technical scheme of the present invention, in order to make technological means of the invention clearer
Understand, reach the degree that those skilled in the art can be implemented in accordance with the contents of the specification, and in order to allow the present invention
Above and other objects, features and advantages can be more clearly understood, illustrated below with a specific embodiment of the invention
Explanation.
Detailed description of the invention
By reading the detailed description in hereafter preferred embodiment, various other advantages and benefits of the present invention
It will become apparent to those of ordinary skill in the art.Figure of description only for the purpose of illustrating preferred embodiments,
And it is not to be construed as limiting the invention.It should be evident that drawings discussed below is only some embodiments of the present invention,
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings
Other attached drawings.And throughout the drawings, identical component is presented with like reference characters.In the accompanying drawings:
Fig. 1 show according to embodiments of the present invention one realize multi-screen between video seamless switching system structure diagram;
Fig. 2 shows the system structure diagrams of video seamless switching between according to embodiments of the present invention two realization multi-screen;
Fig. 3 show based on the embodiment of the present invention two realize multi-screen between video seamless switching system in generate the time it is quiet
State indicates to be intended to;
Fig. 4 show according to embodiments of the present invention three realize multi-screen between video seamless switching method flow diagram.
Specific embodiment
The specific embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although being shown in attached drawing of the invention
Specific embodiment, it being understood, however, that may be realized in various forms the present invention without that should be limited by embodiments set forth here
System.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be complete by the scope of the present invention
Be communicated to those skilled in the art.
It should be noted that having used some vocabulary in the specification and claims to censure specific components.Ability
Field technique personnel it would be appreciated that, hardware manufacturer may call the same component with different nouns.This specification and power
Benefit requires not in such a way that the difference of noun is as component is distinguished, but with the difference of component functionally as differentiation
Criterion."comprising" or " comprising " as mentioned throughout the specification and claims are an open language, therefore are answered
It is construed to " including but not limited to ".Specification subsequent descriptions are to implement better embodiment of the invention, and so description is
For the purpose of the rule of specification, the range that is not intended to limit the invention.Protection scope of the present invention is when the appended power of view
Benefit requires subject to institute's defender.
In order to facilitate understanding of embodiments of the present invention, it is done by taking several specific embodiments as an example below in conjunction with attached drawing further
Explanation, and each attached drawing does not constitute the restriction to the embodiment of the present invention.
Embodiment one, a kind of system for realizing video seamless switching between multi-screen.
The system structure diagram of Fig. 1 video seamless switching between the realization multi-screen of the embodiment of the present invention one, the present invention are real
Applying example will be specifically described in conjunction with Fig. 1.
As shown in Figure 1, the embodiment of the invention provides a kind of systems 100 for realizing video seamless switching between multi-screen, including
First video playing terminal 101 and the second video playing terminal 103, screens switch server 102, the screens switch server
102 can be with first video playing terminal 101 and 103 two-way communication of the second video playing terminal, wherein
First video playing terminal 101 and the second video playing terminal 103 include that media player (broadcast by the first media
Put device 1011, the second media player 1031) and display (the first display 1012, second display 1032), it is suitable for
Playing video file, and screens switch operation, first video playing can be carried out to the video file being currently played
The video file can be switched to second video playing terminal 103 and continue to play by terminal 101;
The screens switch server 102 is suitable for detecting and recording first video playing terminal 101 and described the
The screens switch operation information of the facility information of two video playing terminals 103, first video playing terminal 101, according to institute
Facility information and the screens switch operation information are stated, determines that second video playing terminal 103 plays the video file
Incision frame corresponding time point.
Preferable in the embodiment of the present invention, first video playing terminal 101 is used to refer to for initial play video file
Subscriber terminal equipment, second video playing terminal 103 is used to refer to put same video file for the subsequent continued broadcasting of screens switch
Subscriber terminal equipment, " first " and " second " here be not intended to indicate quantity number, nor be used to refer to generation sequence,
Wherein, first video playing terminal may be used as the second video playing terminal, second video in other scene
Playback terminal can also be used as the first video playing terminal, second video playing terminal during other first use,
The video file that second video playing terminal does not finish can be switched to first video playing terminal to continue
It plays.
It is preferable in the embodiment of the present invention, first video playing terminal 101 and second video playing terminal 103
It can be mobile terminal, such as smart phone, tablet computer etc.;It is also possible to smart television, including set-top box, millet box
Deng;It can also be computer, such as desktop computer, laptop etc.;Can also be can arbitrarily network and can play view
The electronic equipment of frequency.First video playing terminal 101 and second video playing terminal 103 can be same type of
User terminal, such as be smart phone, same video file is switched into another smart phone after continued broadcasting from a smart phone
It puts;It is also possible to different types of user terminal, such as first video playing terminal 101 is the end TV, second video
Playback terminal 103 is mobile terminal, and same video file is switched to mobile terminal from the end TV and continues to play.
It is preferable in the embodiment of the present invention, first video playing terminal and/or second video playing terminal
There is " screens switch " key on media player or display, directly " confirmation " described the can be switched to by it
Two video playing terminals.
Preferable in the embodiment of the present invention, video switching command is triggered by user, and user triggers video switching command
There are many modes, for example, trigger the triggering key of video switching command for user in the auto-building html files for playing current video in advance,
User can trigger the video switching command by touching the triggering key of first video playing terminal;Or it is logical
It crosses remote controler and triggers the video switching command;Or the triggering key is clicked by mouse, trigger video switching command.
Preferable in the embodiment of the present invention, the screens switch operation includes any of the following situation: first view
Frequency playback terminal initiates screens switch operation to the screens switch server, such as triggers on first media player
" screens switch " key;First video playing terminal directly initiates screens switch behaviour to second video playing terminal
Make;Second video playing terminal initiates screens switch operation to the screens switch server, such as triggers described second
" screens switch " key on media player;Second video playing terminal is directly sent out to first video playing terminal
Play screens switch operation;Video playing progress in first video playing terminal described in the screens switch server real-time detection
Information, according to the operation information to the video file being currently played, screens switch described in automatic trigger is operated, for example, working as
The screens switch server detects that video file being played on pause occurs, moves back in first video playing terminal
Out or first video playing terminal it is standby, shutdown or first media player windows minimize etc. operation.
Preferable in the embodiment of the present invention, the screens switch server 102 includes central server, resolver and judgement
Device, the central server respectively with first video playing terminal 101, the second video playing terminal 103 and the judgement
Device connection, the resolver are connect with first video playing terminal 101 and second video playing terminal 103 respectively,
Wherein,
The central server is suitable for recording status information, and the status information includes at least the video file in institute
State the newest timestamp information for executing screens switch operation of the first video playing terminal 101;
The resolver, which is suitable for offline generating the video file, corresponds to 101 He of the first video playing terminal
The time static table of second video playing terminal 103;
The decision device is suitable for being obtained described in same timestamp according to the timestamp information and the time static table
Time offset between first video playing terminal 101 and second video playing terminal 103.
It is preferable in the embodiment of the present invention, it further include bit stream converter, the bit stream converter connects the decision device, and it is suitable for connecing
The time offset that the bit stream converter is sent is received, code stream is pushed according to the time offset and is broadcast into second video
Put terminal 103.
It is preferable in the embodiment of the present invention, the central server include user information store, facility information memory,
Binding relationship memory and video playing information-storing device, wherein
The user information store is suitable for storage user in first video playing terminal 101 and/or described the
Registration information in two video playing terminals 103, the registration information include user account information and password;
The facility information memory is suitable for storing first video playing terminal 101 and second video playing
The facility information of terminal 103, including device type, resolution ratio and/or code rate;
The binding relationship memory is suitable for storing first video playing terminal 101 and second video playing
Corresponding relationship between the facility information of terminal 103 and the registration information;
The video playing information-storing device is suitable for storing first video playing terminal 101 and/or described second
The screens switch operation information of video playing terminal 103.
Preferable in the embodiment of the present invention, the central server is realized between the binding user's multiple terminal, for example, with
Family first possesses a smart phone, a tablet computer, a desktop computer, a laptop and a television set, user
First can be set by the smart phone, tablet computer, desktop computer, laptop or television set any of them electronics
It is standby to issue registration request to the central server, include in the registration request user account ID (or referred to as User ID, use
Name in an account book), the essential informations such as password, can also include personal settings information, such as the preference of viewing video, the viewing mould of user
Formula etc..The central server receives the registration request, and the registration information of user's first is stored in the user information and is deposited
Reservoir.
Preferable in the embodiment of the present invention, the video playing information-storing device can also further track and record same use
The behavioural characteristic at family, user can increase more customization services, such as can remember automatically in the first video playing terminal 101
User information is recorded, stops after playing in the first video playing terminal 101, can recorde the central server, use in this way
Family may remind the user that the broadcasting content for whether continuing last time when playing again in other equipment, also can be wide for business
It accuses, individual service provides data.
It is preferable in the embodiment of the present invention, it, can after user's first logs in the central server success using the User ID
It is added to the central server in whole or in part with the electronic equipment that is possessed, for example, user's first can be by its intelligence
Energy mobile phone, laptop and television set are added to the central server, and the central server possesses user's first with it
Smart phone, laptop and television set bound, and be stored in the binding relationship memory.
Preferable in the embodiment of the present invention, user can also be arranged using a certain user terminal as the silent of another user terminal
Target device is recognized, for example, the second video playing terminal of default when the smart phone can be executed to screens switch is described
Tablet computer, the second video playing terminal of default when the tablet computer to be executed to screens switch are the laptop,
The second video playing terminal of default when the laptop to be executed to screens switch is the smart phone, in this way, when using
When screens switch operation is triggered at family, does not need to carry out manual selection, can continue to play in the default objects equipment same
Video file.It is of course also possible to which it is whole as second video playing to select a certain user terminal by way of pulling down and selecting
End.
It is preferable in the embodiment of the present invention, first video playing terminal and/or second video playing terminal
Media player includes media formats decoder, stream media protocol stack module and audio/video decoder, further includes that screens switch is logical
Believe module and screens switch data buffer, the screens switch communication module for realizing first video playing terminal and
The data communication function of second video playing terminal, the screens switch data buffer in first video for broadcasting
When putting terminal execution screens switch operation, the switch data for the video being currently played is stored.
When user starts the first media renderer plays media file, the first media player is first described the
One video playing terminal playing video file, each module of the first media player send related control information to the screen automatically
Curtain switch data buffer, the screens switch data buffer also buffer the data having after nearest previous frame.
When " screens switch " key switches over when the user clicks, first video playing terminal first with default objects
Equipment connection, it is unsuccessful just to connect next default objects equipment, or the target device that connection user specifies.Once connecting into
Function, the screens switch communication module in first video playing terminal just actively obtain sound view from screens switch data buffer
Frequency content switch data, and second video playing terminal, institute are sent in the form of network data according to screens switch agreement
Stating audio-video frequency content switch data includes all parameters, control information and the video text since previous frame that video decoding needs
The original compression data stream of part.Parameter required for the currently playing video file decodes can include: currently playing media
Audio compression format, data sampling rate, sampled data position, video compression format, video resolution, video frame rate, support stream
Media protocol and version number, file size, currently playing relative position.
The media player of support screen switching, once into screens switch or simultaneously broadcast state, audio/video decoder
The data of its input are just sent to screens switch data buffer simultaneously, are broadcast until stopping playing or returning to first video
Put terminal plays mode.This way it is possible to realize between first video playing terminal and second video playing terminal
The directly push and switching of video content do not need to request to send video file again to video server, can be in each equipment room
Neatly, screens switch is seamlessly realized, and occupancy network bandwidth is low, provides users with the convenient.
Preferable in the embodiment of the present invention, the central server can detect the terminal device of user automatically, and by institute
Facility information storage is stated to the facility information memory, wherein the facility information includes device id, IP address of equipment, sets
Standby type, resolution ratio and/or code rate etc..
Preferable in the embodiment of the present invention, the central server is realized between the binding user's multiple terminal, is passed through
The standard traffics such as HTTP, RTSP and transport protocol complete user terminal to the communication and message parsing between user terminal, and foundation
Message signaling completes control of the user terminal to another user terminal, i.e., described first video playing terminal controls correlation
System order is sent to the central server, and the central server completes to be suitble to the parsing and generation of related protocol described the
The control signaling of two video playing terminals parsing, and control signaling is sent to second video playing terminal, complete film
Broadcasting on multiple user terminals, and the nothing of another user terminal is seamlessly switched in playing process by a user terminal
Interruption plays and control.
Preferable in the embodiment of the present invention, the central server can both receive the login letter of the same account of same user
Breath, the currently used user terminal of the user is judged according to the Account Logon information of the user, and according to the screens switch
The newest video file not finished of first video playing terminal 101 is being switched to the user currently just automatically by information
In second video playing terminal of login;Can also receive between different user screens switch request, different user it
Between can by plusing good friend, by it in first video playing terminal 101 video file being played on switch to it is described
Second video playing terminal 103, to realize the video sharing function between good friend.
It is preferable in the embodiment of the present invention, further include video server, the video server respectively with the resolver,
First video playing terminal 101 and second video playing terminal 103 connection, it is suitable for all into system
Media content is handled, and the relative index file for being directed to different media formats is generated.Specifically, the video server is to institute
There is the media content into system to be handled, completes the secondary volume transcoding and encapsulation process of streaming media content, and generate needle
To the relative index file (XML format ADI document) of different media formats.
It is preferable in the embodiment of the present invention, after first video playing terminal 101 receives video switching command, currently
Video can continue to play at the first video playing terminal 101, can also suspend current video in the first video playing terminal
101 broadcasting.
If after the first video playing terminal 101 receives video switching command, current video is at the first video playing end
It holds and continues to play at 101, then after the first video playing terminal 101 receives video switching command, the central server can be remembered
Playback progress of the current video at the first video playing terminal 101 when it receives video switching command is recorded, and according to record
Playback progress generate playback progress information;The current video that first video playing terminal 101 plays is switched into the second video
When playback terminal 103 plays, broadcasting of the current video at the first video playing terminal 101 is not influenced.
If after the first video playing terminal 101 receives video switching command, current video is at the first video playing end
It holds to suspend at 101 and play, then playback progress of the central server records current video at pause, and according to current video
Playback progress at pause generates playback progress information.
Preferable in the embodiment of the present invention, it includes that the first video playing terminal receives that the screens switch operation information, which is removed,
It further include the unified resource of current video outside the playback progress information of the current video recorded after the video switching command
Locator address information.
Wherein, URL address information refers to the network address of the current video of the first video playing terminal viewing,
It is the address of the resource of standard on internet.
Because second terminal can be with when including the URL address information of current video in video playing information
According to URL address information, it is directly switch to the broadcasting webpage of current video.
It is preferable in the embodiment of the present invention, the user information store, facility information memory, binding relationship memory
It can be a server database, the view of the corresponding first video playing terminal viewing with video playing information-storing device
Frequently, in the case where not watched, the central server actively records the broadcast address, play position, terminal iidentification.It is described
Second video playing terminal parses the data in the server database, and the video is shown on its terminal screen, and
Optimal code rates are requested to video server according to different demand bit rates.Best video code rate and Network status, terminal processes energy
Power, video format are related.The different selections of different according to Network status, each terminal configuration difference, and/or video format are different
Broadcasting code rate, to reach optimal result of broadcast.
The embodiment of the invention discloses a kind of system for realizing video seamless switching between multi-screen, realize computer, mobile phone,
The multimedia terminals such as PAD are in media content playing process, and media content is from a terminal screen to another terminal screen
Seamless switching improves the convenience of user's access, obtains the flexibility of content, and user can be with being intended to continued access on multiple screens
It repeatedly completes to watch some video, cross screen playing realizes seamless switching.
Embodiment two, a kind of system for realizing video seamless switching between multi-screen.
The system structure diagram of Fig. 2 video seamless switching between the realization multi-screen of the embodiment of the present invention two, the present invention are real
Applying example will be specifically described in conjunction with Fig. 2.
As shown in Fig. 2, the embodiment of the invention provides a kind of systems for realizing video seamless switching between multi-screen, comprising: packet
Include central server 201, resolver 202 and decision device 203, bit stream converter 204, the first video playing terminal 101, the second video are broadcast
Terminal 103 is put, the decision device 203 connects with the central server 201 and the resolver 202, the bit stream converter 204 respectively
It connects, the central server 201 and the resolver 202 are regarded with first video playing terminal 101 and described second respectively
Frequency playback terminal 103 connects, wherein
The central server 201 is used for state recording, and record information includes: user account information, facility information, time
The information of point (synchronous point) information and user to certain section of vision operation.
Specifically, including: extraction User ID;Record the information of user's multiple devices, such as device type, suitable resolution
Rate or code rate;Record is the last to this section of vision operation type, such as closes, pause, shuts down or minimize;Record the section
Video last time stops the timestamp at place.
It further include video server (not shown), the video server connects the resolver 202, the resolver
202 for by video offline generates correspond to plurality of devices time static table, for example, may include the end TV time static table,
Mobile phone terminal time static table and/or the end PC time static table etc..Code rate because of same video content, when distinct device plays
Difference, and code frequency multiplicity, therefore, identical time stamp corresponds to different time offsets on different devices.The time is quiet
State table is as shown in table 1.
1 time of table static table
For example, 10 ' the timestamps corresponding timestamp of incision frame nearest on the end PC is 9 ' 59 " to same audio content,
Then the time offset at the end PC is -1 ";And the corresponding timestamp of incision frame nearest on mobile phone terminal is 10 ' 3 ", then mobile phone terminal
Time offset be+3 ".
The decision device 203 reads user account information, the according to state record information in the central server 201
Breakpoint moment of one video playing terminal (for example, the end TV), user to the video played in first video playing terminal most
The facility information of operation information and the second video playing terminal (for example, mobile phone terminal) afterwards, and pass through the parser queries institute
The end TV time static table, mobile phone terminal time static table, the end PC time static table are stated, determines time offset, the hand at the end TV
Time offset, the time offset at the end PC of generator terminal obtain offset between the two under synchronization, by the offset
It is transported to the bit stream converter 204, the bit stream converter 204 pushes code stream and enters current second video playing terminal.
Fig. 3 show the embodiment of the present invention realize multi-screen between video seamless switching system in resolver generate the time it is quiet
The schematic diagram of state table.It include: mobile terminal video file 301, the end PC video file 302 and the end TV video file 303, resolver
202 and time static table 304, the mobile terminal video file 301, the end PC video file 302 and the end TV video file 303 connect
The resolver 202, the resolver connect the time static table 304.
It is preferable in the embodiment of the present invention, the streaming media content service of identical content, institute are provided to different terminals to realize
State central server by set-top box video program request platform, computer video program request platform and mobile terminal video program request platform come
Realize the streaming media content service to the different terminals of heterogeneous networks access style.
Preferable in the embodiment of the present invention, the set-top box video program request platform completes the order video stream towards set-top box
It broadcasts and controls, the end TV video file 303 is provided;The computer video program request platform completes the program request towards terminal
Video flowing is broadcast and is controlled, and the end PC video file 302 is provided;The mobile terminal video program request platform is towards Multiple Type intelligence
The video flowing of the mobile terminals such as mobile phone, PAD is broadcast and is controlled, and mobile terminal video file 301 is provided.
For example, the set-top box is connect with set-top box video program request platform, the video contents of streaming media on set-top box is completed
Broadcasting and control, collect user when exiting from set-top box and generated video breakpoint information and report to described in central server
Central server;The computer is connect with computer video program request platform, completes the video contents of streaming media on computer
It plays and controls, collect generated video breakpoint information when user exits from computer and report to central server;It is described
Smart phone is connect with mobile terminal video program request platform, completes the broadcasting and control of the video contents of streaming media on mobile terminal
System collects generated video breakpoint information when user exits from smart phone and reports to central server.
All real-time/non-real time streaming medium content source imports the video server, wherein real-time content transmission with
Based on udp protocol, non-real-time content is transmitted based on File Transfer Protocol.
Video server is through communication interface respectively to set-top box video program request platform, computer video program request platform, movement
Terminal video program request platform injects real-time and non-real-time streaming media content, for set-top box video program request platform, computer video point
Broadcast platform, mobile terminal video program request platform externally provides streaming medium content order program service.
By interface using HTTP.1 as control signaling transport protocol between set-top box and set-top box video program request platform, with TS
Over UDP is as media flow transmission mode.When set-top box such as has pause, exits at the operation, set-top box is used correlation by interface
Family pause exits information and sends central server in xml format.Central server records user's set-top box users ID, user
The relevant informations such as video content play time stamp when video content ID, the user of viewing exit.
It is transmitted by interface using HTTP.1 as control signaling between terminal device computer and computer video program request platform
Agreement and media flow transmission mode.When computer such as has pause, exits at the operation, computer is temporary by associated user by interface
Stop, exit information and send central server in xml format.Central server records subscriber computer User ID, user's viewing
Video content ID, user's relevant informations such as video content play time stamp when exiting.
By interface using HTTP.1 as control signaling between terminal device smart phone and mobile terminal video program request platform
Transport protocol and media flow transmission mode.When smart phone such as has pause, exits at the operation, smart phone is by interface by phase
User's pause is closed, information is exited and sends central server in xml format.Central server records user's smart phone user
The relevant informations such as video content play time stamp when video content ID, the user that ID, user watch exit.
It, will be mutually deeply concerned through external network when set-top box, computer, the smart phone triggering screens switch of user terminal operate
It changes instruction and central server is published to by interface, information entrained by interface is current comprising user's login account information, user
Watch video information, user triggers the timestamp information of video, the currently used end message of user, user when multi-screen switches and continues
Watch used terminal information.
Central server notifies associated video program request platform interrupt user's present terminal according to information entrained by interface
Watched video flowing, and user is continued into viewing used terminal information, programme information, video time stamp information and is sent to video point
Platform is broadcast, the video-on-demand platform for continuing viewing used terminal from suitable user continues appreciation video institute using terminal to user and pushes away
The motion pictures resource sent.
The embodiment of the invention discloses a kind of systems for realizing video seamless switching between multi-screen, pass through settling time stamp and view
The offset static mappings table of frequency file on different devices, changes the time needed when broadcasting with memory space, makes user
The scrappy time can be utilized, recorded broadcast video is watched with seizing every opportunity, there is splendid user experience, and video server load drop
It is low.
Other contents are referring to the content in foregoing invention embodiment in the embodiment of the present invention, and details are not described herein.
Embodiment three, a kind of method for realizing video seamless switching between multi-screen.
The method flow diagram of Fig. 4 video seamless switching between the realization multi-screen of the embodiment of the present invention three, the embodiment of the present invention
It will be specifically described in conjunction with Fig. 4.
As shown in figure 4, the embodiment of the invention provides a kind of method for realizing video seamless switching between multi-screen, including it is following
Step:
Step the S401: the first video playing terminal playing video file;
Step S402: screens switch operation is executed;
Step S403: according to the facility information and institute of first video playing terminal and second video playing terminal
Screens switch operation information is stated, determines that second video playing terminal plays the incision frame corresponding time of the video file
Point;
Step S404: the video file is switched into second video playing terminal and continues to play.
It is preferable in the embodiment of the present invention, it is described whole according to first video playing terminal and second video playing
The facility information at end and the screens switch operation information determine that second video playing terminal plays the video file
The step of cutting frame corresponding time point, specifically includes the following steps:
Recording status information, the status information include at least the video file first video playing terminal most
The new timestamp information for executing screens switch operation;
The video file is generated offline whole corresponding to first video playing terminal and second video playing
The time static table at end;
According to the timestamp information and the time static table, the first video playing terminal described in same timestamp is obtained
Time offset between second video playing terminal.
It is preferable in the embodiment of the present invention, it is described that the video file is switched into the second video playing terminal continuation
The step of broadcasting, specifically includes the following steps:
Code stream, which is pushed, according to the time offset enters second video playing terminal;
Second video playing terminal continues to play the video file.
It is preferable in the embodiment of the present invention, the step of the first video playing terminal playing video file before, also wrap
Include following steps:
Registration information of the user in first video playing terminal and/or second video playing terminal is stored,
The registration information includes user account information and password;
Store the facility information of first video playing terminal and second video playing terminal, including equipment class
Type, resolution ratio and/or code rate;
The facility information and the registration for storing first video playing terminal and second video playing terminal are believed
Corresponding relationship between breath.
It is preferable in the embodiment of the present invention, further include media content processing step, specifically includes:
Receive all media contents into system;
Generate the relative index file for being directed to different media formats.
In the embodiment of the present invention, resolver parses video, the time static table of plurality of devices is obtained, for example, can
To include the end TV time static table, mobile phone terminal time static table and/or the end PC time static table etc..
The central server records status information is extracted (synchronous including user account information, facility information, time point
Point) information and user be to the information of certain section of vision operation.
The time static table and the status information are inputted into decision device simultaneously, obtained corresponding in currently playing equipment
Offset, determine on current device code stream point of penetration.
For example, including operating as follows from the process that the end TV goes to mobile phone terminal:
Reading user account information, the breakpoint moment at the end TV, user are last to the end TV video from the central server
Operation information, the facility information of mobile phone;
Obtain mobile phone terminal time static table and the end TV time static table, the offset under obtaining in the same time between the two;
Above-mentioned offset is conveyed to bit stream converter, the bit stream converter push code stream enters currently playing equipment.
The embodiment of the invention provides a kind of methods for realizing video seamless switching between multi-screen, pass through settling time stamp and view
The offset static mappings table of frequency file on different devices, changes the time needed when broadcasting, Yong Huke with memory space
Repeatedly to complete to watch some video with being intended on multiple screens continued access, cross screen playing realizes seamless switching.
Other contents are referring to the content in foregoing invention embodiment in the embodiment of the present invention, and details are not described herein.
The technical effect that the present invention can bring these beneficial: video is seamless between realization multi-screen disclosed by the embodiments of the present invention
The system and method for switching, the multimedia terminals such as realization computer, mobile phone, PAD are in media content playing process, media content
From a terminal screen to the seamless switching of another terminal screen, the convenience of user's access is improved, the spirit of content is obtained
Activity, user repeatedly can complete some video of viewing with continued access on multiple screens is intended to, and cross screen playing realizes seamless switching.
Various embodiments provided by the invention can be combined with each other in any way as needed, be obtained by this combination
Technical solution, it is also within the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.