Multimedia resource loading method and device
Technical field
The present invention relates to multimedia technology field more particularly to a kind of multimedia resource loading methods and device.
Background technique
Currently, user can watch multimedia resource by intelligent terminals such as mobile phones online.But in practical watching process,
When network environment changes, multimedia resource viewing experience is terminated, and causes user that cannot continue to check more matchmakers
Body resource, influences user experience.
Summary of the invention
Technical problem
In view of this, the technical problem to be solved by the present invention is to how according to for user providing reasonable multimedia resource
Loading scheme.
Solution
In order to solve the above-mentioned technical problem, an embodiment according to the present invention provides a kind of multimedia resource load side
Method, comprising: the type for the online multimedia resource that judgement request plays;For the online multimedia resource of program request type, in visitor
The network connection state at family end is in the case where being not attached to WLAN, to judge whether there is the program request type loaded
The audio resource of online multimedia resource;In the feelings of the audio resource for the online multimedia resource that there is the program request type loaded
Under condition, the audio resource of the online multimedia resource of play-on-demand type is controlled.
For the above method, in one possible implementation, further includes: the online multimedia of program request type is provided
Source first loads online more matchmakers of program request type in the case where the network connection state of client is to be connected to WLAN
The audio resource of body resource reloads the video resource of the online multimedia resource of program request type, is existed with play-on-demand type
Line multimedia resource.
For the above method, in one possible implementation, further includes: the program request type loaded is being not present
In the case where the audio resource of online multimedia resource, loading scheme is provided a user;Added according to the loading scheme that user selects
Carry the online multimedia resource of simultaneously play-on-demand type.
For the above method, in one possible implementation, further includes: the online multimedia for type is broadcast live provides
Source provides a user loading scheme in the case where the network connection state of client is to be not attached to WLAN;According to
The loading scheme load of user's selection and the online multimedia resource of play-on-demand type.
For the above method, in one possible implementation, loading scheme is comprised at least one of the following: load audio
Resource;Synchronous load audio resource and video resource;Stop load audio resource and/or video resource, terminates to play.
In order to solve the above-mentioned technical problem, according to another embodiment of the present invention, a kind of multimedia resource load is provided
Device, comprising: type judging module, the type of the online multimedia resource for judging request broadcasting;Program request judgment module, it is right
In the online multimedia resource of program request type, the case where the network connection state of client is to be not attached to WLAN
Under, judge whether there is the audio resource of the online multimedia resource of the program request type loaded;First program request playing module,
In the presence of the online multimedia resource of the program request type loaded audio resource in the case where, control play-on-demand type it is online
The audio resource of multimedia resource.
For above-mentioned apparatus, in one possible implementation, further includes: the second program request playing module, for program request
The online multimedia resource of type is first loaded in the case where the network connection state of client is to be connected to WLAN
The audio resource of the online multimedia resource of program request type reloads the video resource of the online multimedia resource of program request type,
With the online multimedia resource of play-on-demand type.
For above-mentioned apparatus, in one possible implementation, further includes: third program request playing module is being not present
In the case where the audio resource of the online multimedia resource of the program request type loaded, loading scheme is provided a user;According to
The loading scheme load of family selection and the online multimedia resource of play-on-demand type.
For above-mentioned apparatus, in one possible implementation, further includes: live play module, for type is broadcast live
Online multimedia resource, the network connection state of client be not attached to WLAN in the case where, mentioned to user
For loading scheme;According to the loading scheme load of user's selection and the online multimedia resource of play-on-demand type.
For above-mentioned apparatus, in one possible implementation, loading scheme is comprised at least one of the following: load audio
Resource;Synchronous load audio resource and video resource;Stop load audio resource and/or video resource, terminates to play.
Beneficial effect
By above-mentioned multimedia resource loading method, allow type and visitor of the user according to online multimedia resource
The network connection state at family end provides reasonable multimedia resource loading method for user, to meet the different viewing need of user
It asks, improves user experience.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect
It is clear.
Detailed description of the invention
Comprising in the description and constitute the attached drawing of part of specification and specification together illustrate it is of the invention
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the flow diagram of the multimedia resource loading method of one embodiment of the invention offer;
The multimedia resource loading method provided Fig. 2 shows one embodiment of the invention is another flow diagram;
Fig. 3 show another embodiment of the present invention provides multimedia resource loading method be flow diagram;
Fig. 4 show another embodiment of the present invention provides audio resource play remind pop-up schematic diagram;
Fig. 5 show another embodiment of the present invention provides inquiry loading scheme pop-up schematic diagram;
Fig. 6 shows the structural schematic diagram of the multimedia resource loading device of one embodiment of the invention offer;
Fig. 7 shows the structural representation of live play module in the multimedia resource loading device of one embodiment of the invention offer
Figure;
Fig. 8 show another embodiment of the present invention provides multimedia resource loading device structural block diagram.
Specific embodiment
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific embodiment below.
It will be appreciated by those skilled in the art that without certain details, the present invention equally be can be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight purport of the invention.
Embodiment 1
Fig. 1 shows the flow diagram of the multimedia resource loading method of one embodiment of the invention offer, such as Fig. 1 institute
Show, 11- step 13 that the method comprising the steps of:
The type for the online multimedia resource that step 11, judgement request play.
In embodiments of the present invention, the type of online multimedia resource may include for example: program request type and live streaming type.
Program request type may include user's online multimedia resource recorded that selection plays at any time according to their own needs, broadcast
The condition of putting can not be by time restriction.Live streaming type may include that user is recording what the period selection of live streaming played
Online multimedia resource, playing condition is by time restriction.
In the present embodiment, multimedia resource may include by the medias such as audio, video, picture, text or its
Meaning combination is formed by resource file, video file.
It should be noted that in embodiments of the present invention, multimedia resource may include audio resource and video resource, and
Audio resource and video resource can separate.In client terminal playing audio resource, user being capable of acoustic.In client
Video resource is played, user is it can be seen that picture.
Step 12, the online multimedia resource for program request type are to be not attached in the network connection state of client
In the case where WLAN, the audio resource of the online multimedia resource of the program request type loaded is judged whether there is.
In embodiments of the present invention, the network connection state of client may include: to be not attached to WLAN and company
It is connected to WLAN.
Wherein, it is connected to a kind of example of WLAN are as follows: client is connected to some Wi-Fi (Wireless
Fidelity, Wireless Fidelity) network, and can use the Wi-Fi network and watch multimedia resource online.For example, user returns to
In family, the Wi-Fi network in getting home is connected.
It is not attached to a kind of example of WLAN are as follows: client is for example, by China Unicom, China Telecom or China
Operators' accessing mobile communication network such as mobile, can consume mobile data flow when watching online multimedia resource.Wherein, mobile
Data traffic includes but is not limited to pass through GPRS (General Packet Radio Service, general packet radio service skill
Art), EDGE (Enhanced Data Rate for GSM Evolution, enhanced data rates for gsm evolution technology), TD-
SCDMA (Time Division-Synchronous Code Division Multiple Access, 3G (Third Generation) Moblie
Standard, abbreviation 3G), HSDPA (High Speed Downlink Packet Access, high-speed slender body theory, also known as
3.5G), the mobile communication technologies such as LTE (Long Term Evolution, long term evolution) surf the Internet or using related data increment industry
Data traffic caused by being engaged in.
In the present embodiment, client may include being mounted on providing on the terminal devices such as computer for playing multimedia
The various application software in source.
Step 13, in the case where there is the audio resource of the online multimedia resource of program request type loaded, control
The audio resource of the online multimedia resource of play-on-demand type.
In one possible implementation, as shown in Fig. 2, the above method further include:
Step 14, the online multimedia resource for program request type are to be connected to nothing in the network connection state of client
In the case where line local area network, first load program request type online multimedia resource audio resource, reload program request type
The video resource of line multimedia resource, with the online multimedia resource of play-on-demand type.
In one possible implementation, as shown in Fig. 2, the above method further include:
Step 15, there is no the audio resource of the online multimedia resource of program request type loaded, to
User provides loading scheme;According to the loading scheme load of user's selection and the online multimedia resource of play-on-demand type.
In one possible implementation, as shown in Fig. 2, the above method further include:
Step 16, the online multimedia resource for type is broadcast live, can first judge the network connection state of client.
Step 17, the network connection state of client be not attached to WLAN in the case where, provide a user
Loading scheme, and the online multimedia resource of live streaming type is loaded and played according to the loading scheme that user selects.For example, in visitor
Family end connect mobile communications network when, inquire user's loading scheme, after user determines loading scheme, according to the user's choice plus
Carry and play the online multimedia resource of live streaming type.
Step 18, in the case where the network connection state of client is to be connected to WLAN, synchronous load live streaming
The audio resource and video resource of the online multimedia resource of type, to play the online multimedia resource of the live streaming type.Example
Such as, when client connects Wi-Fi network, the online multimedia resource for playing the live streaming type is directly loaded for user.
In one possible implementation, loading scheme provided in the embodiment of the present invention is (referring to step 15, step
17) it comprises at least one of the following: load audio resource;Synchronous load audio resource and video resource;Stop load audio resource
And/or video resource, terminate to play.
In one possible implementation, in the broadcast interface of multimedia resource, there are loading schemes to select control,
User displays for a user above-mentioned loading scheme after clicking loading scheme selection control, so that user selects loading scheme to play online
Multimedia resource.Also, the loading scheme of different category multimedia resources can be arranged automatically in user with manual setting or system.Example
Such as: if multimedia resource is " race explanation ", " commercial distribution meeting ", " talk show " category the load side under non-Wi-Fi state
It is load audio resource that case, which defaults (or manual setting),.
It should also be noted that, the loading scheme of multimedia resource does not influence the load of the contents such as discussion/listing, no matter
Which kind of loading scheme is taken not influence its function, user may participate in the interaction such as discussion.
By above-mentioned multimedia resource loading method, allow type and visitor of the user according to online multimedia resource
The network connection state at family end provides reasonable multimedia resource loading method for user, to meet the different viewing need of user
It asks, improves user experience.
Embodiment 2
User can watch video by intelligent terminals such as mobile phones online.It is synchronous while user watches Online Video
The video resource and audio resource for loading Online Video, when network environment changes, video viewing experience is terminated.At this
In inventive embodiments, set for the intelligent terminal in different network environments (such as connection Wi-Fi or connection mobile communications network)
Set different broadcasting scenes.And it is possible to different types of video (such as order video or live video etc.) be distinguished, to set
Corresponding video loading scheme.
Fig. 3 show another embodiment of the present invention provides multimedia resource loading method flow diagram, such as Fig. 3 institute
Show, for playing Online Video, this method comprises:
When user watches Online Video, first determine whether that the Online Video is order video or live video (S1).If
Online Video is order video (S2), then judges the network connection state (S3) for playing the client of the order video.In Wi-Fi
Loading scheme under state is pre-loaded audio resource (can referred to as load audio), and then loading video resource (can letter
Claim load video) (S4).When being switched under non-Wi-Fi or suspension state under network is by Wi-Fi state, it can be determined that whether deposit
In the audio (S5) for having loaded the order video.If there is loading audio, audio (S6) can be loaded directly into and play (S17) afterwards.
For example, as shown in figure 4, the broadcasting page of client can be popped up by pop-up P1 prompt " our pre-loaded audio resources,
You can continue to listen to this program ".When user clicks the button K11 of " playing audio at once ", it is loaded directly into and plays audio.
If not provided, loading scheme (S7) can be requried the users.Then, according to the user's choice, cancel load (S8), load video
With audio (S9) or load audio (S6).If for example, can pass through as shown in figure 5, load video under non-Wi-Fi state
Pop-up P2 pop-up inquiry loading scheme, provides multiple buttons K21, K22, K23, asks whether " continuing to watch " (consumption with prompt
Non- Wi-Fi resource, operator's flow etc.) or " only loading audio " (audio that player only loads live streaming) and " cancellation sight
See " options such as (i.e. a level on the auto-returned page).
If the Online Video is live video (S10), the network connection shape for the client for playing the live video is judged
State (S11).When under Wi-Fi state, video and audio (S12) can be loaded directly into.When under non-Wi-Fi state (or
Person under Wi-Fi state when being switched under non-Wi-Fi state), loading scheme (S13) can be requried the users.Then, according to
Load (S14), load video and audio (S15) or load audio (S16) are cancelled in the selection of user.For example, as shown in figure 4,
When under non-Wi-Fi state, the broadcasting page of client can pop up prompting frame, ask the user whether load resource.Then may be used also
It to remind user, is currently under non-Wi-Fi state, and a variety of options are provided, such as cancels viewing (i.e. on the auto-returned page
One level), continue watch (consuming non-Wi-Fi resource, operator's flow etc.), only load an audio (player only load be broadcast live
Audio).
In concrete application scene, in the separation load of audio & video, can default all live videos be can be with
Separation load.But in the selection of resource, if the resource of the categories such as " race explanation ", " commercial distribution meeting ", " talk show ",
Load audio resource (not doing specific limitation) under non-Wi-Fi state can be defaulted, be arranged in the video control zone lower right corner and select
Xiang Lairang user can oneself selection loading scheme.When the user clicks when options, loading scheme option, example can be shown
Such as: viewing video (load audio+video), only load audio (player only loads audio).In addition to this, player plus
Load scheme does not influence the load of the contents such as discussion/listing, regardless of may participate in discussion etc. in the case where video or audio load
Interaction.
It should be noted that the setting of pop-up P1, P2 and its related content in above-mentioned example are only the one of the present embodiment
Example is planted, the particular content in pop-up can be according to application scenarios flexible setting.In addition it is also possible to using other prompting modes come
Substitute above-mentioned pop-up prompting mode.
It, can be according to the type and client of online multimedia resource in the multimedia resource loading method of the present embodiment
Network connection state, provide a variety of multimedia resource loading methods for user, to meet the different viewing demands of user, improve
User experience.
Embodiment 3
Based on above-mentioned multimedia resource loading method, the embodiment of the present invention 3 provides a kind of multimedia resource loading device.Figure
6 show the multimedia resource loading device structural schematic diagram of one embodiment of the invention offer, as shown in fig. 6, the multimedia provides
Source loading device includes: type judging module 100, program request judgment module 200 and the first program request playing module 300;Specifically:
Type judging module 100, the type of the online multimedia resource for judging request broadcasting.
In embodiments of the present invention, the type of online multimedia resource may include: program request type and live streaming type.Program request
Type may include user's online multimedia resource recorded that selection plays at any time according to their own needs, play item
Part can not be by time restriction.Live streaming type may include that recording for period selection broadcasting of the user in live streaming is online
Multimedia resource, playing condition is by time restriction.
In embodiments of the present invention, multimedia resource may include by medias such as audio, video, picture, texts or
Any combination thereof is formed by resource file, video file.
It should be noted that in embodiments of the present invention, multimedia resource may include audio resource and video resource, and
Audio resource and video resource can separate.In client terminal playing audio resource, user being capable of acoustic.In client
Video resource is played, user is it can be seen that picture.
Program request judgment module 200 is in the network connection state of client for the online multimedia resource of program request type
In the case where being not attached to WLAN, the audio of the online multimedia resource of the program request type loaded is judged whether there is
Resource.
In embodiments of the present invention, the network connection state of client may include: to be not attached to WLAN and company
It is connected to WLAN.
Wherein, it is connected to a kind of example of WLAN are as follows: client is connected to some Wi-Fi (Wireless
Fidelity, Wireless Fidelity) network, and can use the Wi-Fi network and watch multimedia resource online.For example, user returns to
In family, the Wi-Fi network in getting home is connected.
It is not attached to a kind of example of WLAN are as follows: client is for example, by China Unicom, China Telecom or China
Operators' accessing mobile communication network such as mobile, can consume mobile data flow when watching online multimedia resource.Wherein, mobile
Data traffic includes but is not limited to pass through the online of the mobile communication technologies such as GPRS, EDGE, TD-SCDMA, HSDPA, LTE or use
Data traffic caused by related data value-added service.
In the present embodiment, client may include being mounted on providing on the terminal devices such as computer for playing multimedia
The software in source.
First program request playing module 300, in the audio resource for the online multimedia resource that there is the program request type loaded
In the case where, control the audio resource of the online multimedia resource of play-on-demand type.
In one possible implementation, above-mentioned apparatus further include:
Second program request playing module 400, for the online multimedia resource of program request type, in the network connection shape of client
State is in the case where being connected to WLAN, first to load the audio resource of the online multimedia resource of program request type, reload
The video resource of the online multimedia resource of program request type, with the online multimedia resource of play-on-demand type.
In one possible implementation, above-mentioned apparatus further include:
Third program request playing module 500, in the audio money that the online multimedia resource of the program request type loaded is not present
In the case where source, loading scheme is provided a user;According to user selection loading scheme load and play-on-demand type it is online
Multimedia resource.
In one possible implementation, above-mentioned apparatus further includes live play module 600, for playing live streaming type
Online multimedia resource, as shown in fig. 7, live play module 600 includes:
Judging unit 601 is broadcast live, for judging the network connection state of client.
First live streaming unit 602 is the case where being not attached to WLAN for the network connection state in client
Under, loading scheme is provided a user, and the online multimedia of live streaming type is loaded and played according to the loading scheme that user selects
Resource.For example, inquiring user's loading scheme, after user determines loading scheme, root when client connects mobile communications network
It is loaded according to the selection of user and plays the online multimedia resource of live streaming type.
Second live streaming unit 603, for the network connection state of client be connected to WLAN in the case where,
The audio resource and video resource of synchronous load online multimedia resource, to play the online multimedia resource of the live streaming type.
For example, directly loading the online multimedia resource for playing the live streaming type for user when client connects Wi-Fi network.
In one possible implementation, loading scheme provided in the embodiment of the present invention includes following at least one
Kind: load audio resource;Synchronous load audio resource and video resource;Stop load audio resource and/or video resource, terminates
It plays.
In one possible implementation, in the broadcast interface of multimedia resource, there are loading schemes to select control,
User displays for a user above-mentioned loading scheme after clicking loading scheme selection control, so that user selects loading scheme to play online
Multimedia resource.Also, the loading scheme of different category multimedia resources, example can be arranged automatically in user with manual setting or system
Such as: if multimedia resource is " race explanation " " commercial distribution meeting " " talk show " category loading scheme under non-Wi-Fi state
Defaulting (manual setting) is load audio resource.
It should also be noted that, the loading scheme of multimedia resource does not influence the load of the contents such as discussion/listing, no matter
Which kind of loading scheme is taken not influence its function, user may participate in the interaction such as discussion.
By above-mentioned multimedia resource loading method, allow type and visitor of the user according to online multimedia resource
The network connection state at family end provides reasonable multimedia resource loading method for user, to meet the different viewing need of user
It asks, improves user experience.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Embodiment 4
Fig. 8 shows a kind of structural block diagram of multimedia resource loading device of another embodiment of the invention.More matchmakers
Body resource loading device 1100 can be the host server for having computing capability, personal computer PC or it is portable just
Take formula computer or terminal etc..The specific embodiment of the invention does not limit the specific implementation of calculate node.
The multimedia resource loading device 1100 includes processor (processor) 1110, communication interface
(Communications Interface) 1120, memory (memory) 1130 and bus 1140.Wherein, processor 1110,
Communication interface 1120 and memory 1130 pass through bus 1140 and complete mutual communication.
Communication interface 1120 is used for and network device communications, and wherein the network equipment includes such as Virtual Machine Manager center, is total to
Enjoy storage etc..
Processor 1110 is for executing program.Processor 1110 may be a central processor CPU or dedicated collection
At circuit ASIC (Application Specific Integrated Circuit), or it is arranged to implement the present invention
One or more integrated circuits of embodiment.
Memory 1130 is for storing file.Memory 1130 may include high speed RAM memory, it is also possible to further include non-
Volatile memory (non-volatile memory), for example, at least a magnetic disk storage.Memory 1130 is also possible to deposit
Memory array.Memory 1130 is also possible to by piecemeal, and described piece can be combined into virtual volume by certain rule.
In a kind of possible embodiment, above procedure can be the program code for including computer operation instruction.The journey
Sequence is particularly used in: executing the multimedia resource loading method in above-described embodiment.
Those of ordinary skill in the art may be aware that each exemplary cell and algorithm in embodiment described herein
Step can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions actually with hardware also
It is software form to realize, the specific application and design constraint depending on technical solution.Professional technician can be directed to
It is specific that described function is realized using different methods is selected, but this realization is it is not considered that exceed model of the invention
It encloses.
If realizing the function and when sold or used as an independent product in the form of computer software,
To a certain extent it is believed that all or part (such as the part that contributes to existing technology) of technical solution of the present invention is
It embodies in form of a computer software product.The computer software product is generally stored inside computer-readable non-volatile
In storage medium, including some instructions are used so that computer equipment (can be personal computer, server or network to set
It is standby etc.) execute all or part of the steps of various embodiments of the present invention method.And storage medium above-mentioned include USB flash disk, mobile hard disk,
Read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
The various media that can store program code such as dish or CD.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.