CN104113790A - Video playing method based on Android operating system, and video playing device based on Android operating system - Google Patents

Video playing method based on Android operating system, and video playing device based on Android operating system Download PDF

Info

Publication number
CN104113790A
CN104113790A CN201310131167.7A CN201310131167A CN104113790A CN 104113790 A CN104113790 A CN 104113790A CN 201310131167 A CN201310131167 A CN 201310131167A CN 104113790 A CN104113790 A CN 104113790A
Authority
CN
China
Prior art keywords
video
url
file
play lists
mark
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.)
Granted
Application number
CN201310131167.7A
Other languages
Chinese (zh)
Other versions
CN104113790B (en
Inventor
梁捷
何小鹏
俞永福
朱顺炎
马妙魁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Ucweb Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ucweb Inc filed Critical Ucweb Inc
Priority to CN201310131167.7A priority Critical patent/CN104113790B/en
Publication of CN104113790A publication Critical patent/CN104113790A/en
Application granted granted Critical
Publication of CN104113790B publication Critical patent/CN104113790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a video playing method based on an Android operating system, and a video playing device based on the Android operating system. The method comprises the steps of obtaining a video playing list file according to a video playing request, wherein the video playing list file comprises the URL of at least one video resource; determining the URL needing video switching according to the URL in the video playing list file; setting a continuous playing mark before or after the determined URL in the video playing list file, and generating a marked video playing list file; and playing the marked video playing list file. By the video playing method based on the Android operating system, and the video playing device based on the Android operating system provided by the present invention, and when the Android operating system plays the video of a m3u8 format, the switching of an original video resource fragment does not stop the video, and the video can be played continuously.

Description

A kind of video broadcasting method and device based on Android operating system
Technical field
The present invention relates to mobile video and play field, particularly a kind of video broadcasting method and device based on Android operating system.
 
Background technology
At present, along with the raising of the wireless communication device performances such as mobile phone and the development of HTML5 technology, the demand that realizes video playback capability in mobile browser becomes more and more stronger.Therefore, numerous browser manufacturer has all supported HTML5 video playback gradually, allows browser have the function of video player.
HTML5 video format is mainly m3u8 form at present.M3u8 formatted file is a text, internal record the URL of multiple video segments, all video segments have just formed a complete video.Operating system, according to the content of m3u8 formatted file, navigates to video segment by URL and plays one by one.Video website, in order to allow server load balancing, cuts into multiple small video files by a video film conventionally, then these small video files can be placed on different servers.Operating system just can be found the address of these small video files and be play by m3u8 formatted file.
But, Android(Android) operating system also exists more deficiency to the support of m3u8 form.The operating system of Android below 4.0 is not supported the broadcasting of m3u8 formatted file, and for Android more than 4.0 or 4.0 operating system, play after the m3u8 formatted file regular hour, suppose it is six minutes, a video segment of m3u8 formatted file inside finishes need to be switched to another section of video time, video will stop playing, and again cannot continue to play.This is that Android operating system causes the support imperfection of m3u8 form.Even if the latest edition of Android operating system is 4.2 now, problem still exists.
Like seeing a film or the Android user of serial for some, these experience are extreme differences, because general film or serial playing duration must be greater than six minutes.At home, excellent cruel, the HTML5 video format of the companies such as potato has all used m3u8, and this has just caused user in Android operating system cannot smooth, intactly watch video, plays after certain hour, and for example six minutes, video will stop playing.
Summary of the invention
One of object of the present invention is to provide provides a kind of video broadcasting method based on Android operating system, the problem that cannot support that to solve current Android operating system m3u8 format video is play continuously.
Another object of the present invention is to provide a kind of video play device based on Android operating system, the problem that cannot support that to solve current Android operating system m3u8 format video is play continuously.
Another object of the present invention is to provide a kind of Wireless Telecom Equipment, comprises above-mentioned video play device, and this equipment can solve the problem that current Android operating system cannot support that m3u8 format video is play continuously.
According to an aspect of the present invention, provide a kind of video broadcasting method based on Android operating system, comprising:
According to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
According to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Continuous broadcasting mark was set in video play lists file before or after confirmed URL, generates the video play lists file after mark;
Play the video play lists file after described mark.
In one or more examples aspect above-mentioned, continuous broadcasting mark was set before or after confirmed URL in video play lists file, after generating the video play lists file after mark, comprises;
Generate the URL of the video play lists file after described mark.
In one or more examples aspect above-mentioned, the video play lists file after the described mark of described broadcasting comprises:
Call video playback assembly according to the URL of the list of videos file after described mark and play the video play lists file after described mark.
In one or more examples aspect above-mentioned, the URL of the video play lists file after the described mark of described generation comprises:
Utilize at least one http server be video play lists file generated after described mark at least one meet the URL of the video play lists file after the described mark of http protocol.
According to a further aspect in the invention, wherein, described according to the URL in described video play lists file, the URL that confirmation need to be carried out video switch comprises:
Analyze line by line the URL of all video resources in described video play lists file;
When the URL that the URL that judges current video resource catches up with a video resource points to different video resource files, the URL that confirms current video resource is the URL that need to carry out video switch.
In one or more examples aspect above-mentioned, described continuous broadcasting mark is " #EXT-X-DISCONTINUITY ".
In one or more examples aspect above-mentioned, described according to before video playback acquisition request video play lists file, comprising:
Start at least one http server, described at least one http server is mapped at least one local file.
In one or more examples aspect above-mentioned, continuous broadcasting mark was set before or after confirmed URL in video play lists file, after generating the video play lists file after mark, comprises:
Video play lists file after mark is left at least one local file of described at least one http server mapping.
In one or more examples aspect above-mentioned, before video playback acquisition request video play lists file, comprising:
Judge whether described video playback request points to video play lists file, if so, according to video play lists file described in video playback acquisition request, if not, according to video playback request displaying video resource file.
According to a further aspect in the invention, provide a kind of video play device based on Android operating system, wherein, comprising:
Acquiring unit, for according to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
Confirmation unit, according to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Indexing unit, for continuous broadcasting mark was set before or after confirmed URL at video play lists file, generates the video play lists file after mark;
Broadcast unit, plays the video play lists file after described mark.
In one or more examples aspect above-mentioned, further comprise:
Tab file URL generation unit, at least one meets the URL of the described video play lists file of http protocol to be used to video play lists file generated after described mark.
In one or more examples aspect above-mentioned, described confirmation unit further comprises:
Analytic unit, for analyzing line by line the URL of all video resources of described video play lists file;
Judging unit, whether the URL that catches up with a video resource file for the URL that judges current video resource points to identical, the URL that catches up with a video resource file as the URL of current video resource points to different video resource files, and the URL that confirms current video resource is the URL that need to carry out video switch.
According to a further aspect in the invention, provide a kind of Wireless Telecom Equipment, comprise above-mentioned video play device.
Make Android operating system in the time playing the video of m3u8 form by video broadcasting method and the device based on Android operating system provided by the invention, the switching of former video resource fragment can not cause stopping of video, and video can be play continuously.
In order to realize above-mentioned and relevant object, one or more aspects of the present invention comprise below by the feature that describes in detail and particularly point out in the claims.Explanation below and accompanying drawing describe some illustrative aspects of the present invention in detail.But, the instruction of these aspects be only some modes that can use in the variety of way of principle of the present invention.In addition, the present invention is intended to comprise all these aspects and their equivalent.
 
Brief description of the drawings
According to following detailed description of carrying out with reference to accompanying drawing, above and other object of the present invention, feature and advantage will become more apparent.In the accompanying drawings:
Fig. 1 shows according to the flow chart of the video broadcasting method based on Android operating system of the first embodiment of the present invention;
Fig. 2 shows the flow chart of the video broadcasting method based on Android operating system according to a second embodiment of the present invention;
Fig. 3 shows the block diagram of a kind of video play device 300 based on Android operating system of a third embodiment in accordance with the invention;
Fig. 3 A shows the block diagram of a kind of video play device 300 based on Android operating system according to another embodiment of the present invention;
Fig. 3 B shows the block diagram of the confirmation unit 320 in a kind of video play device 300 based on Android operating system according to another embodiment of the present invention;
Fig. 4 shows the block diagram of a kind of Wireless Telecom Equipment 400 that fourth embodiment of the invention provides;
In institute's drawings attached, identical label is indicated similar or corresponding feature or function.
Embodiment
A kind of video broadcasting method based on Android operating system disclosed by the invention and the various aspects of device are described below.Should be understood that, instruction herein can be with varied form imbody, and disclosed any concrete structure, function or both are only representational in this article.Based on instruction herein, those skilled in the art should be understood that, an aspect disclosed herein can be independent of any other side and realize, and two or more aspects in these aspects can combine according to variety of way.For example, can use the aspect of any number described in this paper, implement device or hands-on approach.In addition, can use other structure, function or except one or more aspects described in this paper or be not the 26S Proteasome Structure and Function of one or more aspects described in this paper, realize this device or put into practice this method.In addition, any aspect described herein can comprise at least one element of claim.
Android operating system provides the class of video playback control correlation function, we claim that these classes are MediaPlayer(media player) assembly, these classes are that Android operating system offers developer for writing the program that displaying video is relevant, and developer uses these classes just can in Android operating system, write a video reproduction program.The function that these classes provide is not only broadcasting itself, has also comprised Play Control.For example the browser in Android operating system is by transmitting the MediaPlayer assembly of a URL to Android operating system, and Android operating system utilizes MediaPlayer assembly just can play the video that this URL points to.M3u8 formatted file must be passed to MediaPlayer assembly for its access with the HTTP such as IP or domain name on-link mode (OLM), removes to resolve m3u8 and finally can not play otherwise Android operating system can create wrong player.
Each embodiment of the present invention is described below with reference to accompanying drawings.
the first embodiment
Fig. 1 shows according to the flow chart of the video broadcasting method based on Android operating system of the first embodiment of the present invention, and wherein, the method is carried out by the browser client program in the Wireless Telecom Equipment being arranged on based on Android operating system.
As shown in Figure 1, a kind of video broadcasting method based on Android operating system, comprises the steps:
In step S110, according to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource.
Particularly, browser client program in Wireless Telecom Equipment receives a video playback request, this video playback request can be that the URL that clicks the video on the video website page by user directly produces, also can be video resource request command based on user by system or arbitrarily client-side program produce, the URL of the video that comprises user's program request in described video playback request.When described video playback request is passed to system video player module by browser client program, check whether the URL in this video playback request points to a video play lists file, if, according to this video play lists file of described video playback acquisition request, if not, play described URL video resource file pointed according to the URL in described video playback request.
In an example of the present invention, described video play lists file is m3u8 formatted file, its internal record the URL of multiple video resources.Described multiple video resource is for example multiple video segments, and it is a complete video resource that the content of these video segments combines, a for example film.
In addition, the video play lists file in video broadcasting method of the present invention can be m3u8 form, can be also other similar form, as long as wherein recorded the URL of multiple video resources.
Before video playback acquisition request video play lists file, comprising:
Judge whether described video playback request points to video play lists file, if so, according to video play lists file described in video playback acquisition request, if not, according to video playback request displaying video resource file.
Judge whether described video playback request points to video play lists file, specifically comprise: judge the filename suffix that described video playback request is pointed, if described suffix name is shown to be video play lists file, confirm described video playback request sensing video play lists file, otherwise confirm that described video playback request is not to point to video play lists file; Or, the mimetype of head is returned in the described video playback request of judgement request, if described in return to head mimetype be shown to be video play lists file, confirm described video playback request sensing video play lists file, otherwise confirm that described video playback request is not to point to video play lists file.
In an example of the present invention, judge the URL filename suffix pointed in video playback request, for example filename suffix pointed is " .m3u8 ", confirms a video play lists file of described video playback request sensing.
In another example of the present invention, by the URL to this video of server request, server can return to the mimetype of head, this mimetype mark the type of return data, judge by this mimetype whether the URL of this video points to a m3u8 formatted file.
In step S120, according to the URL in described video play lists file, confirmation need to be carried out the URL of video switch.
Particularly, analyze line by line the URL of all video resources in video play lists file.Check whether current line is a URL, if not, skip this line, continue to analyze; If, whether the URL that the URL that judges current video resource catches up with a video resource points to identical video resource file, and if so, the URL that confirms current video resource is the URL that does not need to carry out video switch, do not do further special processing, continue to analyze; If not, illustrating that this position done the switching of video resource file, the URL that confirms current video resource is the URL that need to carry out video switch.Until analyzed the URL of all video resources in m3u8 formatted file.
In step S130, continuous broadcasting mark was set in video play lists file before or after confirmed URL, generate the video play lists file after mark.
In a preferred example, before the URL confirming at above-mentioned steps S120, the URL of current video resource and on add lastrow mark " #EXT-X-DISCONTINUITY " between the URL of a video resource.
According to m3u8 specification, there is variation in the following attribute of explanation in the time running into " #EXT-X-DISCONTINUITY " mark: the number of file format, video track or type, coding parameter, coded sequence, timestamp.Therefore, operating system can be done special processing, for example again instantiation some play required object etc., thereby make video segment switch time video can not stop play.What kind of special processing specific operating system does belongs to the state of the art, not at this detailed description.
It should be noted that, mark can be not only " #EXT-X-DISCONTINUITY " herein, also can be other marks that file format changes, its setting can be not only before the URL of current video resource also, also can be before it, as long as the implication of its representative is the URL comparison of URL and a upper video resource of current video resource, there is video switch.
In a preferred example, before all analyses the URL that need to carry out video switch that confirmed, all carry out above-mentioned mark.The file content of crossing with mark is by analysis write to a file, generate the video play lists file after mark, as film.m3u8.
Further, in a preferred example, by the leave in/sdcard/ucvideo/film.m3u8 of video play lists file f ilm.m3u8 after the mark of generation.
In a preferred example, after generating the video play lists file after mark, be also the URL of video play lists file generated after described mark.Particularly, operating system starts a local http server of monitoring certain port in advance.Suppose that the port numbers of monitoring is 9000.This server can be mapped to certain file of SDCARD, as/sdcard/ucvideo/.This http server can will be mapped as the file request in this file the request of certain file.As, if request http: // 127.0.0.1:9000/film.m3u8, the file content of can read/sdcard/ucvideo/film.m3u8 of this server is as returning.The reason that starts in advance this http server is that the address of m3u8 formatted file must pass to MediaPlayer assembly with the HTTP such as IP or domain name on-link mode (OLM), causes correctly playing otherwise MediaPlayer assembly can create wrong player.In http server prior art, have the more scheme of increasing income, therefore, in this preferred embodiment, the details of local http server is not at this detailed description.After the video play lists file generating after mark, utilize this local http server starting in advance to generate the URL of the video play lists after described mark, as http: // 127.0.0.1:9000/film.m3u8, this URL is directly linked in the path/sdcard/ucvideo/film.m3u8 of local http server mapping.Thereby, as browse request http: when // 127.0.0.1:9000/film.m3u8, the m3u8 formatted file in will read/sdcard/ucvideo/film.m3u8 of home server file returns.
In step S140, play the video play lists file after described mark.
Particularly, Android operating system is called video playback assembly and is play the video play lists file after described mark, the multiple URL video resource file pointed recording in displaying video play list file.
In a preferred example, the URL of the video play lists file after generated described mark is passed to the video playback assembly of operating system, it is MediaPlayer assembly, MediaPlayer assembly is play the video play lists file after this mark, the URL recording in the video play lists file after this mark all video resources pointed is play one by one.
Because the video play lists file after mark in this method had carried out mark before or after the URL that need to carry out video switch, therefore, when video play lists file after MediaPlayer assembly is play described mark, operating system can be judged the URL that need to carry out video switch, and video resource file can be play continuously.
According to the video broadcasting method of the first embodiment, by video play lists file being modified in Wireless Telecom Equipment this locality, mark need to carry out the URL of video switch, the URL that utilization meets http protocol locates amended m3u8 formatted file, can make m3u8 format video can not stop because of inner video switch playing.Greatly optimize the experience that user views and admires video on the Wireless Telecom Equipment browser based on Android operating system.
It should be noted that the method by browser client program in the Wireless Telecom Equipment being arranged on based on Android operating system carry out be only one preferred embodiment; the method can also be carried out by other client-side program softwares in the Wireless Telecom Equipment based on Android operating system, and specifically what client-side program software carrying out this method by does not affect the scope of the inventive method protection.
 
the second embodiment
Fig. 2 shows the flow chart of the video broadcasting method based on Android operating system according to a second embodiment of the present invention.Wherein, the method is carried out by the browser client program in the Wireless Telecom Equipment being arranged on based on Android operating system.
Step S210, operating system starts a local http server of monitoring certain port in advance;
Step S220, receives the video playback request URL from user, judges whether this video playback request URL points to a m3u8 formatted file, if so, turns to step S230, if not, turns to step S270;
Step S230, initiates network request to obtain described m3u8 formatted file;
Step S240, analyzes described m3u8 formatted file line by line;
Step S241, judges that whether described m3u8 formatted file is complete by analysis, if so, forwards step S250 to, if not, forwards step S242 to;
Step S242, judges whether current line is a URL, if so, forwards step S243 to, if not, returns to step S240;
Step S243, judges whether current URL points to identical video file with a upper URL, if not, forwards S244 to, if so, returns to step S240;
Step S244, before current URL, current URL and on add lastrow mark: #EXT-X-DISCONTINUITY between a URL, then return to step S240;
Step S250, writes m3u8 formatted file after a new file generated mark by the file content after having analyzed;
Step S251, utilizes local http server, generates the URL of the m3u8 formatted file after described mark;
Step S260, passes to MediaPlayer assembly by the URL of the m3u8 formatted file after generated mark;
Step S270, MediaPlayer assembly is play the m3u8 formatted file after this mark.
It should be noted that, according to m3u8 specification, there is variation in the following attribute of explanation in the time running into " #EXT-X-DISCONTINUITY " mark: the number of file format, video track or type, coding parameter, coded sequence, timestamp.Therefore, operating system can be done special processing, for example again instantiation some play required object etc., thereby make video segment switch time video can not stop play.
According to the video broadcasting method of the second embodiment, by m3u8 formatted file being modified in Wireless Telecom Equipment this locality, between the URL that has carried out video switch, carry out mark and leave m3u8 formatted file after mark in Wireless Telecom Equipment this locality, then after utilizing local http server to generate mark, m3u8 formatted file URL carrys out the m3u8 formatted file after telltale mark, thereby makes m3u8 format video can not stop because of inner video switch playing.Greatly optimize the experience that user views and admires video on the Wireless Telecom Equipment browser based on Android operating system.
 
the 3rd embodiment
Fig. 3 shows the block diagram of a kind of video play device 300 based on Android operating system of a third embodiment in accordance with the invention.
As shown in Figure 3, this video play device 300 comprises acquiring unit 310, confirmation unit 320, indexing unit 330, broadcast unit 340.
Described acquiring unit 310, for according to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
Described confirmation unit 320, be used for according to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource, and according to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Described indexing unit 330, for continuous broadcasting mark was set before or after confirmed URL at video play lists file, generates the video play lists file after mark;
Described broadcast unit 340, plays the video play lists file after described mark.
As shown in Figure 3A, in a preferred example, this video play device 300 further comprises:
Tab file URL generation unit 350, for according to the video play lists file generated after described mark, at least one meets the URL of the described video play lists file of http protocol.
As shown in Figure 3 B, in a preferred example, described confirmation unit 320 further comprises:
Analytic unit 321, for analyzing line by line the URL of all video resources of described video play lists file;
Judging unit 322, whether the URL that catches up with a video resource file for the URL that judges current video resource points to identical, the URL that catches up with a video resource file as the URL of current video resource points to different video resource files, and the URL that confirms current video resource is the URL that need to carry out video switch.The URL that catches up with a video resource file as the URL of current video resource points to identical video resource file, and the URL that confirms current video resource is the URL that does not need to carry out video switch.
In addition, can also carry out various amendments to the video play device of the present embodiment 300.
 
the 4th embodiment
Fig. 4 shows the block diagram of the Wireless Telecom Equipment 400 of a kind of video play device that comprises the 3rd embodiment 300 that fourth embodiment of the invention provides, and this Wireless Telecom Equipment 400 also comprises processor 410 and storage device 420.
In a preferred example, the described indexing unit 330 in video play device 300 is connected with storage device 420, when described indexing unit 330 was play continuously mark before or after the URL that need to carry out video switch.After generating the video play lists file after mark, described storage device 420 is for storing the video play lists file after described mark.
In a preferred example, operating system starts a local http server 430 of monitoring certain port in advance.Suppose that the port numbers of monitoring is 9000.This server can be mapped to described local storage 420.
 
the 5th embodiment
Fifth embodiment of the invention provides a kind of Wireless Telecom Equipment, comprise at least one processor, at least one memory and at least one program, described at least one program is stored in described memory, described at least one application configuration is while being carried out by described processor, and described processor is carried out following steps:
According to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
According to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Continuous broadcasting mark was set in video play lists file before or after confirmed URL, generates the video play lists file after mark;
Play the video play lists file after described mark.In addition, described at least one application configuration is while being carried out by described processor, and described processor can also be carried out the each step described in the first embodiment.
In addition, typically, Wireless Telecom Equipment of the present invention can be various hand-held terminal devices, such as mobile phone, PDA(Personal Digital Assistant) etc., and therefore protection scope of the present invention should not be defined as the Wireless Telecom Equipment of certain particular type.
In addition, the method according to this invention can also be implemented as the computer program of being carried out by CPU.In the time that this computer program is carried out by CPU, carry out the above-mentioned functions limiting in method of the present invention.
In addition, said method step and system unit also can utilize controller and realize for the computer readable storage devices of storing the computer program that makes controller realize above-mentioned steps or Elementary Function.
In addition, should be understood that, computer readable storage devices as herein described (for example, memory) can be volatile memory or nonvolatile memory, or can comprise volatile memory and nonvolatile memory.And nonrestrictive, nonvolatile memory can comprise read-only memory (ROM), programming ROM (PROM), electrically programmable ROM(EPROM as an example), electrically erasable programmable ROM(EEPROM) or flash memory.Volatile memory can comprise random-access memory (ram), and this RAM can serve as External Cache memory.As an example and nonrestrictive, RAM can obtain in a variety of forms, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM(DDR SDRAM), strengthen SDRAM(ESDRAM), synchronization link DRAM(SLDRAM) and direct Rambus RAM(DRRAM).The memory device of disclosed aspect is intended to include but not limited to the memory of these and other adequate types.
Those skilled in the art will also understand is that, may be implemented as electronic hardware, computer software or both combinations in conjunction with the described various illustrative logical blocks of disclosure herein, unit, circuit and algorithm steps.For this interchangeability of hardware and software is clearly described, with regard to the function of various exemplary components, square, unit, circuit and step, it is carried out to general description.This function is implemented as software or is implemented as hardware and depends on concrete application and impose on the design constraint of whole system.Those skilled in the art can realize described function in every way for every kind of concrete application, but this realization determines should not be interpreted as causing departing from the scope of the present invention.
Can utilize the following parts that are designed to carry out function described here to realize or carry out in conjunction with the described various illustrative logical blocks of disclosure herein, unit and circuit: general processor, digital signal processor (DSP), application-specific integrated circuit (ASIC) (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete nextport hardware component NextPort or any combination of these parts.General processor can be microprocessor, but alternatively, processor can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as the combination of computing equipment, and for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessor are in conjunction with DSP core or any other this configuration.
Step in conjunction with the described method of disclosure herein or algorithm can directly be included in the software unit of carrying out in hardware, by processor or in the two combination.Software unit can reside in the storage medium of RAM memory, flash memory, ROM memory, eprom memory, eeprom memory, register, hard disk, removable dish, CD-ROM or any other form known in the art.Exemplary storage medium is coupled to processor, make processor can be from this storage medium reading information or to this storage medium writing information.In an alternative, described storage medium can be integral to the processor together.Processor and storage medium can reside in ASIC.ASIC can reside in user terminal.In an alternative, processor and storage medium can be used as discrete assembly and reside in user terminal.
In one or more exemplary design, described function can realize in hardware, software, firmware or its combination in any.If realized in software, described function can be transmitted on computer-readable medium or by computer-readable medium as one or more instructions or code storage.Computer-readable medium comprises computer-readable storage medium and communication media, and this communication media comprises any medium that contributes to computer program to be sent to from a position another position.Storage medium can be can be by any usable medium of universal or special computer access.As an example and nonrestrictive, this computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage device or other magnetic storage apparatus, or can for carry or file layout be instruction or data structure required program code and can be by any other medium of universal or special computer or universal or special processor access.In addition, any connection can suitably be called computer-readable medium.For example, if with coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line or such as the wireless technology of infrared ray, radio and microwave come from website, server or other remote source send software, above-mentioned coaxial cable, optical fiber cable, twisted-pair feeder, DSL or the wireless technology such as infrared first, radio and microwave include the definition at medium.As used herein, disk and CD comprise compact disk (CD), laser disk, CD, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disk rendering data magnetically conventionally, and cd-rom using laser optics ground rendering data.The combination of foregoing also should be included in the scope of computer-readable medium.
Although disclosed content shows exemplary embodiment of the present invention above, it should be noted that under the prerequisite of scope of the present invention that does not deviate from claim restriction, can carry out multiple change and amendment.Need not carry out with any particular order according to the function of the claim to a method of inventive embodiments described herein, step and/or action.In addition, although element of the present invention can be with individual formal description or requirement, also it is contemplated that multiple, unless be clearly restricted to odd number.
Be described although described each embodiment according to the present invention above with reference to figure, it will be appreciated by those skilled in the art that each embodiment that the invention described above is proposed, can also on the basis that does not depart from content of the present invention, make various improvement.

Claims (14)

1. the video broadcasting method based on Android operating system, comprising:
According to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
According to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Continuous broadcasting mark was set in video play lists file before or after confirmed URL, generates the video play lists file after mark;
Play the video play lists file after described mark.
2. the method for video playback according to claim 1 wherein, arranged continuous broadcasting mark in video play lists file before or after confirmed URL, after generating the video play lists file after mark, comprised;
Generate the URL of the video play lists file after described mark.
3. the method for video playback according to claim 2, wherein, the video play lists file after the described mark of described broadcasting comprises:
Call video playback assembly according to the URL of the list of videos file after described mark and play the video play lists file after described mark.
4. the method for video playback according to claim 2, wherein, the URL of the video play lists file after the described mark of described generation comprises:
Utilize at least one http server be video play lists file generated after described mark at least one meet the URL of the video play lists file after the described mark of http protocol.
5. the method for video playback according to claim 1, wherein, described according to the URL in described video play lists file, the URL that confirmation need to be carried out video switch comprises:
Analyze line by line the URL of all video resources in described video play lists file;
When the URL that the URL that judges current video resource catches up with a video resource points to different video resource files, the URL that confirms current video resource is the URL that need to carry out video switch.
6. the method for video playback according to claim 1, wherein, described continuous broadcasting mark is " #EXT-X-DISCONTINUITY ".
7. the method for video playback according to claim 4, wherein, described according to before video playback acquisition request video play lists file, comprising:
Start at least one http server, described at least one http server is mapped at least one local file.
8. the method for video playback according to claim 7 wherein, arranged continuous broadcasting mark in video play lists file before or after confirmed URL, after generating the video play lists file after mark, comprising:
Video play lists file after mark is left at least one local file of described at least one http server mapping.
9. the method for video playback according to claim 1, wherein, before video playback acquisition request video play lists file, comprising:
Judge whether described video playback request points to video play lists file, if so, according to video play lists file described in video playback acquisition request,
If not, according to video playback request displaying video resource file.
10. according to the method for the video playback described in above-mentioned arbitrary claim, wherein,
Video play lists file is at least one m3u8 formatted file.
11. 1 kinds of video play devices based on Android operating system, wherein, comprising:
Acquiring unit, for according to video playback acquisition request video play lists file, described video play lists file comprises the URL of at least one video resource;
Confirmation unit, according to the URL in described video play lists file, confirmation need to be carried out the URL of video switch;
Indexing unit, for continuous broadcasting mark was set before or after confirmed URL at video play lists file, generates the video play lists file after mark;
Broadcast unit, plays the video play lists file after described mark.
12. video play devices according to claim 11, wherein, further comprise:
Tab file URL generation unit, at least one meets the URL of the described video play lists file of http protocol to be used to video play lists file generated after described mark.
13. video play devices according to claim 14, wherein, described confirmation unit further comprises:
Analytic unit, for analyzing line by line the URL of all video resources of described video play lists file;
Judging unit, whether the URL that catches up with a video resource file for the URL that judges current video resource points to identical, the URL that catches up with a video resource file as the URL of current video resource points to different video resource files, and the URL that confirms current video resource is the URL that need to carry out video switch.
14. 1 kinds of Wireless Telecom Equipments, comprise the video play device described in the arbitrary claim in claim 11 ~ 13.
CN201310131167.7A 2013-04-16 2013-04-16 A kind of video broadcasting method and device based on Android operation system Active CN104113790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310131167.7A CN104113790B (en) 2013-04-16 2013-04-16 A kind of video broadcasting method and device based on Android operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310131167.7A CN104113790B (en) 2013-04-16 2013-04-16 A kind of video broadcasting method and device based on Android operation system

Publications (2)

Publication Number Publication Date
CN104113790A true CN104113790A (en) 2014-10-22
CN104113790B CN104113790B (en) 2017-09-15

Family

ID=51710399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310131167.7A Active CN104113790B (en) 2013-04-16 2013-04-16 A kind of video broadcasting method and device based on Android operation system

Country Status (1)

Country Link
CN (1) CN104113790B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898431A (en) * 2016-04-26 2016-08-24 乐视控股(北京)有限公司 Selectively playing method and system for audio and video formats
CN106993236A (en) * 2017-04-01 2017-07-28 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN107205177A (en) * 2017-06-27 2017-09-26 乐视致新电子科技(天津)有限公司 Video broadcasting method and device
CN107517411A (en) * 2017-09-04 2017-12-26 青岛海信电器股份有限公司 A kind of video broadcasting method based on GStreamer frameworks
CN109743632A (en) * 2018-12-18 2019-05-10 苏宁易购集团股份有限公司 A method of realizing the multi engine access of media play under the more ecosystems of Android
CN110602061A (en) * 2019-08-23 2019-12-20 福建星网智慧科技股份有限公司 Method, system and equipment for expanding network protocol and format of android player
CN111464858A (en) * 2020-03-09 2020-07-28 五八有限公司 Video playing method and device
CN113127069A (en) * 2019-12-31 2021-07-16 成都鼎桥通信技术有限公司 Position service management method and device based on dual systems and terminal equipment
CN116828237A (en) * 2023-06-08 2023-09-29 天翼爱音乐文化科技有限公司 Video playing method, video playing system, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110138020A1 (en) * 2008-12-31 2011-06-09 Roger Pantos Real-Time or Near Real-Time Streaming with Compressed Playlists
CN102611701A (en) * 2008-12-31 2012-07-25 苹果公司 Method for streaming multimedia data over a non-streaming protocol
WO2013020709A1 (en) * 2011-08-10 2013-02-14 Telefonaktiebolaget L M Ericsson (Publ) Media stream handling
CN103024604A (en) * 2012-12-28 2013-04-03 合一网络技术(北京)有限公司 Device and method used for realizing seamless connection of ts files

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110138020A1 (en) * 2008-12-31 2011-06-09 Roger Pantos Real-Time or Near Real-Time Streaming with Compressed Playlists
CN102611701A (en) * 2008-12-31 2012-07-25 苹果公司 Method for streaming multimedia data over a non-streaming protocol
WO2013020709A1 (en) * 2011-08-10 2013-02-14 Telefonaktiebolaget L M Ericsson (Publ) Media stream handling
CN103024604A (en) * 2012-12-28 2013-04-03 合一网络技术(北京)有限公司 Device and method used for realizing seamless connection of ts files

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898431A (en) * 2016-04-26 2016-08-24 乐视控股(北京)有限公司 Selectively playing method and system for audio and video formats
CN106993236A (en) * 2017-04-01 2017-07-28 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN106993236B (en) * 2017-04-01 2019-07-23 青岛海信电器股份有限公司 A kind of video broadcasting method and terminal
CN107205177A (en) * 2017-06-27 2017-09-26 乐视致新电子科技(天津)有限公司 Video broadcasting method and device
CN107517411B (en) * 2017-09-04 2020-08-25 海信视像科技股份有限公司 Video playing method based on GSstreamer frame
CN107517411A (en) * 2017-09-04 2017-12-26 青岛海信电器股份有限公司 A kind of video broadcasting method based on GStreamer frameworks
CN109743632B (en) * 2018-12-18 2021-06-04 苏宁易购集团股份有限公司 Method for realizing multi-engine access of media playing under android multi-ecosystem
CN109743632A (en) * 2018-12-18 2019-05-10 苏宁易购集团股份有限公司 A method of realizing the multi engine access of media play under the more ecosystems of Android
CN110602061A (en) * 2019-08-23 2019-12-20 福建星网智慧科技股份有限公司 Method, system and equipment for expanding network protocol and format of android player
CN113127069A (en) * 2019-12-31 2021-07-16 成都鼎桥通信技术有限公司 Position service management method and device based on dual systems and terminal equipment
CN113127069B (en) * 2019-12-31 2023-08-22 成都鼎桥通信技术有限公司 Dual-system-based location service management method and device and terminal equipment
CN111464858A (en) * 2020-03-09 2020-07-28 五八有限公司 Video playing method and device
CN116828237A (en) * 2023-06-08 2023-09-29 天翼爱音乐文化科技有限公司 Video playing method, video playing system, electronic device and storage medium
CN116828237B (en) * 2023-06-08 2024-05-10 天翼爱音乐文化科技有限公司 Video playing method, video playing system, electronic device and storage medium

Also Published As

Publication number Publication date
CN104113790B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN104113790A (en) Video playing method based on Android operating system, and video playing device based on Android operating system
CN109036417B (en) Method and apparatus for processing voice request
US11350184B2 (en) Providing advanced playback and control functionality to video client
US20140207911A1 (en) System and method for embedding multimedia controls and indications in a webpage
CN110442815B (en) Page generation method, system, device and computer readable storage medium
JP6969013B2 (en) Synchronous playback method, device and storage medium for media files
CN102203761A (en) Dynamic fragmentation of digital media
CN103338384A (en) Video play method and video play device
CN104581401A (en) Method and device for playing data
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
CN103945259A (en) Online video playing method and device
CN112584200B (en) Screen projection method, system, electronic equipment and storage medium
US20140215333A1 (en) Bookmarking segment of offline content and associating bookmarks with online content
CN105160018A (en) Method, device and system for image copy/paste
JP6182578B2 (en) Method and system for comparing media assets
CN105323654A (en) Method and device for displaying content data from network
CN111078654B (en) Method and device for sharing information
US20140317213A1 (en) Method, server and sns system for message interaction
CN110049133B (en) Method and device for issuing full amount of DNS zone files
CN103248912A (en) Network television time shifting play method as well as network television system and device
TW200407724A (en) Method of enhancing multimedia content
CN112256991B (en) Method and equipment for native rendering of information flow fusing multiple link addresses
CN103631876A (en) Method and system for displaying network page and terminal device
US20140115111A1 (en) Customizable Sequence of Content
KR101039991B1 (en) Play system for intelligent contents and play method for intelligent contents and recording media storing contents operating program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100083, Haidian District, Beijing, Fu Cheng Road, No. 28 excellent building, block A, floor 12

Applicant after: Excelle View Technology Co., Ltd.

Address before: 100080 Beijing City, Haidian District Suzhou Street No. 29 building 16 room 10-20 Scandinavia

Applicant before: Excelle View Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201230

Address after: 310052 room 508, 5th floor, building 4, No. 699 Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100083 12 / F, block a, Yousheng building, 28 Chengfu Road, Haidian District, Beijing

Patentee before: UC MOBILE Ltd.

TR01 Transfer of patent right