CN114845168B - Multimedia resource playing method and device, electronic equipment and medium - Google Patents

Multimedia resource playing method and device, electronic equipment and medium Download PDF

Info

Publication number
CN114845168B
CN114845168B CN202210491367.2A CN202210491367A CN114845168B CN 114845168 B CN114845168 B CN 114845168B CN 202210491367 A CN202210491367 A CN 202210491367A CN 114845168 B CN114845168 B CN 114845168B
Authority
CN
China
Prior art keywords
advertisement
domain name
multimedia resource
resource
multimedia
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
CN202210491367.2A
Other languages
Chinese (zh)
Other versions
CN114845168A (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.)
Beidou Xingtong Zhilian Technology Nanjing Co ltd
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
Beidou Xingtong Zhilian Technology Nanjing Co ltd
BDstar Intelligent and Connected Vehicle 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 Beidou Xingtong Zhilian Technology Nanjing Co ltd, BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical Beidou Xingtong Zhilian Technology Nanjing Co ltd
Priority to CN202210491367.2A priority Critical patent/CN114845168B/en
Publication of CN114845168A publication Critical patent/CN114845168A/en
Application granted granted Critical
Publication of CN114845168B publication Critical patent/CN114845168B/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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/454Content or additional data filtering, e.g. blocking advertisements
    • 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/812Monomedia components thereof involving advertisement data
    • 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
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Abstract

The application provides a multimedia resource playing method, a device, electronic equipment and a medium, wherein the method comprises the following steps: after a multimedia resource acquisition request is sent to a multimedia resource server, a returned first resource access address is received; if the first resource access address is detected to be matched with a preset advertisement domain name, acquiring a preset local address mapped by the preset advertisement domain name; generating address access failure information after accessing the preset local address, and sending the address access failure information to the multimedia resource server; and receiving a second resource access address which is sent by the multimedia resource server and can access the multimedia resource, and acquiring and playing the multimedia resource by accessing the second resource access address, so that advertisements are skipped by redirecting the first resource access address.

Description

Multimedia resource playing method and device, electronic equipment and medium
Technical Field
The present invention relates to the field of video playing, and in particular, to a method, an apparatus, an electronic device, and a medium for playing a multimedia resource.
Background
The development trend of the intellectualization and the electrodynamic performance of the automobile is obvious, and along with the development of the high and new technology, the automobile is changed into a new type of 'moving a third space' from the traditional travel riding tool. The automobile has the scene modes such as an electric charging mode, a noon break rest mode, an automatic driving mode and the like, and drivers and passengers have more demands on entertainment functions of a cabin system while releasing both hands. Ecological multimedia applications such as online video, online sound and the like are increasingly used in automobile cabin systems. However, in the process of playing video and audio, even if members are purchased, a large number of advertisement insertion situations exist, so that the watching experience of drivers and passengers is poor.
Disclosure of Invention
Accordingly, an object of the present application is to provide a method, an apparatus, an electronic device, and a medium for playing multimedia resources, which can filter advertisements in multimedia resources and improve viewing experience of drivers and passengers.
The method for playing the multimedia resource provided by the embodiment of the application is applied to the terminal equipment, and comprises the following steps:
after a multimedia resource acquisition request is sent to a multimedia resource server, a first resource access address returned by the multimedia resource server is received;
If the first resource access address is detected to be matched with a preconfigured advertisement domain name, acquiring a preset local address mapped by the preconfigured advertisement domain name, wherein the preset local address does not comprise accessible resources;
generating address access failure information after accessing the preset local address, and sending the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
and receiving a second resource access address which is sent by the multimedia resource server and can access the multimedia resource, and acquiring and playing the multimedia resource by accessing the second resource access address.
In some embodiments, the method for playing multimedia resources further includes:
detecting whether the multimedia resource acquisition request meets advertisement filtering conditions or not; the terminal equipment sends a multimedia resource acquisition request to a multimedia resource server through an installed Software Development Kit (SDK), and then determines that the multimedia resource acquisition request meets advertisement filtering conditions; if the terminal equipment is detected to send a multimedia resource acquisition request to a multimedia resource server through a browser, determining that the multimedia resource acquisition request does not meet advertisement filtering conditions;
If yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the method for playing multimedia resources further includes:
detecting whether a Software Development Kit (SDK) installed by the terminal equipment is preconfigured into an advertisement filtering mode or not; wherein the advertisement filtering mode is configured by a configuration operation for the software development kit SDK;
if yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the method for playing multimedia resources further includes:
detecting whether a Software Development Kit (SDK) installed by the terminal equipment is in a pre-configured advertisement filtering white list or not; the advertisement filtering white list is determined according to the white list message received by the terminal equipment;
if not, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the method for playing multimedia resources further includes detecting whether the first resource access address matches a preconfigured advertisement domain name, including:
extracting a target domain name in the first resource access address;
Detecting whether an advertisement domain name consistent with the target domain name exists in the pre-configured advertisement domain name or not;
if so, the first resource access address is judged to be matched with the preconfigured advertisement domain name.
In some embodiments, the method for playing multimedia resources further includes:
receiving an advertisement domain name table sent by an advertisement domain name platform, and configuring an advertisement domain name through the advertisement domain name table; the advertisement domain name platform captures domain names in the advertisement server and generates the advertisement domain name table according to domain names conforming to preset advertisement rules.
In some embodiments, the method for playing multimedia resources further includes, after receiving an advertisement domain name table sent by the advertisement domain name platform and configuring an advertisement domain name through the advertisement domain name table:
the terminal equipment receives a domain name update table which is sent by the advertisement domain name platform when the domain name update condition is met and is packaged into an MQTT message based on an MQTT long link established with the advertisement domain name platform, and updates the preconfigured advertisement domain name; wherein the domain name updating condition includes: grabbing a preset number of advertisement domain names, reaching a preset updating time length, and receiving an updating request sent by terminal equipment.
In some embodiments, there is also provided a multimedia resource playing device applied to a terminal device, where the device includes:
the receiving module is used for receiving a first resource access address returned by the multimedia resource server after sending a multimedia resource acquisition request to the multimedia resource server;
the acquisition module is used for acquiring a preset local address mapped by the preset advertisement domain name when the first resource access address is detected to be matched with the preset advertisement domain name, wherein the preset local address does not comprise accessible resources;
the generation module is used for generating address access failure information after accessing the preset local address and sending the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
and the access module is used for acquiring and playing the multimedia resource by accessing the second resource access address when receiving the second resource access address which is sent by the multimedia resource server and can access the multimedia resource.
In some embodiments, there is also provided an electronic device comprising: the system comprises a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory are communicated through the bus, and the machine-readable instructions are executed by the processor to execute the steps of the multimedia resource playing method.
In some embodiments, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the multimedia asset playing method.
After a multimedia resource obtaining request is sent to a multimedia resource server, after a first resource access address returned by the multimedia resource server is received, if a multimedia resource in the first resource access address is an advertisement resource, the first resource access address is subjected to redirection processing locally, and the advertisement resource cannot be successfully obtained through accessing a redirected preset local address, so that advertisement resource loading is failed, an address access result is returned to the multimedia resource server, a second resource access address is obtained, and a multimedia resource which is in the second resource access address and is wanted to be played by a user is accessed and played.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for playing a multimedia resource according to an embodiment of the present application;
FIG. 2 illustrates a flow chart of a method provided by an embodiment of the present application for detecting whether the first resource access address matches a preconfigured advertisement domain name;
fig. 3 is a flowchart of another method for playing multimedia resources according to an embodiment of the present application;
fig. 4 is a flowchart of another method for playing multimedia resources according to an embodiment of the present application;
fig. 5 is a flowchart of another method for playing multimedia resources according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a multimedia resource playing device according to an embodiment of the present application;
Fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it should be understood that the accompanying drawings in the present application are only for the purpose of illustration and description, and are not intended to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. A flowchart, as used in this application, illustrates operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be implemented out of order and that steps without logical context may be performed in reverse order or concurrently. Moreover, one or more other operations may be added to the flow diagrams and one or more operations may be removed from the flow diagrams as directed by those skilled in the art.
In addition, the described embodiments are only some, but not all, of the embodiments of the present application. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the presence of the features stated hereinafter, but not to exclude the addition of other features.
The development trend of the intellectualization and the electrodynamic performance of the automobile is obvious, and along with the development of the high and new technology, the automobile is changed into a new type of 'moving a third space' from the traditional travel riding tool. The automobile has the scene modes such as an electric charging mode, a noon break rest mode, an automatic driving mode and the like, and drivers and passengers have more demands on entertainment functions of a cabin system while releasing both hands. Ecological multimedia applications such as online video, online sound and the like are increasingly used in automobile cabin systems. However, in the process of playing video and audio, even if members are purchased, a large number of advertisement insertion situations exist, so that the watching experience of drivers and passengers is poor.
Various online multimedia applications are developed or integrated in the automobile cabin system on the market at present, but no technical filtering control is performed on video advertisements, so that the watching or listening experience of users is poor. The online multimedia application may also be referred to as a multimedia application, a multimedia app, a software development kit SDK, etc. The online multimedia application is used to play multimedia assets, which typically include video assets and audio assets.
An online multimedia application (or called a Software Development Kit (SDK)) obtains and plays multimedia resources through interaction with a multimedia server. Exemplary, the flow of playing video by an online multimedia application is as follows: multimedia resources in video coding formats such as MPEG-4, H.264 and the like are packaged at a server end through RTP protocol and are pushed to online multimedia application of terminal equipment in an automobile cabin system in a streaming media mode; the on-line media player APP receives, analyzes and decodes and plays the streaming media packet; and finally outputting to a screen for presentation to a user.
After receiving the multimedia resource playing operation of the user, the terminal equipment in the automobile cabin system sends a multimedia resource obtaining request to the multimedia resource server through the online multimedia application, the multimedia resource server returns a resource access address to the terminal equipment, and the terminal equipment accesses the returned resource access address again to obtain and play the multimedia resource selected by the user. That is, the accessible resources in the resource access address returned by the multimedia resource server to the terminal device are the multimedia resources acquired and played after the terminal device sends the multimedia resource acquisition request.
The advertisement is played in the process of playing the multimedia resource selected by the user, wherein the multimedia resource server cross-transmits the advertisement access address and the feature access address after receiving the multimedia resource acquisition request transmitted by the terminal equipment; firstly, sending an advertisement access address to the terminal equipment, so that the terminal equipment obtains and plays the advertisement by accessing the advertisement access address; after receiving an address access result of the terminal equipment for accessing the advertisement preventing address, sending a positive access address to the terminal equipment; and so on, advertisements are included in the process of playing the feature film.
Here, the advertisement resources in the resource access address received by the terminal device are generally managed in an independent cloud computing advertisement server.
Based on this, the embodiment of the application provides a multimedia resource playing method, after sending a multimedia resource obtaining request to a multimedia resource server, after receiving an advertisement access address returned by the multimedia resource server, performing redirection processing on the advertisement access address locally, and accessing the redirected local address to make the advertisement resource unable to be successfully obtained, thereby causing the advertisement resource loading failure, and returning an address access result to the multimedia resource server to obtain a feature access address, and accessing and playing the feature in the feature access address.
In the embodiment of the present application, the entity positioning method may operate in a terminal device or a server; the terminal device may be a local terminal device, and when the entity positioning method is executed on the server, the entity positioning method may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes at least the server and the client device (i.e., the terminal device).
Specifically, taking a terminal device as an example, when the multimedia resource playing method is run on the terminal device, the multimedia resource playing method is used for playing the multimedia resource.
Referring to fig. 1, fig. 1 shows a method flowchart of a multimedia resource playing method provided in an embodiment of the present application; the multimedia resource playing method provided by the embodiment of the application is applied to terminal equipment, wherein the multimedia resource playing method comprises the steps of S101-S104;
s101, after a multimedia resource acquisition request is sent to a multimedia resource server, a first resource access address returned by the multimedia resource server is received;
s102, if the fact that the first resource access address is matched with a preset advertisement domain name is detected, acquiring a preset local address mapped by the preset advertisement domain name, wherein the preset local address does not comprise accessible resources;
S103, after accessing the preset local address, generating address access failure information, and sending the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
s104, receiving a second resource access address which is sent by the multimedia resource server and can access the multimedia resource, and acquiring and playing the multimedia resource by accessing the second resource access address.
In the step S101, after sending a multimedia resource acquisition request to a multimedia resource server, a first resource access address returned by the multimedia resource server is received.
Specifically, at least one online multimedia application (software development kit SDK) is installed in the terminal device. The terminal equipment responds to the multimedia resource playing operation aiming at the online multimedia application and generates a multimedia resource acquisition request.
The multimedia resource playing operation comprises touch control, clicking, searching, long-press and the like. By way of example, an online multimedia application a is selected through a touch operation, a movie B is input and searched in a search control of the online multimedia application a, the movie B in the search result is selected through the touch operation, and a resource acquisition request of the movie B is generated.
The multimedia resource server receives a resource acquisition request of the film B, and returns a first resource access address to the terminal equipment according to the playing rule of the resource of the film B; the first resource access address may be a resource access address of movie B or an advertisement access address. And if the advertisement access address is the advertisement access address, the terminal equipment accesses the advertisement access address to acquire and play the advertisement resource from the advertisement server corresponding to the advertisement access address.
In step S102 of the embodiment of the present application, if it is detected that the first resource access address matches with a preconfigured advertisement domain name, it is indicated that the multimedia resource in the first resource access address is not a feature resource but an advertisement resource. And carrying out redirection processing on the first resource access address, and directing the first resource access address to a preset local address.
The accessible resource refers to a streaming media that can be parsed and decoded by an online multimedia application, and generally, the accessible resource is a multimedia resource with a preset encoding format, for example, a multimedia resource with a video encoding format such as MPEG-4, h.264, etc.
The preset local address does not comprise accessible resources, namely the preset local address does not comprise multimedia resources in the preset coding format.
In this embodiment, an advertisement domain name file is configured in the middle terminal device, where a plurality of advertisement domain names and mapping relations between the advertisement domain names and preset local addresses are recorded in the advertisement domain name file. Illustratively, the preset local address is 127.0.0.1; the domain name address "ads.XXXX.com" of the advertisement, then a mapping relationship of ads.XXXX.com and 127.0.0.1 is established.
When the terminal equipment acquires the first resource access address, detecting whether the domain name of the first resource access address is recorded in the advertisement domain name file, and if so, accessing a preset local address of the advertisement domain name mapping recorded in the advertisement domain name file.
In this embodiment of the present application, the advertisement domain name file is a system/etc/hosts file of the terminal device.
Specifically, referring to fig. 2, fig. 2 shows a flowchart of a method for detecting whether the first resource access address matches a preconfigured advertisement domain name according to an embodiment of the present application; in this embodiment of the present application, the detecting whether the first resource access address matches with a preconfigured advertisement domain name includes the following steps S201 to S203:
s201, extracting a target domain name in the first resource access address;
S202, detecting whether an advertisement domain name consistent with the target domain name exists in the pre-configured advertisement domain name or not;
and S203, if the first resource access address exists, judging that the first resource access address is matched with a preconfigured advertisement domain name.
Typically, the first resource access address includes a number of port codes in addition to the advertisement domain name; for example, the first resource access address is: https:// ads. XXXX. Com/query/96756.
Here, the unwanted fields need to be filtered out of the first resource access address to extract the target domain name, e.g., ads.xxxx.com/query/96756 from https:// ads.xxxx.com as the target domain name.
And detecting whether the advertisement domain name consistent with the target domain name exists in the pre-configured advertisement domain name or not to obtain a matching result of the first resource access address and the pre-configured advertisement domain name, wherein the accuracy is higher, and the operation amount during matching is less.
In the step S103, since no accessible resource exists in the preset local address, the terminal device redirects the first resource access address to the preset local address, and then accesses the preset local address to generate an address access result of access failure.
Based on the address access result, the terminal equipment generates address access failure information and sends the address access failure information to the multimedia resource server, and as the multimedia resource server receives the address access result, a second resource access address where the feature film is located is sent to the terminal equipment.
In the step S104, the terminal device receives a second resource access address capable of accessing the multimedia resource sent by the multimedia resource server, and accesses the second resource access address; the multimedia resource server where the second resource access address is located is packaged by RTP protocol; pushing online multimedia application to the automobile cabin in a streaming media packet mode; after receiving the streaming media packet, the online multimedia application analyzes the streaming media packet, decodes and plays the multimedia resource in the streaming media packet, and outputs the multimedia resource to be presented to a user on a screen of the terminal equipment.
In some embodiments, not all of the multimedia asset acquisition requests described can trigger the redirection of the advertisement access address. Specifically, the terminal device sends a multimedia resource acquisition request to the multimedia resource server through the installed software development kit SDK, so that the redirection of the advertisement access address can be triggered, and the software development kit SDK accesses the preset local address obtained by redirection to realize advertisement filtering; and sending a multimedia resource acquisition request to the multimedia resource server through the browser, wherein the preset local address obtained by redirection cannot be accessed because of the FLASH player based on the playing of the media resource in the browser.
Based on this, referring to fig. 3, a method flowchart of another method for playing multimedia resources according to an embodiment of the present application is shown, and in some embodiments, the method for playing multimedia resources further includes:
s301, detecting whether the multimedia resource acquisition request meets advertisement filtering conditions or not; the terminal equipment sends a multimedia resource acquisition request to a multimedia resource server through an installed Software Development Kit (SDK), and then determines that the multimedia resource acquisition request meets advertisement filtering conditions; if the terminal equipment is detected to send a multimedia resource acquisition request to a multimedia resource server through a browser, determining that the multimedia resource acquisition request does not meet advertisement filtering conditions;
and S302, if so, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
Here, the software development kit SDKs installed by the terminal device are plural, not a specific one; the advertisement domain name file configured in the terminal equipment is one; that is, instead of an online multimedia application corresponding to a particular plug-in, the online multimedia application on the terminal device can redirect the advertisement domain name through the advertisement domain name file to skip the advertisement.
If the multimedia resource acquisition request is detected not to meet the advertisement filtering condition, domain name matching and redirection of the first resource access address are not directly carried out, so that the computing power of the terminal equipment is saved.
In the embodiment of the present application, after determining that the multimedia resource obtaining request is sent through the software development kit SDK, it is further determined whether the software development kit SDK is preconfigured in the advertisement filtering mode.
Referring to fig. 4, fig. 4 is a flowchart illustrating another method for playing a multimedia resource according to an embodiment of the present application, and in some embodiments, the method further includes:
s401, detecting whether a Software Development Kit (SDK) installed by the terminal equipment is preconfigured into an advertisement filtering mode; wherein the advertisement filtering mode is configured by a configuration operation for the software development kit SDK;
and S402, if so, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
Wherein, the software development kit SDK is preconfigured into an advertisement filtering mode through various configuration modes. The configuration mode can be that all Software Development Kits (SDKs) on the terminal equipment are preconfigured into an advertisement filtering mode; a single software development kit SDK may be preconfigured into an advertisement filtering mode; it is also possible that the software development kit SDK is preconfigured into the advertisement filtering mode only for the target multimedia asset.
Here, whether the software development kit SDK is preconfigured into an advertisement filtering mode, i.e., whether the online multimedia application is configured into an advertisement filtering mode.
In some embodiments, an advertisement control is displayed on the graphical user interface of the terminal device, and the mode of all Software Development Kits (SDKs) on the terminal device is configured by responding to the configuration operation of the user on the advertisement control. For example, display "skip advertisement or not" when the terminal device is powered on; if the user selects yes, all Software Development Kits (SDKs) on the terminal device are configured into an advertisement filtering mode.
In some embodiments, for an online multimedia application, an advertisement control is presented on a graphical user interface of the online multimedia application, and a mode of the software development kit SDK is configured in response to a user's configuration operation for the advertisement control.
Specifically, after the user opens the online multimedia application, displaying whether to skip the advertisement; "if the user selects" yes, "the online multimedia application is configured to an advertisement filtering mode. When the online multimedia application plays the video, the advertisement is skipped through the playing method of the embodiment of the application.
Or after the user opens the online multimedia application, selecting to play the target multimedia resource, and displaying whether to skip the advertisement; if the user selects yes, the advertisement is skipped by the playing method according to the embodiment of the application only aiming at the target multimedia resource.
Because different users have different needs, for example, some users like to receive information through advertisements, some users acquire commodity preference information by watching advertisements, and some users are extremely disliked of advertisements. Some users prefer advertisements in certain episodes for some reasons, e.g., certain advertisements are shot by their own favorite stars, certain advertisements are shot very delicately, certain advertisements are public service advertisements, etc. Therefore, the software development kit SDK advertisement filtering mode is preconfigured, so that the user has more choices, and the requirements of the user in various aspects are met.
In this embodiment of the present application, after determining that the multimedia resource obtaining request is sent through the software development kit SDK, it is further determined whether the software development kit SDK is in the white list.
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for playing a multimedia resource according to an embodiment of the present application, and in some embodiments, the method further includes:
S501, detecting whether a Software Development Kit (SDK) installed by the terminal equipment is in a preconfigured advertisement filtering white list or not; the advertisement filtering white list is determined according to the white list message received by the terminal equipment.
S502, if not, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
Here, the whitelist message is sent to the vehicle terminal device through a background server of the vehicle. Specifically, advertisement filtering whitelists preconfigured by different terminal devices are different. That is, different white list messages are sent to different vehicles, so that advertisement filtering white lists preconfigured by different terminal devices are different.
For example, advertisement filtering whitelists for different models of vehicles are different; advertisement filtering whitelists of vehicles in different regions are different, etc.
For different online multimedia applications, vehicle manufacturers may have achieved business agreements with online multimedia applications, allowing some online multimedia applications to play advertisements. Alternatively, some online multimedia applications play advertisements that are public welfare advertisements, such as advertisements that advertise traditional documents, and vehicle manufacturers also allow these online multimedia applications to play advertisements. Therefore, the advertisement filtering white list is played in the terminal equipment, so that some online multimedia applications are allowed to play advertisements, and the requirements of different application scenes are met.
In this embodiment of the present application, the method for playing multimedia resources further includes:
receiving an advertisement domain name table sent by an advertisement domain name platform, and configuring an advertisement domain name through the advertisement domain name table; the advertisement domain name platform captures domain names in the advertisement server and generates the advertisement domain name table according to domain names conforming to preset advertisement rules.
The advertisement domain name platform captures the domain name in the advertisement server and generates the advertisement domain name table according to the domain name conforming to the preset advertisement rule, and the method comprises the following steps:
capturing a third multimedia resource access address sent by an advertisement server, and judging whether the third multimedia resource access address meets the preset advertisement rule; the preset advertisement rule includes: and a preset advertisement field exists in the third multimedia resource access address, the playing time length of the content corresponding to the third multimedia resource meets the time length condition, and the like.
In this embodiment of the present application, in the method for playing multimedia resources, after receiving an advertisement domain name table sent by an advertisement domain name platform and configuring an advertisement domain name through the advertisement domain name table, the method further includes:
the terminal equipment receives a domain name update table which is sent by the advertisement domain name platform when the domain name update condition is met and is packaged into an MQTT message based on an MQTT long link established with the advertisement domain name platform, and updates the preconfigured advertisement domain name; wherein the domain name updating condition includes: grabbing a preset number of advertisement domain names, reaching a preset updating time length, and receiving an updating request sent by terminal equipment.
The MQTT long link is a lightweight long link, so that the terminal equipment can be guaranteed to receive the pushed domain name update table in real time, the preconfigured advertisement domain name can be updated in time, and the consumption of a system can be reduced.
Illustratively, the terminal device in the cockpit software system receives the MQTT message and parses out the advertisement domain name table, adds the new video advertisement domain name to the system/etc/hosts file (advertisement domain name file), and maps the newly added advertisement domain name to the preset local address 127.0.0.1. Illustratively, "cb. Yyyy. Net" of the newly received video advertisement, the added hosts file content includes:
“cb.YYYY.net”-127.0.0.1。
in some embodiments, a multimedia resource playing device is further provided, after sending a multimedia resource obtaining request to a multimedia resource server, the multimedia resource playing device receives an advertisement access address returned by the multimedia resource server, and then locally redirects the advertisement access address, and the advertisement resource cannot be successfully obtained by accessing the redirected local address, so that the advertisement resource is loaded successfully, and an address access result is returned to the multimedia resource server to obtain a feature access address, and the feature in the feature access address is accessed and played.
Referring to fig. 6, fig. 6 shows a schematic structural diagram of a multimedia resource playing device provided in an embodiment of the present application, where the multimedia resource playing device is applied to a terminal device, and the device includes:
a receiving module 601, configured to receive a first resource access address returned by a multimedia resource server after sending a multimedia resource acquisition request to the multimedia resource server;
an obtaining module 602, configured to obtain a preset local address mapped by the preconfigured advertisement domain name when the first resource access address is detected to match the preconfigured advertisement domain name, where the preset local address does not include an accessible resource;
a generating module 603, configured to generate address access failure information after accessing the preset local address, and send the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
And the access module 604 is configured to acquire and play the multimedia resource by accessing the second resource access address when receiving the second resource access address capable of accessing the multimedia resource sent by the multimedia resource server.
In some embodiments, the multimedia resource playing device further includes:
the first detection module is used for detecting whether the multimedia resource acquisition request meets advertisement filtering conditions or not; the terminal equipment sends a multimedia resource acquisition request to a multimedia resource server through an installed Software Development Kit (SDK), and then determines that the multimedia resource acquisition request meets advertisement filtering conditions; if the terminal equipment is detected to send a multimedia resource acquisition request to a multimedia resource server through a browser, determining that the multimedia resource acquisition request does not meet advertisement filtering conditions; if yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the multimedia resource playing device further includes:
the second detection module is used for detecting whether the software development kit SDK installed by the terminal equipment is preconfigured into an advertisement filtering mode or not; wherein the advertisement filtering mode is configured by a configuration operation for the software development kit SDK; if yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the multimedia resource playing device further includes:
the third detection module is used for detecting whether the software development kit SDK installed by the terminal equipment is in a preconfigured advertisement filtering white list or not; the advertisement filtering white list is determined according to the white list message received by the terminal equipment; if not, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
In some embodiments, the multimedia resource playing device further includes:
the matching module is used for extracting a target domain name in the first resource access address when detecting whether the first resource access address is matched with a preconfigured advertisement domain name; detecting whether an advertisement domain name consistent with the target domain name exists in the pre-configured advertisement domain name or not; if so, the first resource access address is judged to be matched with the preconfigured advertisement domain name.
In some embodiments, the multimedia resource playing device further includes:
the receiving module is used for receiving an advertisement domain name table sent by the advertisement domain name platform and configuring an advertisement domain name through the advertisement domain name table; the advertisement domain name platform captures domain names in the advertisement server and generates the advertisement domain name table according to domain names conforming to preset advertisement rules.
In some embodiments, the multimedia resource playing device further includes:
the updating module is used for receiving an advertisement domain name table sent by the advertisement domain name platform, configuring an advertisement domain name through the advertisement domain name table, and then receiving a domain name updating table which is sent by the advertisement domain name platform when the domain name updating condition is met and is packaged into an MQTT message based on an MQTT long link established with the advertisement domain name platform, and updating the preconfigured advertisement domain name; wherein the domain name updating condition includes: grabbing a preset number of advertisement domain names, reaching a preset updating time length, and receiving an updating request sent by terminal equipment.
In some embodiments, referring to fig. 7, an electronic device 700 further includes: a processor 702, a memory 701 and a bus, said memory 701 storing machine readable instructions executable by said processor 702, said processor 702 and said memory 701 communicating via the bus when the electronic device 700 is running, said machine readable instructions when executed by said processor 702 performing the steps of said method for playing multimedia assets.
In some embodiments, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the multimedia asset playing method.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the method embodiments, which are not described in detail in this application. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, and the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, and for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, indirect coupling or communication connection of devices or modules, electrical, mechanical, or other form.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a platform server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (8)

1. A multimedia resource playing method, which is applied to a terminal device of an automobile cabin system, the method comprising:
after a multimedia resource acquisition request is sent to a multimedia resource server, a first resource access address returned by the multimedia resource server is received;
detecting whether the multimedia resource acquisition request meets advertisement filtering conditions or not; the terminal equipment sends a multimedia resource acquisition request to a multimedia resource server through an installed Software Development Kit (SDK), and then determines that the multimedia resource acquisition request meets advertisement filtering conditions; if the terminal equipment is detected to send a multimedia resource acquisition request to a multimedia resource server through a browser, determining that the multimedia resource acquisition request does not meet advertisement filtering conditions;
detecting whether a Software Development Kit (SDK) installed by the terminal equipment is preconfigured into an advertisement filtering mode or not; wherein the advertisement filtering mode is configured by a configuration operation for the software development kit SDK;
if yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name;
if the first resource access address is detected to be matched with a preconfigured advertisement domain name, acquiring a preset local address mapped by the preconfigured advertisement domain name, wherein the preset local address does not comprise accessible resources;
Generating address access failure information after accessing the preset local address, and sending the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
and receiving a second resource access address which is sent by the multimedia resource server and can access the multimedia resource, and acquiring and playing the multimedia resource by accessing the second resource access address.
2. The method of claim 1, further comprising:
detecting whether a Software Development Kit (SDK) installed by the terminal equipment is in a pre-configured advertisement filtering white list or not; the advertisement filtering white list is determined according to the white list message received by the terminal equipment;
if not, detecting whether the first resource access address is matched with a preconfigured advertisement domain name.
3. The method of claim 1, wherein detecting whether the first resource access address matches a preconfigured advertisement domain name comprises:
Extracting a target domain name in the first resource access address;
detecting whether an advertisement domain name consistent with the target domain name exists in the pre-configured advertisement domain name or not;
if so, the first resource access address is judged to be matched with the preconfigured advertisement domain name.
4. The method of claim 1, further comprising:
receiving an advertisement domain name table sent by an advertisement domain name platform, and configuring an advertisement domain name through the advertisement domain name table; the advertisement domain name platform captures domain names in the advertisement server and generates the advertisement domain name table according to domain names conforming to preset advertisement rules.
5. The method for playing multimedia resources according to claim 4, wherein after receiving an advertisement domain name table sent by an advertisement domain name platform and configuring an advertisement domain name through the advertisement domain name table, the method further comprises:
the terminal equipment receives a domain name update table which is sent by the advertisement domain name platform when the domain name update condition is met and is packaged into an MQTT message based on an MQTT long link established with the advertisement domain name platform, and updates the preconfigured advertisement domain name; wherein the domain name updating condition includes: grabbing a preset number of advertisement domain names, reaching a preset updating time length, and receiving an updating request sent by terminal equipment.
6. A multimedia resource playing device, characterized by being applied to a terminal device of an automobile cabin system, the device comprising:
the receiving module is used for receiving a first resource access address returned by the multimedia resource server after sending a multimedia resource acquisition request to the multimedia resource server; detecting whether the multimedia resource acquisition request meets advertisement filtering conditions or not; the terminal equipment sends a multimedia resource acquisition request to a multimedia resource server through an installed Software Development Kit (SDK), and then determines that the multimedia resource acquisition request meets advertisement filtering conditions; if the terminal equipment is detected to send a multimedia resource acquisition request to a multimedia resource server through a browser, determining that the multimedia resource acquisition request does not meet advertisement filtering conditions; detecting whether a Software Development Kit (SDK) installed by the terminal equipment is preconfigured into an advertisement filtering mode or not; wherein the advertisement filtering mode is configured by a configuration operation for the software development kit SDK; if yes, detecting whether the first resource access address is matched with a preconfigured advertisement domain name;
The acquisition module is used for acquiring a preset local address mapped by the preset advertisement domain name when the first resource access address is detected to be matched with the preset advertisement domain name, wherein the preset local address does not comprise accessible resources;
the generation module is used for generating address access failure information after accessing the preset local address and sending the address access failure information to the multimedia resource server; the multimedia resource server cross-transmits a first resource access address matched with a preconfigured advertisement domain name and a second resource access address capable of accessing the multimedia resource based on a multimedia resource acquisition request and an address access result of the terminal equipment;
and the access module is used for acquiring and playing the multimedia resource by accessing the second resource access address when receiving the second resource access address which is sent by the multimedia resource server and can access the multimedia resource.
7. An electronic device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating over the bus when the electronic device is running, said machine readable instructions when executed by said processor performing the steps of the method of playing a multimedia asset as claimed in any one of claims 1 to 5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the multimedia resource playing method according to any of claims 1 to 5.
CN202210491367.2A 2022-05-07 2022-05-07 Multimedia resource playing method and device, electronic equipment and medium Active CN114845168B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210491367.2A CN114845168B (en) 2022-05-07 2022-05-07 Multimedia resource playing method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210491367.2A CN114845168B (en) 2022-05-07 2022-05-07 Multimedia resource playing method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN114845168A CN114845168A (en) 2022-08-02
CN114845168B true CN114845168B (en) 2024-01-19

Family

ID=82568194

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210491367.2A Active CN114845168B (en) 2022-05-07 2022-05-07 Multimedia resource playing method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN114845168B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301658A (en) * 2009-09-11 2011-12-28 华为技术有限公司 Advertisement Delivery Method, Advertisement Server And Advertisement System
CN103366019A (en) * 2013-08-06 2013-10-23 飞天诚信科技股份有限公司 Webpage intercepting method and device based on iOS device
CN105812836A (en) * 2016-03-07 2016-07-27 北京奇虎科技有限公司 VPN based video advertisement blocking method and device
WO2017187239A1 (en) * 2016-04-29 2017-11-02 Cloud Technologies Spółka Akcyjna An internet advertisement display method and a system
WO2018121011A1 (en) * 2016-12-28 2018-07-05 北京金山安全软件有限公司 Advertisement interception method and apparatus, and terminal device
CN110365665A (en) * 2019-07-01 2019-10-22 珠海天燕科技有限公司 A kind of hold-up interception method of advertising resource, device and its equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160140611A1 (en) * 2010-12-20 2016-05-19 Sizmek Technologies Ltd. System and method for criteria-based advertisement blocking
US20150178772A1 (en) * 2013-12-19 2015-06-25 Thomson Licensing User control of targeted advertising

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102301658A (en) * 2009-09-11 2011-12-28 华为技术有限公司 Advertisement Delivery Method, Advertisement Server And Advertisement System
CN103366019A (en) * 2013-08-06 2013-10-23 飞天诚信科技股份有限公司 Webpage intercepting method and device based on iOS device
CN105812836A (en) * 2016-03-07 2016-07-27 北京奇虎科技有限公司 VPN based video advertisement blocking method and device
WO2017187239A1 (en) * 2016-04-29 2017-11-02 Cloud Technologies Spółka Akcyjna An internet advertisement display method and a system
WO2018121011A1 (en) * 2016-12-28 2018-07-05 北京金山安全软件有限公司 Advertisement interception method and apparatus, and terminal device
CN110365665A (en) * 2019-07-01 2019-10-22 珠海天燕科技有限公司 A kind of hold-up interception method of advertising resource, device and its equipment

Also Published As

Publication number Publication date
CN114845168A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
US11616818B2 (en) Distributed control of media content item during webcast
EP3107267B1 (en) Techniques to push content to a connected device
CN102255951B (en) Asset resolvable bookmarks
US11870859B2 (en) Relevant secondary-device content generation based on associated internet protocol addressing
US11503356B2 (en) Intelligent multi-device content distribution based on internet protocol addressing
US11394875B2 (en) Content capture service
US8650283B1 (en) Content delivery technology
CN110366041B (en) Media data sharing method, device and equipment
TWI492156B (en) Method and system for efficient download of data package
KR20120063533A (en) Apparatus and methods for retrieving/downloading content on a communication device
CN112073754B (en) Cloud game screen projection method and device, computer equipment, computer readable storage medium and cloud game screen projection interaction system
US9614882B2 (en) System independent remote storing of digital content
WO2008110087A1 (en) Mehtod for playing multimedia, system, client-side and server
US20170187837A1 (en) Ad download method, the client and the server
KR101783431B1 (en) Method for providing funding and consulting information related with entertainment by crowd funding system
US20170168660A1 (en) Voice bullet screen generation method and electronic device
CN104866560A (en) Method for sharing resource information, and terminal device and server thereof
CN105991403A (en) Instant messaging (IM) based multimedia sharing method and apparatus
US9313528B2 (en) Filtering live streaming contents and services
CN114845168B (en) Multimedia resource playing method and device, electronic equipment and medium
US9223940B2 (en) Merchandising media based on ownership audit
CN107659826B (en) A kind of information processing method and server
CN104468761A (en) Method for controlling player to mount shared file and mobile terminal
KR20050080158A (en) Digital contents rent service system based on personal multimedia player and the rent service method using the same
CN116055772A (en) Streaming media playing method, device, equipment and medium

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231030

Address after: 401120 Building 2, No. 81, Tonggui Avenue, Yufengshan Town, Yubei District, Chongqing

Applicant after: Beidou Xingtong Zhilian Technology Co.,Ltd.

Applicant after: Beidou Xingtong Zhilian Technology (Nanjing) Co.,Ltd.

Address before: 401120 No.3, Tonggui Avenue, Yufengshan Town, Yubei District, Chongqing

Applicant before: Beidou Xingtong Zhilian Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant