CN110430473A - Method, apparatus, storage medium and the electronic equipment of video playing - Google Patents

Method, apparatus, storage medium and the electronic equipment of video playing Download PDF

Info

Publication number
CN110430473A
CN110430473A CN201910651394.XA CN201910651394A CN110430473A CN 110430473 A CN110430473 A CN 110430473A CN 201910651394 A CN201910651394 A CN 201910651394A CN 110430473 A CN110430473 A CN 110430473A
Authority
CN
China
Prior art keywords
video
page
address information
target object
mobile application
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
CN201910651394.XA
Other languages
Chinese (zh)
Other versions
CN110430473B (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.)
Neusoft Corp
Original Assignee
Neusoft Corp
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 Neusoft Corp filed Critical Neusoft Corp
Priority to CN201910651394.XA priority Critical patent/CN110430473B/en
Publication of CN110430473A publication Critical patent/CN110430473A/en
Application granted granted Critical
Publication of CN110430473B publication Critical patent/CN110430473B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4126The peripheral being portable, e.g. PDAs or mobile phones
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Abstract

This disclosure relates to a kind of method, apparatus of video playing, storage medium and electronic equipment, applied to the terminal for playing video by mixed mode mobile application, the enabled instruction to target object to be launched can be obtained by the first H5 page of the mixed mode mobile application;The address information of the target object is obtained according to the enabled instruction;Determine whether the target object is the video object according to the address information;If determining that the target object is the video object according to the address information, the primary page is generated, and the address information is loaded by the primary page, to play the video object by the primary page.

Description

Method, apparatus, storage medium and the electronic equipment of video playing
Technical field
This disclosure relates to carry out the field of video playing using mixed mode mobile application, and in particular, to a kind of video Method, apparatus, storage medium and the electronic equipment of broadcasting.
Background technique
Mixed mode mobile application (Hybrid App) is to apply (Web App) and native applications (Native between web App) application between the two, have both the good user-interaction experience of native applications and the exploitation of web application cross-platform two are big Advantage, and Hybrid App development cost is low, and reusability is strong, so that the exploitation of Hybrid App is widely current.
Video playing can be carried out on the smart phone of highest version by Hybrid App in the related technology, this is because The smart phone compatibility of highest version preferably, can carry out video using the video component that H5 is provided by operation Hybrid App It plays, but in view of in actual video playing scene, needing to carry out video playing by TV box under most of scenes, but TV box and smart phone performance difference in terms of video playback capability are larger, same by operation on TV box When Hybrid App plays out video, it may appear that the problems such as splashette, blank screen, and the load time is too long, this seriously affects use The experience at family.
Summary of the invention
Purpose of this disclosure is to provide a kind of method, apparatus of video playing, storage medium and electronic equipments.
In a first aspect, providing a kind of method of video playing, video is played applied to by mixed mode mobile application Terminal, which comprises obtained by the first H5 page of the mixed mode mobile application to target object to be launched Enabled instruction;The address information of the target object is obtained according to the enabled instruction;Institute is determined according to the address information State whether target object is the video object;It is raw if determining that the target object is the video object according to the address information The address information is loaded at the primary page, and by the primary page, to play the video by the primary page Object.
Optionally, the method also includes: if according to the address information determine the target object be the video pair As forbidding the 2nd H5 page to load the video object according to the address information;The 2nd H5 page is the hybrid guided mode The page of the load the video object of formula mobile application default.
Optionally, described to determine whether the target object is that the video object comprises determining that institute according to the address information Whether state in address information includes default video identification information;If in the address information including the default video identifier letter Breath determines that the target object is the video object.
Optionally, after the target video by the primary page broadcasting, the method also includes: if receiving To exiting play instruction, according to it is described exit play instruction and control the page retract from the primary page to the described first H5 pages Face.
Second aspect provides a kind of device of video playing, plays video applied to by mixed mode mobile application Terminal, described device include: the first acquisition module, for the first H5 page acquisition pair by the mixed mode mobile application The enabled instruction of target object to be launched;Second obtains module, for obtaining the target object according to the enabled instruction Address information;Determining module, for determining whether the target object is the video object according to the address information;Video is broadcast Amplification module, if generating the primary page, and lead to for determining that the target object is the video object according to the address information It crosses the primary page and loads the address information, to play the video object by the primary page.
Optionally, described device includes: video disabled module, if for determining the target pair according to the address information As forbidding the 2nd H5 page to load the video object according to the address information for the video object;Described 2nd H5 pages Face is the page of the load the video object of mixed mode mobile application default.
Optionally, the determining module, for whether determining in the address information including default video identification information;If Include the default video identification information in the address information, determines that the target object is the video object.
Optionally, described device further include: page rollback module, if exiting play instruction for receiving, according to described The play instruction control page is exited to retract from the primary page to the first H5 page.
The third aspect provides a kind of computer readable storage medium, is stored thereon with computer program, and the program is processed The step of disclosure first aspect the method is realized when device executes.
Fourth aspect provides a kind of electronic equipment, comprising: memory is stored thereon with computer program;Processor is used In executing the computer program in the memory, the step of to realize disclosure first aspect the method.
Through the above technical solutions, if the hybrid guided mode can be passed through when playing video by mixed mode mobile application The first H5 page of formula mobile application obtains the enabled instruction to target object to be launched;Institute is obtained according to the enabled instruction State the address information of target object;Determine whether the target object is the video object according to the address information;If according to institute It states address information and determines that the target object is the video object, generate the primary page, and pass through the primary page load The address information, to play the video object by the primary page, that is to say, that getting the target object Enabled instruction, and the target object be the video object when, can be from the first H5 page jump of the mixed mode mobile application It is may be implemented in this way so as to carry out video playing by the primary page in TV box or hand to the primary page In the terminals such as machine, by the carry out video playing of mixed mode mobile application smoothness, avoids and answered by mixed mode movement With when carrying out video playing white screen, blank screen the problems such as, and then promote the experience of user.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is the flow chart of the method for the first video playing shown according to an exemplary embodiment;
Fig. 2 is the flow chart of the method for second of video playing shown according to an exemplary embodiment;
Fig. 3 is the block diagram of the device of the first video playing shown according to an exemplary embodiment;
Fig. 4 is the block diagram of the device of second of video playing shown according to an exemplary embodiment;
Fig. 5 is the block diagram of the device of the third video playing shown according to an exemplary embodiment;
Fig. 6 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
The disclosure is mainly used in through mixed mode mobile application (Hybrid App) on TV box or mobile phone In the scene for carrying out video playing, it is contemplated that mixed mode mobile application development cost is low, and reusability is strong, and has both primary answer The advantage developed with good user-interaction experience and web application cross-platform, the disclosure are intended to provide one kind and pass through hybrid guided mode The method of formula mobile application progress video playing.
By taking TV box as an example, which can be installed on TV box in advance, in this way, user exists After starting the TV box, the mixed mode mobile application that presses switch to open of remote controler can be passed through on the tv screen, and After opening the mixed mode mobile application, TV box can carry out data interaction with server, to obtain from server To a variety of objects to be launched such as video, picture or text, specifically, since the mixed mode mobile application is usually by multiple H5 Page composition, which is the page write by html5 web technologies, also, the page architecture of the H5 page is by html5 Definition, the appearance of the H5 page is defined, this H5 pages by CSS3 (Cascading Style Sheets, cascading style sheets) The function in face is determined by scripting language JavaScript, wherein html5 is kernel language HTML (Hyper Text in Web Markup Language, hypertext markup language) language description mode, TV box determine the mixed mode movement answer It, can be by components such as Webview, Crosswalk from server load, rendering H5 resource, to initialize after being turned on The mixed mode mobile application, later, user can pass through the boundary of the remote controler mixed mode mobile application on the tv screen In face, target object to be launched is selected according to their own needs, if the target object is video file, TV box is being connect After receiving play instruction, during carrying out video playing by operation mixed mode mobile application, it may appear that splashette, blank screen The problems such as, and the load time is too long, can not normal play video, this can seriously affect the experience of user.
Above-mentioned to solve the problems, such as, the disclosure provides method, apparatus, storage medium and the electronics of a kind of video playing Equipment is mainly used in the terminal (such as TV box, mobile phone terminal) that video is played by mixed mode mobile application, specifically Ground can obtain the enabled instruction to target object to be launched, so by the first H5 page of the mixed mode mobile application Obtain the address information of the target object according to the enabled instruction afterwards, and according to the address information determine the target object whether be If determining that the target object is the video object according to the address information the primary page can be generated, and by being somebody's turn to do in the video object The primary page loads the address information, to play the video object by the primary page, in this way, getting the target object Enabled instruction, and the target object be the video object when, can from the first H5 page jump to the primary page, thus Video playing can be carried out by the primary page, to realize in the terminals such as TV box or mobile phone, pass through mixed mode The carry out video playing of mobile application smoothness, avoid by the mixed mode mobile application carry out video playing when white screen, The problems such as blank screen, and then the experience of user is promoted, also, since mixed mode mobile application development cost is low, reusability is strong, it fits For cross-platform mobile application, so that terminal upgrade is flexible, scalability is strong.
Fig. 1 is a kind of flow chart of the method for video playing shown according to an exemplary embodiment, is applied to by mixed Syntype mobile application plays the terminal of video, which may include the terminals such as TV box, mobile phone, as shown in Figure 1, the party Method the following steps are included:
In a step 101, it is obtained by the first H5 page of mixed mode mobile application to target object to be launched Enabled instruction.
Wherein, which may include any type of object such as video, audio or picture, it is generally the case that The mixed mode mobile application can be made of multiple H5 pages, the different H5 pages have the function of it is different, for example, the mixing Motion of defect modes application be activated after the initial H5 page, video, audio, picture, the information such as text, user can be shown to user It can select the target object to be launched in the initial H5 page according to their own needs, terminal is chosen getting user The target object after, page jump can be carried out, from the initial H5 page jump to the first H5 page, with will pass through this The one H5 page further shows being discussed in detail for the target object to user, while the first H5 page can also provide a user Start the start button of the target object, in this way, user can start the target object by triggering the start button, at this point, The terminal can get the enabled instruction to the target object by the first H5 page.
In a step 102, the address information of the target object is obtained according to the enabled instruction.
Wherein, which may include URL (Uniform Resource Locator, the unification of the target object Resource Locator) address.
In one possible implementation, during initializing the mixed mode mobile application, terminal is obtained The address of the multiple objects to be launched shown into the initialization H5 page to user, in this way, terminal is getting the target pair After the enabled instruction of elephant, correspondingly the target pair can also be obtained from the address of multiple objects to be launched according to the enabled instruction The address information of elephant.
In step 103, determine whether the target object is the video object according to the address information.
In actual application scenarios, developer, can be on the ground in the address information of the customized target object Class label is set for the target object in advance in the information of location, for example, if the target object is video class object, it can be on the ground It is added video tab in the information of location, such as MP4, AVI any one video tab can if the target object is picture class object To be added picture tag in the address information, such as jpg, png, bmp any one picture tag, therefore, in this step, It whether can include default video identification information in the address information by determining, if including the pre- setting video in the address information Identification information, it is determined that the target object is the video object, wherein the default video identification information may include MP4, AVI Equal video tabs.
At step 104, if determining that the target object is the video object according to the address information, the primary page is generated, And the address information is loaded by the primary page, to play the video object by the primary page.
It is broadcast in the terminals such as TV box or the mobile phone of lowest version by the mixed mode mobile application in the related technology When putting video, the problems such as mostly default carries out video playing by the H5 page, but bad due to compatibility, it may appear that white screen, black The problems such as screen, carry out video playing that can not be smooth, it is contemplated that in practical application scene, the system of TV box or mobile phone is more Using primary development scheme, the primary page can be preferably compatible with, therefore, in this step, however, it is determined that the target object For the video object, the primary page can be generated, so as to pass through the load of the primary page smoothness and play the video pair As for example, Android system uses primary development scheme by taking Android system as an example, therefore, if mixed by this on Android system When syntype mobile application plays the video object, the primary page can be generated, to play the video pair by the primary page As, certainly, the disclosure is not limited to apply on Android system, be also possible to other be by what primary development scheme was developed System, such as IOS system, i.e., also can be applied to the field for playing video in the terminal of IOS system by mixed mode mobile application Scape, the disclosure are not construed as limiting this.
In one possible implementation, new video playing task stack can be created by Android Intent, in this way The primary page can be generated.
In addition, during playing the video object by the primary page, it is available to be pre-configured with target component Video playing component, the address information of the video object is then loaded by the video playing component, with realize pass through the original The raw page plays the video object.
Wherein, which may include SurfaceView component, MediaPlayer component and SeekBar Component, also, SurfaceView component is for realizing the video playings items such as broadcasting, the pause of video, MediaPlayer group Part is multimedia component, and SeekBar component is used to adjust the playback progress of the video object, such as fast-forward play or retrogressing The video playings items such as broadcasting.
In addition, needing to establish above-mentioned video playing item to realize above-mentioned video playing item and video playing instructing The mapping relations of (such as pause instruction, retreats instruction at fast forward command), in one possible implementation, to the video After player module is pre-configured with the target component, the mapping relations can be established, specifically, for the SurfaceView component, The configuration of target component:<SurfaceView android:focusable=" ture ">can be carried out in the following way, it is right In SeekBar component, the configuration of target component: < SeekBar android:focusable can be carried out in the following way =" ture " >, it should be noted that, if the terminal is TV box, by joining to the above-mentioned target of the video playing component Configuration Number, can enable remote controler to identify focus, so as to smooth in the primary page by the remote control control the video object Broadcasting.
Using the above method, in the enabled instruction for getting the target object, and the target object be the video object when, Can from the first H5 page jump of the mixed mode mobile application to the primary page, so as to by the primary page into Row video playing is may be implemented in this way in the terminals such as TV box or mobile phone, smooth by mixed mode mobile application Carry out video playing, avoid by the mixed mode mobile application carry out video playing when white screen, blank screen the problems such as, in turn Promote the experience of user.
Fig. 2 is a kind of flow chart of the method for video playing shown according to an exemplary embodiment, is applied to by mixed Syntype mobile application plays the terminal of video, which may include the terminals such as TV box, mobile phone, reality shown in Fig. 2 It applies in example, is illustrated so that the terminal is TV box as an example, as shown in Fig. 2, method includes the following steps:
In step 201, it is obtained by the first H5 page of mixed mode mobile application to target object to be launched Enabled instruction.
Wherein, which may include any type of object such as video, audio or picture, it is generally the case that The mixed mode mobile application can be made of multiple H5 pages, the different H5 pages have the function of it is different, for example, the mixing Motion of defect modes application be activated after the initial H5 page, video, audio, picture, the information such as text, user can be shown to user The target object to be launched can be selected in the initial H5 page according to their own needs, TV box is getting user After the target object chosen, page jump can be carried out, from the initial H5 page jump to the first H5 page, will pass through The first H5 page further shows being discussed in detail for the target object to user, while the first H5 page can also be to user The start button for starting the target object is provided, in this way, user can start the target object by triggering the start button, this When, which can get the enabled instruction to the target object by the first H5 page.
Illustratively, by taking the target object is the video object as an example, the first H5 page can show that user chooses to user The video object introductory video (video profile, the performer's list information of such as the video object), and play the video The broadcast button of object, in this way, user, after triggering the broadcast button, which gets and broadcast to the video object Instruction is put, above-mentioned example is merely illustrative of, and the disclosure is not construed as limiting this.
In step 202, the address information of the target object is obtained according to the enabled instruction.
Wherein, which may include the address URL of the target object.
In one possible implementation, during initializing the mixed mode mobile application, TV box is The address for getting the multiple objects to be launched shown in the initialization H5 page to user, in this way, TV box is being got After the enabled instruction of the target object, it can also correspondingly be obtained from the address of multiple objects to be launched according to the enabled instruction The address information of the target object.
In step 203, determine in the address information whether include default video identification information.
Wherein, it may include any one video tab such as MP4, AVI that this, which presets video identification information to be,.
In actual application scenarios, developer, can be on the ground in the address information of the customized target object Class label is set for the target object in advance in the information of location, for example, if the target object is video class object, it can be on the ground It is added video tab in the information of location, such as MP4, AVI any one video tab can if the target object is picture class object To be added picture tag in the address information, such as jpg, png, bmp any one picture tag, therefore, in this step, It can judge whether the target object is video pair by whether including default video identification information in the determining address information As.
After executing this step, however, it is determined that include the default video identification information in the address information, can determine the mesh Mark object is the video object, at this point, for solve by the mixed mode mobile application can not the normal play the video object ask Topic can first forbid the 2nd H5 page of the mixed mode mobile application (as to mix by executing step 204 to step 206 The page of the load of the motion of defect modes application default the video object) the video object is loaded, the primary page is then generated, by the view The address information of frequency object is transmitted to the primary page, plays the video object will pass through the primary page;If it is determined that the ground Do not include the default video identification information in the information of location, can determine that the target object is not the video object, due to mixed mode The H5 page of mobile application usually can normally-open other objects in addition to video, at this point, mobile by the mixed mode The 3rd H5 page of application loads the target object, wherein the 3rd H5 page can be defaulted for the mixed mode mobile application Other objects of the load in addition to the video object the page.
Therefore, however, it is determined that include the default video identification information in the address information, execute step 204 to 206;If it is determined that Do not include the default video identification information in the address information, executes step 207.
In step 204, the 2nd H5 page is forbidden to load the video object according to the address information.
Wherein, the 2nd H5 page is the page of the load of the mixed mode mobile application default the video object.
In a kind of possible implementation of this step, the H5 page needs the page editing mode using a label, example first Such as: it can be edited in the following ways:
<a href="http://flv4mp4.people.com/xxx.mp4">video xxx</a>, wherein http: // Flv4mp4.people.com/xxx.mp4 is the address information of the video object, at this point it is possible to identify the address information In include default video identification information mp4, can then determine that the target object is the video object, later, weight can be passed through The address information that shouldOverrideUrlLoading method intercepts the video object is write, and by directly returning in the method Returning " ture " makes the 2nd H5 page forbid loading the video object.
It should be noted that the H5 page uses the page editing mode of a label, the remote controler of TV box can be made to obtain Obtain video playing focus.
In step 205, the primary page is generated, and the address information is loaded by the primary page, with primary by this The page plays the video object.
It is broadcast in the terminals such as TV box or the mobile phone of lowest version by the mixed mode mobile application in the related technology When putting video, mostly by default the H5 page carry out video playing, but due to compatibility it is bad the problems such as, it may appear that white screen, The problems such as blank screen, carry out video playing that can not be smooth, it is contemplated that in practical application scene, the system of TV box or mobile phone Primary development scheme is mostly used, the primary page can be preferably compatible with, therefore, in this step, however, it is determined that the target pair As the primary page can be generated for the video object, so as to by the load of the primary page smoothness and play the video Object, for example, Android system uses primary development scheme by taking Android system as an example, therefore, if by being somebody's turn to do on Android system When mixed mode mobile application plays the video object, the primary page can be generated, to play the video by the primary page Object, certainly, the disclosure are not limited to apply on Android system, are also possible to other develop by primary development scheme System also can be applied to play video in the terminal of IOS system by mixed mode mobile application such as IOS system Scene, the disclosure are not construed as limiting this.
In one possible implementation, new video playing task stack can be created by Android Intent, in this way The primary page can be generated.
In addition, during playing the video object by the primary page, it is available to be pre-configured with target component Video playing component, the address information of the video object is then loaded by the video playing component, with realize pass through the original The raw page plays the video object.
Wherein, which may include SurfaceView component, MediaPlayer component and SeekBar Component, also, SurfaceView component is for realizing the video playings items such as broadcasting, the pause of video, MediaPlayer group Part is multimedia component, and SeekBar component is used to adjust the playback progress of the video object, such as fast-forward play or retrogressing The video playings items such as broadcasting.
In addition, needing to establish above-mentioned video playing item to realize above-mentioned video playing item and video playing instructing The mapping relations of (such as pause instruction, retreats instruction at fast forward command), in one possible implementation, to the video After player module is pre-configured with the target component, the mapping relations can be established, specifically, for the SurfaceView component, The configuration of target component:<SurfaceView android:focusable=" ture ">can be carried out in the following way, it is right In SeekBar component, the configuration of target component: < SeekBar android:focusable can be carried out in the following way =" ture " >, it should be noted that, if the terminal is TV box, by joining to the above-mentioned target of the video playing component Configuration Number, can enable remote controler to identify focus, so as to smooth in the primary page by the remote control control the video object Broadcasting.
In step 206, play instruction is exited if receiving, play instruction is exited according to this and controls the page from the primary page Face retracts to the first H5 page.
During playing the video object by the primary page, when what user triggered the video object exits broadcasting After button (for example, user can be exited by the return push-button of remote controler plays current video), TV box is got This exits play instruction, retracts from the current primary page to the first H5 page at this point it is possible to control the page, needs to illustrate , can control the page and retract to the precondition of the first H5 page from the current primary page as by executing step Rapid 205 forbid the 2nd H5 page to load the video object, if the 2nd H5 page is not forbidden to load the video object, TV box When controlling the page and retracting, it may appear that the problem of white screen, this also will affect the experience of user, therefore, in the disclosure, pass through taboo Only the 2nd H5 page loads the video object, can make the video playing seamless access by the primary page, and can be with So that the advance or retrogressing during page jump are stablized, so as to further increase the experience of user.
In step 207, which is loaded by the 3rd H5 page of the mixed mode mobile application.
Wherein, the 3rd H5 page can be its in addition to the video object of load of mixed mode mobile application default The page of its object, other objects may include object picture or text object etc..
Using the above method, in the enabled instruction for getting the target object, and the target object be the video object when, It can be from the first H5 page jump to the primary page, so as to carry out video playing by the primary page, to realize In the terminals such as TV box or the mobile phone of lowest version, by the carry out video playing of mixed mode mobile application smoothness, keep away Exempted from by the mixed mode mobile application carry out video playing when white screen, blank screen the problems such as, so as to promote user's body It tests, also, after determining that the target object is the video object, the 2nd H5 page of the mixed mode mobile application can be forbidden Continue to load the video object, in this way, TV box can receive to the video object exit play instruction after, control The page is retracted glibly from the primary page to the first H5 page, is avoided the white screen in page back off procedure, Caton etc. and is asked Topic, further increases the experience of user, in addition, low, multiple using the development cost that mixed mode mobile application carries out video playing Strong with property, suitable for cross-platform mobile application, terminal upgrade is flexible, and scalability is strong.
Fig. 3 is a kind of block diagram of the device of video playing shown according to an exemplary embodiment, is mixed applied to passing through The terminal of motion of defect modes application plays video, as shown in figure 3, the device includes:
First obtains module 301, for being obtained by the first H5 page of mixed mode mobile application to mesh to be launched Mark the enabled instruction of object;
Second obtains module 302, for obtaining the address information of the target object according to the enabled instruction;
Determining module 303, for determining whether the target object is the video object according to the address information;
Video playback module 304, if being generated former for determining that the target object is the video object according to the address information The raw page, and the address information is loaded by the primary page, to play the video object by the primary page.
Optionally, Fig. 4 is the block diagram for implementing a kind of device of the video playing exemplified according to Fig.3, such as Fig. 4 institute Show, the device further include:
Video disabled module 305, if for determining that the target object is the video object according to the address information, according to this Address information forbids the 2nd H5 page to load the video object;The 2nd H5 page is adding for mixed mode mobile application default Carry the page of the video object.
Optionally, determining module 303, for whether determining in the address information including default video identification information;If Include the default video identification information in the address information, determines that the target object is the video object.
Optionally, Fig. 5 is the block diagram for implementing a kind of device of the video playing exemplified according to Fig.4, such as Fig. 5 institute Show, the device further include:
Page rollback module 306, if exiting play instruction for receiving, according to this exit play instruction control the page from The primary page retracts to the first H5 page.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Using above-mentioned apparatus, in the enabled instruction for getting the target object, and the target object be the video object when, Can from the first H5 page jump of the mixed mode mobile application to the primary page, so as to by the primary page into Row video playing is may be implemented in this way in the terminals such as TV box or mobile phone, smooth by mixed mode mobile application Carry out video playing, avoid by the mixed mode mobile application carry out video playing when white screen, blank screen the problems such as, in turn Promote the experience of user.
Fig. 6 is the block diagram of a kind of electronic equipment 600 shown according to an exemplary embodiment.As shown in fig. 6, the electronics is set Standby 600 may include: processor 601, memory 602.The electronic equipment 600 can also include multimedia component 603, input/ Export one or more of (I/O) interface 604 and communication component 605.
Wherein, processor 601 is used to control the integrated operation of the electronic equipment 600, to complete above-mentioned video playing All or part of the steps in method.Memory 602 is for storing various types of data to support in the electronic equipment 600 Operation, these data for example may include the instruction of any application or method for operating on the electronic equipment 600, And the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..The memory 602 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static random is deposited Access to memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory (Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or CD.Multimedia component 603 may include screen and audio component.Wherein Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage Device 602 is sent by communication component 605.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O Interface 604 provides interface between processor 601 and other interface modules, other above-mentioned interface modules can be keyboard, mouse, Button etc..These buttons can be virtual push button or entity button.Communication component 605 is for the electronic equipment 600 and other Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G, 4G, NB-IOT, eMTC or other 5G etc. or they one or more of Combination, it is not limited here.Therefore the corresponding communication component 605 may include: Wi-Fi module, bluetooth module, NFC mould Block etc..
In one exemplary embodiment, electronic equipment 600 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part realization, the method for executing above-mentioned video playing.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should The step of method of above-mentioned video playing is realized when program instruction is executed by processor.For example, the computer-readable storage medium Matter can be the above-mentioned memory 602 including program instruction, and above procedure instruction can be held by the processor 601 of electronic equipment 600 Method of the row to complete above-mentioned video playing.
In a further exemplary embodiment, a kind of computer program product is also provided, which includes energy Enough computer programs executed by programmable device, which has is used for when being executed by the programmable device Execute the code section of the method for above-mentioned video playing.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally Disclosed thought equally should be considered as disclosure disclosure of that.

Claims (10)

1. a kind of method of video playing, which is characterized in that applied to by mixed mode mobile application play video terminal, The described method includes:
The enabled instruction to target object to be launched is obtained by the first H5 page of the mixed mode mobile application;
The address information of the target object is obtained according to the enabled instruction;
Determine whether the target object is the video object according to the address information;
If determining that the target object is the video object according to the address information, the primary page is generated, and by described The primary page loads the address information, to play the video object by the primary page.
2. the method according to claim 1, wherein the method also includes:
If determining that the target object is the video object according to the address information, forbid second according to the address information The H5 page loads the video object;The 2nd H5 page is the load video of mixed mode mobile application default The page of object.
3. the method according to claim 1, wherein described determine the target object according to the address information It whether is that the video object includes:
Determine in the address information whether include default video identification information;
If in the address information including the default video identification information, determine that the target object is the video object.
4. method according to any one of claims 1 to 3, which is characterized in that played described by the primary page After the target video, the method also includes:
Play instruction is exited if receiving, is retracted to described according to the play instruction control page that exits from the primary page The first H5 page.
5. a kind of device of video playing, which is characterized in that applied to by mixed mode mobile application play video terminal, Described device includes:
First obtains module, for being obtained by the first H5 page of the mixed mode mobile application to target pair to be launched The enabled instruction of elephant;
Second obtains module, for obtaining the address information of the target object according to the enabled instruction;
Determining module, for determining whether the target object is the video object according to the address information;
Video playback module, if being generated former for determining that the target object is the video object according to the address information The raw page, and the address information is loaded by the primary page, to play the video object by the primary page.
6. device according to claim 5, which is characterized in that described device further include:
Video disabled module, if for determining that the target object is the video object according to the address information, according to institute Stating address information forbids the 2nd H5 page to load the video object;The 2nd H5 page is the mixed mode mobile application The page of the load the video object of default.
7. device according to claim 5, which is characterized in that the determining module, for determining in the address information It whether include default video identification information;If including the default video identification information in the address information, the mesh is determined Mark object is the video object.
8. according to the described in any item devices of claim 5 to 7, which is characterized in that described device further include:
Page rollback module controls the page from described according to the play instruction that exits if exiting play instruction for receiving The primary page retracts to the first H5 page.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-4 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-4 The step of method.
CN201910651394.XA 2019-07-18 2019-07-18 Video playing method and device, storage medium and electronic equipment Active CN110430473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910651394.XA CN110430473B (en) 2019-07-18 2019-07-18 Video playing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910651394.XA CN110430473B (en) 2019-07-18 2019-07-18 Video playing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110430473A true CN110430473A (en) 2019-11-08
CN110430473B CN110430473B (en) 2022-03-04

Family

ID=68411127

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910651394.XA Active CN110430473B (en) 2019-07-18 2019-07-18 Video playing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110430473B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559069A (en) * 2020-12-08 2021-03-26 腾讯科技(深圳)有限公司 Running control method and device of sub-application, storage medium and electronic equipment
CN112947905A (en) * 2019-11-26 2021-06-11 腾讯科技(深圳)有限公司 Picture loading method and device
CN113949684A (en) * 2021-10-11 2022-01-18 杭州网易智企科技有限公司 Video transmission method, device, medium and computing equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526579A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of application program page development management method and device
CN108319708A (en) * 2018-02-06 2018-07-24 广东欧珀移动通信有限公司 Video broadcasting method, device, storage medium and electronic equipment
CN109358833A (en) * 2018-10-16 2019-02-19 阿里巴巴集团控股有限公司 A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium
CN109740090A (en) * 2018-12-25 2019-05-10 南京天溯自动化控制系统有限公司 A kind of android page return jump method and its system based on mixed developing
CN109951741A (en) * 2017-12-21 2019-06-28 阿里巴巴集团控股有限公司 Data object information methods of exhibiting, device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526579A (en) * 2016-06-22 2017-12-29 中兴通讯股份有限公司 A kind of application program page development management method and device
CN109951741A (en) * 2017-12-21 2019-06-28 阿里巴巴集团控股有限公司 Data object information methods of exhibiting, device and electronic equipment
CN108319708A (en) * 2018-02-06 2018-07-24 广东欧珀移动通信有限公司 Video broadcasting method, device, storage medium and electronic equipment
CN109358833A (en) * 2018-10-16 2019-02-19 阿里巴巴集团控股有限公司 A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium
CN109740090A (en) * 2018-12-25 2019-05-10 南京天溯自动化控制系统有限公司 A kind of android page return jump method and its system based on mixed developing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947905A (en) * 2019-11-26 2021-06-11 腾讯科技(深圳)有限公司 Picture loading method and device
CN112947905B (en) * 2019-11-26 2023-10-20 腾讯科技(深圳)有限公司 Picture loading method and device
CN112559069A (en) * 2020-12-08 2021-03-26 腾讯科技(深圳)有限公司 Running control method and device of sub-application, storage medium and electronic equipment
CN112559069B (en) * 2020-12-08 2022-04-12 腾讯科技(深圳)有限公司 Running control method and device of sub-application, storage medium and electronic equipment
CN113949684A (en) * 2021-10-11 2022-01-18 杭州网易智企科技有限公司 Video transmission method, device, medium and computing equipment

Also Published As

Publication number Publication date
CN110430473B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
CN110430473A (en) Method, apparatus, storage medium and the electronic equipment of video playing
JP7387891B2 (en) Video file generation method, device, terminal, and storage medium
CN104572042A (en) Cross-platform middleware device of mobile terminal equipment and implementation method of cross-platform middleware device of mobile terminal equipment
US20110113354A1 (en) Always-on-top media player launched from a web browser
CN107277601B (en) Video playing method and device
US20230379280A1 (en) Information interaction method, apparatus, device, storage medium and program product
JP2004102497A (en) Gui application development supporting device, gui display unit and method and its computer program
CN105791948A (en) Method and system for realizing starting video of smart television
WO2021135537A1 (en) Live broadcast content introduction method and apparatus, storage medium and device
CN104915977A (en) Animation file generation method and device for local application program
KR20190131074A (en) Virtual scene display method and device, and storage medium
CN111917768B (en) Virtual scene processing method and device and computer readable storage medium
CN108304234A (en) A kind of page display method and device
CN101770371A (en) Application theme content preview method and device
CN109815348A (en) Playback method, device, storage medium and the electronic equipment of multimedia file
CN111125562B (en) Method and equipment for switching display tag pages
CN113490063B (en) Method, device, medium and program product for live interaction
CN110851370B (en) Program testing method and device and storage medium
CN109348290A (en) Control method, apparatus, readable storage medium storing program for executing and the electronic equipment of video playing
KR20120124196A (en) The method for returning home screen in portable terminal with multi-software platform and device thereof
KR101447283B1 (en) Method, terminal, and recording medium for controlling screen output
CN112256991B (en) Method and equipment for native rendering of information flow fusing multiple link addresses
WO2014024255A1 (en) Terminal and video playback program
CN113791821A (en) Animation processing method, device, medium and electronic equipment based on illusion engine
CN101493845A (en) Method for implementing window assembly function and window assembly controller

Legal Events

Date Code Title Description
PB01 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