CN111372134B - Player calling method and terminal - Google Patents

Player calling method and terminal Download PDF

Info

Publication number
CN111372134B
CN111372134B CN202010313808.0A CN202010313808A CN111372134B CN 111372134 B CN111372134 B CN 111372134B CN 202010313808 A CN202010313808 A CN 202010313808A CN 111372134 B CN111372134 B CN 111372134B
Authority
CN
China
Prior art keywords
player
interface
native
storage address
video storage
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
CN202010313808.0A
Other languages
Chinese (zh)
Other versions
CN111372134A (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.)
Juhaokan Technology Co Ltd
Original Assignee
Juhaokan 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 Juhaokan Technology Co Ltd filed Critical Juhaokan Technology Co Ltd
Priority to CN202010313808.0A priority Critical patent/CN111372134B/en
Publication of CN111372134A publication Critical patent/CN111372134A/en
Application granted granted Critical
Publication of CN111372134B publication Critical patent/CN111372134B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • 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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/47202End-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 requesting content on demand, e.g. video on demand
    • 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/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Abstract

The application shows a player calling method and a terminal. The terminal is provided with a controller, and when first request content sent by the service server is received, if the currently pulled-up APP opens the first interface, the controller pulls up the native player and sends the video storage address to the native player. The native player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues movie resources corresponding to the request address to the native player. The native player plays the received movie resource. If the currently pulled-up APP does not open the first interface, the controller pulls up the H5 player and sends the received video storage address to the H5 player. The H5 player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues a movie resource corresponding to the request address to the H5 player.

Description

Player calling method and terminal
Technical Field
The disclosure relates to the technical field of intelligent terminals, in particular to a player calling method and a terminal.
Background
The method has an independent operating system and supports function expansion. The display device may install various applications in the display device according to user needs, for example, a social application such as a traditional movie application, a short movie, and the like. The display device uses the installed video APP (Application) to watch a movie, wherein the movie may be a short movie, a television show, a cartoon and other media.
Some existing video APPs are hybrid APPs, which employ JS (JavaScript, a lightweight, interpreted, or just-in-time compiled programming language with function priority) and Native programming languages at the same time. The hybrid APP has the advantages of good user experience of the Native App and low cost of cross-platform development of the Web App by using HTML 5.
However, when the native interface is called by JavaScript in Hybird APP, the problem of unsuccessful call is caused by different APP versions. For example, when a movie is played on a media asset detail page, a native player needs to be called to play the movie, so that the best playing experience is achieved. However, since the old version App does not open a call interface to the native player, the native player cannot be called for playing in the old version App.
Disclosure of Invention
Based on the foregoing technical problem, an object of the present invention is to provide a player invoking method and a terminal.
The embodiment of the application shows a terminal, which comprises:
the display is used for displaying a display interface;
a controller configured to:
responding to an instruction of starting the APP input by a user, and controlling the display to display a display interface;
responding to the fact that a playing control displayed on a display interface is selected, and sending a first request instruction carrying a target film ID to a media resource server to enable the media resource server to issue first request content, wherein the target film ID is a film ID corresponding to a film loaded by playing control, and the first request content at least comprises a video storage address corresponding to the target film ID;
if the APP opens a first interface, the video storage address is sent to the native player, and the first interface is an interface for interacting with the native player;
and if the APP does not open the first interface, sending the video storage address to an H5 player.
The embodiment of the application shows a player calling method, which comprises the following steps:
responding to the fact that a playing control displayed on a display interface is selected, and sending a first request instruction carrying a target film ID to a media resource server so that the media resource server sends first request content, wherein the first request content at least comprises a video storage address corresponding to the target film ID;
If the APP opens a first interface, the video storage address is sent to the native player, and the first interface is an interface used for interacting with the native player;
and if the APP does not open the first interface, sending the video storage address to an H5 player, so that the H5 player sends a second request instruction carrying the video storage address to a movie server.
According to the technical scheme, the player calling method and the terminal are shown in the embodiment of the application. The terminal is provided with a controller. When the controller receives a first request content sent by the service server, the first request content at least comprises a video storage address, the controller judges whether the currently pulled-up APP opens the first interface, if the currently pulled-up APP opens the first interface, the controller pulls up the native player and sends the received video storage address to the native player. The native player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues movie resources corresponding to the request address to the native player. The native player plays the received movie resource. If the currently pulled-up APP does not open the first interface, the controller pulls up the H5 player and sends the received video storage address to the H5 player. The H5 player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues a movie resource corresponding to the request address to the H5 player. The H5 player plays the received movie asset.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is an interaction diagram of a terminal and a server according to a possible embodiment;
FIG. 2 is a schematic diagram of a display interface shown in accordance with one possible embodiment;
FIG. 3 is a schematic diagram of a display interface shown in accordance with one possible embodiment;
FIG. 4 is an interaction diagram illustrating a terminal and a server according to one possible embodiment;
FIG. 5 is a flowchart illustrating a method for determining whether a Native interface is attached to a bridge according to one possible embodiment;
fig. 6 is a diagram illustrating interaction between a terminal and a server according to a possible embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Most of the APPs installed in the terminal are Hybird APPs, but when JavaScript calls a native interface in the Hybird APP, the problem of unsuccessful call is caused due to different versions of the APPs. For example, when a movie is played on a media asset detail page, a native player needs to be called to play the movie, so that the best playing experience is achieved. However, since the old version App does not open a call interface to the native player, the native player cannot be called for playing in the old version App.
In order to solve the above technical problem, a technical solution shown in the embodiment of the present application shows a terminal. The interaction process of the terminal 1 and the server 2 can refer to fig. 1.
In the technical solution shown in the embodiment of the present application, the type of the terminal 1 is not limited, and the terminal 1 may be a display device, a mobile phone, or a device in which an iPad can install a video APP.
Before the terminal 1 interacts with the server, the terminal 1 needs to receive instructions input by the user through the user interface.
In the technical scheme shown in some embodiments of the present application, a user may interact with the terminal 1 through a voice instruction, and accordingly, the instruction input by the user in the present application is a voice instruction; specifically, the interaction process may be: enabling a radio function of a user interface by a user based on the awakening words; for example, the user speaks a wake-up word before interacting with the terminal 1; at this time, the terminal 1 receives a voice command input by the user through the user interface. The user can also interact through the remote controller terminal 1, and the specific interaction process can be that the terminal 1 controls to respond to the instruction initiated by the user through the remote controller to make corresponding action; for example, the user presses a corresponding key on the remote controller, and the remote controller sends a chat start signal to the user interface, and at this time, the controller may receive an operation instruction input by the user through the first interface.
In response to the operation instruction input by the user being a control instruction for starting the video APP, the controller 11 controls the display 12 to display a display interface. Fig. 2 is a display interface shown according to a feasible embodiment, where the display interface includes a playing window 1A and a floating layer window 1B located above the playing window 1A, the playing window is used to display the top page data of the APP, the floating layer window is used to display a playing control, and the playing control is used to load a service page of a linked movie.
In some embodiments, the playing window and the first floating layer window are native windows of the display interface, and may be located on the same layer or different layers.
In some embodiments, the drawing of the display interface is set to different layers, and the operator may implement different combinations of the display interfaces by configuring different layers.
In some embodiments, the display interface is configured as different layers, but is still decoded and displayed as movie layer data during data encoding and decoding, so that the display interface is operated as a layer of display data through a movie layer decoder in the SOC during displaying, and the floating layer is generated by the layer generator alone, which is beneficial to reducing the workload of the layer generator.
The controller 11 is configured to execute step S11, in response to a play control displayed on the display interface being selected, to send a first request instruction carrying a target movie ID to the media resource server; the target movie ID is a movie ID corresponding to the movie loaded by the play control, and the first request content at least includes a video storage address corresponding to the target movie ID.
The application relates to two servers, wherein one server is a media resource server 21, and the media resource server 21 is used for configuring first request content for request information in advance and calling corresponding first request content by reading the request information carried by a first request instruction. The other is a movie server 22, and the movie server 22 is configured to read a video storage address carried in a second request instruction uploaded by the player, call a corresponding movie resource based on the video storage address, and finally issue the called movie resource to the player.
In the embodiment of the application, the request information may be an ID of a movie, a terminal ID, or a user account corresponding to a currently pulled APP. The media asset server 21 configures a first request content for each request message in advance according to the requirement. In some embodiments, the first requested content may include information of a director of the movie, a year of the movie showing, a genre of the movie, and the like. In some embodiments, the first requested content may include information such as the type of movie, the production team for the movie, and the like.
Specifically, in the application environment shown in this embodiment, in response to selection of a play control displayed on a display interface, the controller sends a first request instruction carrying a target movie ID to the media resource server 21; and the target movie ID is a movie ID corresponding to the movie loaded by the play control.
S12, the asset server 21 issues a first request content, where the first request content at least includes a video storage address corresponding to the target movie ID;
taking the display interface shown in fig. 2 as an example, when the controller 11 pulls up the pop-up APP, the display 12 enters the display interface. Three playing controls are arranged on the display interface and are respectively used for loading a business page corresponding to a TV drama 'I is Yuhuan water', a business page corresponding to a TV drama 'Qingping Le' and a business page corresponding to a TV drama 'Longling grotto'. In response to the click operation of the user on the play control corresponding to the service page for loading the tv drama "i am water, the controller 11 sends a first request instruction carrying an ID of" i am water to the media resource server 21.
The media asset server 21 prestores a first list, where the first list is used to record a movie ID and a first request content corresponding to the movie ID. When the media resource server 21 receives a first request instruction sent by the terminal 1, the media resource server 21 traverses the first list, screens out a target movie ID matched with the ID of' i am water, and sends first request content corresponding to the target movie ID to the terminal 1. In this embodiment, the content of the first request at least includes a video storage address corresponding to "i am water on the fly" in the movie server 22.
S13, if the APP opens a first interface, the video storage address is sent to the native player, and the first interface is an interface for interacting with the native player;
s14, if the APP does not open the first interface, the video storage address is sent to an H5 player.
The technical solution shown in the present application relates to two kinds of players, namely a native player 12 and an H5 player 13. Native players 12 are built for a particular APP platform, are more interactive, intuitive, and operate more smoothly in terms of user input and output, providing a better experience for the user. Based on this, in this embodiment, it is determined in advance whether the currently pulled-up APP opens the first interface for interacting with the native player, and if the currently pulled-up APP opens the first interface, the movie selected by the user is played by using the native player. If the currently pulled-up APP does not open the first interface, the controller 11 pulls up the H5 player 13 in order to ensure that the movie selected by the user can be played, and then plays the movie selected by the user using the H5 player 13.
The operation of the terminal 1 shown in the present application will be described in detail with reference to specific examples.
In some feasible embodiments, the user pulls up the looking-up APP through a touch operation, and the controller 11 controls the display 12 to display a display interface, which may refer to fig. 2. Three playing controls are arranged on the display interface and are respectively used for loading a business page corresponding to a TV drama 'I is Yuhuan water', a business page corresponding to a TV drama 'Qingping Le' and a business page corresponding to a TV drama 'Longling grotto'. The user clicks a play control corresponding to the service page for loading the drama my be water, and the controller 11 sends a first request instruction carrying an ID of my be water to the media resource server 21. The media resource server 21 calls the corresponding video storage address of the mys water of remainders in the movie server 22 and sends the video storage address to the controller 11. The controller 11 determines that the open first interface of the pop-up APP is currently being pulled up, and the controller 11 pulls up the native player 12. When the native player 12 is pulled up, the controller 11 sends a video storage address to the native player 12. The native player 12 generates a second request instruction based on the video storage address and uploads the second request instruction to the movie server 22. After receiving the second request instruction, the movie server 22 first reads the video storage address carried by the second request instruction; then calling a film resource corresponding to the video storage address; and finally, issuing the movie resource to the native player 12. The native player 12 plays the movie resource of my be yuhuan water issued by the movie server 22.
In some feasible embodiments, the user pulls up the ai-chi art APP through a touch operation, and the controller 11 controls the display 12 to display a display interface, which may refer to fig. 3. Two playing controls are arranged on the display interface and are respectively used for loading a business page corresponding to the television drama 'I am Yuhuan Water' and a business page corresponding to the television drama 'national treasures'. The user clicks a play control corresponding to the service page for loading the drama my be water, and the controller 11 sends a first request instruction carrying an ID of my be water to the media resource server 21. The media resource server 21 calls the corresponding video storage address of the mys water of remainders in the movie server 22 and sends the video storage address to the controller 11. The controller 11 determines that the pull-up art APP does not open the first interface at present, based on which the controller 11 pulls up the H5 player 11. When the H5 player 11 is pulled up, the controller 11 sends the video storage address to the H5 player 11. The H5 player 11 generates a second request instruction based on the video storage address and uploads the second request instruction to the movie server 22. After receiving the second request instruction, the movie server 22 first reads the video storage address carried by the second request instruction; then calling the film resource of 'I is the water of the remainder' corresponding to the video storage address; and finally, issuing the movie resource to the H5 player 11. The H5 player 11 plays the movie resource of "my be water" issued by the movie server 22.
It can be seen that the terminal 1 shown in the embodiment of the present application is provided with the display 12 and the controller 11, when receiving a first request content sent by the media resource server 21, where the first request content at least includes a video storage address, the controller 11 determines whether the currently pulled-up APP opens the first interface, and if the currently pulled-up APP opens the first interface, the controller 11 pulls up the native player 12 and sends the received video storage address to the native player 12. The native player 12 generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues a movie resource corresponding to the request address to the native player 12. The native player 12 plays the received movie asset. If the currently pulled-up APP does not open the first interface, the controller 11 pulls up the H5 player 13 and sends the received video storage address to the H5 player 13. The H5 player 13 generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues a movie resource corresponding to the request address to the H5 player 13. The H5 player 13 plays the received movie asset.
On the basis of the terminal 1 shown in the above embodiment, the terminal 1 may determine whether the first interface of the currently pulled-up APP is open to the native player 12 through a preset rule. In particular, the interaction process of the terminal 1 and the server can refer to fig. 4. The controller 11 is configured to execute step S21, in response to the play control displayed on the display interface being selected, to send a first request instruction carrying the target movie ID to the asset server 21;
for the sending manner of the first request, reference may be made to the foregoing embodiment, and details are not described herein.
S22, the media resource server 21 issues a first request content, where the first request content at least includes a video storage address corresponding to the target movie ID;
the manner of issuing the first request content may refer to the above embodiments, which are not described herein again.
S231, in response to receiving that the media asset server 21 issues the first request content, calling a preset check rule, where the preset check rule is used to determine whether the APP opens the first interface;
s232, if the native player accords with the preset check rule, sending the video storage address to the native player;
in the solution shown in the embodiment of the present application, the controller 11 declares a preset check rule of CanIUse in advance, and in response to receiving that the media resource server 21 issues the first request content, the controller 11 invokes the preset check rule of CanIUse, and checks a data structure in the window object based on the preset check rule of CanIUse, thereby determining whether the currently pulled APP opens the first interface.
The preset check rule of cantius may be to determine whether the pull-up APP opens the first interface by identifying whether a Native interface (in this embodiment, the Native interface may also be referred to as a second interface) of the Native player 12 is mounted on the bridge. Specifically, if the Native interface of the Native player 12 is hooked to the bridge, the front-pulled APP is communicated with the Native interface of the Native player 12 through the bridge, that is, the currently-pulled APP opens the first interface, and correspondingly, the controller 11 can pull up the Native player 12 and call the Native method processing service to achieve the best product experience. If the Native interface of the Native player 12 is not hung on the bridge, the front-pulled APP is not communicated with the Native interface of the Native player 12 through the bridge, that is, the first interface is not opened by the current-pulled APP, and correspondingly, the controller 11 may pull up the H5 player 13 to play the movie with the H5 player 13.
The embodiment of the application shows a method for judging whether the Native interface of the Native player 12 is connected to the bridge. A specific implementation may refer to fig. 5, wherein the controller 11 is configured to perform the following steps:
s2311, in response to receiving the first request content issued by the media asset server 21, invoking a name of a second interface and an interface calling function set of a bridge, where the second interface is an interface of the native player 12 for interacting with the controller 11;
The second interface in this embodiment is a Native interface of the Native player 12, which is used for interacting with the controller 11 of the APP. The Native player 12 corresponding to each APP is configured with a Native interface name, which may serve as a unique identifier.
In this embodiment, the controller 11 stores in advance an interface calling function set, which is a set of calling functions corresponding to interfaces that can be called by the bridge. Table 1 shows a set of interface call functions in the Android system according to a feasible embodiment.
TABLE 1
Serial number Interface calling function
1 Window, vodwebapp interface 1Player]
2 Window, vodwebapp interface 2Player]
3 Window, vodwebapp interface 3Player]
4 Window, vodwebapp interface 4Player]
5 Window, vodwebapp interface 5Player]
6 Window, vodwebapp interface 6Player]
7 Window, vodwebapp interface 7Player]
8 Window, vodwebapp interface 8Player]
Table 2 illustrates a set of interface call functions in an IOS system according to one possible embodiment.
TABLE 2
Serial number Interface calling function
1 Window, webkit, messageHandlers interface 1Player]
2 Window, webkit, messageHandlers interface 2Player]
3 Window, webkit, messageHandlers interface 3Player]
4 Window, webkit, messageHandlers interface 4Player ]
5 Window, webkit, messagehandles interface 5Player]
6 Window, webkit, messagehandles interface 6Player]
7 Window, webkit, messagehandles interface 7Player]
S2312, if the interface calling function set includes a calling function matching the name of the second interface, sending the video storage address to the native player 12.
S2313, if the interface calling function set does not include a calling function matching the name of the second interface, sending the video storage address to the H5 player 13;
for example, for a terminal 1 using the Android system, a user pulls up an APP according to a requirement, and the Native interface name of the Native Player 12 corresponding to the APP is "interface 8 Player". In this embodiment, the interface calling function set of the bridge may refer to table 1, the interface calling function set includes a calling function matched with the name of the second interface, and based on this, it may be determined that the native player 12 corresponding to the currently pulled-up APP meets the preset check rule. In this case, the controller 11 may pull up the native player 12, invoking native method processing services to achieve the best product experience.
S24 if the APP does not open the first interface, sending the video storage address to the H5 player 13.
For example, for a terminal 1 using the IOS system, the user pulls up an APP as required, and the Native interface name of the Native Player 12 corresponding to the APP is "interface 9 Player". In this embodiment, the interface calling function set of the bridge may refer to table 2, the interface calling function set does not include a calling function matched with the name of the second interface, and based on this, it may be determined that the native player 12 corresponding to the currently pulled-up APP does not conform to the preset check rule, that is, the currently pulled-up APP does not open the first interface. In this case, the controller 11 may pull up the H5 player 13 and play the movie using the H5 player 13.
The embodiment of the application shows a terminal. In particular, the interaction process of the terminal 1 and the server can refer to fig. 6. The terminal 1 includes a display 12 and a controller 11, where the controller 11 is configured to execute step S31, in response to a play control displayed on a display interface being selected, to send a first request instruction carrying a target movie ID to the media resource server 21;
s32, the asset server 21 issues a first request content, where the first request content at least includes a video storage address corresponding to the target movie ID;
The method for issuing the first request content may refer to the foregoing embodiment, and details are not described here.
S331, in response to receiving the first request content issued by the media asset server 21, reads a system identification value;
in a feasible embodiment, the system identification value may be an os name field;
the specific way to read the identification value may be the os name field read by usergent.
S332, if the system identification value is a first preset identification value, calling a first preset check rule;
s333, if the system identification value is a second preset identification value, calling a second preset check rule;
in some feasible embodiments, the system of the terminal 1 may be an IOS system or an Android system, and the corresponding first preset identification value may be an IOS, and the second preset identification value may be an Android. The present embodiment shows only two preset identification values by way of example. In the practical application process, a plurality of preset identification values can be set according to requirements, and the applicant does not make much limitation.
S334, if the native player 12 meets the corresponding preset verification rule, sending the video storage address to the native player 12;
S34, if the native player 12 does not comply with the corresponding preset verification rule, sending the video storage address to the native player 12, and then sending the video storage address to the H5 player 13.
For example, the user pulls up the looking-up APP through touch operation, and the controller 11 controls the display 12 to display a display interface, which may be referred to in fig. 2. Three playing controls are arranged on the display interface and are respectively used for loading a business page corresponding to the 'my is Yuhuan water' TV drama, a business page corresponding to the 'Qingping Le' TV drama and a business page corresponding to the 'Longling grotto' TV drama. The user clicks a play control corresponding to the service page for loading the drama me zhihuan shui, and the controller 11 sends a first request instruction carrying an ID of me zhihuan shui to the media resource server 21. The media resource server 21 calls the corresponding video storage address of "i am yuhuan water" in the movie server 22, and sends the video storage address to the controller 11. In response to receiving the video storage address sent by the media resource server 21, the controller 11 uses the user angent to read the 0s name field as Android; in this embodiment, the interface calling function set of the bridge may refer to table 1, and the interface calling function set includes a calling function matched with the "interface 8 Player", based on which it may be determined that the Native Player 12 corresponding to the currently pulled-up APP conforms to the preset check rule. In this case, the controller 11 may pull up the native player 12. When the native player 12 is pulled up, the controller 11 sends a video storage address to the native player 12. The native player 12 generates a second request instruction based on the video storage address and uploads the second request instruction to the movie server 22. After receiving the second request instruction, the movie server 22 first reads a video storage address carried by the second request instruction; then, calling the film resource of 'I is the water of the remainder' corresponding to the video storage address; and finally, issuing the movie resource to the native player 12. The native player 12 plays the movie resource of my be yuhuan water issued by the movie server 22.
In some feasible embodiments, the user pulls up the ai-chi art APP through a touch operation, and the controller 11 controls the display 12 to display a display interface, which may refer to fig. 3. The display interface is provided with two playing controls which are respectively used for loading a business page corresponding to the 'My Yuhuan Water' of the TV drama and a business page corresponding to the 'national treasures' of the TV drama. The user clicks a play control corresponding to the service page for loading the drama my be water, and the controller 11 sends a first request instruction carrying an ID of my be water to the media resource server 21. The media resource server 21 calls the corresponding video storage address of the mys water of remainders in the movie server 22 and sends the video storage address to the controller 11 of the terminal 1. In response to receiving the video storage address sent by the media resource server 21, the os name field read by the user agent is the IOS, and the Native interface name of the Native Player 12 corresponding to the currently pulled-up APP is read by the controller 11 as the "interface 8 Player". In this embodiment, the interface calling function set of the bridge may refer to table 2, and the interface calling function set does not include a calling function matched with the name of "interface 8 Player", based on which it may be determined that the native Player 12 corresponding to the currently pulled-up APP does not conform to the preset check rule, and the aiti APP does not open the first interface. In this case, the controller 11 may pull up the H5 player 13 and play the movie using the H5 player 13.
An embodiment of the present application further provides a player calling method, including:
responding to the fact that a playing control displayed on a display interface is selected, and sending a first request instruction carrying a target film ID to a media resource server 21 so that the media resource server 21 issues a first request content, wherein the first request content at least comprises a video storage address corresponding to the target film ID;
if the APP opens a first interface, sending the video storage address to the native player 12, where the first interface is an interface for connecting with the native player 12;
and if the APP does not open the first interface, sending the video storage address to the H5 player 13, so that the H5 player 13 sends a second request instruction carrying the video storage address to the movie server 22.
Optionally, in response to receiving the first request content issued by the media asset server 21, invoking a preset check rule, where the preset check rule is used to determine whether the APP opens the first interface;
and if the native player 12 conforms to the preset check rule, the APP opens the first interface.
Optionally, the preset verification rule includes a first preset verification rule and a second preset verification rule, and the first preset verification rule is different from the second preset verification rule;
Reading a system identification value in response to receiving a first request content issued by the media asset server 21, wherein the system identification value is used for recording a system environment deployed by the terminal 1;
if the system identification value is a first preset identification value, calling a first preset check rule;
and calling a second preset check rule if the system identification value is a second preset identification value.
Optionally, in response to receiving the first request content issued by the media asset server 21, calling a name of a second interface and an interface calling function set of a bridge, where the second interface is an interface used by the native player 12 for interacting with the controller 11;
and if the interface calling function set comprises a calling function matched with the name of the second interface, the APP opens the first interface.
The player calling method is suitable for a terminal, particularly a social television, and the terminal is provided with a controller. When first request content sent by a service server is received, the first request content at least comprises a video storage address, the controller judges whether the currently pulled-up APP opens the first interface, if the currently pulled-up APP opens the first interface, the controller pulls up the native player and sends the received video storage address to the native player. The native player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues movie resources corresponding to the request address to the native player. The native player plays the received movie resource. If the currently pulled-up APP does not open the first interface, the controller pulls up the H5 player and sends the received video storage address to the H5 player. The H5 player generates a second request instruction based on the received video storage address, and outputs the second request instruction to the movie player, so that the movie player issues a movie resource corresponding to the request address to the H5 player. The H5 player plays the received movie asset.
Those skilled in the art will recognize that the prior art has advanced to the following levels: the differences between hardware and software implementations of aspects of the system are small, and the use of hardware or software is often (but not always, because it becomes important in some circumstances) a design choice that trades off cost against efficiency. Those skilled in the art will appreciate that there are many means (e.g., hardware, software, and/or firmware) by which the processes and/or systems and/or other techniques described herein can be implemented, and that the preferred means will vary with the environment in which the processes and/or systems and/or other techniques are deployed.
It will be appreciated by those of ordinary skill in the art that all or a portion of the subject matter of the present application may be implemented in software, in combination with hardware and/or firmware. For example, the subject matter described herein may be implemented in software executed by one or more processors. In one exemplary embodiment, the subject matter described herein may be implemented using a non-transitory computer-readable medium having stored thereon computer-executable instructions that, when executed by a computer processor, control the computer to perform steps. Example computer readable media suitable for implementing the subject matter described herein include non-transitory computer readable media such as disk memory devices, chip memory devices, programmable logic devices, and application specific integrated circuits. In addition, a computer-readable medium embodying the subject matter described herein may be located on a single device or computing platform or may be distributed across multiple devices or computing platforms.
Finally, it should be understood that the above embodiments are for illustration only and are not limited to the technical solutions of the present application. While the present application has been described in detail with reference to the preferred embodiments, it should be understood that various changes, modifications and equivalents may be made by those skilled in the art without departing from the scope of the present application and the appended claims.

Claims (10)

1. A terminal, comprising:
the display is used for displaying a display interface;
a controller configured to:
responding to an instruction of starting hybrid APP input by a user, and controlling a display to display a display interface;
responding to the fact that a playing control displayed on a display interface is selected, and sending a first request instruction carrying a target film ID to a media resource server to enable the media resource server to issue first request content, wherein the target film ID is a film ID corresponding to a film loaded by playing control, and the first request content at least comprises a video storage address corresponding to the target film ID;
in response to receiving the first request content, identifying whether a Native interface of a Native player has been mounted on a bridge;
if the Native interface of the Native player is mounted on the bridge, pulling up the Native player, and sending the video storage address to the Native player, so that the Native player acquires and plays movie resources based on the storage address;
If the Native interface of the Native player is not mounted on the bridge, the H5 player is pulled up, and the video storage address is sent to the H5 player, so that the H5 player acquires and plays movie resources based on the storage address.
2. The terminal of claim 1, wherein the controller is further configured to:
and in response to receiving the first request content issued by the media asset server, calling a preset check rule, wherein the preset check rule is used for identifying whether a Native interface of the Native player is mounted on the bridge.
3. The terminal of claim 2, wherein the preset check rule comprises a first preset check rule and a second preset check rule, and the first preset check rule is different from the second preset check rule;
the controller is further configured to:
reading a system identification value in response to receiving a first request content issued by the media asset server, wherein the system identification value is used for recording a system environment deployed by a terminal;
if the system identification value is a first preset identification value, calling a first preset check rule;
and calling a second preset check rule if the system identification value is a second preset identification value.
4. The terminal of claim 1, further comprising a bridge, the controller further configured to:
in response to receiving that the media resource server issues a first request content, calling a name of a second interface and an interface calling function set of a bridge, wherein the second interface is an interface used for interaction between a native player and a controller;
and if the interface calling function set comprises a calling function matched with the name of the second interface, the Native interface of the Native player is mounted on the bridge.
5. The terminal of claim 1, further comprising a native player configured to:
responding to a video storage address sent by a controller, and sending a second request instruction carrying the video storage address to a film server so that the film server issues a film resource corresponding to the video storage address;
and playing the movie resource.
6. The terminal of claim 1, further comprising an H5 player, the H5 player configured to:
responding to a video storage address sent by a controller, and sending a second request instruction carrying the video storage address to a film server so that the film server issues a film resource corresponding to the video storage address;
And playing the movie resource.
7. A player invocation method, comprising:
starting a hybrid APP, and displaying a display interface;
responding to the fact that a playing control displayed on the display interface is selected, and sending a first request instruction carrying a target film ID to a media resource server, so that the media resource server sends first request content, wherein the first request content at least comprises a video storage address corresponding to the target film ID;
in response to receiving the first request content, identifying whether a Native interface of a Native player has been mounted on a bridge;
if the Native interface of the Native player is mounted on the bridge, pulling up the Native player, and sending the video storage address to the Native player, so that the Native player acquires and plays movie resources based on the storage address;
if the Native interface of the Native player is not mounted on the bridge, the H5 player is pulled up, and the video storage address is sent to the H5 player, so that the H5 player acquires and plays movie resources based on the storage address.
8. The method of claim 7, wherein in response to receiving the first request content issued by the media asset server, invoking a preset check rule, the preset check rule being used for identifying whether a Native interface of a Native player is already mounted on the bridge.
9. The method of claim 8, wherein the preset validation rules include a first preset validation rule and a second preset validation rule, the first preset validation rule being different from the second preset validation rule;
responding to the received first request content issued by the media resource server, and reading a system identification value, wherein the system identification value is used for recording a system environment deployed by a terminal;
if the system identification value is a first preset identification value, calling a first preset check rule;
and calling a second preset verification rule if the system identification value is a second preset identification value.
10. The method of claim 7, wherein in response to receiving a first request content issued by the media asset server, calling a name of a second interface and an interface calling function set of a bridge, wherein the second interface is an interface of a native player for interacting with a controller;
and if the interface calling function set comprises a calling function matched with the name of the second interface, the Native interface of the Native player is mounted on the bridge.
CN202010313808.0A 2020-04-20 2020-04-20 Player calling method and terminal Active CN111372134B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010313808.0A CN111372134B (en) 2020-04-20 2020-04-20 Player calling method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010313808.0A CN111372134B (en) 2020-04-20 2020-04-20 Player calling method and terminal

Publications (2)

Publication Number Publication Date
CN111372134A CN111372134A (en) 2020-07-03
CN111372134B true CN111372134B (en) 2022-05-24

Family

ID=71210964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010313808.0A Active CN111372134B (en) 2020-04-20 2020-04-20 Player calling method and terminal

Country Status (1)

Country Link
CN (1) CN111372134B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954867A (en) * 2015-06-26 2015-09-30 努比亚技术有限公司 Media playing method and device
CN105681905A (en) * 2016-01-28 2016-06-15 深圳国微技术有限公司 Smart television and method and device for improving adaptability of application program thereof
CN106162362A (en) * 2015-04-20 2016-11-23 中兴通讯股份有限公司 A kind of video broadcasting method and player
CN106843975A (en) * 2017-01-24 2017-06-13 深圳创维-Rgb电子有限公司 Extend the method and device of HTML5 application functions
CN106899889A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Video broadcasting method and device in application program
CN106899895A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Video broadcasting method and device in application program
CN107277586A (en) * 2017-07-19 2017-10-20 西安领讯卓越信息技术有限公司 A kind of mobile terminal video player method
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130074131A1 (en) * 2011-09-15 2013-03-21 Milestone Project, Inc. System and method for integrating and controlling web-based html players in a native context
GB2536887B (en) * 2015-03-27 2021-05-05 Sony Europe Bv Video content replay
CN106534910B (en) * 2016-12-02 2021-06-01 腾讯科技(深圳)有限公司 Multimedia playing control system, method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106162362A (en) * 2015-04-20 2016-11-23 中兴通讯股份有限公司 A kind of video broadcasting method and player
CN104954867A (en) * 2015-06-26 2015-09-30 努比亚技术有限公司 Media playing method and device
CN106899889A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Video broadcasting method and device in application program
CN106899895A (en) * 2015-12-18 2017-06-27 北京奇虎科技有限公司 Video broadcasting method and device in application program
CN105681905A (en) * 2016-01-28 2016-06-15 深圳国微技术有限公司 Smart television and method and device for improving adaptability of application program thereof
CN106843975A (en) * 2017-01-24 2017-06-13 深圳创维-Rgb电子有限公司 Extend the method and device of HTML5 application functions
CN107277586A (en) * 2017-07-19 2017-10-20 西安领讯卓越信息技术有限公司 A kind of mobile terminal video player method
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
hybrid app之native与h5交互;sobird;《https://sobird.me/hybrid-app-native-h5-jsbridge.htm》;20190909;全文 *

Also Published As

Publication number Publication date
CN111372134A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
US20190026075A1 (en) Electronic device, server and control method thereof
US10447814B2 (en) Joint servicing of software packages
CN110673964A (en) Audio playing control method and device of vehicle-mounted system
JP2014057312A (en) Personality-based device
CN111556353A (en) Video playing method, video playing management device and terminal equipment
US11211063B2 (en) Multimedia device for processing voice command
CN114339383A (en) Display device and multi-Bluetooth audio output method
CN104615432B (en) Splash screen information processing method and client
CN111372134B (en) Player calling method and terminal
JP2020004379A (en) Method and device for releasing information, and method and device for processing information
CN113066491A (en) Display device and voice interaction method
EP3660841B1 (en) Multimedia device for processing voice command
CN113676761B (en) Multimedia resource playing method and device and main control equipment
CN114860131A (en) Control method, device, equipment, medium and product for vehicle-mounted multimedia application
CN113079400A (en) Display device, server and voice interaction method
CN113766345A (en) Method for playing random push video and set top box
CN113068078A (en) Network and content switching method and device thereof
CN113316014A (en) Display device, server and third-party data display control method
CN113791777A (en) Picture display method and device, computer readable storage medium and electronic equipment
CN115298650A (en) Voice control method and intelligent terminal
CN113782021B (en) Display equipment and prompt tone playing method
CN110968706B (en) Method, system and terminal for controlling slide show animation
CN113207042B (en) Media asset playing method and display equipment
CN111427992A (en) Conversation processing method and device
CN112817911B (en) File system repairing method and terminal equipment

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