CN108156524A - Control method for playing back, device and the computer readable storage medium of multimedia resource - Google Patents

Control method for playing back, device and the computer readable storage medium of multimedia resource Download PDF

Info

Publication number
CN108156524A
CN108156524A CN201711485690.4A CN201711485690A CN108156524A CN 108156524 A CN108156524 A CN 108156524A CN 201711485690 A CN201711485690 A CN 201711485690A CN 108156524 A CN108156524 A CN 108156524A
Authority
CN
China
Prior art keywords
multimedia resource
online
cached
list
connection state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711485690.4A
Other languages
Chinese (zh)
Inventor
张小娇
朱文祥
刘廷超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qibao Technology Co ltd
Original Assignee
Beijing Qibao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qibao Technology Co ltd filed Critical Beijing Qibao Technology Co ltd
Priority to CN201711485690.4A priority Critical patent/CN108156524A/en
Publication of CN108156524A publication Critical patent/CN108156524A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/442Monitoring 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/44227Monitoring of local network, e.g. connection or bandwidth variations; Detecting new devices in the local network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4335Housekeeping operations, e.g. prioritizing content for deletion because of storage space restrictions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally

Landscapes

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

Abstract

The invention discloses the control method for playing back, device and computer readable storage medium of multimedia resource.The method includes:Judge whether good with the connection state of online multimedia Resource Server under current network;When playing online list, the online multimedia resource of at least part in the online list is cached;When the connection state is bad, the broadcasting to the online list is completed according to the multimedia resource cached;After the multimedia resource cached finishes, if still judging, the connection state is bad, is switched to broadcasting local list.The present solution provides a kind of multimedia resources smooth, that shake is small to play control mode, reduces because the problems such as interim card is played caused by Network status, the variation of the basic unaware Network status of user improves user experience.

Description

Control method for playing back, device and the computer readable storage medium of multimedia resource
Technical field
The present invention relates to MultiMedia Fields, and in particular to control method for playing back, device and the computer of multimedia resource can Read storage medium.
Background technology
Many Intelligent hardware such as Story machines, smartwatch etc. at present all have the playing function of multimedia resource.By Upper there is no the memory for using large capacity due to designing in many Intelligent hardwares, these can only the multimedia that provides of hardware Resource playing function is also included within line playing function, this just needs to interfere online in face of network jitter, even network interruption etc. The scene of broadcasting, how to provide better result of broadcast to the user under these scenes is problem to be solved.
Invention content
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least partly State the control method for playing back, device and computer readable storage medium of the multimedia resource of problem.
One side according to the present invention provides a kind of control method for playing back of multimedia resource, including:
Judge whether good with the connection state of online multimedia Resource Server under current network;
When playing online list, the online multimedia resource of at least part in the online list is cached;
When the connection state is bad, the broadcasting to the online list is completed according to the multimedia resource cached;
After the multimedia resource cached finishes, if still judging, the connection state is bad, is switched to broadcasting Local list.
Optionally, it is described when playing online list, to the online multimedia resource of at least part in the online list Caching is carried out to include:
In the destination multimedia resource in playing the online list, the destination multimedia resource is cached;
And/or
According to the broadcasting order of the online list, the multimedia resource of preset quantity in the online list is delayed It deposits.
Optionally, the online multimedia resource of at least part in the online list cache and is included:
The spatial cache of the default size of setting is deleted with storing the multimedia resource of caching when the spatial cache is used up The wherein earliest multimedia resource of cache-time;
And/or
When the multimedia resource cached reaches preset quantity, the earliest multimedia resource of cache-time is deleted.
Optionally, the connection state is bad including as follows one or more:
The response time of the online multimedia Resource Server is more than corresponding predetermined threshold value;
Network speed is less than corresponding predetermined threshold value;
Packet loss is more than corresponding predetermined threshold value.
Optionally, the multimedia resource completion that the basis has cached includes the broadcasting of the online list:
In the multimedia resource for playing caching, judge whether the multimedia resource is complete;
The multimedia resource is directly played if complete;
If imperfect, the multimedia resource is skipped, alternatively, being played again after handling the multimedia resource.
Optionally, the described pair of multimedia resource handle and is included:
Tuning and/or intercepting process are carried out to the incomplete multimedia resource.
Optionally, it further includes:
When the connection state is good, after currently playing local multimedia resource finishes, it is switched to broadcasting Online list.
Optionally, it further includes:
When the connection state is bad, foundation is connect with the directly-connected network of destination mobile terminal, passes through the direct-connected net Network connection row caches the online multimedia resource of at least part in the online list.
Optionally, it is described to be gone by directly-connected network connection to the online multimedia of at least part in the online list Resource carries out caching and includes:
Cache request to destination mobile terminal transmission to destination multimedia resource is connected by the directly-connected network, So that the destination mobile terminal obtains destination multimedia resource and by described from the online multimedia Resource Server Directly-connected network connection receives at least part for the destination multimedia resource that the destination mobile terminal returns.
Another aspect according to the present invention provides a kind of broadcast control device of multimedia resource, including:
Network status judging unit, suitable for judging that the connection state under current network with online multimedia Resource Server is It is no good;
Buffer unit, suitable for when playing online list, being provided to the online multimedia of at least part in the online list Source is cached;
Broadcast unit, suitable for when the connection state is bad, according to the multimedia resource cached complete to it is described The broadcasting of alignment table;And suitable for being finished in the multimedia resource cached after, if the Network status judging unit is still Judge that the connection state is bad, be then switched to broadcasting local list.
Optionally, the buffer unit, suitable in the destination multimedia resource in playing the online list, to described Destination multimedia resource is cached;And/or suitable for the broadcasting order according to the online list, in the online list The multimedia resource of preset quantity is cached.
Optionally, the buffer unit, suitable for setting the spatial cache of default size to store the multimedia resource of caching, The wherein earliest multimedia resource of cache-time is deleted when the spatial cache is used up;And/or suitable in the more matchmakers cached When body resource reaches preset quantity, the earliest multimedia resource of cache-time is deleted.
Optionally, the connection state is bad including as follows one or more:The online multimedia Resource Server Response time be more than corresponding predetermined threshold value;Network speed is less than corresponding predetermined threshold value;Packet loss is more than corresponding default Threshold value.
Optionally, the broadcast unit, suitable in the multimedia resource for playing caching, whether judging the multimedia resource Completely, the multimedia resource is directly played if complete, if imperfect, skip the multimedia resource or the multimedia is provided Source plays again after being handled.
Optionally, the broadcast unit, suitable for carrying out tuning and/or intercepting process to the incomplete multimedia resource.
Optionally, the broadcast unit is further adapted for when the connection state is good, in currently playing local multimedia After resource finishes, it is switched to and plays online list.
Optionally, it further includes:
Network connection unit, suitable for when the connection state is bad, establishing and connecting with the directly-connected network of destination mobile terminal It connects;
The buffer unit, be further adapted for by the directly-connected network connect row in the online list at least partially in Line multimedia resource is cached.
Optionally, the buffer unit, suitable for being connected by the directly-connected network to destination mobile terminal transmission pair The cache request of destination multimedia resource, so that the destination mobile terminal obtains mesh from the online multimedia Resource Server It marks multimedia resource and the destination multimedia resource of the destination mobile terminal return is received by directly-connected network connection At least part.
Another aspect according to the present invention, provides a kind of computer readable storage medium, wherein, it is described computer-readable The one or more programs of storage medium storage, one or more of programs when being executed by a processor, are realized as any of the above-described Method described in.
It can be seen from the above, technical scheme of the present invention, by network detection is set judge under current network with Whether the connection state of line multimedia resource server good, and when playing online list, to it is therein at least partially in Line multimedia resource is cached, and in this way when detecting that connection state is bad, can play caching, if after caching finishes Still good Network status is not returned to, then plays local list.The present solution provides it is a kind of it is smooth, shake is small Multimedia resource plays control mode, reduces because of the problems such as interim card is played caused by Network status, the basic unaware of user The variation of Network status, improves user experience.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of flow signal of the control method for playing back of multimedia resource according to an embodiment of the invention Figure;
Fig. 2 shows a kind of structural representations of the broadcast control device of multimedia resource according to an embodiment of the invention Figure;
Fig. 3 shows the structure diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 shows a kind of flow signal of the control method for playing back of multimedia resource according to an embodiment of the invention Figure.As shown in Figure 1, this method includes:
Whether step S110 judges good with the connection state of online multimedia Resource Server under current network.
The step can be specifically a function module that can be individually turned on or off in the Intelligent hardwares such as Story machine Performed, Intelligent hardware can provide a trigger switch in actions menu for it.In an embodiment of the present invention, more matchmakers When body resource can be divided into the execution of the multimedia resource, the then step in the multimedia resource and local list in online list Machine can be when playing online list or when playing local list, can be specifically to broadcast in the present embodiment The step is performed when being placed on alignment table.
Step S120 when playing online list, delays the online multimedia resource of at least part in online list It deposits.
Typically, playing function is locally realized, such as Intelligent hardware provides decoding, power amplifier etc. in itself, and more Even the online multimedia resource in the online list of media resource that is, in server storage, is also required to first obtain when playing To local.And the multimedia money that the also included following needs of the online multimedia cached resource is needed to play in this step Source, such as when Story machine plays first nursery rhymes (assuming that nursery rhymes total duration is 3 minutes) in online list, it is being played to 1 point During 30 seconds this time points, it is necessary to which getting data corresponding with 1 point of 30 seconds this time point in the nursery rhymes can be at this Ground plays, and it is then that can cache the nursery rhymes 1 to divide 31 seconds data to 2 minutes this parts to cache.
When connection state is bad, the broadcasting to online list is completed according to the multimedia resource cached by step S130.
For example, when nursery rhymes above are played to 1 point and 32 seconds, network interrupts suddenly, then can be according to buffered The nursery rhymes 1 31 seconds data to 2 minutes this parts is divided to play out.
Step S140, after the multimedia resource cached finishes, if still judging, connection state is bad, is switched to Play local list.
For example, network restores normal again after being disconnected 30 seconds, then after the nursery rhymes of caching finish, it is already possible to from clothes Business device gets nursery rhymes data 1 minute remaining, then can then continue to realize online broadcasting.And if network never has Restore, then take the mode that local list plays out that is switched to, continue to provide the broadcasting of multimedia resource for user.
As it can be seen that method shown in FIG. 1, judges to provide with online multimedia under current network by setting network detection Whether the connection state of source server is good, and when playing online list, and the online multimedia of at least part therein is provided Source is cached, and in this way when detecting that connection state is bad, can play caching, if caching is not still extensive after finishing Good Network status is arrived again, then plays local list.The present solution provides a kind of multimedia resources smooth, shake is small Control mode is played, is reduced because of the problems such as playing interim card caused by Network status, the basic unaware Network status of user Variation, improves user experience.
In one embodiment of the invention, in the above method, when playing online list, in online list at least Part online multimedia resource carries out caching and includes:In the destination multimedia resource in playing online list, more matchmakers to target Body resource is cached;And/or the broadcasting order according to online list, to the multimedia resource of preset quantity in online list It is cached.
The two kinds of examples cached to which online multimedia resource are given in the present embodiment, can also be combined real It applies.A kind of example be to currently playing multimedia resource, i.e., destination multimedia resource above is cached, above nursery rhymes Example just belong to such case.Another example is that may be in accordance with the order that plays of alignment table to cache a number of more matchmakers There are ten sound stories in body resource, such as online list, be currently played first, then it can be by second and third Sound story is cached.Both examples are combined, then can just cache this when playing first sound story has Sound story still part not broadcast, and second and the sound story of third are cached simultaneously.
In one embodiment of the invention, in the above method, the online multimedia of at least part in online list is provided Source carries out caching and includes:The spatial cache of the default size of setting is to store the multimedia resource of caching, when spatial cache is used up Delete the wherein earliest multimedia resource of cache-time;And/or it when the multimedia resource cached reaches preset quantity, deletes Except the earliest multimedia resource of cache-time.
For example, opening up the space of 100MB in the memories such as SD card, flash memory, as spatial cache, (this size can be Intelligent hardware is preset when dispatching from the factory, and can also independently be changed by user, but there are one the upper limits, it is impossible to beyond available idle sky Between), the multimedia resource of caching is just preserved in spatial cache in this section, when spatial cache is write it is full when, be removed from it writing at first The multimedia resource entered, so that new multimedia resource can cache into.Alternatively, it is also possible to be not based on data volume size, and It is the control that quantity based on multimedia resource realizes caching, such as ten songs can only be cached, then when needs to cache the 11st During song, need to delete the song cached at first.The type setting that such case can be combined with multimedia resource can be with The quantity of caching, such as ten songs can be cached, five sound stories, three videos etc..
In one embodiment of the invention, in the above method, connection state is bad including as follows one or more: The response time of line multimedia resource server is more than corresponding predetermined threshold value;Network speed is less than corresponding predetermined threshold value;It loses Packet rate is more than corresponding predetermined threshold value.
For example, the ping values of online multimedia Resource Server, that is, response time are more than 1000ms i.e. 1 second When, then it is assumed that connection state is bad;In addition, network speed too low (such as only speed of several B/s) or packet loss are higher, all It may cause to play interim card, influence listening to, watching experience for user, therefore think that connection state is bad in these cases.
In one embodiment of the invention, it in the above method, is completed according to the multimedia resource cached in alignment The broadcasting of table includes:In the multimedia resource for playing caching, judge whether the multimedia resource is complete;It is directly broadcast if complete Put the multimedia resource;If imperfect, the multimedia resource is skipped, alternatively, being broadcast again after handling the multimedia resource It puts.
It, can be with these multimedia resources of parallel buffer when the multimedia resource for needing to cache has multiple.Alternatively, it is also possible to Multiple multimedia resources are serially cached, in short, these are likely to generate following result:Some caching multimedia resources be Completely, multimedia resources of some cachings may only have several seconds or a few minutes, be not a complete song or sound Story.Poor experience may still be brought, therefore in the present embodiment to user by playing these incomplete multimedia resources In, give reply example:The data volume of the cachings such as several seconds and the sum of the multimedia resource have only been cached in multimedia resource According under the relatively low scene of the ratio of amount, these incomplete multimedia resources can be directly skipped.If in addition, a first nursery rhymes are only Have do not cache within several seconds, then certain processing can be carried out to it, when playing the incomplete nursery rhymes, make user that can't feel Feel the excessively lofty of end.
For example, in one embodiment of the invention, in the above method, processing is carried out to the multimedia resource and is included:It is right The incomplete multimedia resource carries out tuning and/or intercepting process.By taking nursery rhymes above as an example, can partly it carry out at the end of The processing of fading out of sound can also show as one and naturally terminate effect in this way.In another example nursery rhymes are divided into two sections, second segment does not have There are whole cachings, then puncture incomplete second segment, only play complete first segment, can also provide and preferably play effect Fruit.
In one embodiment of the invention, the above method further includes:When connection state is good, in currently playing sheet After ground multimedia resource finishes, it is switched to and plays online list.
Such as there are two kinds of following scenes that can apply:When Intelligent hardware is just switched on, the foundation of usual network connection is also Certain time is needed, at this moment if the user desired that carrying out multimedia, then can first play the more matchmakers in local in local list Body resource.When network connection is successfully established, and can judge that connection state is good, then broadcast in currently playing nursery rhymes, story etc. After putting, it is switched to the broadcasting of online list.
Under another scene, network jitter has occurred when playing online list by user, and the multimedia resource of caching plays After network also do not restore, then be switched to the broadcasting of local list.At this moment in the playing process of local list, network Restore, connection state restores good, then can also be switched to after currently playing nursery rhymes, story etc. finish in alignment The broadcasting of table.
In one embodiment of the invention, the above method further includes:When connection state is bad, establishes and moved with target The directly-connected network connection of terminal connects row by directly-connected network and the online multimedia resource of at least part in online list is carried out Caching.
There are some Intelligent hardwares to be also configured with relevant control application, user can be by installing control on mobile terminals Using Intelligent hardware is controlled to perform certain functions, for example, mother can pass through the APP on mobile phone be remotely controlled Story machine play therefore Thing can also look after the baby of oneself when doing housework in this way.It is exactly that mobile terminal control intelligence is utilized in the present embodiment The directly-connected network connection used during hardware, utilizes directly-connected network Connection Cache online multimedia resource.
Specifically, in one embodiment of the invention, in the above method, by directly-connected network connection row to online list In the online multimedia resource of at least part carry out caching include:It is connected to destination mobile terminal and is sent to mesh by directly-connected network The cache request of multimedia resource is marked, so that destination mobile terminal obtains destination multimedia money from online multimedia Resource Server Source and at least part that the destination multimedia resource for receiving destination mobile terminal return is connected by directly-connected network.
For example, mobile terminal downloads online multimedia resource by 4G networks etc., then direct-connected, infrared by bluetooth, wifi Etc. directly-connected networks connection by the online multimedia resource transmission of download to Intelligent hardware.Mobile terminal downloads multimedia resource and will It can be two mutually independent processes that the multimedia resource of download is transferred to Intelligent hardware by directly-connected network, specific to download Speed can also carry out speed limit with transmission speed depending on the situation that corresponding network connects.
Fig. 2 shows a kind of structural representations of the broadcast control device of multimedia resource according to an embodiment of the invention Figure.As shown in Fig. 2, the broadcast control device 200 of multimedia resource includes:
Network status judging unit 210, suitable for judge under current network with the connection shape of online multimedia Resource Server Whether condition is good.
The unit can be specifically a function module that can be individually turned on or off in the Intelligent hardwares such as Story machine, Intelligent hardware can provide a trigger switch in actions menu for it.In an embodiment of the present invention, multimedia resource can To be divided into the multimedia resource in the multimedia resource and local list in online list, then the work opportunity of the unit can be When playing online list or when playing local list, played in alignment in the present embodiment It works during table.
Buffer unit 220, suitable for when playing online list, to the online multimedia resource of at least part in online list It is cached.
Typically, playing function is locally realized, such as Intelligent hardware provides decoding, power amplifier etc. in itself, and more Even the online multimedia resource in the online list of media resource that is, in server storage, is also required to first obtain when playing To local.And the multimedia money that the also included following needs of the online multimedia cached resource is needed to play in this step Source, such as when Story machine plays first nursery rhymes (assuming that nursery rhymes total duration is 3 minutes) in online list, it is being played to 1 point During 30 seconds this time points, it is necessary to which getting data corresponding with 1 point of 30 seconds this time point in the nursery rhymes can be at this Ground plays, and it is then that can cache the nursery rhymes 1 to divide 31 seconds data to 2 minutes this parts to cache.
Broadcast unit 230, suitable for when connection state is bad, being completed according to the multimedia resource cached to online list Broadcasting;And suitable for being finished in the multimedia resource cached after, if Network status judging unit still judge connect shape Condition is bad, then is switched to broadcasting local list.
For example, when nursery rhymes above are played to 1 point and 32 seconds, network interrupts suddenly, then can be according to buffered The nursery rhymes 1 31 seconds data to 2 minutes this parts is divided to play out.Network restores normal again after being disconnected 30 seconds, then slow After the nursery rhymes deposited finish, it is already possible to get nursery rhymes data 1 minute remaining from server, then can then continue Realize online play.And if network never restores, the mode that local list plays out that is switched to is taken, is user The broadcasting of offer multimedia resource is provided.
As it can be seen that device shown in Fig. 2, by the mutual cooperation of each unit, sets network detection to judge current net It is whether good with the connection state of online multimedia Resource Server under network, and when playing online list, to it is therein extremely Small part online multimedia resource is cached, and in this way when detecting that connection state is bad, can play caching, if caching is broadcast Still good Network status is not returned to after putting, then plays local list.The present solution provides it is a kind of smooth, It shakes small multimedia resource and plays control mode, reduce because of the problems such as interim card is played caused by Network status, Yong Huji The variation of this unaware Network status, improves user experience.
In one embodiment of the invention, in above device, buffer unit 220, suitable in online list is played During destination multimedia resource, destination multimedia resource is cached;It is right and/or suitable for the broadcasting order according to online list The multimedia resource of preset quantity is cached in online list.
The two kinds of examples cached to which online multimedia resource are given in the present embodiment, can also be combined real It applies.A kind of example be to currently playing multimedia resource, i.e., destination multimedia resource above is cached, above nursery rhymes Example just belong to such case.Another example is that may be in accordance with the order that plays of alignment table to cache a number of more matchmakers There are ten sound stories in body resource, such as online list, be currently played first, then it can be by second and third Sound story is cached.Both examples are combined, then can just cache this when playing first sound story has Sound story still part not broadcast, and second and the sound story of third are cached simultaneously.
In one embodiment of the invention, in above device, buffer unit 220, suitable for setting the caching of default size The wherein earliest multimedia resource of cache-time is deleted when spatial cache is used up to store the multimedia resource of caching in space; And/or during suitable for reaching preset quantity in the multimedia resource cached, the earliest multimedia resource of cache-time is deleted.
For example, opening up the space of 100MB in the memories such as SD card, flash memory, as spatial cache, (this size can be Intelligent hardware is preset when dispatching from the factory, and can also independently be changed by user, but there are one the upper limits, it is impossible to beyond available idle sky Between), the multimedia resource of caching is just preserved in spatial cache in this section, when spatial cache is write it is full when, be removed from it writing at first The multimedia resource entered, so that new multimedia resource can cache into.Alternatively, it is also possible to be not based on data volume size, and It is the control that quantity based on multimedia resource realizes caching, such as ten songs can only be cached, then when needs to cache the 11st During song, need to delete the song cached at first.The type setting that such case can be combined with multimedia resource can be with The quantity of caching, such as ten songs can be cached, five sound stories, three videos etc..
In one embodiment of the invention, in above device, connection state is bad including as follows one or more: The response time of line multimedia resource server is more than corresponding predetermined threshold value;Network speed is less than corresponding predetermined threshold value;It loses Packet rate is more than corresponding predetermined threshold value.
For example, the ping values of online multimedia Resource Server, that is, response time are more than 1000ms i.e. 1 second When, then it is assumed that connection state is bad;In addition, network speed too low (such as only speed of several B/s) or packet loss are higher, all It may cause to play interim card, influence listening to, watching experience for user, therefore think that connection state is bad in these cases.
In one embodiment of the invention, in above device, broadcast unit 230, suitable in the multimedia for playing caching During resource, judge whether the multimedia resource is complete, directly play the multimedia resource if complete, if imperfect, skip The multimedia resource is played again after handling the multimedia resource.
It, can be with these multimedia resources of parallel buffer when the multimedia resource for needing to cache has multiple.Alternatively, it is also possible to Multiple multimedia resources are serially cached, in short, these are likely to generate following result:Some caching multimedia resources be Completely, multimedia resources of some cachings may only have several seconds or a few minutes, be not a complete song or sound Story.Poor experience may still be brought, therefore in the present embodiment to user by playing these incomplete multimedia resources In, give reply example:The data volume of the cachings such as several seconds and the sum of the multimedia resource have only been cached in multimedia resource According under the relatively low scene of the ratio of amount, these incomplete multimedia resources can be directly skipped.If in addition, a first nursery rhymes are only Have do not cache within several seconds, then certain processing can be carried out to it, when playing the incomplete nursery rhymes, make user that can't feel Feel the excessively lofty of end.
For example, in one embodiment of the invention, in above device, broadcast unit 230, suitable for incomplete more to this Media resource carries out tuning and/or intercepting process.By taking nursery rhymes above as an example, the place of fading out of sound can be partly carried out at the end of Reason, can also show as one and naturally terminate effect in this way.In another example nursery rhymes are divided into two sections, second segment is without all caching, then Incomplete second segment is punctured, only plays complete first segment, preferable result of broadcast can also be provided.
In one embodiment of the invention, in above device, broadcast unit 230 is further adapted for when connection state is good, After currently playing local multimedia resource finishes, it is switched to and plays online list.
Such as there are two kinds of following scenes that can apply:When Intelligent hardware is just switched on, the foundation of usual network connection is also Certain time is needed, at this moment if the user desired that carrying out multimedia, then can first play the more matchmakers in local in local list Body resource.When network connection is successfully established, and can judge that connection state is good, then broadcast in currently playing nursery rhymes, story etc. After putting, it is switched to the broadcasting of online list.
Under another scene, network jitter has occurred when playing online list by user, and the multimedia resource of caching plays After network also do not restore, then be switched to the broadcasting of local list.At this moment in the playing process of local list, network Restore, connection state restores good, then can also be switched to after currently playing nursery rhymes, story etc. finish in alignment The broadcasting of table.
In one embodiment of the invention, above device further includes:Network connection unit (not shown), suitable for when connection When situation is bad, foundation is connect with the directly-connected network of destination mobile terminal;Buffer unit 220 is further adapted for connecting by directly-connected network Row is connect to cache the online multimedia resource of at least part in online list.
There are some Intelligent hardwares to be also configured with relevant control application, user can be by installing control on mobile terminals Using Intelligent hardware is controlled to perform certain functions, for example, mother can pass through the APP on mobile phone be remotely controlled Story machine play therefore Thing can also look after the baby of oneself when doing housework in this way.It is exactly that mobile terminal control intelligence is utilized in the present embodiment The directly-connected network connection used during hardware, utilizes directly-connected network Connection Cache online multimedia resource.
Specifically, in one embodiment of the invention, in above device, buffer unit 220, suitable for passing through directly-connected network It connects and is sent to destination mobile terminal to the cache request of destination multimedia resource, so that destination mobile terminal is from online multimedia Resource Server obtain destination multimedia resource and by directly-connected network connect receive destination mobile terminal return target it is more At least part of media resource.
For example, mobile terminal downloads online multimedia resource by 4G networks etc., then direct-connected, infrared by bluetooth, wifi Etc. directly-connected networks connection by the online multimedia resource transmission of download to Intelligent hardware.Mobile terminal downloads multimedia resource and will It can be two mutually independent processes that the multimedia resource of download is transferred to Intelligent hardware by directly-connected network, specific to download Speed can also carry out speed limit with transmission speed depending on the situation that corresponding network connects.
In conclusion technical scheme of the present invention, by network detection is set judge under current network with it is online Whether the connection state of multimedia resource server is good, and when playing online list, online at least part therein Multimedia resource is cached, and in this way when detecting that connection state is bad, can play caching, if caching finish after still Good Network status is not returned to so, then plays local list.The present solution provides a kind of small more of smooth, shake Media resource plays control mode reduces because of the problems such as interim card is played caused by Network status, Hownet that user is substantially noninductive The variation of network situation, improves user experience.
It should be noted that:
Algorithm and display be not inherently related to any certain computer, virtual bench or miscellaneous equipment provided herein. Various fexible units can also be used together with teaching based on this.As described above, required by constructing this kind of device Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the more features of feature than being expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization or to be run on one or more processor Software module realize or realized with combination thereof.It will be understood by those of skill in the art that it can use in practice Microprocessor or digital signal processor (DSP) fill to realize that the broadcasting of multimedia resource according to embodiments of the present invention controls The some or all functions of some or all components in putting.The present invention is also implemented as described here for performing Some or all equipment of method or program of device (for example, computer program and computer program product).This The program of the realization present invention of sample can may be stored on the computer-readable medium or can have one or more signal Form.Such signal can be downloaded from internet website to be obtained either providing or with any other on carrier signal Form provides.
For example, Fig. 3 shows a kind of structural representation of computer readable storage medium according to an embodiment of the invention Figure.The computer readable storage medium 300 is stored with the computer-readable program for performing steps of a method in accordance with the invention Code 310, such as the program code that can be read by the processor of electronic equipment, when these program codes are run by electronic equipment When, the electronic equipment is caused to perform each step in method described above.Program code can carry out in a suitable form Compression.
It should be noted that the present invention will be described rather than limits the invention, and ability for above-described embodiment Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference mark between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.If in the unit claim for listing equipment for drying, several in these devices can be by same hardware branch To embody.The use of word first, second, and third does not indicate that any sequence.These words can be explained and run after fame Claim.
Embodiment of the invention discloses that A1, a kind of control method for playing back of multimedia resource, including:
Judge whether good with the connection state of online multimedia Resource Server under current network;
When playing online list, the online multimedia resource of at least part in the online list is cached;
When the connection state is bad, the broadcasting to the online list is completed according to the multimedia resource cached;
After the multimedia resource cached finishes, if still judging, the connection state is bad, is switched to broadcasting Local list.
A2, the method as described in A1, wherein, it is described when playing online list, at least portion in the online list Online multimedia resource is divided to carry out caching to include:
In the destination multimedia resource in playing the online list, the destination multimedia resource is cached;
And/or
According to the broadcasting order of the online list, the multimedia resource of preset quantity in the online list is delayed It deposits.
A3, the method as described in A1, wherein, the online multimedia resource of at least part in the online list into Row caching includes:
The spatial cache of the default size of setting is deleted with storing the multimedia resource of caching when the spatial cache is used up The wherein earliest multimedia resource of cache-time;
And/or
When the multimedia resource cached reaches preset quantity, the earliest multimedia resource of cache-time is deleted.
A4, the method as described in A1, wherein, the connection state is bad including as follows one or more:
The response time of the online multimedia Resource Server is more than corresponding predetermined threshold value;
Network speed is less than corresponding predetermined threshold value;
Packet loss is more than corresponding predetermined threshold value.
A5, the method as described in A1, wherein, the multimedia resource that the basis has cached is completed to the online list Broadcasting includes:
In the multimedia resource for playing caching, judge whether the multimedia resource is complete;
The multimedia resource is directly played if complete;
If imperfect, the multimedia resource is skipped, alternatively, being played again after handling the multimedia resource.
A6, the method as described in A5, wherein, the described pair of multimedia resource carries out processing and includes:
Tuning and/or intercepting process are carried out to the incomplete multimedia resource.
A7, the method as described in A1, further include:
When the connection state is good, after currently playing local multimedia resource finishes, it is switched to broadcasting Online list.
A8, the method as described in A1, further include:
When the connection state is bad, foundation is connect with the directly-connected network of destination mobile terminal, passes through the direct-connected net Network connection row caches the online multimedia resource of at least part in the online list.
A9, the method as described in A8, wherein, it is described by the directly-connected network connect row in the online list extremely Small part online multimedia resource carries out caching and includes:
Cache request to destination mobile terminal transmission to destination multimedia resource is connected by the directly-connected network, So that the destination mobile terminal obtains destination multimedia resource and by described from the online multimedia Resource Server Directly-connected network connection receives at least part for the destination multimedia resource that the destination mobile terminal returns.
The embodiment of the present invention also discloses B10, a kind of broadcast control device of multimedia resource, including:
Network status judging unit, suitable for judging that the connection state under current network with online multimedia Resource Server is It is no good;
Buffer unit, suitable for when playing online list, being provided to the online multimedia of at least part in the online list Source is cached;
Broadcast unit, suitable for when the connection state is bad, according to the multimedia resource cached complete to it is described The broadcasting of alignment table;And suitable for being finished in the multimedia resource cached after, if the Network status judging unit is still Judge that the connection state is bad, be then switched to broadcasting local list.
B11, the device as described in B10, wherein,
The buffer unit is more to the target suitable in the destination multimedia resource in playing the online list Media resource is cached;And/or suitable for the broadcasting order according to the online list, to present count in the online list The multimedia resource of amount is cached.
B12, the device as described in B10, wherein,
The buffer unit, suitable for setting the spatial cache of default size to store the multimedia resource of caching, described Wherein cache-time earliest multimedia resource is deleted when spatial cache is used up;And/or suitable in the multimedia resource cached When reaching preset quantity, the earliest multimedia resource of cache-time is deleted.
B13, the device as described in B10, wherein, the connection state is bad including as follows one or more:It is described The response time of line multimedia resource server is more than corresponding predetermined threshold value;Network speed is less than corresponding predetermined threshold value;It loses Packet rate is more than corresponding predetermined threshold value.
B14, the device as described in B10, wherein,
The broadcast unit, suitable in the multimedia resource for playing caching, judging whether the multimedia resource is complete, if It is complete then directly play the multimedia resource, if imperfect, skip the multimedia resource or the multimedia resource is carried out It is played again after processing.
B15, the device as described in B14, wherein,
The broadcast unit, suitable for carrying out tuning and/or intercepting process to the incomplete multimedia resource.
B16, the device as described in B10, wherein,
The broadcast unit is further adapted for, when the connection state is good, broadcasting in currently playing local multimedia resource After putting, it is switched to and plays online list.
B17, the device as described in B10, further include:
Network connection unit, suitable for when the connection state is bad, establishing and connecting with the directly-connected network of destination mobile terminal It connects;
The buffer unit, be further adapted for by the directly-connected network connect row in the online list at least partially in Line multimedia resource is cached.
B18, the device as described in B17, wherein,
The buffer unit sends to target more matchmakers suitable for being connected by the directly-connected network to the destination mobile terminal The cache request of body resource, so that the destination mobile terminal obtains destination multimedia from the online multimedia Resource Server Resource and at least portion that the destination multimedia resource that the destination mobile terminal returns is received by directly-connected network connection Point.
The embodiment of the present invention also discloses C19, a kind of computer readable storage medium, wherein, it is described computer-readable The one or more programs of storage medium storage, one or more of programs when being executed by a processor, are realized as appointed in A1-A9 Method described in one.

Claims (10)

1. a kind of control method for playing back of multimedia resource, including:
Judge whether good with the connection state of online multimedia Resource Server under current network;
When playing online list, the online multimedia resource of at least part in the online list is cached;
When the connection state is bad, the broadcasting to the online list is completed according to the multimedia resource cached;
After the multimedia resource cached finishes, if still judging, the connection state is bad, and it is local to be switched to broadcasting List.
2. the method for claim 1, wherein described when playing online list, in the online list at least Part online multimedia resource carries out caching and includes:
In the destination multimedia resource in playing the online list, the destination multimedia resource is cached;
And/or
According to the broadcasting order of the online list, the multimedia resource of preset quantity in the online list is cached.
3. the method for claim 1, wherein online multimedia resource of at least part in the online list Caching is carried out to include:
The spatial cache of the default size of setting is deleted wherein with storing the multimedia resource of caching when the spatial cache is used up The earliest multimedia resource of cache-time;
And/or
When the multimedia resource cached reaches preset quantity, the earliest multimedia resource of cache-time is deleted.
4. the method for claim 1, wherein the connection state is bad including as follows one or more:
The response time of the online multimedia Resource Server is more than corresponding predetermined threshold value;
Network speed is less than corresponding predetermined threshold value;
Packet loss is more than corresponding predetermined threshold value.
5. the multimedia resource that the method for claim 1, wherein basis has cached is completed to the online list Broadcasting include:
In the multimedia resource for playing caching, judge whether the multimedia resource is complete;
The multimedia resource is directly played if complete;
If imperfect, the multimedia resource is skipped, alternatively, being played again after handling the multimedia resource.
6. a kind of broadcast control device of multimedia resource, including:
Network status judging unit, it is whether good with the connection state of online multimedia Resource Server under current network suitable for judging It is good;
Buffer unit, suitable for when playing online list, to the online multimedia resource of at least part in the online list into Row caching;
Broadcast unit, suitable for when the connection state is bad, being completed according to the multimedia resource cached to described in alignment The broadcasting of table;And suitable for being finished in the multimedia resource cached after, if the Network status judging unit still judges The connection state is bad, then is switched to broadcasting local list.
7. device as claimed in claim 6, wherein,
The buffer unit, suitable in the destination multimedia resource in playing the online list, to the destination multimedia Resource is cached;And/or suitable for the broadcasting order according to the online list, to preset quantity in the online list Multimedia resource is cached.
8. device as claimed in claim 6, wherein,
The buffer unit, suitable for setting the spatial cache of default size to store the multimedia resource of caching, in the caching Wherein cache-time earliest multimedia resource is deleted when space is used up;And/or suitable for reaching in the multimedia resource cached During preset quantity, the earliest multimedia resource of cache-time is deleted.
9. device as claimed in claim 6, wherein, the connection state is bad including as follows one or more:It is described The response time of line multimedia resource server is more than corresponding predetermined threshold value;Network speed is less than corresponding predetermined threshold value;It loses Packet rate is more than corresponding predetermined threshold value.
10. a kind of computer readable storage medium, wherein, the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize the method as described in any one of claim 1-5.
CN201711485690.4A 2017-12-29 2017-12-29 Control method for playing back, device and the computer readable storage medium of multimedia resource Pending CN108156524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711485690.4A CN108156524A (en) 2017-12-29 2017-12-29 Control method for playing back, device and the computer readable storage medium of multimedia resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711485690.4A CN108156524A (en) 2017-12-29 2017-12-29 Control method for playing back, device and the computer readable storage medium of multimedia resource

Publications (1)

Publication Number Publication Date
CN108156524A true CN108156524A (en) 2018-06-12

Family

ID=62460011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711485690.4A Pending CN108156524A (en) 2017-12-29 2017-12-29 Control method for playing back, device and the computer readable storage medium of multimedia resource

Country Status (1)

Country Link
CN (1) CN108156524A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087120A (en) * 2019-04-29 2019-08-02 掌阅科技股份有限公司 The same window switching method and calculating equipment of online list and local list
CN110856152A (en) * 2019-10-28 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for playing audio data
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100035691A1 (en) * 2008-08-07 2010-02-11 Microsoft Corporation Method and system providing spectator information for a multimedia application
CN102724584A (en) * 2012-06-18 2012-10-10 Tcl集团股份有限公司 Method and device for playing network videos online and smart television
CN103475932A (en) * 2013-09-05 2013-12-25 深圳Tcl新技术有限公司 Seamless on-line playing method and device of network video and network television system
CN106534947A (en) * 2016-10-27 2017-03-22 合网络技术(北京)有限公司 Multimedia resource playing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100035691A1 (en) * 2008-08-07 2010-02-11 Microsoft Corporation Method and system providing spectator information for a multimedia application
CN102724584A (en) * 2012-06-18 2012-10-10 Tcl集团股份有限公司 Method and device for playing network videos online and smart television
CN103475932A (en) * 2013-09-05 2013-12-25 深圳Tcl新技术有限公司 Seamless on-line playing method and device of network video and network television system
CN106534947A (en) * 2016-10-27 2017-03-22 合网络技术(北京)有限公司 Multimedia resource playing method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087120A (en) * 2019-04-29 2019-08-02 掌阅科技股份有限公司 The same window switching method and calculating equipment of online list and local list
WO2020220649A1 (en) * 2019-04-29 2020-11-05 掌阅科技股份有限公司 Same window switching method for online list and local list, and computing device
US11327635B1 (en) 2019-04-29 2022-05-10 Zhangyue Technology Co., Ltd Method for switching an online list and a local list in a same window, and computing device
CN110856152A (en) * 2019-10-28 2020-02-28 宇龙计算机通信科技(深圳)有限公司 Method, device, electronic equipment and medium for playing audio data
CN113315810A (en) * 2021-04-29 2021-08-27 上海探寻信息技术有限公司 Online audio playing method and equipment

Similar Documents

Publication Publication Date Title
CN108156524A (en) Control method for playing back, device and the computer readable storage medium of multimedia resource
CN103475682B (en) File transfer method and file transfer equipment
CN107454384A (en) A kind of live performance test methods and device
CN104244083A (en) Online video downloading method and electronic device
CN104410660A (en) Method and device of downloading multimedia resources as well as router and server
CN107592338B (en) Dynamic library updating system, method and related equipment
CN108388988A (en) Synergetic office work method, system and computer readable storage medium based on block chain
CN104243590A (en) Resource object recommendation method and device
CN106713954A (en) Broadcast reminding method and device of live video
CN108076117A (en) A kind of data download method and user terminal
CN108228444A (en) A kind of test method and device
CN110046088A (en) A kind of interface test method, device and equipment
CN108235075A (en) Video quality grade matching process, computer readable storage medium and terminal
CN107454457A (en) The method and device of live resolution ratio is shielded in switching record
CN109660496A (en) Acquisition, resource checksum and the dissemination method of check information, device and electronic equipment
CN108182090A (en) Flash plug-in loading methods and device based on blink kernels
CN108132832A (en) Application program launching method and device
CN105903191A (en) Data processing method and system across terminals
CN110113655A (en) A kind of method, apparatus and user terminal of video playing
CN108052386A (en) A kind of test result transmission method, device, server and storage medium
CN106162324A (en) The processing method and processing device of video file
CN107888558A (en) One kind paints this dubbing method, device and system
CN106385451A (en) Method and system for service correlation among multiple platforms
CN107743615A (en) Content test during image generation
CN112420019B (en) Equipment testing method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180612

RJ01 Rejection of invention patent application after publication