CN103716681A - Code stream switching method and electronic equipment - Google Patents
Code stream switching method and electronic equipment Download PDFInfo
- Publication number
- CN103716681A CN103716681A CN201310655638.4A CN201310655638A CN103716681A CN 103716681 A CN103716681 A CN 103716681A CN 201310655638 A CN201310655638 A CN 201310655638A CN 103716681 A CN103716681 A CN 103716681A
- Authority
- CN
- China
- Prior art keywords
- live broadcast
- code stream
- stream
- electronic equipment
- media
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Abstract
An embodiment of the invention relates to the technical field of electronic information, provides a code stream switching method and electronic equipment, and can realize switching of live broadcasting streaming media code steam of electronic equipment, improve the output performance of the electronic equipment, and enhances the flexibility of the electronic equipment in outputting live broadcasting streaming media. The method includes: obtaining code stream identification Stream ID of a live broadcasting streaming media of a second code stream; sending the Stream ID to a dispatching server, and thus enabling the dispatching server to determining a content distribution network (CDN) address corresponding to the Stream ID according to the Stream ID; obtaining the address of a live broadcasting data list in a CDN server corresponding to the CDN address according to the CDN address from the dispatching server; downloading the live broadcasting streaming media of the second code stream according to the address of the live broadcasting data list; and switching from playing a live broadcasting streaming media of a first code stream to playing the live broadcasting streaming media of the second code stream.
Description
Technical field
The present invention relates to electronic information technical field, relate in particular to a kind of code stream changing method and electronic equipment.
Background technology
Continuous increase along with Internet bandwidth, video request program, direct seeding technique have obtained developing rapidly, Internet video program is more and more subject to people's favor, especially broadband internet, digital tv network, mobile phone 3G(3rd-generation, 3G (Third Generation) Moblie technology) network is universal gradually, and video stream media industry will welcome a unprecedented opportunity to develop.
In prior art, when electronic equipment is play live broadcast stream media, can only play a kind of live broadcast stream media of code stream, the code stream of the live broadcast stream media of current broadcasting cannot be switched, cause electronic equipment cannot adjust the definition of the live broadcast stream media of current broadcasting, reduced the output performance of electronic equipment and the flexibility of electronic equipment output live broadcast stream media output.
Summary of the invention
Embodiments of the invention provide a kind of code stream changing method and electronic equipment, being applied to electronic equipment plays in the process of live broadcast stream media of the first code stream, the code stream identification Stream ID of the live broadcast stream media of the second code stream getting by basis obtains the address of live data list, and then according to the address of live data list, download the live broadcast stream media of the second code stream, and switch to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream, realized the switching of electronic equipment to live broadcast stream media code stream, promoted the output performance of electronic equipment, strengthened the flexibility of electronic equipment output live broadcast stream media.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The embodiment of the present invention provides a kind of code stream changing method, is applied to electronic equipment and plays in the process of live broadcast stream media of the first code stream, comprising:
Electronic equipment obtains the code stream identification Stream ID of the live broadcast stream media of the second code stream;
Described electronic equipment is sent to dispatch server by described Stream ID, so that described dispatch server, according to described Stream ID, is determined the content distributing network CDN address corresponding with described Stream ID;
Described electronic equipment receives the described CDN address from described dispatch server;
Described electronic equipment, according to described CDN address, obtains the address of the live data list in the CDN server corresponding with described CDN address;
Described electronic equipment, according to the address of described live data list, is downloaded the live broadcast stream media of the second code stream;
Described electronic equipment switches to from playing the live broadcast stream media of described the first code stream the live broadcast stream media of playing described the second code stream.
Before described electronic equipment obtains the code stream identification Stream ID of live broadcast stream media of the second code stream, described method also comprises:
Described electronic equipment obtains live broadcast stream media code stream handover request, and described live broadcast stream media code stream handover request is used to indicate described electronic equipment and the live broadcast stream media of described the first code stream is switched to the live broadcast stream media of described the second code stream.
Described electronic equipment obtains after live broadcast stream media code stream handover request, and described method also comprises:
Described electronic equipment records the current broadcasting moment of the live broadcast stream media of described the first code stream;
Described electronic equipment switches to from playing the live broadcast stream media of described the first code stream the live broadcast stream media of playing described the second code stream, comprising:
Described electronic equipment switches to from the described current live broadcast stream media of playing described the second code stream constantly of playing from playing the live broadcast stream media of described the first code stream.
The section that described live data list comprises the live broadcast stream media of the second code stream described at least one; ?
Described electronic equipment is according to the address of described live data list, and the step of downloading the live broadcast stream media of the second code stream comprises:
Described electronic equipment, according to the address of described live data list, is downloaded the section of the live broadcast stream media of each the second code stream in described live data list.
Described electronic equipment is according to the address of described live data list, after downloading the section of live broadcast stream media of each the second code stream in described live data list, described electronic equipment is from play before the live broadcast stream media of described the first code stream switches to and play the live broadcast stream media of described the second code stream from described current broadcasting constantly, and described method also comprises:
Described electronic equipment, by the section splicing of the live broadcast stream media of described each the second code stream, generates the live broadcast stream media of described the second code stream.
The embodiment of the present invention provides a kind of electronic equipment, comprising:
Acquiring unit, for obtaining the code stream identification Stream ID of the live broadcast stream media of the second code stream, and for receiving the described CDN address from described dispatch server, and also for according to described CDN address, obtain the address of the live data list in the CDN server corresponding with described CDN address;
Transmitting element, is sent to dispatch server for the described Stream ID that described acquiring unit is got, so that described dispatch server, according to described Stream ID, is determined the content distributing network CDN address corresponding with described Stream ID;
Processing unit, for the address of the described live data list that gets according to described acquiring unit, downloads the live broadcast stream media of described the second code stream;
Display unit, for switching to the live broadcast stream media of described the second code stream of playing described processing unit download from playing the live broadcast stream media of described the first code stream.
Described acquiring unit, also, for obtaining live broadcast stream media code stream handover request, described live broadcast stream media code stream handover request is used to indicate described display unit and the live broadcast stream media of described the first code stream is switched to the live broadcast stream media of described the second code stream.
Described electronic equipment also comprises memory cell,
Described memory cell, for getting after live broadcast stream media code stream handover request at described acquiring unit, records the current broadcasting moment of the live broadcast stream media of described the first code stream;
Described display unit, specifically for switching to the described current live broadcast stream media of playing described the second code stream constantly of playing from described unit records from playing the live broadcast stream media of described the first code stream.
The section that described live data list comprises the live broadcast stream media of the second code stream described at least one;
Described processing unit, specifically for the address of the described live data list of obtaining according to described acquiring unit, the section of downloading the live broadcast stream media of each the second code stream in described live data list.
Described processing unit, also, for by the section splicing of the live broadcast stream media of described each the second code stream, generates the live broadcast stream media of described the second code stream.
Embodiments of the invention provide a kind of code stream changing method and electronic equipment, being applied to electronic equipment plays in the process of live broadcast stream media of the first code stream, the code stream identification Stream ID of the live broadcast stream media of the second code stream getting by basis, obtain the content distributing network CDN address corresponding with Stream ID, and according to CDN address, obtain the address of live data list, and then according to the address of live data list, download the live broadcast stream media of the second code stream, and switch to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream, avoided electronic equipment cannot carry out the problem of code stream switching to live broadcast stream media, promoted the output performance of electronic equipment, strengthened the flexibility of electronic equipment output live broadcast stream media.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet one of the code stream changing method of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet two of the code stream changing method of the embodiment of the present invention;
Fig. 3 is the structural representation one of the electronic equipment of the embodiment of the present invention;
Fig. 4 is the structural representation two of the electronic equipment of the embodiment of the present invention.
Embodiment
In below describing, in order to illustrate rather than in order limiting, to have proposed the detail such as particular system structure, interface, technology, to thoroughly cut, understand the present invention.Yet, not it will be clear to one skilled in the art that in there is no other embodiment of these details and can realize the present invention yet.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders description of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or", is only a kind of incidence relation of describing affiliated partner herein, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
Various technology described herein is only suitable for electronic equipment when playing the live broadcast stream media of the first code stream, the live broadcast stream media of the first code stream is switched to the concrete event of the live broadcast stream media of the second code stream.
Electronic equipment, can be that wireless terminal can be also catv terminal, wireless terminal can be to point to the equipment that user provides voice and/or data connectivity, has the portable equipment of wireless connecting function or is connected to other treatment facilities of radio modem.Wireless terminal can be through wireless access network (for example, RAN, Radio Access Network) communicate with one or more core net, wireless terminal can be mobile terminal, as mobile phone (or being called " honeycomb " phone) with have the computer of mobile terminal.
Embodiment mono-
The embodiment of the present invention provides a kind of code stream changing method, is applied to electronic equipment and plays in the process of live broadcast stream media of the first code stream, as shown in Figure 1, comprising:
S101, electronic equipment obtain the code stream identification Stream ID of the live broadcast stream media of the second code stream.
Live is on-the-spot along with generation, the development process of event are synchronously made and release news, and has the information network published method of the process of two-way circulating.Its form also can be divided into on-the-spot broadcasting, studio talk-show live, word picture is live, video and audio is live or provide the live of information source by third party.For example, Online Video is live is exactly the live broadcast service of utilizing Internet resources to carry out, by on-the-spot video capture, synchronously uploads on network, and user can see the live video of the very first time the same time on network.
Streaming Media refers to after a series of media data compression, through network segmentation, transmit data, audio-visual a kind of technology and the process for viewing and admiring of real-time Transmission on network, this technology makes packet be able to send as flowing water, if do not use this technology, just must download before use whole media file.
Further, Streaming Media is a kind of technology that audio frequency, video and other multimedia elements are play in mode real-time, that wait for without download on internet and wireless network.Stream transmission mode is that the multimedia file such as Audio and Video is divided into compressed package one by one through special compress mode, by server to subscriber computer continuously, transmit in real time.In adopting the system of stream transmission mode, user needn't wait until after whole file is all downloaded as non-stream is play just can see central content, but only need to through the startup time delay in several seconds or tens seconds, can on subscriber computer, utilize corresponding player to play streaming video files such as the video of compression or audio frequency, remaining part will be proceeded to download, until finish.
Code stream refers to the data traffic that video file is used within the unit interval, is also code check, be in Video coding image quality control in most important part.Under same resolution, the code stream of video file is larger, and compression ratio is just less, and image quality is just better.
Concrete, when electronic equipment switches to the second code stream by the live broadcast stream media of the first code stream of playing, first get the Stream ID(Stream Identity of the live broadcast stream media of the second code stream, code stream identification), so that electronic equipment obtains and plays the live broadcast stream media of the second code stream according to Stream ID, wherein, Stream ID is for characterizing the code stream feature of the live broadcast stream media of the second code stream.
Exemplary, " China on the tip of the tongue " that the live broadcast stream media of the first code stream of the current broadcasting of electronic equipment is SD, when electronic equipment needs " China on the tip of the tongue " to switch to high definition by SD, first electronic equipment obtains the code stream identification of the live broadcast stream media of the second code stream: high definition " China on the tip of the tongue ".
S102, electronic equipment are sent to dispatch server by Stream ID, so that dispatch server, according to Stream ID, is determined the content distributing network CDN address corresponding with Stream ID.
CDN(Content Delivery Network, content distributing network) be a kind of new network content service system, it is based on IP(Internet Protocol, the agreement interconnecting between network) network and building, the basic ideas of its structure are to avoid as far as possible likely affecting on the Internet bottleneck and the link of data transmission bauds and stability, make the transmission of data faster, more stable.By place node server everywhere at network, be formed in one deck intelligent virtual network on existing Internet basic, CDN system can be in real time according to the connection of network traffics, each node, load state, user's request is readjusted on the nearest service node of user to integrated informations such as user's distance and response times, its objective is and make user can obtain required data nearby, thereby solved Internet(the Internet) situation of network congestion, has improved the response speed of user's access websites.
Electronic equipment gets after the Stream ID of live broadcast stream media of the second code stream, Stream ID is sent to dispatch server, so that server is determined the CDN address corresponding with Stream ID according to Stream ID, and then, make electronic equipment according to the data of the live broadcast stream media of this CDN address acquisition the second code stream, wherein, the live data list of the live broadcast stream media that comprises the second code stream in the CDN server corresponding with CDN address, the live broadcast stream media section of preserving a plurality of the second code streams in this list.
S103, electronic equipment receive the CDN address from dispatch server.
S104, electronic equipment, according to CDN address, obtain the address of the live data list in the CDN server corresponding with CDN address.
Concrete, live data list due to the live broadcast stream media that comprises the second code stream in CDN server, in this list, preserve the live broadcast stream media section of a plurality of the second code streams, therefore, electronic equipment, after receiving CDN address, can get the address of the live data list in CDN server according to CDN address, and then, electronic equipment, according to the address of this live data list, obtains the live broadcast stream media of the second code stream.
S105, electronic equipment, according to the address of live data list, are downloaded the live broadcast stream media of the second code stream.
Wherein, live data list is dynamically to generate, and includes the section title of the live broadcast stream media of at least one the second code stream, size and the slice of data of cut into slices time span, section in live data list.
Concrete, electronic equipment gets after live data list address, and electronic equipment, according to this live data list address, gets the live broadcast stream media data of the second code stream, and the live broadcast stream media section of a plurality of the second code streams is downloaded.
S106, electronic equipment switch to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream.
After electronic equipment is downloaded the section of the live broadcast stream media of a plurality of the second code streams, with binary mode, each section is spliced, and the moment of Stream ID of live broadcast stream media that gets the second code stream from electronic equipment, play the live broadcast stream media of the second code stream, be that the broadcasting of electronic equipment is while switching to the live broadcast stream media of the second code stream by the live broadcast stream media of the first code stream, record the live broadcast stream media playing progress rate of the first code stream, after handover success, from the first code stream live broadcast stream media playing progress rate, play the live broadcast stream media of the second code stream.
Exemplary, " China on the tip of the tongue " that the live broadcast stream media of the first code stream of the current broadcasting of electronic equipment is SD, the moment of playing " China on the tip of the tongue " of SD at electronic equipment is while being 09:42, electronic equipment gets the high definition sign of " China on the tip of the tongue ", " China on the tip of the tongue " of electronic equipment downloading high definition, after downloading successfully, electronic equipment is play " China the tip of the tongue " of high definition from 09:42.
The embodiment of the present invention provides a kind of code stream changing method, being applied to electronic equipment plays in the process of live broadcast stream media of the first code stream, the code stream identification Stream ID of the live broadcast stream media of the second code stream that electronic equipment gets by basis, obtain the content distributing network CDN address corresponding with Stream ID, and according to CDN address, obtain the address of live data list, and then according to the address of live data list, download the live broadcast stream media of the second code stream, and switch to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream, avoided electronic equipment cannot carry out the problem of code stream switching to live broadcast stream media, promoted the output performance of electronic equipment, strengthened the flexibility of electronic equipment output live broadcast stream media.
Embodiment bis-
The invention provides a kind of code stream changing method, be applied to electronic equipment and play in the process of live broadcast stream media of the first code stream, as shown in Figure 2, the method comprises:
S201, electronic equipment obtain live broadcast stream media code stream handover request.
At present, electronic equipment can only be play the live broadcast stream media of single code stream, cannot play the live broadcast stream media of all the other code streams, can not adjust the definition of the live broadcast stream media of broadcasting.
The embodiment of the present invention provides a kind of code stream changing method, being applied to electronic equipment plays in the process of live broadcast stream media of the first code stream, electronic equipment obtains the CDN address corresponding with Stream ID according to the code stream identification Stream ID of the live broadcast stream media of the second code stream getting, and then according to the address of the live data list in the server corresponding with CDN address, obtain and play the live broadcast stream media of the second code stream.
Live is on-the-spot along with generation, the development process of event are synchronously made and release news, and has the information network published method of the process of two-way circulating.Its form also can be divided into on-the-spot broadcasting, studio talk-show live, word picture is live, video and audio is live or provide the live of information source by third party.For example, Online Video is live is exactly the live broadcast service of utilizing Internet resources to carry out, by on-the-spot video capture, synchronously uploads on network, and user can see the live video of the very first time the same time on network.
Streaming Media refers to after a series of media data compression, through network segmentation, transmit data, audio-visual a kind of technology and the process for viewing and admiring of real-time Transmission on network, this technology makes packet be able to send as flowing water, if do not use this technology, just must download before use whole media file.
Further, Streaming Media is a kind of technology that audio frequency, video and other multimedia elements are play in mode real-time, that wait for without download on internet and wireless network.Stream transmission mode is that the multimedia file such as Audio and Video is divided into compressed package one by one through special compress mode, by server to subscriber computer continuously, transmit in real time.In adopting the system of stream transmission mode, user needn't wait until after whole file is all downloaded as non-stream is play just can see central content, but only need to through the startup time delay in several seconds or tens seconds, can on subscriber computer, utilize corresponding player to play streaming video files such as the video of compression or audio frequency, remaining part will be proceeded to download, until finish.
Code stream refers to the data traffic that video file is used within the unit interval, is also code check, be in Video coding image quality control in most important part.Under same resolution, the code stream of video file is larger, and compression ratio is just less, and image quality is just better.
Concrete, first the switching that electronic equipment is realized live broadcast stream media code stream needs to obtain live broadcast stream media code stream handover request, wherein, live broadcast stream media code stream handover request is to get after the specific operation of electronic equipment in response to user, and electronic equipment can get the code stream identification Stream ID of the live broadcast stream media of the second code stream according to the live broadcast stream media code stream handover request getting.
Wherein, user's specific operation comprises that user triggers definition handoff functionality button.
S202, electronic equipment obtain the code stream identification Stream ID of the live broadcast stream media of the second code stream, and record the current broadcasting moment of the live broadcast stream media of the first code stream.
Electronic equipment gets after live broadcast stream media code stream handover request, can get the code stream identification Stream ID of the live broadcast stream media of the second code stream, so that electronic equipment obtains and plays the live broadcast stream media of the second code stream according to Stream ID, wherein, for characterizing the code stream feature of the live broadcast stream media of the second code stream.
Further, electronic equipment gets after live broadcast stream media code stream handover request, and electronic equipment records the current broadcasting moment of the live broadcast stream media of the first code stream, so that electronic equipment is from the current live broadcast stream media of playing the second code stream constantly of playing.
Exemplary, the moment of playing " China on the tip of the tongue " of SD at electronic equipment is while being 09:42, electronic equipment gets live broadcast stream media code stream handover request, this live broadcast stream media code stream handover request is used to indicate electronic equipment and " China on the tip of the tongue " of SD is switched to " China on the tip of the tongue " of high definition, to record current broadcasting be 09:42 to electronic equipment constantly, so that play " China the tip of the tongue " of high definition from 09:42.
S203, electronic equipment are sent to dispatch server by Stream ID.
S204, dispatch server, according to Stream ID, are determined the content distributing network CDN address corresponding with Stream ID.
Wherein, the content distributing network CDN address corresponding with Stream ID is used to indicate the data that electronic equipment reads the live broadcast stream media of the second code stream.
CDN is a kind of new network content service system, it is based on IP(Internet Protocol, the agreement interconnecting between network) network and building, the basic ideas of its structure are to avoid as far as possible likely affecting on the Internet bottleneck and the link of data transmission bauds and stability, make the transmission of data faster, more stable.By place node server everywhere at network, be formed in one deck intelligent virtual network on existing Internet basic, CDN system can be in real time according to the connection of network traffics, each node, load state, user's request is readjusted on the nearest service node of user to integrated informations such as user's distance and response times, its objective is and make user can obtain required data nearby, thereby solved the situation of Internet network congestion, improved the response speed of user's access websites.
Concrete, electronic equipment is after the Stream ID of live broadcast stream media that gets the second code stream, Stream ID is sent to dispatch server, dispatch server is after receiving the Stream ID of electronic equipment transmission, according to Stream ID, to electronic equipment, distribute the CDN address corresponding with Stream ID, wherein, the live data list of the live broadcast stream media that comprises the second code stream in the CDN server corresponding with CDN address, in this list, preserve the live broadcast stream media section of a plurality of the second code streams, electronic equipment is according to this CDN address, can get efficiently the live broadcast stream media of the second code stream.
S205, electronic equipment receive the CDN address from dispatch server.
S206, electronic equipment, according to CDN address, obtain the address of the live data list in the CDN server corresponding with CDN address.
Concrete, live data list due to the live broadcast stream media that comprises the second code stream in CDN server, in this list, preserve the live broadcast stream media section of a plurality of the second code streams, therefore, electronic equipment, after receiving CDN address, can get the address of the live data list in CDN server according to CDN address, and then, electronic equipment, according to the address of this live data list, obtains the live broadcast stream media of the second code stream.
S207, electronic equipment, according to the address of live data list, are downloaded the section of the live broadcast stream media of each the second code stream in live data list.
Wherein, live data list is dynamically to generate, and includes the section title of the live broadcast stream media of at least one the second code stream, size and the slice of data of cut into slices time span, section in live data list.
Concrete, electronic equipment gets after live data list address, and electronic equipment, according to this live data list address, is downloaded the section of the live broadcast stream media of each the second code stream in live data list.
S208, electronic equipment, by the section splicing of the live broadcast stream media of each the second code stream, generate the live broadcast stream media of the second code stream.
For the live broadcast stream media by the second code stream that can be smooth, play, electronic equipment, after the section of the live broadcast stream media of the second code stream is downloaded, splices the section of each live broadcast stream media with binary mode, generate the live broadcast stream media of the second code stream.
S209, electronic equipment switch to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream, and from the current live broadcast stream media of playing the second code stream constantly of playing.
After electronic equipment is downloaded the section of the live broadcast stream media of a plurality of the second code streams, with binary mode, each section is spliced, and the moment of Stream ID of live broadcast stream media that gets the second code stream from electronic equipment, play the live broadcast stream media of the second code stream, when to be electronic equipment switch to the live broadcast stream media of the second code stream by the live broadcast stream media of the first code stream, record the live broadcast stream media playing progress rate of the first code stream, after handover success, from the first code stream live broadcast stream media playing progress rate, play the live broadcast stream media of the second code stream.
Exemplary, " China on the tip of the tongue " that the live broadcast stream media of the first code stream of the current broadcasting of electronic equipment is SD, the moment of playing " China on the tip of the tongue " of SD at electronic equipment is while being 09:42, electronic equipment gets the high definition sign of " China on the tip of the tongue ", " China on the tip of the tongue " of electronic equipment downloading high definition, after downloading successfully, electronic equipment is play " China the tip of the tongue " of high definition from 09:42.
The embodiment of the present invention provides a kind of code stream changing method, being applied to electronic equipment plays in the process of live broadcast stream media of the first code stream, electronic equipment obtains the code stream identification Stream ID of the live broadcast stream media of the second code stream, and Stream ID is sent to dispatch server, so that dispatch server is determined the content distributing network CDN address corresponding with Stream ID according to Stream ID, then, electronic equipment is according to receiving the CDN address from dispatch server, obtain the address of the live data list in the CDN server corresponding with CDN address, and according to the address of live data list, download the live broadcast stream media of the second code stream, finally, electronic equipment switches to from playing the live broadcast stream media of the first code stream the live broadcast stream media of playing the second code stream, avoided electronic equipment cannot carry out the problem of code stream switching to live broadcast stream media, promoted the output performance of electronic equipment, strengthened the flexibility of electronic equipment output live broadcast stream media.
Embodiment tri-
The embodiment of the present invention provides a kind of electronic equipment, as shown in Figure 3, comprising:
Acquiring unit 10, for obtaining the code stream identification Stream ID of the live broadcast stream media of the second code stream, and for receiving the described CDN address from described dispatch server, and also for according to described CDN address, obtain the address of the live data list in the CDN server corresponding with described CDN address;
Transmitting element 11, is sent to dispatch server for the described Stream ID that described acquiring unit 10 is got, so that described dispatch server, according to described Stream ID, is determined the content distributing network CDN address corresponding with described Stream ID;
Processing unit 12, for the address of the described live data list that gets according to described acquiring unit 10, downloads the live broadcast stream media of described the second code stream;
Display unit 13, for switching to the live broadcast stream media of described the second code stream of playing described processing unit 12 downloads from playing the live broadcast stream media of described the first code stream.
Further, described acquiring unit 10, also, for obtaining live broadcast stream media code stream handover request, described live broadcast stream media code stream handover request is used to indicate described display unit 13 and the live broadcast stream media of described the first code stream is switched to the live broadcast stream media of described the second code stream.
Further, as shown in Figure 4, described electronic equipment also comprises memory cell 14,
Described memory cell 14, for getting after live broadcast stream media code stream handover request at described acquiring unit 10, records the current broadcasting moment of the live broadcast stream media of described the first code stream;
Described display unit 13, specifically for switching to the described current live broadcast stream media of playing described the second code stream constantly of playing from described memory cell 14 records from playing the live broadcast stream media of described the first code stream.
Further, the section that described live data list comprises the live broadcast stream media of the second code stream described at least one;
Described processing unit 12, specifically for the address of the described live data list of obtaining according to described acquiring unit 10, the section of downloading the live broadcast stream media of each the second code stream in described live data list.
Further, described processing unit 12, also, for by the section splicing of the live broadcast stream media of described each the second code stream, generates the live broadcast stream media of described the second code stream.
The embodiment of the present invention provides a kind of electronic equipment, mainly comprises acquiring unit, transmitting element, processing unit and display unit.By obtaining the code stream identification Stream ID of the live broadcast stream media of the second code stream, and Stream ID is sent to dispatch server, so that dispatch server is determined the content distributing network CDN address corresponding with Stream ID according to Stream ID, then, according to the CDN address receiving from dispatch server, obtain the address of the live data list in the CDN server corresponding with CDN address, and according to the address of live data list, download the live broadcast stream media of the second code stream, finally, from playing the live broadcast stream media of the first code stream, switch to the live broadcast stream media of playing the second code stream, avoided electronic equipment cannot carry out the problem of code stream switching to live broadcast stream media, promoted the output performance of electronic equipment, strengthened the flexibility of electronic equipment output live broadcast stream media.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described module or unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and also can adopt the form of SFU software functional unit to realize.
If the form of SFU software functional unit of usining described integrated unit realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.Understanding based on such, the all or part of of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CDs.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.
Claims (10)
1. a code stream changing method, is characterized in that, is applied to electronic equipment and plays in the process of live broadcast stream media of the first code stream, comprising:
Described electronic equipment obtains the code stream identification Stream ID of the live broadcast stream media of the second code stream;
Described electronic equipment is sent to dispatch server by described Stream ID, so that described dispatch server, according to described Stream ID, is determined the content distributing network CDN address corresponding with described Stream ID;
Described electronic equipment receives the described CDN address from described dispatch server;
Described electronic equipment, according to described CDN address, obtains the address of the live data list in the CDN server corresponding with described CDN address;
Described electronic equipment, according to the address of described live data list, is downloaded the live broadcast stream media of described the second code stream;
Described electronic equipment switches to from playing the live broadcast stream media of described the first code stream the live broadcast stream media of playing described the second code stream.
2. method according to claim 1, is characterized in that, before described electronic equipment obtains the code stream identification Stream ID of live broadcast stream media of the second code stream, described method also comprises:
Described electronic equipment obtains live broadcast stream media code stream handover request, and described live broadcast stream media code stream handover request is used to indicate described electronic equipment and the live broadcast stream media of described the first code stream is switched to the live broadcast stream media of described the second code stream.
3. method according to claim 2, is characterized in that, described electronic equipment obtains after live broadcast stream media code stream handover request, and described method also comprises:
Described electronic equipment records the current broadcasting moment of the live broadcast stream media of described the first code stream;
Described electronic equipment switches to from playing the live broadcast stream media of described the first code stream the live broadcast stream media of playing described the second code stream, comprising:
Described electronic equipment switches to from the described current live broadcast stream media of playing described the second code stream constantly of playing from playing the live broadcast stream media of described the first code stream.
4. method according to claim 3, is characterized in that, the section that described live data list comprises the live broadcast stream media of the second code stream described at least one; ?
Described electronic equipment is according to the address of described live data list, and the step of downloading the live broadcast stream media of the second code stream comprises:
Described electronic equipment, according to the address of described live data list, is downloaded the section of the live broadcast stream media of each the second code stream in described live data list.
5. method according to claim 4, it is characterized in that, described electronic equipment is according to the address of described live data list, after downloading the section of live broadcast stream media of each the second code stream in described live data list, described electronic equipment is from play before the live broadcast stream media of described the first code stream switches to and play the live broadcast stream media of described the second code stream from described current broadcasting constantly, and described method also comprises:
Described electronic equipment, by the section splicing of the live broadcast stream media of described each the second code stream, generates the live broadcast stream media of described the second code stream.
6. an electronic equipment, is characterized in that, comprising:
Acquiring unit, for obtaining the code stream identification Stream ID of the live broadcast stream media of the second code stream, and for receiving the described CDN address from described dispatch server, and also for according to described CDN address, obtain the address of the live data list in the CDN server corresponding with described CDN address;
Transmitting element, is sent to dispatch server for the described Stream ID that described acquiring unit is got, so that described dispatch server, according to described Stream ID, is determined the content distributing network CDN address corresponding with described Stream ID;
Processing unit, for the address of the described live data list that gets according to described acquiring unit, downloads the live broadcast stream media of described the second code stream;
Display unit, for switching to the live broadcast stream media of described the second code stream of playing described processing unit download from playing the live broadcast stream media of described the first code stream.
7. electronic equipment according to claim 6, is characterized in that,
Described acquiring unit, also, for obtaining live broadcast stream media code stream handover request, described live broadcast stream media code stream handover request is used to indicate described display unit and the live broadcast stream media of described the first code stream is switched to the live broadcast stream media of described the second code stream.
8. electronic equipment according to claim 7, is characterized in that, described electronic equipment also comprises memory cell,
Described memory cell, for getting after live broadcast stream media code stream handover request at described acquiring unit, records the current broadcasting moment of the live broadcast stream media of described the first code stream;
Described display unit, specifically for switching to the described current live broadcast stream media of playing described the second code stream constantly of playing from described unit records from playing the live broadcast stream media of described the first code stream.
9. electronic equipment according to claim 8, is characterized in that, the section that described live data list comprises the live broadcast stream media of the second code stream described at least one;
Described processing unit, specifically for the address of the described live data list of obtaining according to described acquiring unit, the section of downloading the live broadcast stream media of each the second code stream in described live data list.
10. electronic equipment according to claim 9, is characterized in that,
Described processing unit, also, for by the section splicing of the live broadcast stream media of described each the second code stream, generates the live broadcast stream media of described the second code stream.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310655638.4A CN103716681A (en) | 2013-12-06 | 2013-12-06 | Code stream switching method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310655638.4A CN103716681A (en) | 2013-12-06 | 2013-12-06 | Code stream switching method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103716681A true CN103716681A (en) | 2014-04-09 |
Family
ID=50409177
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310655638.4A Pending CN103716681A (en) | 2013-12-06 | 2013-12-06 | Code stream switching method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716681A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103997680A (en) * | 2014-06-06 | 2014-08-20 | 北京奇艺世纪科技有限公司 | Switching method and device of video bitstream |
CN104318132A (en) * | 2014-10-20 | 2015-01-28 | 北京视博数字电视科技有限公司 | Open mobile terminal behavior analysis method and system |
CN104967873A (en) * | 2015-06-29 | 2015-10-07 | 上海帝联信息科技股份有限公司 | Streaming live scheduling method, system and scheduling server |
CN105472443A (en) * | 2016-01-13 | 2016-04-06 | 杭州当贝网络科技有限公司 | Direct broadcast source control method and system |
CN106412676A (en) * | 2016-10-21 | 2017-02-15 | 乐视控股(北京)有限公司 | Video code stream switching method and device, and electronic device |
WO2018028547A1 (en) * | 2016-08-09 | 2018-02-15 | 华为技术有限公司 | Channel switching method and device |
EP4250684A1 (en) * | 2022-03-22 | 2023-09-27 | Beijing Baidu Netcom Science And Technology Co. Ltd. | Method and apparatus for processing streaming media service, electronic device, and storage medium |
-
2013
- 2013-12-06 CN CN201310655638.4A patent/CN103716681A/en active Pending
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103997680A (en) * | 2014-06-06 | 2014-08-20 | 北京奇艺世纪科技有限公司 | Switching method and device of video bitstream |
CN103997680B (en) * | 2014-06-06 | 2017-10-24 | 上海众源网络有限公司 | The switching method and device of a kind of video code flow |
CN104318132A (en) * | 2014-10-20 | 2015-01-28 | 北京视博数字电视科技有限公司 | Open mobile terminal behavior analysis method and system |
CN104318132B (en) * | 2014-10-20 | 2017-05-24 | 北京视博数字电视科技有限公司 | Open mobile terminal behavior analysis method and system |
CN104967873A (en) * | 2015-06-29 | 2015-10-07 | 上海帝联信息科技股份有限公司 | Streaming live scheduling method, system and scheduling server |
CN105472443A (en) * | 2016-01-13 | 2016-04-06 | 杭州当贝网络科技有限公司 | Direct broadcast source control method and system |
WO2018028547A1 (en) * | 2016-08-09 | 2018-02-15 | 华为技术有限公司 | Channel switching method and device |
US10958972B2 (en) | 2016-08-09 | 2021-03-23 | Huawei Technologies Co., Ltd. | Channel change method and apparatus |
CN106412676A (en) * | 2016-10-21 | 2017-02-15 | 乐视控股(北京)有限公司 | Video code stream switching method and device, and electronic device |
EP4250684A1 (en) * | 2022-03-22 | 2023-09-27 | Beijing Baidu Netcom Science And Technology Co. Ltd. | Method and apparatus for processing streaming media service, electronic device, and storage medium |
US11902346B2 (en) | 2022-03-22 | 2024-02-13 | Beijing Baidu Netcom Science Technology Co., Ltd. | Method and apparatus for processing streaming media service, electronic device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103716681A (en) | Code stream switching method and electronic equipment | |
TWI580237B (en) | Unicast abr streaming | |
US20110138018A1 (en) | Mobile media server | |
CN104243998A (en) | Data processing method, data processing device and related servers | |
CN108063769B (en) | Method and device for realizing content service and content distribution network node | |
CN105100954A (en) | Interactive response system and method based on Internet communication and streaming media live broadcast | |
CN105025391A (en) | Video playing method and apparatus | |
CN107517411B (en) | Video playing method based on GSstreamer frame | |
CN108924609B (en) | Streaming media data transmission method, electronic equipment, device and storage medium | |
CN112752109B (en) | Video playing control method and system | |
CN106657143A (en) | Streaming media transmission method and device, server and terminal | |
CN108200444B (en) | Video live broadcast method, device and system | |
CN112019927A (en) | Video live broadcast method, microphone connecting equipment, RTC media server and main broadcast equipment | |
CN103024491B (en) | The video broadcasting method of mobile terminal and system | |
CN109561137B (en) | Method, device, terminal equipment and medium for establishing P2P network | |
CN103729407A (en) | Method and device for playing live broadcast streaming media | |
CN103702178A (en) | Play method and electronic equipment | |
WO2023061060A1 (en) | Audio and video code stream scheduling method, system, medium and electronic apparatus | |
CN101800894B (en) | Method and system for converting and transmitting multimedia video and audio | |
CN203387627U (en) | Live broadcast and order system of mobile streaming media | |
CN1972447A (en) | Multi-image player based on stream media technology and its playing method | |
CN105763941A (en) | Channel switching method and system | |
CN112073727B (en) | Transcoding method and device, electronic equipment and storage medium | |
CN111107387A (en) | Video transcoding method and device and computer storage medium | |
CN103297406A (en) | Method for expanding screen of hand-held device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140409 |
|
RJ01 | Rejection of invention patent application after publication |