Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of mobile phone audio frequency and video player method, is intended to solve existing mobile phone audio frequency and video and plays the restriction that receives the mobile phone own vol, has influenced the problem of result of broadcast.
The embodiment of the invention is achieved in that a kind of mobile phone audio frequency and video player method, comprising:
Mobile phone sends play instruction to playback equipment, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone;
Through interconnection agreement the audio-video code stream of mobile phone is sent to said playback equipment, so that said playback equipment receives and plays said audio-video code stream according to said play instruction.
Another purpose of the embodiment of the invention is to provide a kind of mobile phone audio frequency and video player method, comprising:
Playback equipment receives the play instruction of mobile phone, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone;
The audio-video code stream that said mobile phone sends is stored into buffer memory;
From said buffer memory, read said audio-video code stream and broadcast according to said play instruction.
Another purpose of the embodiment of the invention is to provide a kind of mobile phone, comprising:
The play instruction transmitting element is used for sending play instruction to playback equipment, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone;
The code stream transmitting element is used for through interconnection agreement the audio-video code stream of said mobile phone being sent to said playback equipment, so that said playback equipment receives and plays said audio-video code stream according to said play instruction.
Another purpose of the embodiment of the invention is to provide a kind of playback equipment, comprising:
The play instruction receiving element is used for the play instruction that playback equipment receives mobile phone, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone;
Buffer unit is used for the audio-video code stream that said mobile phone sends is stored into buffer memory;
Broadcast unit is used for reading said audio-video code stream and broadcast according to said play instruction from said buffer memory.
The embodiment of the invention realizes based on the interconnection agreement in the smart machine; To send to playback equipment corresponding and that mobile phone interconnects in the audio-video code stream that mobile phone end is play by mobile phone; Thereby utilize the outstanding audio-visual result of broadcast of playback equipment to come the audio frequency and video of mobile phone are carried out synchronous playing, improved user's multimedia and experienced.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention realizes based on the interconnection agreement in the smart machine; To send to playback equipment corresponding and that mobile phone interconnects in the audio-video code stream that mobile phone end is play by mobile phone; Thereby utilize the outstanding audio-visual result of broadcast of playback equipment to come the audio frequency and video of mobile phone are carried out synchronous playing, improved user's multimedia and experienced.
The system environments that the mobile phone audio frequency and video player method that the embodiment of the invention provides is suitable for relates to mobile phone and two communication entities of playback equipment; Realize communication based on interconnection agreement between these two communication entities; Wherein, playback equipment includes but not limited to equipment such as intelligent television, computer, panel computer.
In embodiments of the present invention; Interconnection agreement is to be used between the smart machine that is in the certain limit finding each other, locating and the agreement of communicating by letter; It can be exclusively used in the agreement that interconnects between the smart machine for IGRS protocol, DLNA (Digital Living Network Alliance) agreement etc.; Also can be general short-range communication protocols such as Wi-Fi, Zigbee, not do concrete qualification at this.
Fig. 1 shows the realization flow of the mobile phone audio frequency and video player method that the embodiment of the invention provides, and in the present embodiment, the executive agent of flow process is a mobile phone, and details are as follows:
In step S101, mobile phone sends play instruction to playback equipment, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone.
Based on interconnection agreement, so long as coexist in the certain distance scope and possessed the equipment of interconnection agreement stack, this equipment is in the running status that powers on simultaneously, and these equipment can be found each other, locate, and when communication request is arranged, carry out corresponding communication.Therefore; Before step S101; Mobile phone at first gets access to online list of devices in start or initial phase through interconnection agreement as control point (Control Point), has promptly comprised under current state the playback equipment that can communicate through interconnection agreement with mobile phone in this online list of devices.
In the present embodiment, after getting access to the corresponding online list of devices, mobile phone promptly can be selected a playback equipment from this tabulation, and sends play instruction to it, has audio-video code stream to need to play to indicate this playback equipment.
In step S102, through interconnection agreement the audio-video code stream of said mobile phone is sent to said playback equipment, so that said playback equipment receives and plays said audio-video code stream according to said play instruction.
In the present embodiment; Intercepting need be in the audio-video code stream of mobile phone end broadcast; And based on interconnection agreement with audio-video code stream through RTP (Real-time Transport Protocol; RTP) etc. relevant streaming media communication agreement is sent to the corresponding port of playback equipment with audio-video code stream, so that playback equipment can receive this audio-video code stream, and plays this audio-video code stream according to the play instruction that receives among the step S101.Concrete playback equipment receives and the method for playing audio-video code stream will be carried out corresponding elaboration in subsequent implementation example of the present invention, does not give unnecessary details at this.
Need to prove; Before mobile phone is sent to the corresponding port of playback equipment with audio-video code stream; Can be according to the network environment or the equipment requirements of reality; Audio-video code stream is carried out handled such as compressed encoding, joining day stamp and send again,, improve the purpose of the synchronous effect of audio frequency and video broadcast to reach conserve bandwidth.And concrete audio-video code stream processing method is not used in qualification the present invention at this, does not give unnecessary details.
As one embodiment of the present of invention; After step S102; When mobile phone end finishes the audio frequency and video broadcast or cancels audio-visual synchronization to play, can be through sending halt instruction, so that playback equipment stops the playing audio-video code stream according to this halt instruction to playback equipment.
In the present embodiment; Based on interconnection agreement; To send to corresponding playback equipment in the audio-video code stream that mobile phone end is play by mobile phone plays; So that the user can accomplish the functions such as video calling, Online Video broadcast of mobile phone through the playback equipment outside the mobile phone, improved user's multimedia and experienced.
Fig. 2 shows the realization flow of the mobile phone audio frequency and video player method that the embodiment of the invention provides, and in the present embodiment, the executive agent of flow process is a playback equipment, and details are as follows:
In step S201, playback equipment receives the play instruction of mobile phone, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone.
In step S202, the audio-video code stream that said mobile phone sends is stored into buffer memory.
Before step S201 and step S202, playback equipment need be linked in the network that communicates through interconnection agreement and mobile phone, and when inserting, opens the RTP port to wait for that mobile phone sends to this RTP port with audio-video code stream.
In the present embodiment; Playback equipment receives the play instruction from mobile phone through the network that inserts, and simultaneously, whether inquiry RTP port has the audio-video code stream from mobile phone; If the RTP port has the audio-video code stream from mobile phone, then this audio-video code stream is stored to the buffer memory in the playback equipment.
In step S203, from said buffer memory, read said audio-video code stream and broadcast according to said play instruction.
In the present embodiment; According to said play instruction; Playback equipment starts corresponding audio frequency and video playing program, thereby utilizes the audio frequency and video playing program from buffer memory, to read the audio-video code stream and the broadcast of storage, thereby realizes the audio-visual synchronization of mobile phone is play to playback equipment.
In the present embodiment; Before mobile phone is sending audio-video code stream, this code stream has been carried out corresponding pre-process, for example compression, joining day stamp etc., then correspondingly; After playback equipment receives audio-video code stream; Processing such as need decompress accordingly to this code stream, synchronous is not used in qualification the present invention at this, does not give unnecessary details.
As one embodiment of the present of invention, when receiving from the ceasing and desisting order of mobile phone, playback equipment stops to play the audio-video code stream in the buffer memory, withdraws from corresponding audio frequency and video playing program simultaneously.
In the present embodiment, playback equipment is through adding the interconnection agreement network, opens the RTP port and receives the play instruction of mobile phone, so that the audio-video code stream that receives is play in playback equipment, improved user's multimedia and experienced.
Fig. 3 shows the interaction flow of the mobile phone audio frequency and video player method that the embodiment of the invention provides, and in the present embodiment, mutual main body is mobile phone and playback equipment, and details are as follows:
1, playback equipment is linked in the network that communicates through interconnection agreement and mobile phone, opens the RTP port simultaneously.
2, mobile phone obtains online list of devices, therefrom selected playback equipment.
Wherein, comprised all devices that can communicate through interconnection agreement and mobile phone in the online list of devices.
3, mobile phone sends play instruction to playback equipment.
4, mobile phone is sent to playback equipment through interconnection agreement with the audio-video code stream of said mobile phone.
5, playback equipment is stored into buffer memory with the audio-video code stream that mobile phone sends.
6, playback equipment reads audio-video code stream and broadcast according to the play instruction of mobile phone from buffer memory.
7, when mobile phone end finishes the audio frequency and video broadcast or cancel audio-visual synchronization to play, send halt instruction to playback equipment.
8, playback equipment stops to play the audio-video code stream in the buffer memory.
The concrete realization principle of above-mentioned interaction flow is identical with the described principle of Fig. 2 embodiment with Fig. 1 of the present invention, does not give unnecessary details one by one at this.
The system configuration that the mobile phone audio frequency and video player method that Fig. 4 shows the embodiment of the invention to be provided is suitable for; As shown in Figure 4; This system comprisesmobile phone 41 andplayback equipment 42, andmobile phone 41 can be respectively applied for the mobile phone audio frequency and video player method shown in operation Fig. 1 of the present invention and Fig. 2 embodiment with playback equipment 42.For the ease of explanation, only show the part relevant with present embodiment.
Inmobile phone 41, comprising:
Play instruction transmittingelement 411 sends play instruction to playback equipment, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone.
Codestream transmitting element 412 is sent to said playback equipment through interconnection agreement with the audio-video code stream of said mobile phone, so that said playback equipment receives and plays said audio-video code stream according to said play instruction.
Alternatively, also comprise:
The halt instruction transmitting element sends halt instruction to said playback equipment, so that said playback equipment stops to play said audio-video code stream.
Atplayback equipment 42, comprising:
Playinstruction receiving element 421, playback equipment receive the play instruction of mobile phone, and said playback equipment is the current playback equipment that can communicate through interconnection agreement and said mobile phone.
Buffer unit 422 is stored into buffer memory with the audio-video code stream that said mobile phone sends.
Broadcast unit 423 reads said audio-video code stream and broadcast according to said play instruction from said buffer memory.
Alternatively, also comprise:
Access unit, access network, the network of said network for communicating through interconnection agreement and said mobile phone.
The port controlling unit is used to open the realtime transmission protocol RTP port.
Alternatively, also comprise:
Stop broadcast unit, when receiving ceasing and desisting order that said mobile phone sends, stop to play said audio-video code stream.
The embodiment of the invention realizes based on the interconnection agreement in the smart machine; To send to playback equipment corresponding and that mobile phone interconnects in the audio-video code stream that mobile phone end is play by mobile phone; Thereby utilize the outstanding audio-visual result of broadcast of playback equipment to come the audio frequency and video of mobile phone are carried out synchronous playing, improved user's multimedia and experienced.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.