CN106375869B - A kind of audio and video playing method and device based on HTML5 player - Google Patents

A kind of audio and video playing method and device based on HTML5 player Download PDF

Info

Publication number
CN106375869B
CN106375869B CN201610770731.3A CN201610770731A CN106375869B CN 106375869 B CN106375869 B CN 106375869B CN 201610770731 A CN201610770731 A CN 201610770731A CN 106375869 B CN106375869 B CN 106375869B
Authority
CN
China
Prior art keywords
video
audio
played
attribute value
time point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610770731.3A
Other languages
Chinese (zh)
Other versions
CN106375869A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201610770731.3A priority Critical patent/CN106375869B/en
Publication of CN106375869A publication Critical patent/CN106375869A/en
Application granted granted Critical
Publication of CN106375869B publication Critical patent/CN106375869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/6437Real-time Transport Protocol [RTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • H04N21/4343Extraction or processing of packetized elementary streams [PES]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a kind of audio and video playing method and device based on HTML5 player, method includes: to judge the audio-video label currently with the presence or absence of src attribute value as sky in current audio and video playing to preset time point;If it does, the src attribute value, which is arranged, is the address of audio-video to be played, and non-automatic broadcasting is set by the audio-video to be played;The audio-video to be played is loaded according to the address;If it does not, creation src attribute value is the audio-video label of the audio-video address to be played, and non-automatic broadcasting is set by the audio-video to be played;The audio-video to be played is loaded according to the address;In the case where the audio-video to be played meets playing condition, set empty for the src attribute value of the corresponding audio-video label of the current audio-video;Play the audio-video to be played.Using the embodiment of the present invention, it can prevent player from occurring black field when being switched to next audio-video.

Description

A kind of audio and video playing method and device based on HTML5 player
Technical field
The present invention relates to audio and video playing technical field, in particular to a kind of audio and video playing based on HTML5 player Method and device.
Background technique
Currently, it is by plug-in unit (such as Flash, flasher) Lai Shixian, however, not that web page audio/video, which plays most of, All browsers are owned by same plug-in unit.On the other hand, development of Mobile Internet technology is quickly grown, and Adobe company announces Terminate the exploitation to mobile terminal Flash.In order to support multimedia on the mobile apparatus, World Wide Web Consortium passes through effort in 8 years It completes to the 5th material alteration of HTML, it is specified that a kind of usually includes the standard of audio-video by audio and video member Method has increased the broadcasting of audio tag<audio>, video tab<video>Lai Shixian audio-video newly.
In the prior art, an audio/video player usually corresponds to an audio-video label, by the audio-video label Attribute value be adjusted, the basis such as can conveniently realize broadcasting, suspend, jump and playing logic.But this player, only After current audio and video playing, the next audio-video to be played that can just go load specified, and load and complete in data After play out.At this point, player may cause to terminate under in current audio and video playing since the data load time is too long One audio-video reaches the black field of appearance this period before playable state, i.e., no data can when being switched to next collection for player It plays, black field occurs.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of audio and video playing method and device based on HTML5 player, To prevent player from occurring black field when being switched to next audio-video.
In order to achieve the above objectives, the embodiment of the invention discloses a kind of audio and video playing method based on HTML5 player, The described method includes:
In current audio and video playing to preset time point, the audio-video currently with the presence or absence of src attribute value as sky is judged Label;
If it does, the src attribute value, which is arranged, is the address of audio-video to be played, and the audio-video to be played is set It is set to non-automatic broadcasting;The audio-video to be played is loaded according to the address;
If it does not, creation src attribute value is the audio-video label of the audio-video address to be played, and will it is described to Playing audio-video is set as non-automatic broadcasting;The audio-video to be played is loaded according to the address;
In the case where the audio-video to be played meets playing condition, by the corresponding audio-video mark of the current audio-video The src attribute value of label is set as empty;Play the audio-video to be played.
Preferably, the preset time point are as follows:
End time point away from the audio-video presets the time point of the first duration.
Preferably, the preset time point are as follows:
The time point of default second duration is put at the beginning of away from the audio-video.
Preferably, described in the case where audio-video to be played meets playing condition, the current audio-video is corresponding The src attribute value of audio-video label is set as empty, comprising:
In the case where receiving play instruction of the user for the audio-video to be played, by the current audio-video pair The src attribute value for the audio-video label answered is set as empty.
Preferably, described in the case where audio-video to be played meets playing condition, the current audio-video is corresponding The src attribute value of audio-video label is set as empty, comprising:
Or in the case where the current audio and video playing is completed, by the corresponding audio-video label of the current audio-video Src attribute value is set as empty.
In order to achieve the above objectives, described the invention also discloses a kind of audio and video display device based on HTML5 player Device includes:
Judgment module, in current audio and video playing to preset time point, judgement currently to whether there is src attribute value For empty audio-video label;
First loading module, for the src attribute to be arranged in the case where the judging result of the judgment module, which is, is Value is the address of audio-video to be played, and sets non-automatic broadcasting for the audio-video to be played;It is loaded according to the address The audio-video to be played;
Second loading module, for the judging result of the judgment module be it is no in the case where, creation src attribute value be The audio-video label of the audio-video address to be played, and non-automatic broadcasting is set by the audio-video to be played;According to institute It states address and loads the audio-video to be played;
Playing module, in the case where the audio-video to be played meets playing condition, by the current audio-video The src attribute value of corresponding audio-video label is set as empty;Play the audio-video to be played.
Preferably, the preset time point are as follows:
End time point away from the audio-video presets the time point of the first duration.
Preferably, the preset time point are as follows:
The time point of default second duration is put at the beginning of away from the audio-video.
Preferably, the playing module, is specifically used for:
In the case where receiving play instruction of the user for the audio-video to be played, by the current audio-video pair The src attribute value for the audio-video label answered is set as empty;Play the audio-video to be played.
Preferably, the playing module, is specifically used for:
In the case where the current audio and video playing is completed, by the corresponding audio-video label of the current audio-video Src attribute value is set as empty;Play the audio-video to be played.
Using technical solution provided in an embodiment of the present invention, in current audio and video playing to preset time point, judgement is worked as The preceding src attribute value that whether there is is empty audio-video label;If it does, it is audio-video to be played that the src attribute value, which is arranged, Address, and set non-automatic broadcasting for the audio-video to be played;The audio-video to be played is loaded according to the address; If it does not, creation src attribute value is the audio-video label of the audio-video address to be played, and the sound to be played is regarded Frequency is set as non-automatic broadcasting;The audio-video to be played is loaded according to the address;Meeting the audio-video to be played In the case where playing condition, set empty for the src attribute value of the corresponding audio-video label of the current audio-video;Described in broadcasting Audio-video to be played.During audio and video playing, audio-video number is realized using the mode that two audio-video labels switch in turn According to preloading, can solve player cause since the data load time is too long current audio and video playing terminate with it is next Audio-video reaches there is the problem of black field this period before playable state, to improve user experience.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is that a kind of process of the audio and video playing method provided in an embodiment of the present invention based on HTML5 player is illustrated Figure;
Fig. 2 is a kind of structural representation of the audio and video display device provided in an embodiment of the present invention based on HTML5 player Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of audio and video playing method and devices based on HTML5 player, will divide below It is not described in detail.
Referring to Fig. 1, Fig. 1 is one kind of the audio and video playing method provided in an embodiment of the present invention based on HTML5 player Flow diagram may include steps of:
S101 judges the sound currently with the presence or absence of src attribute value as sky in current audio and video playing to preset time point Video tab, if so, S102 is executed, if not, executing S103.
Specifically, it will be appreciated by persons skilled in the art that preset time point can be the end away from the audio-video Time point presets the time point of the first duration, or away from the audio-video at the beginning of put time point of default second duration.
In practical application, audio tag specified in HTML5<audio>and video tab<video>support a variety of attributes, Wherein the value of src attribute is URL (Uniform Resource Locator, the unification of the label video to be played or audio Resource Locator), i.e., the address of video to be played.It will be appreciated by persons skilled in the art that if a certain audio or video mark The src attribute value of label is sky, then the label can be determined to be in idle state, be can play without data.Wherein, specifically how Judgement belongs to the prior art, and which is not described herein again.
It will be illustrated by taking video tab<video>as an example below.
Collect it is assumed that<video>label is used and plays Pilgrimage to the West first, it is possible to which preset time point is video 25 exist respectively, play in the collection of Pilgrimage to the West first to 25 timesharing, judge currently to whether there is src using JavaScript language Attribute value is empty video tab;It can also preset when first a length of 10 minutes, play in the collection of Pilgrimage to the West first to away from end There are also the currently video tab with the presence or absence of src attribute value as sky at 10 minutes, is judged using JavaScript language;May be used also It is 35 minutes a length of when with default second, when the collection of Pilgrimage to the West first was played to 35 minutes, sentenced using JavaScript language The disconnected current src attribute value that whether there is is empty video tab.
S102 is arranged the src attribute value and is the address of audio-video to be played, and sets the audio-video to be played to Non-automatic broadcasting;The audio-video to be played is loaded according to the address.
It specifically, can will be wait broadcast if it is empty audio-video label that the judging result of S101, which is there are src attribute value, The address assignment of playback video gives the src attribute of the audio-video label, and sets non-automatic broadcasting for audio-video to be played, so Afterwards, the audio-video label is made to load the data of audio-video to be played according to address, specific loading method belongs to the prior art, here It repeats no more.In practical application, to bring better visual experience to user, it can also use the setting of JavsScript language should The style.display attribute of video tab makes it be hidden in backstage;Or the height and width of the video tab are set Attribute value places it in user's vision edge position;When carrying out video playing using the video tab, then display it to use Family.Specific setting method belongs to the prior art, repeats no more.
It will be illustrated by taking video tab<video>as an example below.
It is assumed that video to be played is the collection of " remaining crime " the 2nd, address www.xxx.com/xyj/02.wav sentences through S101 Disconnected is out empty<video>label there is currently src attribute value, it is possible to by www.xxx.com/xyj/02.wav assignment It is set as not playing automatically to the src attribute of the label, and by the collection of " remaining crime " the 2nd, then, " remaining crime " the 2nd is loaded according to address The video data of collection.
S103, creation src attribute value are the audio-video label of the audio-video address to be played, and by the sound to be played Video is set as non-automatic broadcasting;The audio-video to be played is loaded according to the address.
In practical application, only one general audio-video label of HTML5 player is sky currently without src attribute value Audio-video label, S101 judging result be there is no, then, in such cases, a new audio-video label can be created, Audio-video address assignment to be played is given to the src attribute of the audio-video label, and sets non-automatic for audio-video to be played and broadcasts It puts, then the audio-video label loads the data of audio-video to be played according to address.Wherein, new audio-video specifically how is created Label belongs to the prior art, and which is not described herein again.In addition, to bring better visual experience to user, it can also be to the video The display state of label is configured, and is specifically had been described in S102, details are not described herein again.
It will be illustrated by taking video tab<video>as an example below.
It is assumed that video to be played is the collection of " remaining crime " the 2nd, URL www.xxx.com/xyj/02.wav judges through S101 It is out empty<video>label there is currently no src attribute value, it is possible to create one using language such as JavaScript Then www.xxx.com/xyj/02.wav is assigned to the src attribute of the label by new<video>label, and by " remaining crime " 2nd collection is set as not playing automatically, then, loads the video data that " remaining crime " the 2nd collects according to address.
S104, in the case where the audio-video to be played meets playing condition, by the corresponding sound of the current audio-video The src attribute value of video tab is set as empty;Play the audio-video to be played.
It, can be in the case where receiving play instruction of the user for the audio-video to be played in practical application, it will The src attribute value of the corresponding audio-video label of current audio-video is set as empty, then plays audio-video to be played;It can also work as In the case that preceding audio and video playing is completed, set empty for the src attribute value of the corresponding audio-video label of current audio-video, then Play audio-video to be played.It will be appreciated by persons skilled in the art that the data of video to be played are in S102 or S103 It is loaded in advance, broadcasting can be directly entered.
It will be illustrated by taking video tab<video>as an example below.
It is assumed that<video>label that id is VideoNum1 is playing the collection of video " remaining crime " the 3rd, video to be played is " remaining crime " the 4th collects, and the id of corresponding<video>label is VideoNum2, it is known that VideoNum2 is corresponding through S103 <video>label to " remaining crime " the 4th collect data loaded, can directly play, it is possible to user click In the case that next collection or the collection of " remaining crime " the 3rd finish playing, by the src attribute value of corresponding<video>label of VideoNum1 It is set as empty, it is made not continue to occupied bandwidth resource, then played using corresponding<video>label of VideoNum2 " remaining Crime " the 4th collection.Wherein it will be appreciated by persons skilled in the art that id be<video>label attribute, it is specified that label it is unique ID (identification, identity number).
It in practical application, is played for audio,<audio>label can be used and carry out identical process.
It should be noted that above-mentioned examples cited are only a specific example of the invention, do not constitute to limit of the invention It is fixed.
Using the technical solution that embodiment illustrated in fig. 1 provides, in current audio and video playing to preset time point, judgement is worked as The preceding src attribute value that whether there is is empty audio-video label;If it does, it is audio-video to be played that the src attribute value, which is arranged, Address, and set non-automatic broadcasting for the audio-video to be played;The audio-video to be played is loaded according to the address; If it does not, creation src attribute value is the audio-video label of the audio-video address to be played, and the sound to be played is regarded Frequency is set as non-automatic broadcasting;The audio-video to be played is loaded according to the address;Meeting the audio-video to be played In the case where playing condition, set empty for the src attribute value of the corresponding audio-video label of the current audio-video;Described in broadcasting Audio-video to be played.During audio and video playing, audio-video number is realized using the mode that two audio-video labels switch in turn According to preloading, can solve player cause since the data load time is too long current audio and video playing terminate with it is next Audio-video reaches there is the problem of black field this period before playable state, to improve user experience.
Corresponding with above method embodiment, the embodiment of the present invention also provides a kind of audio-video based on HTML5 player Playing device.
Referring to fig. 2, Fig. 2 is that a kind of structure of the audio and video display device provided by the invention based on HTML5 player is shown It is intended to, it is corresponding with process shown in FIG. 1, comprising:
Judgment module 201, in current audio and video playing to preset time point, judgement currently to belong to the presence or absence of src Property value be empty audio-video label.
Specifically, preset time point can preset the time point of the first duration for the end time point away from the audio-video; Or away from the audio-video at the beginning of put time point of default second duration.
First loading module 202, for the src to be arranged in the case where the judging result of the judgment module, which is, is Attribute value is the address of audio-video to be played, and sets non-automatic broadcasting for the audio-video to be played;According to the address Load the audio-video to be played.
Second loading module 203, for creating src attribute in the case where the judging result of the judgment module is no Value is the audio-video label of the audio-video address to be played, and sets non-automatic broadcasting for the audio-video to be played;Root The audio-video to be played is loaded according to the address.
Playing module 204, in the case where the audio-video to be played meets playing condition, the current sound to be regarded Frequently the src attribute value of corresponding audio-video label is set as empty;Play the audio-video to be played.
Playing module 204 shown in the embodiment of the present invention, specifically can be used for:
In the case where receiving play instruction of the user for the audio-video to be played, by the current audio-video pair The src attribute value for the audio-video label answered is set as empty;Play the audio-video to be played.
Playing module 204 shown in the embodiment of the present invention, specifically can be also used for:
In the case where the current audio and video playing is completed, by the corresponding audio-video label of the current audio-video Src attribute value is set as empty;Play the audio-video to be played.
Using the technical solution that embodiment illustrated in fig. 2 provides, at the end of current audio-video does not play, judgement it is current whether It is empty audio-video label there are src attribute value;If it does, the address that the src attribute value is audio-video to be played is set, And non-automatic broadcasting is set by the audio-video to be played;The audio-video to be played is loaded according to the address;If no In the presence of creation src attribute value is the audio-video label of the audio-video address to be played, and the audio-video to be played is arranged For non-automatic broadcasting;The audio-video to be played is loaded according to the address;In the broadcasting item for meeting the audio-video to be played In the case where part, set empty for the src attribute value of the corresponding audio-video label of the current audio-video;It plays described to be played Audio-video.During audio and video playing, the pre- of audio, video data is realized using the mode that two audio-video labels switch in turn Load, can solve player causes to terminate and next audio-video in current audio and video playing since the data load time is too long There is the problem of black field in this period before reaching playable state, to improve user experience.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
Those of ordinary skill in the art will appreciate that all or part of the steps in realization above method embodiment is can It is completed with instructing relevant hardware by program, the program can store in computer-readable storage medium, The storage medium designated herein obtained, such as: ROM/RAM, magnetic disk, CD.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (6)

1. a kind of audio and video playing method based on HTML5 player, which is characterized in that the described method includes:
In current audio and video playing to preset time point, the audio-video label currently with the presence or absence of src attribute value as sky is judged;
If it does, the src attribute value, which is arranged, is the address of audio-video to be played, and set the audio-video to be played to Non-automatic broadcasting;The audio-video to be played is loaded according to the address;
If it does not, creation src attribute value is the audio-video label of the audio-video address to be played, and will be described to be played Audio-video is set as non-automatic broadcasting;The audio-video to be played is loaded according to the address;
The play instruction for the audio-video to be played is being received, or, when the current audio and video playing is completed, it will be described The src attribute value of the corresponding audio-video label of current audio-video is set as empty;Play the audio-video to be played.
2. the method according to claim 1, wherein preset time point are as follows:
End time point away from the audio-video presets the time point of the first duration.
3. the method according to claim 1, wherein preset time point are as follows:
The time point of default second duration is put at the beginning of away from the audio-video.
4. a kind of audio and video display device based on HTML5 player, which is characterized in that described device includes:
Judgment module, in current audio and video playing to preset time point, judging currently to whether there is src attribute value as sky Audio-video label;
First loading module, in the case where the judging result of the judgment module, which is, is, the src attribute value, which is arranged, to be The address of audio-video to be played, and non-automatic broadcasting is set by the audio-video to be played;According to the load of the address Audio-video to be played;
Second loading module, in the case where the judging result of the judgment module is no, creation src attribute value to be described The audio-video label of audio-video address to be played, and non-automatic broadcasting is set by the audio-video to be played;According to describedly Location loads the audio-video to be played;
Playing module, for receiving the play instruction for being directed to the audio-video to be played, or, the current audio and video playing is complete Cheng Shi sets empty for the src attribute value of the corresponding audio-video label of the current audio-video;Play the sound view to be played Frequently.
5. device according to claim 4, which is characterized in that the preset time point are as follows:
End time point away from the audio-video presets the time point of the first duration.
6. device according to claim 4, which is characterized in that the preset time point are as follows:
The time point of default second duration is put at the beginning of away from the audio-video.
CN201610770731.3A 2016-08-30 2016-08-30 A kind of audio and video playing method and device based on HTML5 player Active CN106375869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610770731.3A CN106375869B (en) 2016-08-30 2016-08-30 A kind of audio and video playing method and device based on HTML5 player

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610770731.3A CN106375869B (en) 2016-08-30 2016-08-30 A kind of audio and video playing method and device based on HTML5 player

Publications (2)

Publication Number Publication Date
CN106375869A CN106375869A (en) 2017-02-01
CN106375869B true CN106375869B (en) 2019-06-14

Family

ID=57900707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610770731.3A Active CN106375869B (en) 2016-08-30 2016-08-30 A kind of audio and video playing method and device based on HTML5 player

Country Status (1)

Country Link
CN (1) CN106375869B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954431A (en) * 2021-01-29 2021-06-11 北京奇艺世纪科技有限公司 Video playing method and device, video playing equipment and readable storage medium
CN115357211B (en) * 2022-10-19 2023-01-31 北京尽微致广信息技术有限公司 Audio playing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647634A (en) * 2012-05-02 2012-08-22 合一网络技术(北京)有限公司 Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video
CN102929971A (en) * 2012-10-15 2013-02-13 长春指南针科技有限公司 Multimedia information playing method and system
CN104731817A (en) * 2013-12-23 2015-06-24 腾讯科技(深圳)有限公司 Webpage display method and device
CN105792020A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for playing video file
CN105868241A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data loading method and apparatus
CN105872633A (en) * 2015-12-04 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and system for realizing seamless chain broadcasting of videos

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647634A (en) * 2012-05-02 2012-08-22 合一网络技术(北京)有限公司 Multi-fragment video playing method and device based on hypertext markup language (HTML) 5 video
CN102929971A (en) * 2012-10-15 2013-02-13 长春指南针科技有限公司 Multimedia information playing method and system
CN104731817A (en) * 2013-12-23 2015-06-24 腾讯科技(深圳)有限公司 Webpage display method and device
CN105792020A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for playing video file
CN105872633A (en) * 2015-12-04 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and system for realizing seamless chain broadcasting of videos
CN105868241A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data loading method and apparatus

Also Published As

Publication number Publication date
CN106375869A (en) 2017-02-01

Similar Documents

Publication Publication Date Title
CN106658086B (en) Live broadcast room switching method and device
CN105072465A (en) Video play control method and electronic equipment
WO2005039168A3 (en) Ineractive program guides and program banners providing program segment information
CN103647989A (en) Program recommending method and apparatus for smart television
CN103888826B (en) Television desktop system and desktop switching method based on android
RU2005104120A (en) SYSTEM AND METHOD FOR ENSURING THE FAMILY OF USERS OF THE USER INTERFACE FOR THE APPLICATION AND THE USER
CN103873927B (en) Streaming medium data processing method and electronic equipment
WO2006018825A3 (en) Program selection system
CN106375869B (en) A kind of audio and video playing method and device based on HTML5 player
CN103763587A (en) Method and device for playing multimedia data
CN103686454A (en) Information acquisition method and apparatus
CN104202652A (en) Television set top box and playback control method thereof
CN106951493A (en) Automatic figure methods of exhibiting and device without figure news
CN106331788A (en) Video download method and device
CN103763575B (en) A kind of programme method of combination and device
CN105872758A (en) Intelligent television channel operation and play method and corresponding device
CN104506957A (en) Method and device for displaying subtitles
CN104010223A (en) Method and system for taking over terminal system for video playing
CN106550275B (en) A kind of implementation method of the live telecast indulging system for children
CN107920273A (en) Program switching method, television set and the computer-readable storage medium of television set
CN105635753B (en) The method for down loading and device of media data
CN102638482B (en) Method and device for controlling advisement playing in mobile device
CN105657461A (en) Video playing prompting method and device and mobile terminal
CN105828176A (en) Program switching realization method, device and equipment and computer program product
CN104902297B (en) The method and device that a kind of program plays

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant