CN104837057B - Video file broadcasting method, device and system - Google Patents
Video file broadcasting method, device and system Download PDFInfo
- Publication number
- CN104837057B CN104837057B CN201410386691.3A CN201410386691A CN104837057B CN 104837057 B CN104837057 B CN 104837057B CN 201410386691 A CN201410386691 A CN 201410386691A CN 104837057 B CN104837057 B CN 104837057B
- Authority
- CN
- China
- Prior art keywords
- player
- information
- video
- video file
- screen drawing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The embodiment of the invention discloses a kind of video file broadcasting methods, device and system, are related to multimedia play technology field, and the broadcast mode for solving the problems, such as video file is more single, improve the broadcast performance of video file.In the present invention, a variety of players are configured in playback terminal, when needing playing video file, a kind of player is selected from a variety of players according to the player selection strategy information in configuration information, the video file is then played according to the broadcast mode of the player of selection.Using the present invention, the broadcast performance of video file can be improved.
Description
Technical field
The present invention relates to multimedia play technology field more particularly to a kind of video file broadcasting methods, device and system.
Background technique
Current Android (Android) operating system provides the function of player, common video playing calling system
Player can be completed, but since system plays device is provided by the way of black box by operating system, when exploitation encounters problems
When be difficult to position and system plays device is often difficult to meet the demand of a professional video jukebox software, such as
The player of Android operation system do not support hypertext transfer protocol real-time media stream (HTTP Live Streaming,
HLS) broadcasting of format, the broadcasting for not supporting segmentation MP4 file etc. can use and grind player progress video playing certainly, but by
The reasons such as the performance of Yu Ziyan player, result of broadcast are simultaneously bad.
In the implementation of the present invention, following technical problem exists in the prior art in inventor:
In the prior art, android system grinds using system plays device or certainly player progress video playing, broadcasting side
Formula is more single, system plays device and grinds player certainly and have the shortcomings that respective, and wherein system plays device is difficult to meet certain broadcastings
It is required that will appear the problem of video file opens failure for the video format that do not support;From player is ground in performance and stabilization
Property on it is poor, once encounter problems will also result in broadcasting failure.
Summary of the invention
The embodiment of the present invention provides a kind of video file broadcasting method, device and system, for solving broadcasting for video file
The more single problem of mode is put, the broadcast performance of video file is improved.
The embodiment of the invention provides a kind of video file broadcasting methods, this method comprises:
After receiving the playing request to video file, configuration information is obtained, is selected according to the player in the configuration information
It selects policy information and selects a kind of player from preconfigured a variety of players;
The video file is played according to the corresponding kernel information of the player of selection, the kernel information is to be used for
Realize the information of the broadcast mode of the player.
The embodiment of the invention provides a kind of video files to play method of servicing, this method comprises:
It receives after carrying out the configuration request message of self terminal, is obtained according to the configuration request message comprising playing
The configuration information of device selection strategy information;
The configuration information is returned into the terminal, so that the terminal is selected according to the player in the configuration information
Policy information selects player used in playing video file from preconfigured a variety of players.
The embodiment of the invention provides a kind of video file playing device, which includes:
Media player management module, for obtaining configuration information, root after receiving to the playing request of video file
A kind of player is selected from preconfigured a variety of players according to the player selection strategy information in the configuration information;
Playing module plays the video file for the corresponding kernel information of the player according to selection, described
Kernel information is for realizing the information of the broadcast mode of the player.
The embodiment of the invention provides a kind of video files to play service unit, which includes:
Request message receiving unit, for receiving the configuration request message for carrying out self terminal;
Configuration information generation unit, for being obtained according to the configuration request message comprising player selection strategy information
Configuration information;
Configuration information transmission unit, for the configuration information to be returned to the terminal, so that the terminal is according to this
Player selection strategy information in configuration information selects playing video file to be used from preconfigured a variety of players
Player.
The embodiment of the invention provides a kind of video file play system, which includes:
Terminal obtains configuration information, according in the configuration information after receiving the playing request to video file
Player selection strategy information selects a kind of player from preconfigured a variety of players;According to the player of selection
Corresponding kernel information plays the video file, and the kernel information is for realizing the letter of the broadcast mode of the player
Breath;
Server, for after receiving and carrying out the configuration request message of self terminal, according to the configuration request message
Obtain the configuration information comprising player selection strategy information;The configuration information is returned into the terminal.
In scheme provided in an embodiment of the present invention, a variety of players are pre-configured with, when needing playing video file, according to
Player selection strategy information in configuration information selects a kind of player from a variety of players, then according to the broadcasting of selection
The broadcast mode of device plays the video file.As it can be seen that being pre-configured in this programme, there are many players, can be according to configuration information
A kind of player is selected, and carries out the broadcasting of video file according to the broadcast mode of the player of selection, to solve existing
A kind of more single problem of broadcast mode caused by all video files are played out using player in technology, and it is possible to
By configuring player selection strategy information different video files is played out using respectively suitable player, thus
The broadcast performance of video file can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the video file broadcasting method flow diagram that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram that video file provided by Embodiment 2 of the present invention plays method of servicing;
Fig. 3 A is terminal module schematic diagram based on android system in the embodiment of the present invention three;
Fig. 3 B is the interaction flow schematic diagram of the embodiment of the present invention three;
Fig. 4 is the video file playing device structural schematic diagram that the embodiment of the present invention four provides;
Fig. 5 is that the video file that the embodiment of the present invention five provides plays service unit structural schematic diagram;
Fig. 6 is the terminal structure schematic diagram that the embodiment of the present invention six provides;
Fig. 7 is the server architecture schematic diagram that the embodiment of the present invention seven provides;
Fig. 8 is the system structure diagram that the embodiment of the present invention eight provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Broadcast mode in order to solve the problems, such as video file is more single, improves the broadcast performance of video file, the present invention
A variety of players are configured in embodiment, when needing playing video file, are believed according to the player selection strategy in configuration information
Breath selects a kind of player from a variety of players, then plays the video file according to the kernel information of the player of selection.
Embodiment one:
Referring to Fig. 1, the embodiment of the present invention plays side for video file and provides a kind of video file broadcasting method, including with
Lower step:
Step 10: after receiving the playing request to video file, configuration information is obtained, according to broadcasting in the configuration information
It puts device selection strategy information and selects a kind of player from preconfigured a variety of players;
Step 11: the video file is played according to the corresponding kernel information of the player of selection, wherein kernel information is to use
In the information for the broadcast mode for realizing player.
It further, can be in step 10 after selecting a kind of player in preconfigured a variety of players
Determine screen drawing mode corresponding to the player of selection;Correspondingly, being corresponding according to the player of selection in step 11
Kernel information and the screen drawing mode playing video file of determination.
Specifically, obtaining the mode of configuration information in above-mentioned steps 10 can specifically include:
Configuration request message is sent to server end;Receive the configuration information that server end returns;And/or it obtains
It is stored in local configuration information.
That is, the player selection strategy information that can be sent according to server end selects player, alternatively, according to service
The player selection strategy information of device end transmission and the player selection strategy information locally saved select player together, or
Person selects player according only to the player selection strategy information locally saved.
Specifically, can also include the corresponding relationship of player and screen drawing mode in the configuration information got;On
It states and determines screen drawing mode corresponding to the player of selection in step 10, specific implementation can be with are as follows: according to the configuration information
In player and screen drawing mode corresponding relationship, determine screen drawing mode corresponding to the player of selection.
Preferably, playing video in the broadcast mode of the player according to selection and screen drawing mode in above-mentioned steps 11
During file, if occurring exception when opening or playing the video file, determine whether to meet according to abnormal conditions
Player switching condition is determining that recording current broadcast state (including play position, is when meeting player switching condition
It is no to be playing), and current player is closed, a player is reselected from multiple players, determination is selected again
The corresponding screen drawing mode of the player selected, according to the corresponding kernel information of the player reselected, broadcasting of reselecting
The broadcast state of device corresponding screen drawing mode and record is put, playing video file is continued.The program can be in playing process
The middle switching for realizing player can avoid occurring caused by exception during player opening or playing video file as far as possible
The problem of playing failure.
Specifically, can also include player switching condition in the configuration information got, it is above-mentioned true according to abnormal conditions
It is fixed whether to meet player switching condition, specifically: determine whether to meet the broadcasting for including in configuration information according to abnormal conditions
Device switching condition.For example, the type that the player switching condition may include: the abnormal conditions currently occurred is setting class
Type reaches setting value etc. using the number that current player attempts playing video file.
Above-mentioned is that switching is controlled according to configuration information, switching can also be controlled according to the user's choice, specifically, beating
Open or playing video file during when occurring abnormal, the prompt information for whether needing to switch player issued;It is selected in user
It selects after needing to switch player, records current broadcast state, and close current player, selected again from multiple players
A player is selected, determines the corresponding screen drawing mode of player reselected, it is corresponding according to the player reselected
Kernel information, the player corresponding the screen drawing mode and record that reselect broadcast state, continue play video text
Part.
Specifically, playing video text according to the kernel information of the player of selection and screen drawing mode in above-mentioned steps 11
Part, specific implementation can be such that
The video information that video file is got according to the address information of video file, according to the video format of video file
The video information is parsed to obtain decoded information, the image information of each frame is obtained according to the decoded information, calls screen
The corresponding video of drafting mode shows that control, the video show that control carries out Image Rendering according to the image information of each frame, and
The every frame image drawn out is sequentially displayed in screen.
For example, the system includes: media player management module, for every when this method is based on Android operation system
Kind player respectively includes a kernel package module, player video display module, and player video display module is for every
Kind screen drawing mode respectively includes a video and shows control;
Specific playing flow is as follows: after media player management module receives the playing request to video file, obtaining
Configuration information selects one kind from preconfigured a variety of players according to the player selection strategy information in the configuration information
Player, determines screen drawing mode corresponding to the player of selection, and the address information of video file is passed to selection
The corresponding kernel package module of player;
Kernel package module parses the video information according to the video information of address acquisition of information to video file
Decoded information is obtained, the image information of each frame is obtained according to the decoded information, which is passed into player video
Display module;
Player video display module calls the corresponding video of screen drawing mode to show that control, the video show control root
Image Rendering is carried out according to the image information of each frame, and the every frame image drawn out is sequentially displayed in screen.
Preferably, the corresponding video of every kind of screen drawing mode shows that control folds (FrameLayout) mode according to frame-layer
It is laid out;In order to correctly perform image display, the screen drawing mode corresponding to the player for determining selection it
Afterwards, the corresponding video of other non-selected screen drawing modes is shown that the drafting figure layer of control is set as not showing state.
Specifically, player selection strategy information may include at least one of following information: each video format is made
Player types information;Player types information used in particular video file;The end of the specific model of given area
End plays player types information used in particular video file.
Specifically, a variety of players in the present embodiment can include but is not limited to: system plays device and player is ground certainly,
Wherein in Android system, the video of the corresponding screen drawing mode of system plays device shows that control is SurfaceView, grinds certainly
The video of the corresponding screen drawing mode of player shows that control is OpenGLView.
In the present embodiment, a variety of players are pre-configured with, when needing playing video file, according to broadcasting in configuration information
It puts device selection strategy information and selects a kind of player from a variety of players, and determine that screen corresponding to the player of selection is drawn
Then mode processed plays the video file according to the broadcast mode of the player of selection and the screen drawing mode.As it can be seen that our
Player there are many being pre-configured in case, can select a kind of player, and according to the player of selection according to configuration information
Broadcast mode screen drawing mode corresponding with the player carries out the broadcasting of video file, to solve institute in the prior art
A kind of more single problem of broadcast mode caused by having video file to be played out using player, is configured and it is possible to pass through
Player selection strategy information plays out different video files using respectively suitable player, so as to improve
The broadcast performance of video file.
Embodiment two:
Referring to fig. 2, the embodiment of the present invention provides a kind of video file broadcasting method of servicing, this method packet for server end
It includes:
Step 20: receiving after carrying out the configuration request message of self terminal, obtained according to the configuration request message
Configuration information comprising player selection strategy information;
Here, the information such as user account, terminal models can be carried in configuration request message, thus according to user's account
Number, the information such as terminal models obtain the configuration information comprising player selection strategy information, can also be directed to different terminals
Model and user account obtain different player selection strategy information.
Step 21: obtained configuration information being returned into terminal, so that terminal is selected according to the player in the configuration information
It selects policy information and selects player used in playing video file from preconfigured a variety of players.
It is closed preferably, can also include that player is corresponding with screen drawing mode in the configuration information for obtaining and returning
System, by allow terminal according in configuration information player and screen drawing in a manner of corresponding relationship, determine the broadcasting of selection
Screen drawing mode corresponding to device.
Preferably, can also include player switching condition in the configuration information for obtaining and returning, so that terminal is being opened
Or when occurring exception during playing video file, determined whether to meet player switching condition according to abnormal conditions, true
The switching of device is played out when meeting player switching condition surely.
Specifically, player selection strategy information may include at least one of following information: each video format is made
Player types information;Player types information used in particular video file;The end of the specific model of given area
End plays player types information used in particular video file.
Specifically, a variety of players in the present embodiment can include but is not limited to: system plays device and player is ground certainly,
Wherein in Android system, the video of the corresponding screen drawing mode of system plays device shows that control is SurfaceView, grinds certainly
The video of the corresponding screen drawing mode of player shows that control is OpenGLView.
It in the present embodiment, receives after carrying out the configuration request message of self terminal, according to the configuration request message
The configuration information comprising player selection strategy information is obtained, configuration information is returned into terminal, so that terminal can be according to this
Player selection strategy information in configuration information selects a kind of player from preconfigured a variety of players, determines selection
Player corresponding to screen drawing mode, and broadcast according to the corresponding kernel information of the player of selection and screen drawing mode
Put video file.As it can be seen that this programme can make terminal select player, and broadcasting according to selection according to the configuration information of return
The kernel information screen drawing mode corresponding with the player for putting device carries out the broadcasting of video file, to solve existing skill
A kind of more single problem of broadcast mode caused by all video files are played out using player in art.
Embodiment three:
The present embodiment realizes that the detailed process of video file broadcasting method is illustrated to based on Android system.
Referring to Fig. 3 A, related system module is specifically included that when realizing that video file plays based on Android system
Media player management (MediaPlayerManager) module, is mainly used for managing different players, externally
The multicore solution of player is shielded, while being responsible for some interactions of Online Video, for example common gateway interface (CGI) is handed over
Mutually, data statistics, ad system etc..
Player video shows (PlayerVideoView) module, and mode will be drawn using different screen by, which being mainly used for, draws
The image produced is packaged into a unified view (View) and uses to external, and shielding multicore draws scheme more.
There are multiple videos to show that control, every kind of video show that control realizes a kind of screen drawing side under PlayerVideoView module
Formula, multiple videos show that control is laid out using FrameLayout mode, i.e., modes for drawing mode stacked position more.Than
Such as, a kind of video display control SurfaceView and another video show that control OpenGLView is used in Fig. 3 A
FrameLayout mode is laid out.Every kind of player can correspond to a kind of screen drawing mode, for example system plays device can correspond to
SurfaceView, and OpenGLView or SurfaceView can be corresponded to by grinding player certainly.By
The selection of MediaPlayerManager module plays player and the corresponding screen of the player used in some video file
Curtain draws mode.After MediaPlayerManager module has selected player and screen drawing mode, need other
The corresponding video of non-selected screen drawing mode shows that the drafting figure layer in control is set as not showing, that is, only shows
The drafting figure layer selected.
From player (SelfMediaPlayer) module is ground, which encapsulated to the java layer for grinding player kernel certainly,
It can be responsible for the work such as the forwarding of Java layer data, audio rendering simultaneously.
System plays device (SystemMediaPlayer) module, be mainly used for call Android system media player into
The broadcasting of row video file, the module need to realize the demand of some outsides, like skipping head, retry.
Cloud configures system (Cload Configuration System) module, which is the client of cloud configuration system
End for the configuration information comprising player selection strategy information to be requested and received to cloud, that is, server end, and is responsible for match
Confidence breath is stored in the coordination in player policy module and with local policy and uses.
Kernel encapsulates (PlayerWrapper) module, which is from the kernel encapsulated layer for grinding player, for executing view
The decoding of frequency information, thread conversion, retries the functions such as logic at image restoring.
As shown in Figure 3B, video file playing flow is illustrated below:
Step S01: when needing playing video file, the cloud of terminal, which configures system module and sends to server end, matches confidence
Cease request message;
Step S02: server end returns to configuration information to terminal, includes player selection strategy information in configuration information,
The player selection strategy information includes used in player types information, particular video file used in each video format
The terminal of player types information, the specific model of given area plays the letter of player types used in particular video file
Breath etc.;It can also include the corresponding relationship of player and screen drawing mode in configuration information, i.e. every kind of player is respectively adopted
Which kind of screen drawing mode;It can also include player switching condition information in configuration information, for example which kind of playback error occur
Code needs to play out device switching, once plays the number that can switch etc..
Step S03: the cloud configuration system module of terminal receives the configuration information that server end returns and is stored;
MediaPlayerManager module according to the configuration information received and is stored in the determining use of local configuration information first
Which kind of player.For example, when system version is lower, the video file that plays is HLS format, can choose using from grinding broadcasting
Device.
After having selected player, according to the configuration information received and local configuration information selection screen can be stored in
Curtain draws mode, for example, can choose SurfaceView corresponding screen drawing mode when using system plays device, and uses
From can choose SurfaceView or OpenGLView corresponding screen drawing mode when grinding player.
After having selected a kind of screen drawing mode, the drafting figure layer by another screen drawing mode is needed to be set as not
Display.
Kernel information and screen drawing side of the step S04:MediaPlayerManager module according to the player of selection
The broadcasting of formula progress video file.
Specifically, passing through player if the player that MediaPlayerManager module selects is system plays device
System plays device module under kernel module calls the broadcasting of the media player progress video file of Android system;
If the player that MediaPlayerManager module selects passes through player kernel module to grind player certainly
Under the local player module ground under player module certainly, call from grind player kernel package module carry out video file
Broadcasting, it is specific:
Player kernel module is by the local player module ground under player module certainly under it by video file
Address information is passed to from the kernel package module for grinding player;
The video playback module under player kernel module under kernel package module is obtained according to the address information received
The video information of video file is got, the Container Format module under video playback module calls some under it according to video format
Format decapsulation module parses the video information to obtain decoded information, the container coding module root under video playback module
It handles to obtain the image information of each frame by executing image restoring according to the decoded information, which is passed into player
Video display module;
Player video display module calls the player of selection to correspond to the display control of video corresponding to screen drawing mode
Part carries out figure layer drafting and image rendering, the image drawn out, the every frame figure that will be drawn out according to image information is received
As being displayed on the screen.
Step S05: when occurring abnormal during opening or playing video file, MediaPlayerManager module
Determine whether to meet the player switching condition in configuration information according to the error code that bottom reports, is determining that meeting player cuts
When changing condition, current broadcast state (including play position, whether be playing) is recorded, and close in current player
Core reselects a player, the corresponding screen drawing mode of player reselected is determined, by another screen drawing
The corresponding drafting figure layer of mode is set as not showing, according to the player reselected broadcast mode and screen drawing mode after
Continuous playing video file, specific method may refer to step S03, and which is not described herein again.This makes it possible to what is do not perceived in outside
In the case of play out the switching of device, while greatly reducing error rate.
Example IV:
Referring to fig. 4, the embodiment of the present invention provides a kind of video file playing device, which includes:
Media player management module 40, for obtaining configuration information after receiving to the playing request of video file,
A kind of player is selected from preconfigured a variety of players according to the player selection strategy information in the configuration information;
Playing module 41 plays the video file, institute for the corresponding kernel information of the player according to selection
Stating kernel information is for realizing the information of the broadcast mode of the player.
Further, the media player management module 40 is also used to: being selected from preconfigured a variety of players
After selecting a kind of player, screen drawing mode corresponding to the player of selection is determined;
The playing module 41 is specifically used for: being drawn according to the corresponding kernel information of the player of selection and the screen
Mode processed plays the video file.
Further, the media player management module 40 obtains configuration information as follows:
Configuration request message is sent to server end;Receive the configuration information that server end returns;And/or
Acquisition is stored in local configuration information.
It further, further include the corresponding relationship of player Yu screen drawing mode in the configuration information;The media
Player management module 40 determines screen drawing mode corresponding to the player of selection as follows:
Screen drawing corresponding to the player of selection is determined according to the corresponding relationship in the configuration information
Mode.
It further, further include player switching condition in the configuration information;The media player management module 40
It is also used to: when occurring abnormal during opening or playing the video file, being determined whether to meet institute according to abnormal conditions
Player switching condition is stated, when determination meets the player switching condition, records current broadcast state, and close current
Player, reselect a player from the multiple player, determine the corresponding screen of player reselected
Drafting mode;
The playing module 41 is also used to: according to the corresponding kernel information of the player reselected, broadcasting of reselecting
The broadcast state for putting device corresponding screen drawing mode and record continues to play the video file.
Further, the media player management module 40 is also used to: in the mistake for opening or playing the video file
When occurring abnormal in journey, the prompt information for whether needing to switch player issued;After user's selection needs to switch player, note
Current broadcast state is recorded, and closes current player, a player is reselected from the multiple player, is determined
The corresponding screen drawing mode of the player reselected;
The playing module 41 is also used to: according to the corresponding kernel information of the player reselected, broadcasting of reselecting
The broadcast state for putting device corresponding screen drawing mode and record continues to play the video file.
Further, the playing module 41 includes a kernel package module 410 for every kind of player, described to broadcast
Amplification module 41 further includes player video display module 411, and the player video display module 411 is directed to every kind of screen drawing
Mode includes that a video shows control 4110;
The media player management module 40 is used for: after receiving the playing request to video file, being obtained and is matched confidence
Breath, selects a kind of broadcasting from preconfigured a variety of players according to the player selection strategy information in the configuration information
Device, determines screen drawing mode corresponding to the player of selection, and the address information of the video file is passed to choosing
The corresponding kernel package module of the player selected;
The player package module 410 is used for: being believed according to the video that the address information gets the video file
Breath, is parsed to obtain decoded information, obtains the image information of each frame according to the decoded information, by the figure to the video information
As information passes to player video display module;
The player video display module 411 is used for: the corresponding video of the screen drawing mode being called to show control
4110, which shows that control 4110 carries out Image Rendering, and the every frame image that will be drawn out according to the image information of each frame
It is sequentially displayed in screen.
Further, the corresponding video of every kind of screen drawing mode shows that control 4110 folds FrameLayout according to frame-layer
Mode is laid out;
Further, the media player management module 40 is also used to: being determined corresponding to the player of selection
Screen drawing mode after, the corresponding video of other non-selected screen drawing modes is shown that the drafting figure layer of control is set
It is set to and does not show state.
Further, the player selection strategy information includes at least one of following information:
Player types information used in each video format;
Player types information used in particular video file;
The terminal of the specific model of given area plays player types information used in particular video file.
Further, a variety of players include: system plays device and grind player certainly, and the system plays device is corresponding
Screen drawing mode be SurfaceView, it is described from grind the corresponding screen drawing mode of player be OpenGLView.
In the present embodiment, there are many players for configuration in video file playing device, when needing playing video file, root
A kind of player is selected from a variety of players according to the player selection strategy information in configuration information, and determines the broadcasting of selection
Then screen drawing mode corresponding to device plays the view according to the broadcast mode of the player of selection and the screen drawing mode
Frequency file.As it can be seen that being pre-configured in this programme, there are many players, and a kind of player, and root can be selected according to configuration information
The broadcasting of video file is carried out according to the broadcast mode of the player of selection screen drawing mode corresponding with the player, to solve
A kind of more single problem of broadcast mode caused by all video files in the prior art of having determined are played out using player, and
And different video files can be made to be broadcast using respectively suitable player by configuring player selection strategy information
It puts, so as to improve the broadcast performance of video file.
Embodiment five:
Referring to Fig. 5, the embodiment of the present invention provides a kind of video file broadcasting service unit, which includes:
Request message receiving unit 50, for receiving the configuration request message for carrying out self terminal;
Configuration information generation unit 51, for obtaining believing comprising player selection strategy according to the configuration request message
The configuration information of breath;
Configuration information transmission unit 52, for the configuration information to be returned to the terminal so that the terminal according to
Player selection strategy information in the configuration information selects playing video file to be made from preconfigured a variety of players
Player.
It further, further include the corresponding relationship of player Yu screen drawing mode in the configuration information, so that described
Terminal determines screen drawing mode corresponding to the player of selection according to the corresponding relationship in the configuration information.
It further, further include player switching condition in the configuration information, so that the terminal is being opened or played
When occurring abnormal during the video file, determined whether to meet player switching condition according to abnormal conditions, in determination
The switching of device is played out when meeting player switching condition.
Further, the player selection strategy information includes at least one of following information:
Player types information used in each video format;
Player types information used in particular video file;
The terminal of the specific model of given area plays player types information used in particular video file.
Further, a variety of players include: system plays device and grind player certainly, and the system plays device is corresponding
Screen drawing mode be SurfaceView, it is described from grind the corresponding screen drawing mode of player be OpenGLView.
In the present embodiment, video file is played after service unit receives and carry out the configuration request message of self terminal, root
The configuration information comprising player selection strategy information is obtained according to the configuration request message, configuration information is returned into end
End, so that terminal can be selected from preconfigured a variety of players according to the player selection strategy information in the configuration information
A kind of player is selected, determines screen drawing mode corresponding to the player of selection, and corresponding interior according to the player of selection
Nuclear information and screen drawing mode playing video file.As it can be seen that this programme can make terminal be selected according to the configuration information of return
Player is selected, and video file is carried out according to the kernel information of the player of selection screen drawing mode corresponding with the player
Broadcasting, thus solve in the prior art all video files using a kind of player play out caused by broadcast mode compared with
Single problem.
Embodiment six:
Referring to Fig. 6, the embodiment of the present invention provides a kind of terminal, which includes processor 60, memory 61, storage control
Device 62, Peripheral Interface 63, radio-frequency module 64, photographing module 65, audio-frequency module 66, Touch Screen 67 and key module 68;Eventually
The quantity of processor 60 can be one or more in end, in Fig. 6 by taking a processor 60 as an example;Various components in terminal can
To be connected by one or more of communication buses or signal wire, in Fig. 6 for being connected by bus.
Memory 61 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the video file broadcasting method in the embodiment of the present invention is (for example, video is literary
Management module 40 and playing module 41 in part playing device).The software that processor 60 is stored in memory 61 by operation
Program, instruction and module realize above-mentioned terminal side thereby executing the various function application and data processing of terminal
Video file broadcasting method.
It is appreciated that structure shown in fig. 6 is only to illustrate, terminal may also include than more or fewer components shown in Fig. 6,
Or with the configuration different from shown in Fig. 6.Each component shown in fig. 6 can be realized using hardware, software or a combination thereof.
Memory 61 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 61 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a magnetic
Disk storage device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 61 can be further
Including the memory remotely located relative to processor 60, these remote memories can pass through network connection to terminal.It is above-mentioned
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.Processor 60 with
And other possible components can carry out the access of memory 61 under the control of storage control 62.
Various inputs, output device are couple processor 60 and memory 61 by Peripheral Interface 63.
In some embodiments, Peripheral Interface 63, processor 60 and storage control 62 can be real in one single chip
Existing, in other some embodiments, they can be realized by independent chip respectively.
Radio-frequency module 64 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with
Communication network or other equipment communication.Radio-frequency module 64 may include the various existing electrical components for being used to execute these functions,
Such as antenna, RF transceiver, digital signal processor, encryption and deciphering chip, subscriber identity module (SIM) card, memory
Etc.;Radio-frequency module 64 can carry out communicating or by wireless with various networks such as internet, intranet, wireless network
Network is communicated with other equipment.Above-mentioned wireless network may include cellular telephone networks, WLAN or intercity net.On
Various communication standards, agreement and technology, including but not limited to global system for mobile communications can be used in the wireless network stated
(Global System for Mobile Communications, GSM), enhanced mobile communication technology (Enhanced
Data Rate for GSM Evolution, EDGE), Wideband CDMA Technology (Wideband-Code Division
Multiple Access, W-CDMA), Code Division Multiple Access (Code Division Multiple Access, CDMA), time-division
Multiple access technology (Time Division Multiple Access, TDMA), bluetooth, adopting wireless fidelity technology (WiFi), the networking telephone
(Voice Over Internet Protocol, VOIP), worldwide interoperability for microwave accesses (Wi-Max), other are for mail, i.e.
The agreement and any other suitable communications protocol of Shi Tongxin and short message, or even may include not being developed yet currently
Agreement.
The photo or video that photographing module 65 is used to shoot photo perhaps video shooting can store to memory 61
It is interior, and can be sent by radio-frequency module 64.
Audio-frequency module 66 provides a user audio interface, may include one or more microphones, one or more raises
Sound device and voicefrequency circuit.Voicefrequency circuit receives voice data from Peripheral Interface 63, and voice data is converted to power information, will
Power information is transmitted to loudspeaker.Power information is converted to the sound wave that human ear can be heard by loudspeaker.Voicefrequency circuit is also from microphone
Place receives power information, power information is converted to voice signal, and transmission of sound signals to Peripheral Interface 63 is further to carry out
Processing.Audio data can be obtained by memory 61 or by radio-frequency module 64.Furthermore audio data also can store
It is sent to memory 61 or by radio-frequency module 64.In some instances, audio-frequency module 66 can also be inserted including earphone
Hole, for providing audio interface to earphone or other equipment.
Touch Screen 67 provides output and input interface between terminal and user.Specifically, Touch Screen 67 is to user
Show video output, the content of these videos output includes text, figure, video and any combination thereof.It is some output the result is that
Corresponding to some user interface objects.Touch Screen 67 also receives the input of user, such as the gestures behaviour such as click, activity of user
Make, so that user interface object responds the input of these users.The technology of detection user's input can be based on resistance
Formula, condenser type or other any possible touch control detection technologies.The specific example of 67 display unit of Touch Screen includes but not
It is limited to liquid crystal display or light emitting polymer displays.
Key module 68 equally provides user's interface inputted to terminal, and user can be by pressing different keys
So that terminal executes different functions.
Wherein, processor 60 can execute following steps: after receiving the playing request to video file, obtaining and match confidence
Breath, selects a kind of broadcasting from preconfigured a variety of players according to the player selection strategy information in the configuration information
Device;The video file is played according to the corresponding kernel information of the player of selection.
Further, processor 60 is after selecting a kind of player, corresponding to the player for also determining selection
Screen drawing mode;Institute is played according to the corresponding kernel information of the player of selection and the screen drawing mode determined
State video file.
Further, it when processor 60 obtains configuration information, specifically includes: sending configuration request to server end and disappear
Breath;Receive the configuration information that server end returns;And/or it obtains and is stored in local configuration information.
It further, further include pair of player Yu screen drawing mode in the configuration information that processor 60 is got
It should be related to;When determining screen drawing mode corresponding to the player of selection, specifically according in the configuration information
The corresponding relationship determine screen drawing mode corresponding to the player of selection.
It further, further include player switching condition in the configuration information that processor 60 is got;According to choosing
During the broadcast mode for the player selected and the screen drawing mode play the video file, if open or
When occurring abnormal when playing the video file, then determined whether to meet the player switching condition according to abnormal conditions,
It determines when meeting the player switching condition, records current broadcast state, and close current player, from the multiple
It reselects a player in player, determines the corresponding screen drawing mode of player reselected, according to selecting again
The broadcast state of the corresponding kernel information of the player selected, the player reselected corresponding screen drawing mode and record,
Continue to play the video file.
Further, when processor 60 occurs abnormal during opening or playing the video file, whether sending
Need to switch the prompt information of player;After user's selection needs to switch player, current broadcast state is recorded, and close
Current player reselects a player from the multiple player, determines that the player reselected is corresponding
Screen drawing mode is drawn according to the corresponding kernel information of the player reselected, the corresponding screen of player reselected
The broadcast state of mode processed and record continues to play the video file.
Further, processor 60 is played according to the kernel information and the screen drawing mode of the player of selection
When the video file, specifically: the video information of the video file is got according to the address information of the video file,
The video information is parsed to obtain decoded information according to the video format of the video file, is obtained according to the decoded information
The image information of each frame calls the corresponding video of the screen drawing mode to show that control, the video show control according to every
The image information of one frame carries out Image Rendering, and the every frame image drawn out is sequentially displayed in screen.
Further, the corresponding video of every kind of screen drawing mode shows that control folds FrameLayout mode according to frame-layer
It is laid out;Processor 60 after determining screen drawing mode corresponding to the player of selection, also by it is other not by
The corresponding video of the screen drawing mode of selection shows that the drafting figure layer of control is set as not showing state.
In the present embodiment, there are many players for configuration in terminal, when needing playing video file, according in configuration information
Player selection strategy information select a kind of player from a variety of players, and determine screen corresponding to the player of selection
Curtain draws mode, then plays the video file according to the broadcast mode of the player of selection and the screen drawing mode.As it can be seen that
Player there are many being pre-configured in this programme, can select a kind of player, and according to the broadcasting of selection according to configuration information
The broadcast mode of device screen drawing mode corresponding with the player carries out the broadcasting of video file, to solve the prior art
In all video files played out using a kind of player caused by the more single problem of broadcast mode, and it is possible to pass through
Configuration player selection strategy information plays out different video files using respectively suitable player, so as to
Improve the broadcast performance of video file.
Embodiment seven:
Referring to Fig. 7, the embodiment of the present invention provides a kind of server, which includes processor 70, memory 71, input
Device 72 and output device 73;The quantity of processor 70 can be one or more in server, with a processor 70 in Fig. 7
For;Processor 70, memory 71, input unit 72 and output device 73 in server can pass through bus or other modes
It connects, in Fig. 7 for being connected by bus.
Memory 71 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, as the video file in the embodiment of the present invention plays the corresponding program instruction/module of method of servicing (for example, view
Frequency file plays request message receiving unit 50, configuration information generation unit 51 and the configuration information transmission unit in service unit
51).Software program, instruction and the module that processor 70 is stored in memory 71 by operation, thereby executing server
Various function application and data processing realize that the video file of above-mentioned server end plays method of servicing.
Memory 71 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to server.
It can also include nonvolatile memory in addition, memory 71 may include high-speed random access memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 71 can be into one
Step includes the memory remotely located relative to processor 70, these remote memories can pass through network connection to server.
The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 72 can be used for receiving the number or character information of input, and generate with the user setting of terminal and
The related key signals input of function control.Output device 73 may include that display screen etc. shows equipment.
Wherein, processor 70 can execute following steps: it receives after carrying out the configuration request message of self terminal, according to
The configuration request message obtains the configuration information comprising player selection strategy information;The configuration information is returned into institute
Terminal is stated, so that the terminal is according to the player selection strategy information in the configuration information from preconfigured a variety of players
Player used in middle selection playing video file.
It further, further include that player is corresponding with screen drawing mode in the configuration information that processor 70 returns
Relationship, so that the terminal determines corresponding to the player of selection according to the corresponding relationship in the configuration information
Screen drawing mode.
It further, further include player switching condition in the configuration information that processor 70 returns, so that the end
When end occurs abnormal during opening or playing the video file, determine whether that meeting player cuts according to abnormal conditions
Condition is changed, is determining the switching for playing out device when meeting player switching condition.
Further, the player selection strategy information in the configuration information that processor 70 returns includes as follows
At least one of information:
Player types information used in each video format;
Player types information used in particular video file;
The terminal of the specific model of given area plays player types information used in particular video file.
In the present embodiment, server receives carry out the configuration request message of self terminal after, asked according to the configuration information
It asks message to obtain the configuration information comprising player selection strategy information, configuration information is returned into terminal, so that terminal can be with
A kind of player is selected from preconfigured a variety of players according to the player selection strategy information in the configuration information, really
Determine screen drawing mode corresponding to the player of selection, and according to the corresponding kernel information of the player of selection and screen drawing
Mode playing video file.As it can be seen that this programme can make terminal select player according to the configuration information of return, and according to choosing
The kernel information for the player selected screen drawing mode corresponding with the player carries out the broadcasting of video file, to solve
A kind of more single problem of broadcast mode caused by all video files are played out using player in the prior art.
Embodiment eight:
Referring to Fig. 8, the embodiment of the present invention also provides a kind of video file play system, which includes:
Terminal 80 obtains configuration information, according in the configuration information after receiving the playing request to video file
Player selection strategy information select a kind of player from preconfigured a variety of players;According to the broadcasting of selection
The corresponding kernel information of device plays the video file, and the kernel information is for realizing the broadcast mode of the player
Information;
Server 81, for being disappeared after receiving and carrying out the configuration request message of self terminal according to the configuration request
Breath obtains the configuration information comprising player selection strategy information;The configuration information is returned into the terminal.
Illustrating for terminal and server in this system can be respectively referring to above-described embodiment six and embodiment seven, this
In repeat no more.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (12)
1. a kind of video file broadcasting method, which is characterized in that this method comprises:
After receiving the playing request to video file, configuration information is obtained, plan is selected according to the player in the configuration information
Slightly information selects a kind of player from preconfigured a variety of players;
Play the video file according to the corresponding kernel information of the player of selection, the kernel information be for realizing
The information of the broadcast mode of the player;
Corresponding after selecting a kind of player in preconfigured a variety of players and according to the player of selection
Before kernel information plays the video file, screen drawing mode corresponding to the player of selection is determined;
The corresponding kernel information of the player according to selection plays the video file, specifically includes: according to selection
The corresponding kernel information of the player and the screen drawing mode play the video file;
Wherein, the kernel information of the player according to selection and the screen drawing mode play the video text
Part specifically includes: the video information of the video file is got according to the address information of the video file, according to the view
The video format of frequency file is parsed to obtain decoded information to the video information, obtains the figure of each frame according to the decoded information
As information, the corresponding video of the screen drawing mode is called to show that control, the video show control according to the image of each frame
Information carries out Image Rendering, and the every frame image drawn out is sequentially displayed in screen;
It wherein, further include player switching condition in the configuration information, during opening or playing the video file
When occurring abnormal, determined whether to meet the player switching condition according to abnormal conditions, is determining that meeting the player cuts
When changing condition, current broadcast state is recorded, and closes current player, reselects one from multiple players
Player determines the corresponding screen drawing mode of player reselected, corresponding described according to the player reselected
The broadcast state of kernel information, the player reselected corresponding the screen drawing mode and record, continues to play
The video file;
The player switching condition includes at least following one: the type of the abnormal conditions currently occurred is setting type, adopts
Reach setting value with the number that current player attempts playing video file;
Wherein, every kind of screen drawing mode is realized by a video display control respectively, every kind of screen drawing
The corresponding video of mode shows that control is laid out according to frame overlapped way;It is determining corresponding to the player of selection
Screen drawing mode after, further comprise: the corresponding video of other non-selected screen drawing modes shown into control
Drafting figure layer be set as not showing state.
2. the method as described in claim 1, which is characterized in that the acquisition configuration information specifically includes:
Configuration request message is sent to server end;Receive the configuration information that server end returns;And/or
Acquisition is stored in local configuration information.
3. the method as described in claim 1, which is characterized in that further include player and screen drawing side in the configuration information
The corresponding relationship of formula;Screen drawing mode corresponding to the player of the determining selection, specifically includes:
Screen drawing mode corresponding to the player of selection is determined according to the corresponding relationship in the configuration information.
4. the method as described in claim 1, which is characterized in that further comprise:
When occurring abnormal during opening or playing the video file, the prompt letter for whether needing to switch player issued
Breath;After user's selection needs to switch player, current broadcast state is recorded, and close current player, from multiple institutes
It states and reselects a player in player, the corresponding screen drawing mode of player reselected is determined, according to again
The broadcasting shape of the corresponding kernel information of the player of selection, the player reselected corresponding screen drawing mode and record
State continues to play the video file.
5. the method as described in any in claim 1-4, which is characterized in that the player selection strategy information includes as follows
At least one of information:
Player types information used in each video format;
Player types information used in particular video file;
The terminal of the specific model of given area plays player types information used in particular video file.
6. a kind of video file plays method of servicing, which is characterized in that this method comprises:
It receives after carrying out the configuration request message of self terminal, obtains selecting comprising player according to the configuration request message
Select the configuration information of policy information;
The configuration information is returned into the terminal, so that the terminal is according to the player selection strategy in the configuration information
Information selects player used in playing video file from preconfigured a variety of players;
It further include the corresponding relationship of player Yu screen drawing mode in the configuration information, so that the terminal is matched according to
The corresponding relationship in confidence breath determines screen drawing mode corresponding to the player of selection;
Wherein, the method also includes: the video information of the video file is returned according to the address information of the video file
Back to the terminal, solved so that the terminal parses the video information according to the video format of the video file
Code information, and the terminal obtains the image information of each frame according to the decoded information, calls the screen drawing mode pair
The video answered shows control, which shows that control carries out Image Rendering according to the image information of each frame, and will draw out
Every frame image is sequentially displayed in screen;
It wherein, further include player switching condition in the configuration information, so that the video is being opened or played to the terminal
When occurring abnormal during file, determined whether to meet the player switching condition according to abnormal conditions, be met determining
When the player switching condition, current broadcast state is recorded, and closes current player, from multiple players
A player is reselected, the corresponding screen drawing mode of player reselected is determined, according to the broadcasting reselected
The broadcast state of the corresponding kernel information of device, the player reselected corresponding screen drawing mode and record, continues to play
The video file;
The player switching condition includes at least following one: the type of the abnormal conditions currently occurred is setting type, adopts
Reach setting value with the number that current player attempts playing video file;
Wherein, every kind of screen drawing mode is realized by a video display control respectively, every kind of screen drawing
The corresponding video of mode shows that control is laid out according to frame overlapped way;It is determining corresponding to the player of selection
Screen drawing mode after, further comprise: terminal shows the corresponding video of other non-selected screen drawing modes
The drafting figure layer of control is set as not showing state.
7. a kind of video file playing device, which is characterized in that the device includes:
Media player management module, for configuration information being obtained, according to this after receiving to the playing request of video file
Player selection strategy information in configuration information selects a kind of player from preconfigured a variety of players;
Playing module plays the video file, the kernel for the corresponding kernel information of the player according to selection
Information is for realizing the information of the broadcast mode of the player;
The media player management module is also used to: selected from preconfigured a variety of players a kind of player it
Afterwards, screen drawing mode corresponding to the player of selection is determined;
The playing module is specifically used for: according to the corresponding kernel information of the player of selection and the screen drawing mode
Play the video file;
Wherein, the playing module includes a kernel package module for every kind of player, and the playing module further includes
Player video display module, the player video display module include that a video is aobvious for every kind of screen drawing mode
Show control;The media player management module is also used to: the address information of the video file is passed to described in selection
The corresponding kernel package module of player;The kernel package module is used for: getting the video according to the address information
The video information of file is parsed to obtain decoded information to the video information, obtains the figure of each frame according to the decoded information
As information, which is passed into player video display module;The player video display module is used for: calling institute
It states the corresponding video of screen drawing mode and shows that control, the video show that control carries out image according to the image information of each frame and draws
System, and the every frame image drawn out is sequentially displayed in screen;
It wherein, further include player switching condition in the configuration information;The media player management module is also used to: being beaten
When occurring abnormal during opening or playing the video file, determine whether that meeting the player switches according to abnormal conditions
Condition records current broadcast state, and close current player when determination meets the player switching condition, from
A player is reselected in multiple players, determines the corresponding screen drawing mode of player reselected;Institute
It states playing module to be also used to: according to the corresponding kernel information of the player reselected, the corresponding screen of player reselected
Curtain draws the broadcast state of mode and record, continues to play the video file;
The player switching condition includes at least following one: the type of the abnormal conditions currently occurred is setting type, adopts
Reach setting value with the number that current player attempts playing video file;
Wherein, every kind of screen drawing mode is realized by a video display control respectively, every kind of screen drawing
The corresponding video of mode shows that control is laid out according to frame overlapped way;The media player management module is also used
In: after determining screen drawing mode corresponding to the player of selection, by other non-selected screen drawing sides
The corresponding video of formula shows that the drafting figure layer of control is set as not showing state.
8. device as claimed in claim 7, which is characterized in that the media player management module obtains as follows
Configuration information:
Configuration request message is sent to server end;Receive the configuration information that server end returns;And/or
Acquisition is stored in local configuration information.
9. device as claimed in claim 7, which is characterized in that further include player and screen drawing side in the configuration information
The corresponding relationship of formula;The media player management module determines screen corresponding to the player of selection as follows
Curtain draws mode:
Screen drawing mode corresponding to the player of selection is determined according to the corresponding relationship in the configuration information.
10. device as claimed in claim 7, which is characterized in that the media player management module is also used to: open or
When occurring abnormal during playing the video file, the prompt information for whether needing to switch player issued;It is selected in user
It selects after needing to switch player, records current broadcast state, and close current player, the weight from multiple players
Newly one player of selection determines the corresponding screen drawing mode of player reselected;
The playing module is also used to: according to the player reselected corresponding kernel information, the player pair that reselects
The broadcast state of the screen drawing mode and record answered continues to play the video file.
11. a kind of video file plays service unit, which is characterized in that the device includes:
Request message receiving unit, for receiving the configuration request message for carrying out self terminal;
Configuration information generation unit, for obtaining matching comprising player selection strategy information according to the configuration request message
Confidence breath;
Configuration information transmission unit, for the configuration information to be returned to the terminal, so that the terminal is according to the configuration
Player selection strategy information in information selects to broadcast used in playing video file from preconfigured a variety of players
Put device;
It further include that player is corresponding with screen drawing mode in the configuration information that the configuration information generation unit obtains
Relationship, so that the terminal determines corresponding to the player of selection according to the corresponding relationship in the configuration information
Screen drawing mode;
Wherein, described device is also used to: being returned the video information of the video file according to the address information of the video file
Back to the terminal, solved so that the terminal parses the video information according to the video format of the video file
Code information, and the terminal obtains the image information of each frame according to the decoded information, calls the screen drawing mode pair
The video answered shows control, which shows that control carries out Image Rendering according to the image information of each frame, and will draw out
Every frame image is sequentially displayed in screen;
It wherein, further include player switching condition in the configuration information, so that the video is being opened or played to the terminal
When occurring abnormal during file, determined whether to meet the player switching condition according to abnormal conditions, be met determining
When the player switching condition, current broadcast state is recorded, and closes current player, from multiple players
A player is reselected, the corresponding screen drawing mode of player reselected is determined, according to the broadcasting reselected
The broadcast state of the corresponding kernel information of device, the player reselected corresponding screen drawing mode and record, continues to play
The video file;
The player switching condition includes at least following one: the type of the abnormal conditions currently occurred is setting type, adopts
Reach setting value with the number that current player attempts playing video file;
Wherein, every kind of screen drawing mode is realized by a video display control respectively, every kind of screen drawing
The corresponding video of mode shows that control is laid out according to frame overlapped way;It is determining corresponding to the player of selection
Screen drawing mode after, the corresponding video of other non-selected screen drawing modes is shown that the drafting figure layer of control is set
It is set to and does not show state.
12. a kind of video file play system, which is characterized in that the system includes:
Terminal obtains configuration information, according to the broadcasting in the configuration information after receiving the playing request to video file
Device selection strategy information selects a kind of player from preconfigured a variety of players;It is corresponding according to the player of selection
Kernel information play the video file, the kernel information is for realizing the information of the broadcast mode of the player;
The terminal is also used to after selecting a kind of player in preconfigured a variety of players and according to selection
Before the player corresponding kernel information broadcasting video file, screen corresponding to the player of selection is determined
Drafting mode;
The corresponding kernel information of the player according to selection plays the video file, specifically includes: according to selection
The corresponding kernel information of the player and the screen drawing mode play the video file;
Server, for being obtained according to the configuration request message after receiving and carrying out the configuration request message of self terminal
Configuration information comprising player selection strategy information;The configuration information is returned into the terminal;
Wherein, the terminal is also used to: being believed according to the video that the address information of the video file gets the video file
Breath, is parsed to obtain decoded information, according to the decoded information according to the video format of the video file to the video information
The image information of each frame is obtained, the corresponding video of the screen drawing mode is called to show that control, the video show control root
Image Rendering is carried out according to the image information of each frame, and the every frame image drawn out is sequentially displayed in screen;
It wherein, further include player switching condition in the configuration information, during opening or playing the video file
When occurring abnormal, determined whether to meet the player switching condition according to abnormal conditions, is determining that meeting the player cuts
When changing condition, current broadcast state is recorded, and closes current player, reselects one from multiple players
Player determines the corresponding screen drawing mode of player reselected, according to the corresponding kernel of the player reselected
The broadcast state of information, the player reselected corresponding screen drawing mode and record, continues to play the video file;
The player switching condition includes at least following one: the type of the abnormal conditions currently occurred is setting type, adopts
Reach setting value with the number that current player attempts playing video file;
Wherein, every kind of screen drawing mode is realized by a video display control respectively, every kind of screen drawing
The corresponding video of mode shows that control is laid out according to frame overlapped way;It is determining corresponding to the player of selection
Screen drawing mode after, further comprise: the terminal is by the corresponding video of other non-selected screen drawing modes
The drafting figure layer of display control is set as not showing state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410386691.3A CN104837057B (en) | 2014-08-07 | 2014-08-07 | Video file broadcasting method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410386691.3A CN104837057B (en) | 2014-08-07 | 2014-08-07 | Video file broadcasting method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104837057A CN104837057A (en) | 2015-08-12 |
CN104837057B true CN104837057B (en) | 2019-05-24 |
Family
ID=53814651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410386691.3A Active CN104837057B (en) | 2014-08-07 | 2014-08-07 | Video file broadcasting method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104837057B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106557511B (en) * | 2015-09-29 | 2020-05-26 | 腾讯科技(深圳)有限公司 | Video adaptation processing method and device and terminal |
CN106385632B (en) * | 2016-09-21 | 2019-10-22 | 微鲸科技有限公司 | Video broadcasting method and video play device |
CN106534895B (en) * | 2016-11-01 | 2019-12-10 | 青岛海信电器股份有限公司 | playing method and terminal of encrypted multimedia file |
CN110582024A (en) * | 2018-06-08 | 2019-12-17 | 网宿科技股份有限公司 | method and device for playing video |
CN109089145B (en) * | 2018-08-06 | 2021-08-13 | 阿里巴巴(中国)有限公司 | Method, computing device and storage medium for non-intrusive control of video playback |
CN111339324A (en) * | 2020-02-21 | 2020-06-26 | 维沃移动通信有限公司 | Multimedia playing method and electronic equipment |
CN111447499A (en) * | 2020-03-30 | 2020-07-24 | 深圳巴伦如梭网络有限公司 | Playing algorithm based on playing equipment and media qualification type matching optimal player |
CN112911401A (en) * | 2021-01-19 | 2021-06-04 | 维沃移动通信有限公司 | Video playing method and device |
CN113867822A (en) * | 2021-09-30 | 2021-12-31 | 深圳市酷开网络科技股份有限公司 | Equipment control method and device, electronic equipment and storage medium |
CN114339325B (en) * | 2021-12-30 | 2023-12-19 | 珠海豹趣科技有限公司 | Multi-engine dynamic wallpaper playing method and device based on android system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716242A (en) * | 2004-06-28 | 2006-01-04 | 千乡万才科技(中国)有限公司 | Broadcasting method and system for computer multimedia files |
CN101064824A (en) * | 2006-04-28 | 2007-10-31 | 华为技术有限公司 | Method, system and apparatus for playing audio-video data |
CN102298947A (en) * | 2011-08-23 | 2011-12-28 | 百度在线网络技术(北京)有限公司 | Method for carrying out playing switching among multimedia players and equipment |
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
-
2014
- 2014-08-07 CN CN201410386691.3A patent/CN104837057B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716242A (en) * | 2004-06-28 | 2006-01-04 | 千乡万才科技(中国)有限公司 | Broadcasting method and system for computer multimedia files |
CN101064824A (en) * | 2006-04-28 | 2007-10-31 | 华为技术有限公司 | Method, system and apparatus for playing audio-video data |
CN102761736A (en) * | 2011-04-29 | 2012-10-31 | 腾讯科技(深圳)有限公司 | Video decoding method and device |
CN102298947A (en) * | 2011-08-23 | 2011-12-28 | 百度在线网络技术(北京)有限公司 | Method for carrying out playing switching among multimedia players and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104837057A (en) | 2015-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104837057B (en) | Video file broadcasting method, device and system | |
CN104980788B (en) | Video encoding/decoding method and device | |
CN104602098A (en) | Video barrage display method and equipment thereof | |
CN104618780B (en) | Electrical equipment control method and system | |
CN108989691A (en) | Video capture method, apparatus, electronic equipment and computer readable storage medium | |
US20210344938A1 (en) | Video decoding method and apparatus, computer device, and storage medium | |
CN104618316B (en) | Safe verification method, device and system | |
CN109714782A (en) | Method, apparatus and electronic equipment for smart machine distribution | |
WO2015027713A1 (en) | Video playback method, apparatus, and terminal device based on video aggregation service | |
US20170171496A1 (en) | Method and Electronic Device for Screen Projection | |
CN106941629A (en) | Real-time live broadcast method based on SIP+RTP Yu RTMP protocol interconnections | |
CN109151595A (en) | Method for processing video frequency, device, terminal and medium | |
CN103517148A (en) | Information processing system, information processing apparatus, and information processing method | |
US20170168660A1 (en) | Voice bullet screen generation method and electronic device | |
CN107147929A (en) | Multiwindow method of outputting acoustic sound, television set and computer-readable recording medium | |
CN105141730A (en) | Volume control method and device | |
CN109951400A (en) | Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal | |
CN105704106B (en) | A kind of visualization IVR implementation method and mobile terminal | |
CN107547517A (en) | Audio/video program method for recording and the network equipment and computer installation | |
JP2019208226A (en) | Reproduction data acquisition method, device, apparatus, and storage medium | |
CN109495776A (en) | The method and intelligent terminal that a kind of audio sends, plays | |
CN106095132B (en) | Playback equipment keypress function setting method and device | |
CN103458317A (en) | Method and system for controlling media playing of intelligent terminal | |
CN108882004B (en) | Video recording method, device, equipment and storage medium | |
CN103401580A (en) | Voice recording and playing interphone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |