CN107734376B - A kind of method and device of multi-medium data broadcasting - Google Patents
A kind of method and device of multi-medium data broadcasting Download PDFInfo
- Publication number
- CN107734376B CN107734376B CN201710959473.8A CN201710959473A CN107734376B CN 107734376 B CN107734376 B CN 107734376B CN 201710959473 A CN201710959473 A CN 201710959473A CN 107734376 B CN107734376 B CN 107734376B
- Authority
- CN
- China
- Prior art keywords
- medium data
- data
- medium
- candidate
- broadcast interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/44213—Monitoring of end-user related data
- H04N21/44222—Analytics of user selections, e.g. selection of programs or purchase activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
- H04N21/4396—Processing of audio elementary streams by muting the audio signal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/472—End-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/47217—End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Social Psychology (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
A kind of method and device played the embodiment of the invention provides multi-medium data, the method comprise the steps that during playing the first multi-medium data using the first broadcast interface, when detecting handover trigger operation, the playback progress of first multi-medium data is obtained;Obtain corresponding second multi-medium data of first multi-medium data, wherein, when first multi-medium data is audio data, second multi-medium data is video data, when first multi-medium data is video data, second multi-medium data is audio data;The interface currently shown is switched to the second broadcast interface for being used to play second multi-medium data by first broadcast interface, in second broadcast interface, second multi-medium data is played out according to the playback progress.The seamless switching of the first multi-medium data and the second multi-medium data may be implemented in the embodiment of the present invention, saves network flow, improves user experience.
Description
Technical field
A kind of method played the present embodiments relate to audio and video playing technical field more particularly to multi-medium data with
And device.
Background technique
With the development of information technology, the function in terminal is more and more, wherein carries out video and audio broadcasting by player
Function be terminal common function, wherein video and audio playing function can be used for playing music or MV.
In the prior art, the broadcasting of music and MV is independent of each other, and expends more flow, and non-to user's one kind
Often poor experience.
Summary of the invention
The embodiment of the present invention provides a kind of method that multi-medium data plays, and plays caused flow to solve video and audio
Expend larger problem.
In order to solve the above-mentioned technical problem, the present invention is implemented as follows: a kind of method that multi-medium data plays, packet
It includes:
During playing the first multi-medium data using the first broadcast interface, when detecting handover trigger operation,
Obtain the playback progress of first multi-medium data;
Obtain corresponding second multi-medium data of first multi-medium data, wherein when first multi-medium data
When for audio data, second multi-medium data is video data, when first multi-medium data is video data, institute
Stating the second multi-medium data is audio data;
The interface currently shown is switched to by first broadcast interface and is used to play second multi-medium data
Second broadcast interface, in second broadcast interface, second multi-medium data is played out according to the playback progress.
In a first aspect, the embodiment of the invention also provides the devices that a kind of multi-medium data plays, comprising:
First multi-medium data playing module, in the process for playing the first multi-medium data using the first broadcast interface
In, when detecting handover trigger operation, obtain the playback progress of first multi-medium data;
Second multi-medium data obtains module, for obtaining the corresponding second multimedia number of first multi-medium data
According to, wherein when first multi-medium data is audio data, second multi-medium data is video data, when described
When first multi-medium data is video data, second multi-medium data is audio data;
Switching module is used to play described second for switching to the interface currently shown by first broadcast interface
Second broadcast interface of multi-medium data, in second broadcast interface, second multi-medium data is according to the broadcasting
Progress plays out.
Second aspect the embodiment of the invention also provides a kind of mobile terminal, including processor, memory and is stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is executed by the processor
The step of realizing the method that above-mentioned multi-medium data plays.
The third aspect, it is described computer-readable to deposit the embodiment of the invention also provides a kind of computer readable storage medium
Computer program is stored on storage media, the computer program realizes what above-mentioned multi-medium data played when being executed by processor
The step of method.
In embodiments of the present invention, by using the first broadcast interface play the first multi-medium data during, when
When detecting handover trigger operation, the playback progress of available first multi-medium data and first multi-medium data are corresponding
The second multi-medium data then the interface currently shown by the first broadcast interface, is being switched to for playing more than second matchmaker
When the second broadcast interface of volume data, the second multi-medium data can be broadcast according to the playback progress of the first multi-medium data
It puts, can be realized the broadcasting of the second multi-medium data of unlatching of any stage played in the first multi-medium data, and keep first
Multi-medium data is synchronous with the broadcasting of the second multi-medium data, and the first multi-medium data of realization is seamless with the second multi-medium data
Switching saves network flow, improves user experience without playing the second multi-medium data from the beginning.
Detailed description of the invention
Fig. 1 is the step flow chart for the embodiment of the method that a kind of multi-medium data of the embodiment of the present invention plays;
Fig. 2 is the step flow chart for another embodiment of method that a kind of multi-medium data of the embodiment of the present invention plays;
Fig. 3 is the database generation step flow chart of the embodiment of the present invention;
Fig. 4 is the step flow chart for the another embodiment of method that a kind of multi-medium data of the embodiment of the present invention plays;
Fig. 5 is the step flow chart for the method another embodiment that a kind of multi-medium data of the embodiment of the present invention plays;
Fig. 6 is the structural block diagram for the Installation practice that a kind of multi-medium data of the embodiment of the present invention plays;
Fig. 7 is a kind of hardware structural diagram of mobile terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
One of the core concepts of the embodiments of the present invention is, opens second in any stage that the first multi-medium data plays
The broadcasting of multi-medium data, second multi-medium data from the playback progress of the first multi-medium data play, and not shadow
The broadcasting of the first multi-medium data of script is rung, the seamless switching of the first multi-medium data and the second multi-medium data is realized, mentions
High user experience.Applied to the embodiment of the present invention, in player application, music and MV can be toggled, and always
It keeps the playback progress of the two consistent, promotes the usage experience of user.
The embodiment of the present invention is specifically described below:
Referring to Fig.1, a kind of step process of the embodiment of the method for multi-medium data broadcasting of the embodiment of the present invention is shown
Figure, can specifically include following steps:
Step 101, during playing the first multi-medium data using the first broadcast interface, when detecting handover trigger
When operation, the playback progress of first multi-medium data is obtained;
In embodiments of the present invention, the first multi-medium data may include audio data or video data, for example, broadcasting
Put in device application program, the first multi-medium data of client terminal playing may include pure audio music or the music it is corresponding
MV (Music Video, music videos).If first multi-medium data is music, corresponding first broadcast interface is music
Broadcast interface, if first multi-medium data is MV, corresponding first broadcast interface is MV broadcast interface.
In one embodiment, switching mark can be set in first broadcast interface, for example, switching push button, MV
Mark, music identification etc. are identified when user triggers the switching, for example, clicking the switching push button, then be can be determined that detect and cutting
Change trigger action.
In embodiments of the present invention, when detecting handover trigger operation, available first multi-medium data is broadcast
Degree of putting into.In practice, which can be expressed as real-time play position.
In the concrete realization, music is the control of this class of MediaPlayer, and progress bar SeekBar can be used to
Show playback progress, it can be by calling getCurrentPosition () method in MusicPlayer to broadcast in real time to obtain
Put position.
Step 102, corresponding second multi-medium data of first multi-medium data is obtained;
In embodiments of the present invention, the second multi-medium data may include audio data or video data, but this second
Multi-medium data is not identical as the type of the first multi-medium data, that is, when the first multi-medium data is audio data, this
Two multi-medium datas are video data, and when the first multi-medium data is video data, which is audio number
According to.
Using in embodiments of the present invention, if the first multi-medium data there are corresponding second multi-medium data, can be with
Obtain second multi-medium data.
In the implementation, corresponding second multimedia of first multi-medium data can be searched in local data base or network
Data.
Step 103, the interface currently shown is switched to by first broadcast interface and is used to play more than second matchmaker
Second broadcast interface of volume data, in second broadcast interface, second multi-medium data is according to the playback progress
It plays out.
After obtaining corresponding second multi-medium data of the first multi-medium data, broadcast interface that can be current by client
It is switched in the second broadcast interface by the first broadcast interface, wherein second broadcast interface is to play the second multi-medium data
Interface.
When the handover trigger for detecting user again operates, the first multi-medium data can be switched into foreground, according to reality
When playback progress be shown and play, and by the second multi-medium data switch to backstage play out.
It in embodiments of the present invention, can be by the playback progress tune of the second multi-medium data played in the second broadcast interface
The whole playback progress for above-mentioned first multi-medium data, to keep the first multi-medium data and the when switching plays type
The broadcasting of two multi-medium datas is synchronous.
For example, if user clicks MV mark, can switch in MV broadcast interface, be broadcast in MV when playing music
It puts in interface, the playback progress of the MV is synchronized in the playback progress of music, to realize the seamless switching of MV and music.
In embodiments of the present invention, during playing the first multi-medium data using the first broadcast interface, work as detection
To when handover trigger operation, the playback progress of available first multi-medium data and first multi-medium data corresponding the
Two multi-medium datas then by the first broadcast interface, are switching at the interface currently shown for playing the second multimedia number
According to the second broadcast interface when, the second multi-medium data can be played out according to the playback progress of the first multi-medium data,
Any stage so as to play in the first multi-medium data opens the broadcasting of the second multi-medium data, and keeps more than first matchmaker
Volume data is synchronous with the broadcasting of the second multi-medium data, realize the first multi-medium data and the second multi-medium data without seaming and cutting
It changes, without playing the second multi-medium data from the beginning, saves network flow, improve user experience.
Referring to Fig. 2, the step of showing another embodiment of method that a kind of multi-medium data of the embodiment of the present invention plays
Flow chart can specifically include following steps:
Step 201, during playing the first multi-medium data using the first broadcast interface, when detecting handover trigger
When operation, the playback progress of first multi-medium data is obtained;
In embodiments of the present invention, the first multi-medium data may include audio data or video data, for example, broadcasting
Put in device application program, the first multi-medium data of client terminal playing may include pure audio music or the music it is corresponding
MV.If first multi-medium data is music, corresponding first broadcast interface is music-playing interface, if first multimedia
Data are MV, then corresponding first broadcast interface is MV broadcast interface.
In one embodiment, switching mark can be set in first broadcast interface, for example, switching push button, MV
Mark, music identification etc. are identified when user triggers the switching, for example, clicking the switching push button, then be can be determined that detect and cutting
Change trigger action.
In embodiments of the present invention, when detecting handover trigger operation, available first multi-medium data is broadcast
Degree of putting into.
Step 202, the second multimedia corresponding with first multi-medium data is searched from local presetting database
Data;
In embodiments of the present invention, the second multi-medium data may include audio data or video data, but this second
Multi-medium data is not identical as the type of the first multi-medium data, that is, when the first multi-medium data is audio data, this
Two multi-medium datas are video data, and when the first multi-medium data is video data, which is audio number
According to.
It in one embodiment, can be from local database in order to improve the acquisition efficiency of the second multi-medium data
It is middle to search the second multi-medium data corresponding with the first multi-medium data.Wherein, it can store one in the database of the local
Or multiple second multi-medium datas.
In a preferred embodiment of an embodiment of the present invention, with reference to database generation step flow chart shown in Fig. 3, originally
The database on ground can be generated using following steps:
Step 301, detect whether preset lower load switch is opened;If so, 302 are thened follow the steps, if it is not, thening follow the steps
303;
In embodiments of the present invention, the setting option of load switch under being added in setting function, for example, the setting option can
To be named as " downloading MV automatically under WLAN environment ".
In the concrete realization, setting options can be added in Settings, wherein Settings data are stored in
In com.android.providers.settings/databases/settings.db, the default value of data can in database
It is defined in frameworks/base/packages/SettingsProvider/res/values/def aults.xml, such as
Fruit will add a new field in the database, then following steps can be used:
1) be in defaults.xml newly plus one default value of data definition (certainly can also in code directly to
It is fixed) for example, setting switch is defaulted as open state;2) in frameworks/base/packages/SettingsProvider/
LoadSystemSettings in src/com/android/providers/settings/DatabaseHelper.java
The addition code of newer field is added in () method;3) SettingsProvider.apk is recompilated;4) it uses
Settings.System.putInt();Settings.System.getInt () come be arranged and obtain setting value.
Determine whether the lower load switch is opened by Settings.System.getInt (), the table when return value is 1
Show that lower load switch is opened, indicates that lower load switch is closed when return value is 0.
For example, under WLAN environment, application program can be automatic when " downloading MV automatically under WLAN environment " switchs and open
Corresponding MV is downloaded, when the switch is closed, then under WLAN environment, application program can will not download corresponding MV.
Step 302, it determines candidate first multi-medium data, continues to execute step 304;
In embodiments of the present invention, when load switch is opened instantly, then candidate first multi-medium data, the candidate can be determined
First multi-medium data can be the first multi-medium data for preferentially downloading corresponding second multi-medium data.
As a kind of example of the embodiment of the present invention, which includes more than first matchmaker of user preferences
Volume data and/or user's the first multi-medium data being played on, wherein the first multi-medium data of user preferences is according to user
Historical behavior determine.
Specifically, when user's opening player application program, if the player application is playing more than first
Media data, then can be using first multi-medium data being played on as candidate first multi-medium data.
If the player application has not played the first multi-medium data of the first multi-medium data or broadcasting
Through obtaining corresponding second multi-medium data, then the first multimedia of the user preferences that can be determined according to the historical behavior of user
Data, for example, obtain user broadcasting log recording, counting user in the broadcasting in past preset time period more than all first
The frequency of media data, and using biggish multiple first multi-medium datas of frequency as candidate first multi-medium data;For another example, may be used
To obtain user's collection or downloading the first multi-medium data as candidate first multi-medium data;And/or obtain user's mark
The first multi-medium data for " I likes " is known as candidate first multi-medium data.
It should be noted that the embodiment of the present invention is not limited to the mode of above-mentioned determining candidate first multi-medium data, this
Field technical staff uses other modes to determine that candidate first multi-medium data is possible according to actual needs.
Step 303, prompting download is generated, and shows the prompting download in current display interface, when detecting use
When family is directed to the confirmation operation of the prompting download, determines the first multi-medium data of candidate, continue to execute step 304;
In one embodiment, under WLAN environment, when load switch is closed instantly, prompting download can be generated and show
To user, which can be used for that user is reminded to open the lower load switch, for example, the prompting download can be expressed as " be
It is no to open the switch for downloading MV under WLAN environment automatically ", when user selects "Yes" option, then it is judged to detecting that user is directed to
The confirmation operation of the prompting download is then judged to not detecting that user mentions for the downloading when user selects "No" option
The confirmation operation shown.
When detecting confirmation operation, if user is playing the first multi-medium data, candidate first multi-medium data
It may include user's the first multi-medium data being played on, and/or, according to the determining user preferences of the historical behavior of user
First multi-medium data.If user is not playing the first multi-medium data, candidate first multi-medium data may include root
According to the first multi-medium data of the user preferences that the historical behavior of user determines.
In another embodiment, when load switch is closed instantly, if user's opening player application program but not playing
First multi-medium data, if user click the first broadcast interface in switching mark, for example, in click play list some first
Switching mark in multi-medium data, then can be generated prompting download and show user, which can be used for reminding
User downloads the switching and identifies corresponding second multi-medium data, for example, the prompting download can be expressed as " whether downloading the sound
Happy MV ", when user select "Yes" option when, then be judged to detecting user be directed to the prompting download confirmation operation, when with
When family selects "No" option, then it is judged to not detecting that user is directed to the confirmation operation of the prompting download.Confirm when detecting
When operation, then candidate first multi-medium data may include user's the first multi-medium data being played on.
Step 304, corresponding candidate second multi-medium data of candidate first multi-medium data is downloaded from network, after
It is continuous to execute step 305;
In the concrete realization, after determining candidate first multi-medium data, each candidate more than first matchmaker can be extracted respectively
The attribute information of volume data, for example, attribute information may include song title, song identity etc., and in local database
The attribute information is matched, to search information identical with the attribute information, is successfully determined as in local database if searching
In the presence of with matched candidate second multi-medium data of first multi-medium data of candidate.If lookup is unsuccessful, it is determined as local
Database in there is no with matched candidate second multi-medium data of first multi-medium data of candidate, at this point it is possible to from net
Corresponding candidate second multi-medium data of first multi-medium data of candidate is downloaded in network.
When realizing, the attribute information of first multi-medium data of candidate can be searched in a network, belonged to together with obtaining
Second multi-medium data of one attribute information, as corresponding candidate second multi-medium data of first multi-medium data of candidate.
In an advantageous embodiment, which can be the mode of vertical search, can be in the second multimedia database
(for example, the library MV) searches for the attribute information, belongs to the second multi-medium data of same attribute information to obtain, as the candidate the
Corresponding candidate second multi-medium data of one multi-medium data.
Step 305, candidate second multi-medium data is stored in local database.
After obtaining candidate second multi-medium data, second multi-medium data and corresponding attribute information can be generated
Incidence relation, and the incidence relation and second multi-medium data of candidate are stored in local database.
In order to save the memory space of terminal, in embodiments of the present invention, the candidate second stored in local database
Multi-medium data can be the data with the resolution adaptation of present terminal, and/or, for the data after compression processing.
Specifically, in one embodiment, can be compressed to the second multi-medium data of candidate of downloading, to save
Save certain space.
It in another embodiment, can be according to present terminal if candidate second multi-medium data is video data
The resolution ratio of screen downloads the second multi-medium data of candidate of corresponding resolution ratio, so as to reaching the mesh for saving memory space
, and do not interfere with the viewing effect of video data.
It, can also be to more than second matchmaker of candidate in local database in order to achieve the purpose that save the memory space of terminal
Volume data is managed, then the embodiment of the present invention can also include the following steps:
Determine the second multi-medium data of candidate to be deleted in the database, wherein described to be deleted candidate the
The priority of two multi-medium datas includes the first deletion rank and second deletes rank, and first deletion is superior to described
Second deletes rank;Delete corresponding candidate second multi-medium data of the first deletion rank in the database;For the number
Corresponding candidate second multi-medium data of rank is deleted according in library second, generates to delete and remind, and show that the deletion is reminded, with
User is reminded to delete corresponding candidate second multi-medium data.
Specifically, can be set corresponding preferential for candidate second multi-medium data of each of local database
Grade, and according to priority management second multi-medium data of candidate.
In the concrete realization, which may include that the first deletion rank and second delete rank, wherein this first
The priority for deleting rank is higher than the priority of the second deletion rank.
When realizing, each candidate second multi-medium data in local database can be counted within a preset period of time
Broadcasting frequency, and determine according to broadcasting frequency the priority of second multi-medium data of candidate.As an example, it can set
Corresponding candidate second multi-medium data of first deletion rank is candidate's the second multimedia number never played in preset time period
According to;Second, which deletes corresponding candidate second multi-medium data of rank, is lower than predeterminated frequency threshold for the broadcasting frequency in preset time period
The second multi-medium data of candidate of value.
For example, being the first deletion rank by the priority level initializing for the MV not watched in one week, one week is only watched primary
MV priority level initializing be second delete rank.
Deleting corresponding candidate second multi-medium data of rank for first then can be direct since it was never played
It deletes.
Corresponding candidate second multi-medium data of rank is deleted for second, deletion can be generated and remind and show the use
Family, to remind user to delete corresponding candidate second multi-medium data.
In practice, for the second multi-medium data of candidate of the specified downloading of user, the i.e. time of user oneself intention downloading
The second multi-medium data is selected, rank can be deleted and be arranged lower, to retain the candidate in local database
Second multi-medium data.
It should be noted that the embodiment of the present invention is not limited to the mode of above-mentioned saving memory space, those skilled in the art
Member can also achieve the purpose that save memory space using other modes, for example, intercepting the portion in candidate second multi-medium data
Split screen is made into GIF animation, then deletes corresponding candidate second multi-medium data, retains GIF animation, shows on MV as intercepted
Then together by these picture splicings the picture of corresponding song text is made into corresponding GIF animation and is saved.
In embodiments of the present invention, the second multi-medium data of candidate downloaded in advance is stored in local database, then
When user triggers switching mark to switch to second multi-medium data of candidate, it is enable to respond quickly and switches over, without
There is the phenomenon that Caton, thus to user one smooth switching experience.
In practice, the playout length of second multi-medium data can for specified initial position to specified end position it
Between length.Wherein, specified initial position may include the corresponding position of playback progress or of second multi-medium data
Beginning position or other positions for specifying of user.The specified end position may include the stop bits of second multi-medium data
It sets or other positions that user specifies.
Step 203, second multi-medium data is being opened from the background;
When detecting handover trigger operation, if can be searched from local presetting database and currently playing first
Corresponding second multi-medium data of multi-medium data then can open the second multimedia number starting another thread from the background first
According to.
Step 204, the playback progress based on first multi-medium data, plays out second multi-medium data
It is synchronous;
Specifically, after the thread on backstage starts the second multi-medium data on backstage, it can be according to the first of foreground broadcasting
The playback progress of multi-medium data plays out synchronization to corresponding second multi-medium data.
In the concrete realization, which may include real-time play position, can be by calling in MusicPlayer
GetCurrentPosition () method obtain real-time play position.
In a preferred embodiment of an embodiment of the present invention, step 204 can further include following sub-step:
The playback progress of second multi-medium data is adjusted to the real-time play position;It determines more than described first
The corresponding first interception position range of media data, and, the corresponding second interception position range of second multi-medium data;
Corresponding first data intercept of the first interception position range is obtained from first multi-medium data, and, from described
Corresponding second data intercept of the second interception position range is obtained in second multi-medium data;Carry out the first interception number
According to the Sound Match with second data intercept, to realize first multi-medium data and second multi-medium data
It plays and synchronizes.
It in the concrete realization, can be by the real-time broadcasting position after the real-time play position for determining the first multi-medium data
It sets front and back and expands the region obtained after set distance, as the corresponding first interception position range of the first multi-medium data.
For example, taking the model obtained after 5s before and after this position if the real-time play position of currently playing music is 10s
It encloses for (5,15), as the first interception position range.
By the playback progress of the second multi-medium data adjust at the real-time play position with rear, can be by the real-time broadcasting
Expand the region obtained after set distance before and after position, as the corresponding second interception position range of the second multi-medium data.
After obtaining the first interception position range and the second interception position range, it can intercept in the first multi-medium data
Corresponding first data intercept of first interception position range, for example, obtaining (5,15) corresponding music data conduct in music
First data intercept.And corresponding second data intercept of the second interception position range in the second multi-medium data of interception, example
Such as, obtain MV in (5,15) corresponding video data as the second data intercept.
After obtaining the first data intercept and the second data intercept, can by the two using Sound Match Recognition Algorithm into
Row Sound Match achievees the purpose that play synchronous so that two kinds of sound are aligned.
Step 205, the interface currently shown is switched to by first broadcast interface and is used to play more than second matchmaker
Second broadcast interface of volume data, and
Step 206, first multi-medium data is switched to backstage to play out, wherein playing described the from the background
When one multi-medium data and the second broadcast interface play the second multi-medium data, by first multi-medium data or described the
One of mute broadcasting of carry out of two multi-medium datas.
After background thread completes being played simultaneously of the second multi-medium data, before the second multi-medium data being switched to
Platform plays out, then user would not feel the Caton of music.
When showing corresponding second broadcast interface of second multi-medium data in foreground, the first multi-medium data is switched
To playing out from the background, during foreground plays the second multi-medium data and backstage plays the first multi-medium data, protect
The playback progress for holding the two is identical.
Experience is preferably played in order to have, the first multi-medium data and the second broadcast interface is played on backstage and plays the
It, can be by one of mute broadcasting of carry out of the two, for example, the mute broadcasting pictures of foreground MV, backstage when two multi-medium datas
Music follow and play together;Alternatively, the music on backstage follows mute broadcasting when the MV broadcasting pictures of foreground.
When the handover trigger for detecting user again operates, the first multi-medium data can be switched into foreground and opened up
Show, and played out according to real-time playback progress, and the second multi-medium data is switched into backstage and is played out.
In embodiments of the present invention, during playing the first multi-medium data using the first broadcast interface, work as detection
When being operated to handover trigger, the playback progress of available first multi-medium data, and obtained in advance from local database
It has been caching that, corresponding second multi-medium data of first multi-medium data improves the acquisition efficiency of the second multi-medium data,
The handoff response to user is improved, after being synchronously completed in the background to second multi-medium data, first can be broadcast
Changing interface is put to the second broadcast interface for being used to play the second multi-medium data, the second broadcast interface that such user sees
Playback progress is consistent with the playback progress of the first broadcast interface, realizes to be better achieved more than the first multi-medium data and second
The seamless switching of media data improves user experience.
Referring to Fig. 4, the step of showing method that a kind of multi-medium data of the embodiment of the present invention plays another embodiment
Flow chart can specifically include following steps:
Step 401, during playing the first multi-medium data using the first broadcast interface, when detecting handover trigger
When operation, the playback progress of first multi-medium data is obtained;
Step 402, if more than second matchmaker corresponding with first multi-medium data is not present in local presetting database
Volume data then downloads second multi-medium data from network;
In embodiments of the present invention, the second multi-medium data is not identical as the type of the first multi-medium data, that is, when
When one multi-medium data is audio data, which is video data, when the first multi-medium data is video counts
According to when, second multi-medium data be audio data.
When searching in local database less than the second multimedia corresponding with the first currently playing multi-medium data
When data, second multi-medium data can be then downloaded in real time from network.
Step 403, during downloading second multi-medium data from network, by the interface currently shown by institute
It states the first broadcast interface and switches to the second broadcast interface for playing second multi-medium data, and by more than first matchmaker
Volume data switches to backstage and plays out;
In the concrete realization, in order to guarantee user play the second multi-medium data demand, and guarantee to more than first matchmaker
The broadcasting experience effect of volume data, during loading the second multi-medium data from network, the boundary that will can currently show
Face is switched to the second broadcast interface for playing second multi-medium data by the first broadcast interface, by the first multimedia number
It is played out according to backstage is switched to, while showing second broadcast interface on foreground.For example, during loading MV, sound is allowed
Happy backstage plays, while loading MV.
It should be noted that during the second multi-medium data of downloading, if the second multi-medium data has not been downloaded
At, but detect the handover trigger operation of user, it is shown simultaneously at this point it is possible to which the first multi-medium data is switched to foreground
It plays, and stops the downloading of the second multi-medium data, thus saving network flow.
Step 404, after second multi-medium data downloading is completed, boundary is played second according to the playback progress
Second multi-medium data is played in face, wherein playing first multi-medium data and the second broadcast interface from the background
It is when playing the second multi-medium data, one of carry out of first multi-medium data or second multi-medium data is quiet
Sound plays.
After the second multi-medium data loads successfully, can according to the real-time playback progress of the first multi-medium data,
The second multi-medium data is played simultaneously in the second broadcast interface.
Experience is preferably played in order to have, the first multi-medium data and the second broadcast interface is played on backstage and plays the
It, can be by one of mute broadcasting of carry out of the two, for example, the mute broadcasting pictures of foreground MV, backstage when two multi-medium datas
Music follow and play together;Alternatively, the music on backstage follows mute broadcasting when the MV broadcasting pictures of foreground.
When the handover trigger for detecting user again operates, the first multi-medium data can be switched into foreground and shown
Show, and played out according to real-time playback progress, and the second multi-medium data is switched into backstage and is played out.
In embodiments of the present invention, during playing the first multi-medium data using the first broadcast interface, work as detection
To when handover trigger operation, if local be not present corresponding second multi-medium data of first multi-medium data, can in real time from
Second multi-medium data is loaded in network, during loading the second multi-medium data, can be shown more than second on foreground
Corresponding second broadcast interface of media data, and the second multi-medium data is switched into backstage and is played out, to guarantee to load
The broadcasting experience of first multi-medium data when the second multi-medium data, after the second multi-medium data loads successfully, by this
The playback progress of two multi-medium datas is adjusted to consistent with the playback progress of the first multi-medium data, to guarantee the first multimedia
The seamless switching of data and the second multi-medium data.
Referring to Fig. 5, the step of showing the method another embodiment that a kind of multi-medium data of the embodiment of the present invention plays
Flow chart can specifically include following steps:
Step 501, during playing the first multi-medium data using the first broadcast interface, when detecting handover trigger
When operation, the playback progress of first multi-medium data is obtained;
Step 502, the playback progress of first multi-medium data is sent to server;
Step 503, receive what server returned, corresponding second multi-medium data of first multi-medium data;
Wherein, when first multi-medium data is audio data, second multi-medium data is video data, when
When first multi-medium data is video data, second multi-medium data is audio data.
Step 504, the interface currently shown is switched to by first broadcast interface and is used to play more than second matchmaker
Second broadcast interface of volume data, and
Step 505, first multi-medium data is switched to backstage to play out, wherein playing described the from the background
When one multi-medium data and the second broadcast interface play the second multi-medium data, by first multi-medium data or described the
One of mute broadcasting of carry out of two multi-medium datas.
In embodiments of the present invention, which may include Cloud Server, when getting currently playing more than first matchmaker
After the playback progress of volume data, the attribute information of first multi-medium data and the playback progress can be uploaded to cloud clothes
It is engaged in device, then Cloud Server obtains corresponding second multi-medium data according to the attribute information, and by second multi-medium data
It is adjusted to be issued to client after the playback progress and play out.
In one embodiment, in order to save memory space and flow, which is from the broadcasting
Progress starts data corresponding to the end position of second multi-medium data.
Preferably, in order to guarantee that the listening experience of user, second multi-medium data can be past from the playback progress
The position of preceding pre-determined distance starts, to the corresponding data of end position of second multi-medium data, for example, more than second matchmaker
Volume data can be the 10s before the playback progress to the video data terminated.
The embodiment of the present invention can obtain the second multi-medium data by Cloud Server, save depositing for local database
Space is stored up, the response speed of terminal is improved.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 6, a kind of structural block diagram of the Installation practice of multi-medium data broadcasting of the embodiment of the present invention is shown,
It can specifically include following module:
First multi-medium data playing module 601, for playing the first multi-medium data using the first broadcast interface
In the process, when detecting handover trigger operation, the playback progress of first multi-medium data is obtained;
Second multi-medium data obtains module 602, for obtaining corresponding second multimedia of first multi-medium data
Data, wherein when first multi-medium data is audio data, second multi-medium data is video data, works as institute
State the first multi-medium data be video data when, second multi-medium data be audio data;
Switching module 603, for the interface currently shown is switched to by first broadcast interface be used to play it is described
Second broadcast interface of the second multi-medium data, in second broadcast interface, second multi-medium data is according to described
Playback progress plays out.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Second multi-medium data opening module, for opening second multi-medium data from the background;
Synchronization module is played, for the playback progress based on first multi-medium data, to the second multimedia number
According to playing out synchronization.
In a preferred embodiment of an embodiment of the present invention, the playback progress includes real-time play position, described to broadcast
Putting synchronization module may include following submodule:
Position adjustment submodule, for adjusting the playback progress of second multi-medium data to the real-time broadcasting position
Set place;
Range determination submodule, for determining the corresponding first interception position range of first multi-medium data, and,
The corresponding second interception position range of second multi-medium data;
Data cutout submodule, it is corresponding for obtaining the first interception position range from first multi-medium data
The first data intercept, and, the second interception position range corresponding second is obtained from second multi-medium data
Data intercept;
Sound Match submodule, for carrying out the Sound Match of first data intercept Yu second data intercept,
To realize that first multi-medium data is synchronous with the broadcasting of second multi-medium data.
In a preferred embodiment of an embodiment of the present invention, the switching module 603 may include following submodule:
First changing interface submodule is used to broadcast for switching to the interface currently shown by first broadcast interface
The second broadcast interface of second multi-medium data is put, and
Backstage plays submodule, plays out for first multi-medium data to be switched to backstage, wherein on backstage
When playing first multi-medium data and the second broadcast interface the second multi-medium data of broadcasting, by the first multimedia number
According to or second multi-medium data one of mute broadcasting of carry out.
In a preferred embodiment of an embodiment of the present invention, second multi-medium data obtains module 602 and can wrap
Include following submodule:
Local acquisition submodule, it is corresponding with first multi-medium data for being searched from local presetting database
Second multi-medium data;
Network downloads submodule, if for being not present and first multi-medium data corresponding second in the database
Multi-medium data then downloads second multi-medium data from network.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Candidate first multi-medium data determining module, if for detecting that preset lower load switch is opened, it is determined that candidate
First multi-medium data, wherein candidate first multi-medium data includes the first multi-medium data and/or use of user preferences
Family the first multi-medium data being played on, wherein the first multi-medium data of the user preferences is according to the history row of user
For determination;
Candidate second multi-medium data download module, it is corresponding for downloading candidate first multi-medium data from network
The second multi-medium data of candidate;
Memory module, for candidate second multi-medium data to be stored in local database.
In a preferred embodiment of an embodiment of the present invention, described device can also include following module:
Data determining module to be deleted, for determining the second multi-medium data of candidate to be deleted in the database,
Second multi-medium data of candidate to be deleted includes the first deletion rank and second deletes rank, and described first deletes grade
It Gao Yu not the second deletion rank;
Removing module, for deleting corresponding candidate second multi-medium data of the first deletion rank in the database;
Cue module is deleted, for deleting the corresponding candidate second multimedia number of rank in the database second
According to generation, which is deleted, to be reminded, and shows that the deletion is reminded, to remind user to delete corresponding candidate second multi-medium data.
In another preferred embodiment of the embodiment of the present invention, second multi-medium data obtains module 602 can be with
Including following submodule:
Data sending submodule, for the playback progress of first multi-medium data to be sent to server;
Second multi-medium data receiving submodule, for receiving server return, first multi-medium data is corresponding
The second multi-medium data.
In a preferred embodiment of an embodiment of the present invention, second multi-medium data is the resolution with present terminal
The data and/or be the data after compression processing that rate is adapted to;The playout length of second multi-medium data is to specify
To the length between specified end position, the specified initial position includes playback progress corresponding position or described for beginning position
The initial position of second multi-medium data;The specified end position includes the end position of second multi-medium data.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
Mobile terminal provided in an embodiment of the present invention can be realized mobile terminal in the embodiment of the method for Fig. 1 to Fig. 5 and realize
Each process, to avoid repeating, which is not described herein again.The mobile terminal is playing the first multimedia using the first broadcast interface
During data, when detecting handover trigger operation, the playback progress of available first multi-medium data and this
Corresponding second multi-medium data of one multi-medium data is then used to play more than second matchmaker switching to the first broadcast interface
When the second broadcast interface of volume data, the second multi-medium data can be broadcast according to the playback progress of the first multi-medium data
It puts, any stage so as to play in the first multi-medium data opens the broadcasting of the second multi-medium data, and keeps first
Multi-medium data is synchronous with the broadcasting of the second multi-medium data, and the first multi-medium data of realization is seamless with the second multi-medium data
Switching saves network flow, improves user experience without playing the second multi-medium data from the beginning.
A kind of hardware structural diagram of Fig. 7 mobile terminal of each embodiment to realize the present invention, the mobile terminal 70
Including but not limited to: radio frequency unit 71, network module 72, audio output unit 73, input unit 74, sensor 75, display are single
The components such as member 76, user input unit 77, interface unit 78, memory 79, processor 710 and power supply 711.This field skill
Art personnel are appreciated that mobile terminal structure shown in Fig. 7 does not constitute the restriction to mobile terminal, and mobile terminal can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.In the embodiment of the present invention
In, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, palm PC, car-mounted terminal, wearable device,
And pedometer etc..
Wherein, processor 710, for working as inspection during playing the first multi-medium data using the first broadcast interface
When measuring handover trigger operation, the playback progress of first multi-medium data is obtained;Obtain first multi-medium data pair
The second multi-medium data answered, wherein when first multi-medium data is audio data, second multi-medium data is
Video data, when first multi-medium data is video data, second multi-medium data is audio data;It will be current
The interface of display is switched to the second broadcast interface for playing second multi-medium data, In by first broadcast interface
In second broadcast interface, second multi-medium data is played out according to the playback progress.
Any stage that the embodiment of the present invention can be played in the first multi-medium data opens broadcasting for the second multi-medium data
It puts, and keeps the first multi-medium data synchronous with the broadcasting of the second multi-medium data, realize the first multi-medium data and more than second
The seamless switching of media data saves network flow, improves user's body without playing the second multi-medium data from the beginning
It tests.
It should be understood that the embodiment of the present invention in, radio frequency unit 71 can be used for receiving and sending messages or communication process in, signal
It sends and receivees, specifically, being handled after the downlink data from base station is received to processor 710;In addition, by the number of uplink
According to being sent to base station.In general, radio frequency unit 71 include but is not limited to antenna, at least one amplifier, transceiver, coupler,
Low-noise amplifier, duplexer etc..In addition, radio frequency unit 71 can also system and network and other equipment be logical by wireless communication
Letter.
Mobile terminal provides wireless broadband internet by network module 72 for user and accesses, and such as helps user's transmitting-receiving
Email, browsing webpage and access streaming video etc..
Audio output unit 73 can be received by radio frequency unit 71 or network module 72 or be stored in memory 79
Audio data be converted into audio signal and export be sound.Moreover, audio output unit 73 can also be provided with movement eventually
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that end 70 executes.Audio
Output unit 73 includes loudspeaker, buzzer and receiver etc..
Input unit 74 is for receiving audio or video signal.Input unit 74 may include graphics processor
(Graphics Processing Unit, GPU) 741 and microphone 742, graphics processor 741 in video acquisition mode or
The image data of the static images or video that are obtained in image capture mode by image capture apparatus (such as camera) is handled.
Treated, and picture frame may be displayed on display unit 76.Through graphics processor 741, treated that picture frame can store
It is sent in memory 79 (or other storage mediums) or via radio frequency unit 71 or network module 72.Microphone 742 can
It to receive sound, and can be audio data by such acoustic processing.Treated, and audio data can be in telephone relation
The format output that mobile communication base station can be sent to via radio frequency unit 71 is converted in the case where mode.
Mobile terminal 70 further includes at least one sensor 75, such as optical sensor, motion sensor and other sensings
Device.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment light
The light and shade of line adjusts the brightness of display panel 761, and proximity sensor can close display when mobile terminal 70 is moved in one's ear
Panel 761 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three in all directions
Axis) acceleration size, can detect that size and the direction of gravity when static, it is (such as horizontal to can be used to identify mobile terminal posture
Vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Sensor
75 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, hygrometer,
Thermometer, infrared sensor etc., details are not described herein.
Display unit 76 is for showing information input by user or being supplied to the information of user.Display unit 76 may include
Display panel 761 can use liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 761.
User input unit 77 can be used for receiving the number or character information of input, and generate the user with mobile terminal
Setting and the related key signals input of function control.Specifically, user input unit 77 include touch panel 771 and other
Input equipment 772.Touch panel 771, also referred to as touch screen collect the touch operation of user on it or nearby and (for example use
Family uses the behaviour of any suitable object or attachment on touch panel 771 or near touch panel 771 such as finger, stylus
Make).Touch panel 771 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used
The touch orientation at family, and touch operation bring signal is detected, transmit a signal to touch controller;Touch controller is from touch
Touch information is received in detection device, and is converted into contact coordinate, then gives processor 710, is received processor 710 and is sent
Order and executed.Furthermore, it is possible to be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves
Touch panel 771.In addition to touch panel 771, user input unit 77 can also include other input equipments 772.Specifically,
His input equipment 772 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), rail
Mark ball, mouse, operating stick, details are not described herein.
Further, touch panel 771 can be covered on display panel 761, when touch panel 771 detect on it or
After neighbouring touch operation, processor 710 is sent to determine the type of touch event, is followed by subsequent processing device 710 according to touch thing
The type of part provides corresponding visual output on display panel 761.Although in Fig. 7, touch panel 771 and display panel
761 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments it is possible to
The function that outputs and inputs of touch panel 771 and display panel 761 being integrated and realized mobile terminal, does not limit specifically herein
It is fixed.
Interface unit 78 is the interface that external device (ED) is connect with mobile terminal 70.For example, external device (ED) may include wired
Or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 78 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and will
The one or more elements or can be used in mobile terminal 70 and outside that the input received is transferred in mobile terminal 70
Data are transmitted between device.
Memory 79 can be used for storing software program and various data.Memory 79 can mainly include storing program area and
Storage data area, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (such as sound according to mobile phone
Frequency evidence, phone directory etc.) etc..In addition, memory 79 may include high-speed random access memory, it can also include non-volatile
Memory, for example, at least a disk memory, flush memory device or other volatile solid-state parts.
Processor 710 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 79, and calls and is stored in memory
Data in 79 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Processor
710 may include one or more processing units;Preferably, processor 710 can integrate application processor and modem processor,
Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing
Line communication.It is understood that above-mentioned modem processor can not also be integrated into processor 710.
Mobile terminal 70 can also include the power supply 711 (such as battery) powered to all parts, it is preferred that power supply 711
Can be logically contiguous by power-supply management system and processor 710, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 70 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 710, and memory 79 is stored in
It is real when which is executed by processor 710 on reservoir 79 and the computer program that can be run on the processor 710
The each process for the embodiment of the method that existing above-mentioned multi-medium data plays, and identical technical effect can be reached, to avoid repeating,
Which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each mistake for the embodiment of the method that above-mentioned multi-medium data plays when being executed by processor
Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium
Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic or disk etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within protection of the invention.
Claims (16)
1. a kind of method that multi-medium data plays, which is characterized in that the described method includes:
During playing the first multi-medium data using the first broadcast interface, when detecting handover trigger operation, obtain
The playback progress of first multi-medium data;
Obtain corresponding second multi-medium data of first multi-medium data, wherein when first multi-medium data is sound
Frequency according to when, second multi-medium data is video data, when first multi-medium data is video data, described the
Two multi-medium datas are audio data;
The interface currently shown is switched to by first broadcast interface and is used to play the second of second multi-medium data
Broadcast interface, in second broadcast interface, second multi-medium data is played out according to the playback progress;
The interface that will currently show is switched to by first broadcast interface and is used to play second multi-medium data
Second broadcast interface, in second broadcast interface, second multi-medium data is played out according to the playback progress
The step of include:
The interface currently shown is switched to by first broadcast interface and is used to play the second of second multi-medium data
Broadcast interface, and
First multi-medium data is switched to backstage to play out, wherein playing first multi-medium data from the background
And when second broadcast interface the second multi-medium data of broadcasting, by first multi-medium data or second multi-medium data
One of mute broadcasting of carry out.
2. the method according to claim 1, wherein being played at the interface that will currently show by described first
Changing interface is described in second broadcast interface to the second broadcast interface for being used to play second multi-medium data
Before the step of second multi-medium data is played out according to the playback progress, further includes:
Second multi-medium data is being opened from the background;
Based on the playback progress of first multi-medium data, synchronization is played out to second multi-medium data.
3. according to the method described in claim 2, it is characterized in that, the playback progress includes real-time play position, the base
In the playback progress of first multi-medium data, playing out synchronous step to second multi-medium data includes:
The playback progress of second multi-medium data is adjusted to the real-time play position;
Determine the corresponding first interception position range of first multi-medium data, and, second multi-medium data is corresponding
The second interception position range;
Corresponding first data intercept of the first interception position range is obtained from first multi-medium data, and, from
Corresponding second data intercept of the second interception position range is obtained in second multi-medium data;
The Sound Match of first data intercept Yu second data intercept is carried out, to realize first multi-medium data
It is synchronous with the broadcasting of second multi-medium data.
4. the method according to claim 1, wherein described obtain first multi-medium data corresponding second
The step of multi-medium data includes:
The second multi-medium data corresponding with first multi-medium data is searched from local presetting database;
If the second multi-medium data corresponding with first multi-medium data is not present in the database, under in network
Carry second multi-medium data.
5. method according to claim 1 or 2 or 3 or 4, which is characterized in that broadcast described using the first broadcast interface
During putting the first multi-medium data, when detecting handover trigger operation, the broadcasting of first multi-medium data is obtained
Before the step of progress, further includes:
If detecting, preset lower load switch is opened, it is determined that candidate first multi-medium data, wherein candidate more than first matchmaker
Volume data includes the first multi-medium data and/or user's the first multi-medium data being played on of user preferences;Wherein, described
First multi-medium data of user preferences is determined according to the historical behavior of user;
Corresponding candidate second multi-medium data of candidate first multi-medium data is downloaded from network;
Candidate second multi-medium data is stored in local database.
6. according to the method described in claim 5, it is characterized in that, candidate second multi-medium data is stored in described
After step in local database, further includes:
Determine the second multi-medium data of candidate to be deleted in the database, candidate's the second multimedia number to be deleted
According to including that the first deletion rank and second delete rank, first deletion is superior to described second and deletes rank;
Delete corresponding candidate second multi-medium data of the first deletion rank in the database;
Corresponding candidate second multi-medium data of rank is deleted in the database second, generates to delete and remind, and show
The deletion is reminded, to remind user to delete corresponding candidate second multi-medium data.
7. the method according to claim 1, wherein described obtain first multi-medium data corresponding second
The step of multi-medium data includes:
The playback progress of first multi-medium data is sent to server;
Receive what server returned, corresponding second multi-medium data of first multi-medium data.
8. method described according to claim 1 or 2 or 3 or 4 or 7, which is characterized in that second multi-medium data is and works as
Data of the resolution adaptation of preceding terminal and/or be the data after compression processing;The broadcasting of second multi-medium data
Length is specified initial position to the length between specified end position, and the specified initial position includes that playback progress is corresponding
Position or the position of the pre-determined distance from the playback progress forward;The specified end position includes second multimedia
The end position of data.
9. the device that a kind of multi-medium data plays, which is characterized in that described device includes:
First multi-medium data playing module is used for during playing the first multi-medium data using the first broadcast interface,
When detecting handover trigger operation, the playback progress of first multi-medium data is obtained;
Second multi-medium data obtains module, for obtaining corresponding second multi-medium data of first multi-medium data,
In, when first multi-medium data is audio data, second multi-medium data is video data, more than described first
When media data is video data, second multi-medium data is audio data;
Switching module is used to play more than second matchmaker for switching to the interface currently shown by first broadcast interface
Second broadcast interface of volume data, in second broadcast interface, second multi-medium data is according to the playback progress
It plays out;
The switching module includes:
First changing interface submodule is used to play institute for switching to the interface currently shown by first broadcast interface
The second broadcast interface of the second multi-medium data is stated, and
Backstage plays submodule, plays out for first multi-medium data to be switched to backstage, wherein plays on backstage
When first multi-medium data and the second broadcast interface play the second multi-medium data, by first multi-medium data or
One of mute broadcasting of carry out of second multi-medium data.
10. device according to claim 9, which is characterized in that further include:
Second multi-medium data opening module, for opening second multi-medium data from the background;
Play synchronization module, for the playback progress based on first multi-medium data, to second multi-medium data into
Row, which plays, to be synchronized.
11. device according to claim 10, which is characterized in that the playback progress includes real-time play position, described
Playing synchronization module includes:
Position adjustment submodule, for adjusting the playback progress of second multi-medium data to the real-time play position
Place;
Range determination submodule, for determining the corresponding first interception position range of first multi-medium data, and, it is described
The corresponding second interception position range of second multi-medium data;
Data cutout submodule, for obtaining the first interception position range corresponding from first multi-medium data
One data intercept, and, corresponding second interception of the second interception position range is obtained from second multi-medium data
Data;
Sound Match submodule, for carrying out the Sound Match of first data intercept Yu second data intercept, with reality
Existing first multi-medium data is synchronous with the broadcasting of second multi-medium data.
12. device according to claim 9, which is characterized in that second multi-medium data obtains module and includes:
Local acquisition submodule, for being searched and first multi-medium data corresponding second from local presetting database
Multi-medium data;
Network downloads submodule, if for more than second matchmaker corresponding with first multi-medium data to be not present in the database
Volume data then downloads second multi-medium data from network.
13. according to device described in claim 9 or 10 or 11 or 12, which is characterized in that further include:
Candidate first multi-medium data determining module, if for detecting that preset lower load switch is opened, it is determined that candidate first
Multi-medium data, wherein the first multi-medium data that candidate first multi-medium data includes user preferences and/or user are just
In the first multi-medium data of broadcasting, wherein the first multi-medium data of the user preferences is true according to the historical behavior of user
It is fixed;
Candidate second multi-medium data download module, for downloading the corresponding time of candidate first multi-medium data from network
Select the second multi-medium data;
Memory module, for candidate second multi-medium data to be stored in local database.
14. device according to claim 13, which is characterized in that further include:
Data determining module to be deleted, it is described for determining the second multi-medium data of candidate to be deleted in the database
The second multi-medium data of candidate to be deleted includes the first deletion rank and second deletes rank, and described first deletes rank height
Rank is deleted in described second;
Removing module, for deleting corresponding candidate second multi-medium data of the first deletion rank in the database;
Cue module is deleted, it is raw for deleting corresponding candidate second multi-medium data of rank in the database second
It is reminded at deleting, and shows that the deletion is reminded, to remind user to delete corresponding candidate second multi-medium data.
15. device according to claim 9, which is characterized in that second multi-medium data obtains module and includes:
Data sending submodule, for the playback progress of first multi-medium data to be sent to server;
Second multi-medium data receiving submodule, for receiving server return, first multi-medium data corresponding the
Two multi-medium datas.
16. according to device described in claim 9 or 10 or 11 or 12 or 15, which is characterized in that second multi-medium data
For the resolution adaptation with present terminal data and/or be data after compression processing;Second multi-medium data
Playout length be specified initial position to the length specified between end position, the specified initial position includes playback progress
Corresponding position or the position of the pre-determined distance from the playback progress forward;The specified end position includes described second
The end position of multi-medium data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959473.8A CN107734376B (en) | 2017-10-16 | 2017-10-16 | A kind of method and device of multi-medium data broadcasting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959473.8A CN107734376B (en) | 2017-10-16 | 2017-10-16 | A kind of method and device of multi-medium data broadcasting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107734376A CN107734376A (en) | 2018-02-23 |
CN107734376B true CN107734376B (en) | 2019-11-26 |
Family
ID=61211554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710959473.8A Active CN107734376B (en) | 2017-10-16 | 2017-10-16 | A kind of method and device of multi-medium data broadcasting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107734376B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110310672B (en) * | 2018-03-27 | 2023-06-23 | 厦门歌乐电子企业有限公司 | Music player and control method thereof |
CN108566561B (en) * | 2018-04-18 | 2022-01-28 | 腾讯科技(深圳)有限公司 | Video playing method, device and storage medium |
CN109302538B (en) * | 2018-12-21 | 2020-12-04 | 广州酷狗计算机科技有限公司 | Music playing method, device, terminal and storage medium |
CN109756784B (en) * | 2018-12-21 | 2020-11-17 | 广州酷狗计算机科技有限公司 | Music playing method, device, terminal and storage medium |
CN109640125B (en) * | 2018-12-21 | 2021-04-27 | 广州酷狗计算机科技有限公司 | Video content processing method, device, server and storage medium |
CN110248240A (en) * | 2019-06-11 | 2019-09-17 | 北京达佳互联信息技术有限公司 | Playback method, device, electronic equipment and the storage medium of video |
CN111339324A (en) * | 2020-02-21 | 2020-06-26 | 维沃移动通信有限公司 | Multimedia playing method and electronic equipment |
CN111615002B (en) * | 2020-04-30 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Video background playing control method, device and system and electronic equipment |
CN111930973B (en) * | 2020-08-14 | 2022-06-21 | 北京字节跳动网络技术有限公司 | Multimedia data playing method and device, electronic equipment and storage medium |
CN113486210A (en) * | 2021-06-30 | 2021-10-08 | 宁波星巡智能科技有限公司 | Video playing method, device, equipment and medium during awakening of battery camera |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101640057A (en) * | 2009-05-31 | 2010-02-03 | 北京中星微电子有限公司 | Audio and video matching method and device therefor |
CN105898528A (en) * | 2015-12-02 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Multimedia processing method based on Android platform, device and mobile terminal device |
CN105577947B (en) * | 2015-12-18 | 2021-11-16 | 联想(北京)有限公司 | Control method and electronic device |
CN106792075A (en) * | 2017-01-04 | 2017-05-31 | 合网络技术(北京)有限公司 | Video broadcasting method and device |
CN107155126A (en) * | 2017-03-30 | 2017-09-12 | 北京奇艺世纪科技有限公司 | A kind of audio and video playing method and device |
-
2017
- 2017-10-16 CN CN201710959473.8A patent/CN107734376B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107734376A (en) | 2018-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107734376B (en) | A kind of method and device of multi-medium data broadcasting | |
CN107801106B (en) | A kind of video clip intercept method and electronic equipment | |
CN108762640A (en) | A kind of display methods and terminal of barrage information | |
CN104469143A (en) | Video sharing method and device | |
CN108549508A (en) | A kind of application icon display methods and mobile terminal | |
CN108363524B (en) | A kind of application icon display methods and mobile terminal | |
CN108920239A (en) | A kind of long screenshotss method and mobile terminal | |
CN109062411A (en) | A kind of screen luminance adjustment method and mobile terminal | |
CN110213440A (en) | A kind of images share method and terminal | |
CN109121008A (en) | A kind of video previewing method, device, terminal and storage medium | |
CN109548117A (en) | A kind of network selecting method and mobile terminal | |
CN108111676A (en) | A kind of application control method and mobile terminal | |
CN108933964A (en) | A kind of barrage display methods, playback equipment and controlling terminal | |
CN109189303A (en) | Method for editing text and mobile terminal | |
CN108898555A (en) | A kind of image processing method and terminal device | |
CN110209332A (en) | A kind of information processing method and terminal device | |
CN110062273A (en) | The method and mobile terminal of screenshot | |
CN110225178A (en) | A kind of information display method and terminal device | |
CN108962187A (en) | Screen luminance adjustment method and mobile terminal | |
CN109407948A (en) | A kind of interface display method and mobile terminal | |
CN109271262A (en) | A kind of display methods and terminal | |
CN108920054A (en) | A kind of application recommended method and terminal | |
CN109408080A (en) | A kind of method and terminal of application upgrade | |
CN108174109A (en) | A kind of photographic method and mobile terminal | |
CN107908348B (en) | The method and mobile terminal of display |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |