CN110377763B - Media file viewing method and device, storage medium and electronic device - Google Patents

Media file viewing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN110377763B
CN110377763B CN201910628758.2A CN201910628758A CN110377763B CN 110377763 B CN110377763 B CN 110377763B CN 201910628758 A CN201910628758 A CN 201910628758A CN 110377763 B CN110377763 B CN 110377763B
Authority
CN
China
Prior art keywords
media file
target media
application client
target
path
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
CN201910628758.2A
Other languages
Chinese (zh)
Other versions
CN110377763A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910628758.2A priority Critical patent/CN110377763B/en
Publication of CN110377763A publication Critical patent/CN110377763A/en
Application granted granted Critical
Publication of CN110377763B publication Critical patent/CN110377763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Abstract

The invention discloses a media file viewing method and device, a storage medium and an electronic device. The method comprises the following steps: the method comprises the steps that a viewing request for requesting to view a target media file is obtained in an application client operated by using a first user account; responding to the viewing request, displaying resource transfer prompt information and a target media file after fuzzy processing acquired from a first path of an application server in the application client; under the condition that the first user account transfers the virtual resources to the target resource platform according to the resource transfer prompt information, determining to allow the first user account to view the target media file in the application client; and under the condition that the first touch screen operation is executed on the target media file after the fuzzy processing displayed in the application client side, displaying the target media file acquired from the second path of the application server in the application client side. The invention solves the technical problem that the viewing safety cannot be ensured by the media file viewing method provided by the related technology.

Description

Media file viewing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a media file viewing method and device, a storage medium and an electronic device.
Background
Nowadays, a display mode for viewing media files for compensation, such as red-packed photos, is often provided in some application platforms. Specifically, under the condition that the issued account requests sharing of the red-envelope photo, the original photo is uploaded to the application server, and then the application server performs fuzzy processing on the original photo. Further, when other user accounts request to view, the blurred photos can only be downloaded from the application server, and clear original photos cannot be viewed. But after a certain fee is paid, the authority for viewing the clear original photo is obtained.
In the viewing process, some user accounts often adopt a network capture tool to obtain clear original photos so as to avoid the process of payment, so that the rights and interests of issuing the accounts are lost. That is to say, the viewing method for the media file provided by the related art currently has a certain security risk, and cannot ensure the security of viewing the media file.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a media file viewing method and device, a storage medium and an electronic device, and at least solves the technical problem that viewing safety cannot be guaranteed by the media file viewing method provided by the related technology.
According to an aspect of an embodiment of the present invention, there is provided a media file viewing method, including: the method comprises the steps that a viewing request for requesting to view a target media file is obtained from an application client operated by using a first user account, wherein the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with a viewing permission; responding to the viewing request, displaying resource transfer prompt information and the target media file after fuzzy processing acquired from a first path of an application server in the application client, wherein the resource transfer prompt information is used for prompting the first user account to transfer virtual resources to a target resource platform; determining to allow the first user account to view the target media file in the application client under the condition that the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt message; and under the condition that the first touch screen operation of the target media file after the fuzzy processing displayed in the application client is detected, displaying the target media file acquired from a second path of the application server in the application client.
According to another aspect of the embodiments of the present invention, there is provided a media file viewing method, including: the method comprises the steps of obtaining a viewing request sent by an application client using a first user account, wherein the viewing request is used for requesting to view a target media file, and the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with viewing permission; determining a resource transfer state of the target media file according to the viewing request, wherein a first path for storing the blurred target media file is sent to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to a target resource platform; sending a second path for storing the target media file and signature information for verification to the application client under the condition that the resource transfer state indicates that the first user account has transferred virtual resources to the target resource platform; and under the condition that the signature information returned by the application client is acquired and the signature information is verified to be passed, sending the encrypted target media file in the second path to the application client so as to enable the application client to display the target media file.
According to another aspect of the embodiments of the present invention, there is provided a media file viewing apparatus applied to an application client operating with a first user account, the apparatus including: a first obtaining unit, configured to obtain a viewing request for requesting to view a target media file, where the target media file is a media file which is issued by a second user account associated with the first user account and has a viewing right; a first display unit, configured to respond to the viewing request, display resource transfer prompt information in the application client, and the target media file after the fuzzy processing acquired from a first path of an application server, where the resource transfer prompt information is used to prompt the first user account to transfer virtual resources to a target resource platform; a first determining unit, configured to determine to allow the first user account to view the target media file in the application client when the first user account transfers a virtual resource to the target resource platform according to the resource transfer prompt information; and a second display unit, configured to display, in the application client, the target media file acquired from a second path of the application server when it is detected that a first touch screen operation is performed on the target media file after the blurring processing displayed in the application client.
According to another aspect of the embodiments of the present invention, there is provided a media file viewing apparatus, applied to an application server, the apparatus including: the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a viewing request sent by an application client using a first user account, the viewing request is used for requesting to view a target media file, and the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with a viewing right; a first determining unit, configured to determine a resource transfer state of the target media file according to the viewing request, where, when the resource transfer state indicates that the first user account does not transfer virtual resources to a target resource platform, a first path for storing the obfuscated target media file is sent to the application client; sending a second path for storing the target media file and signature information for verification to the application client under the condition that the resource transfer state indicates that the first user account has transferred virtual resources to the target resource platform; and a sending unit, configured to send the encrypted target media file in the second path to the application client when the signature information returned by the application client is acquired and the signature information passes verification, so that the target media file is displayed in the application client.
According to still another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above media file viewing method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above media file viewing method through the computer program.
In the embodiment of the invention, a viewing request for requesting to view a target media file is acquired in an application client operating by using a first user account, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with a viewing permission. Responding to the viewing request, the application client displays resource transfer prompt information and the fuzzy processed target media file acquired from the first path of the application server; further, when the application client transfers the virtual resource to the target resource platform according to the resource transfer prompt information, determining that the first user account is allowed to view the target media file, and when detecting that the first touch screen operation is performed on the displayed target media file after the fuzzy processing, displaying the target media file acquired from the second path. That is to say, the target media file and the blurred target media file are stored separately, so that different storage paths are returned to the application client according to different resource transfer states, the application client which determines the user account with the viewing right can view the clear target media file, otherwise, only the blurred target media file can be viewed, the viewing security of the media file is ensured, and the technical problem that the viewing security cannot be ensured by the media file viewing method provided by the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic illustration of a network environment for an alternative media file viewing method in accordance with an embodiment of the present invention;
FIG. 2 is a flow diagram of an alternative media file viewing method according to an embodiment of the present invention;
FIG. 3 is a flow diagram of an alternative media file upload process in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative media file viewing method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an alternative media file viewing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of yet another alternative media file viewing method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of yet another alternative media file viewing method according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of yet another alternative media file viewing method in accordance with an embodiment of the present invention;
FIG. 9 is a schematic diagram of yet another alternative media file viewing method in accordance with embodiments of the present invention;
FIG. 10 is a flow diagram of an alternative media file viewing method according to an embodiment of the present invention;
FIG. 11 is a flow diagram of yet another alternative media file viewing method according to an embodiment of the present invention;
FIG. 12 is a flow diagram of an alternative media file verification process according to an embodiment of the invention;
FIG. 13 is a schematic structural diagram of an alternative media file viewing device in accordance with an embodiment of the present invention;
FIG. 14 is a schematic structural diagram of an alternative media file viewing device according to an embodiment of the present invention;
FIG. 15 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 16 is a schematic structural diagram of another alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a media file viewing method is provided, and optionally, as an optional implementation manner, the media file viewing method may be applied, but not limited, to a media file viewing system in a network environment as shown in fig. 1. The media file viewing system includes, but is not limited to: user equipment 102, network 110, and server 112. Assume that the user device 102 runs an application client (which may be an instant messaging application client as shown in fig. 1) using a first user account, wherein the user device 102 includes a human-machine interaction screen 104, a processor 106 and a memory 108. The human-computer interaction screen 104 is used for detecting human-computer interaction operation through a human-computer interaction interface corresponding to the client; and the processor 106 is configured to generate a corresponding operation instruction according to the human-computer interaction operation, and view the target media file in response to the operation instruction. The memory 108 is used for storing the operation instructions and the target media files. Server 112 includes a database 114 and a processing engine 116. The database 114 is used to store the target media file published by the application client using the second user account and the stored path thereof. The processing engine 116 is configured to determine whether the first user account has a viewing right for the target media file, and send the corresponding media file to the application client of the first user account according to a determination result.
In step S102, in an application client that is operated by the user equipment 102 using a first user account (ID-1 shown in fig. 1), step S102 is executed through the human-computer interaction screen 104 to obtain a viewing request for requesting to view a target media file, where the target media file is a media file that is issued by a second user account associated with the first user account and has a viewing right. And transmits the viewing request to the server 112 through the network 110 as by step S104. The server 112 will then perform steps S106-S110: and determining the resource transfer state of the target media file according to the viewing request, determining a first path or a second path to be returned according to the determined resource transfer state, and returning the first path or the second path to the user equipment 102 through the network 110.
Assuming that the application client in the user equipment 102 acquires the first path, in step S112-1, resource transfer prompting information and the blurred target media file acquired from the first path are displayed in the application client, where the resource transfer prompting information is used to prompt the first user account to transfer the virtual resource to the target resource platform. If the application client in the user device 102 acquires the second path, in step S112-2, it is determined that the first user account is allowed to view the target media file in the application client, and step S114 is performed, and when it is detected that the first touch screen operation is performed on the blurred target media file displayed in the application client, the target media file acquired in the second path is displayed in the application client of the user device 102.
Optionally, in this embodiment, the media file viewing system may further include but is not limited to: user equipment 120 and a target resource platform (not shown). The user equipment 120 is configured to execute step S100 before step S102, and upload the target media file with the viewing right. The target resource platform is used for virtual resource transfer.
Optionally, in this embodiment, the user equipment may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a PC, and other computer equipment that supports running an application client. The server and the user equipment may implement data interaction through a network, which may include but is not limited to a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the media file viewing method includes:
s202, in an application client operated by using a first user account, acquiring a viewing request for requesting to view a target media file, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s204, responding to the viewing request, displaying resource transfer prompt information in the application client and the target media file after the fuzzy processing, wherein the resource transfer prompt information is used for prompting the first user account to transfer the virtual resource to the target resource platform;
s206, under the condition that the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt information, determining that the first user account is allowed to view the target media file in the application client;
and S208, under the condition that the first touch screen operation is executed on the target media file after the fuzzy processing displayed in the application client side, displaying the target media file acquired from the second path of the application server in the application client side.
Optionally, in this embodiment, the media file viewing method may be but is not limited to be applied to an application client that shares a media file with viewing permissions. The terminal application applying the media file viewing method may include, but is not limited to: instant messaging applications, community space sharing applications, and the like. That is to say, after the second user account publishes the target media file with viewing permissions through the session window or the community space, the first user account associated with the second user account can view and display the target media file safely by using the media file viewing method provided in this embodiment, so as to avoid that other users obtain the target media file with viewing permissions through a network capture tool, thereby avoiding the process of transferring virtual resources, which results in the problem that the rights and interests of the second user account are damaged. And then the effect of ensuring the viewing safety of the media files is realized. Optionally, in this embodiment, the target media file may include, but is not limited to, at least one of the following: text files, picture files, audio files, and video files. The above is merely an example, and this is not limited in this embodiment.
It should be noted that, in this embodiment, after the second user account issues the target media file with the viewing permission, the first user account associated with the second user account may obtain, through the application client, a viewing request for requesting to view the target media file, and send the viewing request to the application server. And under the condition that the application server determines that the target media file does not transfer the target virtual resource corresponding to the target media file to the target resource platform according to the resource transfer state, determining that the first user account does not have the viewing permission, and acquiring a first path for viewing the blurred target media file by using the application client of the first user account. And then the application client acquires the target media file after the fuzzy processing according to the first path, and displays resource transfer prompt information and the target media file after the fuzzy processing. Further, the first user account is guided to execute the resource transfer operation through the resource transfer prompt information. And under the condition that the application server determines that the target media file transfers the target virtual resource corresponding to the target media file to the target resource platform according to the resource transfer state, determining that the first user account obtains the viewing permission, and acquiring a second path for viewing the target media file by using the application client of the first user account. And then the application client acquires the target media file according to the second path. And displaying the target media file when detecting that a first touch screen operation is executed on an application client using the first user account.
Optionally, in this embodiment, before obtaining the view request, the method may further include, but is not limited to: and displaying a file icon of the target media file with the viewing permission, which is issued by the second user account, in the application client. The file icon may be, but is not limited to, a display control for triggering a viewing request for the target media file. For example, clicking the file icon to trigger obtaining the view request.
In addition, in this embodiment, the application client running using the second user account may select, but is not limited to, an upload entry of the target media file through human-computer interaction operation on a human-computer interaction screen, and upload the target media file to the application server through the upload entry for storage. Further application servers may be, but are not limited to: and carrying out fuzzy processing on the target media file to obtain the target media file after the fuzzy processing. Then, the application server stores the target media file and the blurred target media file, respectively, and generates a first path, such as a first Uniform Resource Locator (URL), by using a first index identifier corresponding to the blurred target media file, and generates a second path, such as a second URL, by using a second index identifier corresponding to the target media file.
For example, as shown in fig. 3, in step S302, the application client 302 running using the second user account (e.g., ID-2) uploads a target media file (e.g., a target picture) selected from the local via an upload portal (e.g., "enjoy" portal as shown in fig. 4) displayed in the man-machine interaction screen. The application server 304 executes steps S304-S306 to perform a blurring process on the target picture to obtain a blurred target picture, and stores the blurred target picture and the original clear target picture in the picture storage platform 306 respectively. The picture storage platform 306 may be an independent storage database, or may be a storage database built in an application server, which is not limited in this embodiment. Further, in steps S308-S310, the image storage platform 306 returns a first index identifier corresponding to the blurred target media file and a second index identifier corresponding to the target media file, and then generates a first URL using the first index identifier and a second URL using the second index identifier. Finally, the application server 304 returns a response message of successful upload to the application client 302.
It should be noted that, in this embodiment, the blurring algorithm adopted by the application server may be, but is not limited to, a gaussian blurring algorithm. Optionally, in this embodiment, but not limited to, the blur radius may be set to 80, and the number of times is 3, the original target media file is subjected to the gaussian blur processing. The above is merely an example, and this is not limited in this embodiment.
Optionally, in this embodiment, the first touch screen operation may be, but is not limited to, a long press operation, and the corresponding second touch screen operation may be, but is not limited to, a release operation corresponding to the long press operation. That is, in the case that a long-press operation is detected and reaches a first threshold, displaying the original target media file in the application client; and under the condition that the releasing operation is detected, restoring and displaying the target media file after the fuzzy processing.
In addition, in this embodiment, the first touch screen operation may also be, but is not limited to, a first sliding operation, and the corresponding second touch screen operation may be, but is not limited to, a second sliding operation. That is, in the case where the first sliding operation is detected, the original target media file is displayed in the application client; and under the condition that the second sliding operation is detected, restoring and displaying the target media file after the fuzzy processing. Wherein the first sliding operation and the second sliding operation are different sliding operations. For example, the sliding directions are different, the sliding tracks are different, and the like. The above is merely an example, and this is not limited in this embodiment.
For example, assuming that the long-press operation and the release operation are taken as an example for explanation, as shown in fig. 5, before the first touch screen operation is detected, the blurred target picture is also displayed, and "long-press screen to view a clear picture" is prompted. Further, after the first touch screen operation is detected, a clear target picture is displayed.
It should be noted that, in this embodiment, when the first touch screen operation is detected, the displayed blurred target media file is replaced with the original clear target media file. The problem of file information leakage caused by long-time display of the target media file is solved by setting the triggering precondition for the display of the target media file.
Optionally, in this embodiment, in the process of displaying the target media file in the application client, it may also be, but is not limited to, detecting whether a screen capture operation is performed on the terminal device; and if the screen capturing operation is detected, prohibiting the first user account from issuing the media file with the viewing permission in the target time period. Therefore, the first user account number which is in violation of operation is correspondingly triggered, and the file information of the target media file is prevented from being leaked. The prohibition operation is displayed in the application client in the form of warning information, such as "the screen capture behavior will not be viewed within 48 hours when monitored" as shown in fig. 5.
Optionally, in this embodiment, when the application client acquires the second path, the application client may further include but is not limited to: acquiring signature information for verification; and sending the signature information to an application server so that the application server verifies the signature information, and returning the clear target media file in the second path to the application client side under the condition that the verification is passed. That is to say, through the verification of the signature information, the protection of the access link corresponding to the second path is realized, and the account number of other users is prevented from being embezzled and spread.
In addition, in this embodiment, the target media file under the second path acquired by the application client may be, but is not limited to, an encrypted media file, and may be decrypted only by using a key provided by the server. Therefore, further security guarantee is provided for the target media file.
The description will be made with reference to fig. 6: assume that an application client of an instant messaging application is taken as an example, the first user account ID-1 and the second user account ID-2 are friend accounts having an association relationship. The second user account ID-2 issues a target media file (e.g., the red-packed photo shown in fig. 1) with viewing right through the session window, and as shown in fig. 6(a), the second user account ID-2 selects an upload portal 602 (which may also be referred to as a reward portal) to upload the target media file. Further, as shown in fig. 6(b), the first user account ID-1 displays a file icon 604 corresponding to the target media file in the corresponding session window, where the file icon 604 is used to prompt that the target media file needs to pay (e.g. 6.00 RMB) before the viewing permission can be obtained, and is also used to trigger a viewing request for viewing the target media file.
After the operation instruction triggered by the click operation performed on the file icon is acquired, the first user account ID-1 displays resource transfer prompt information 606 to prompt that the user can view the target media file only after 6.00 RMB is rewarded, and displays the blurred target media file 608 acquired from the server of the instant messaging application in the first path, as shown in fig. 6 (c). Further, when the first user account ID-1 transfers virtual resources to a target resource platform (e.g., a payment platform) according to the resource transfer prompt information, a viewing right for viewing the original clear target media file is obtained, where the target media file after the fuzzy processing may still be displayed as shown in fig. 5. In the case that the first touch screen operation (for example, the long-press operation is performed and the operation duration of the long-press operation reaches the first threshold) performed on the application client is detected, the original clear target media file 610 shown in fig. 6(d) is displayed.
According to the embodiment provided by the application, a viewing request for requesting to view a target media file is obtained from an application client operating by using a first user account, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission. Responding to the viewing request, the application client displays resource transfer prompt information and the fuzzy processed target media file acquired from the first path of the application server; further, when the application client transfers the virtual resource to the target resource platform according to the resource transfer prompt information, determining that the first user account is allowed to view the target media file, and when detecting that the first touch screen operation is performed on the displayed target media file after the fuzzy processing, displaying the target media file acquired from the second path. That is to say, the target media file and the target media file after the fuzzy processing are separately stored, so that different storage paths are returned to the application client according to different resource transfer states, so that the application client which determines the user account with the viewing right can view the clear target media file, otherwise, only the target media file after the fuzzy processing can be viewed, thereby ensuring the security of viewing the media file, and avoiding the problem that the target media file is stolen for viewing.
As an optional scheme, after displaying, in the client, the target media file acquired from the second path of the application server, the method further includes:
and S1, under the condition that the second touch screen operation is detected to be executed on the target media file displayed in the application client, restoring and displaying the blurred target media file in the application client.
It should be noted that, in order to avoid leakage of file information in the process of displaying the target media file in the application client of the first user account, in this embodiment, a display trigger condition may also be configured for the target media file, and the original clear target media file may be displayed only when the display trigger condition is met, otherwise, the target media file after the blurring processing may be continuously displayed. For example, the display trigger condition may be, but is not limited to, performing a first touch screen operation on the displayed blurred target media file. Wherein the first touch screen operation may include, but is not limited to: a long press operation or a first sliding operation. And under the condition that the second touch screen operation is detected, restoring and displaying the target media file after the fuzzy processing in the application client so as to realize the limit control on the display duration of the target media file. Here, the second touch screen operation may include, but is not limited to: a release operation corresponding to the first long press operation or a second slide operation different from the first slide operation.
Optionally, in this embodiment, the manner of displaying the target media file and resuming the display of the blurred target media file may include, but is not limited to, one of the following:
1) the method comprises the steps that under the condition that long-press operation is performed on a target media file after fuzzy processing and the operation duration of the long-press operation reaches a first threshold value, the target media file is displayed, wherein the first touch operation comprises the long-press operation; and under the condition that a release operation corresponding to the long press operation is detected, resuming and displaying the blurred target media file in the application client, wherein the second touch screen operation comprises the release operation.
Specifically, with reference to the example shown in fig. 7, assuming that it is detected that the long-press operation is performed on the displayed target media file after the blurring process, and the operation duration of the long-press operation reaches the first threshold value, as shown in fig. 7(a), the original clear target media file (e.g., the target picture) shown in fig. 7(b) is displayed. If the release operation corresponding to the long-press operation is detected, the process returns from fig. 7(b) to the interface shown in fig. 7(a), and the target media file after the blurring process is displayed.
2) Under the condition that a first sliding operation is detected to be executed on a target media file after fuzzy processing displayed in an application client, displaying the target media file, wherein the first touch screen operation comprises a first sliding operation; and under the condition that a second sliding operation is detected to be performed on the application client, resuming and displaying the blurred target media file in the application client, wherein the second touch screen operation comprises a second sliding operation, and the first sliding operation and the second sliding operation are different sliding operations.
Specifically, with reference to the example shown in fig. 8, assuming that it is detected that the right sliding operation is performed on the displayed target media file after the blurring process as shown in fig. 8(a), the original clear target media file (e.g., target picture) as shown in fig. 8(b) is displayed. If the leftward sliding operation is detected, the operation returns from fig. 8(b) to the interface shown in fig. 8(a), and the blurred target media file is displayed.
Here, the second sliding operation in the opposite sliding direction to the first sliding operation shown in fig. 8(b) is merely an example, and the sliding direction of the second sliding operation may be upward sliding, downward sliding, or sliding in another direction. In addition, the second sliding operation may also be a sliding operation with a sliding track different from that of the first sliding operation, which is not limited in this embodiment.
According to the embodiment provided by the application, the target media file which is allowed to be checked by the first user account is triggered and displayed through the first touch screen operation, and the target media file after the fuzzy processing is restored and displayed through the second touch screen operation, so that the display triggering condition is set for the target media file to limit the display of the target media file, the checking safety of the target media file is further ensured, and the target media file is prevented from being stolen and spread in the display process.
As an optional scheme, in the process of displaying, in the client, the target media file acquired from the second path of the application server, the method further includes:
s1, detecting screen capture operation on the terminal equipment where the application client is located;
and S2, under the condition that the screen capture operation is detected, prohibiting the first user account from issuing the media file with the viewing authority in the target time period.
The description is made with reference to the example shown in fig. 9: in the case of detecting that the screen capture operation is performed on the terminal device where the application client is located, the prompt information shown in fig. 9 may be displayed in a session window in the application client, but is not limited to: "suspect violation operation, prohibited reward function". And adds and displays an "X" prohibition mark as shown in fig. 9 on the reward icon corresponding to the upload entry.
According to the embodiment provided by the application, under the condition that the screen capturing operation is detected, the first user account is prohibited from issuing the media file with the viewing permission in the target time period, so that certain punishment is given to the user account in the illegal operation, the warning purpose is achieved, and the viewing safety of the target media file is further ensured.
As an optional scheme, after obtaining the viewing request for requesting to view the target media file, the method further includes:
s1, sending the viewing request to an application server, so that the application server determines a resource transfer state corresponding to the target media file according to the viewing request, wherein the application server returns a first path to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform; and under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, the application server returns the second path and the signature information for verification to the application client.
S2, when the application client side acquires the first path, acquiring the target media file after the fuzzy processing from the first path;
and S3, sending the signature information to the application server for verification when the application client acquires the second path and the signature information, and acquiring the encrypted target media file from the second path when the verification is passed.
Optionally, in this embodiment, after obtaining the encrypted target media file from the second path, the method further includes: and decrypting the encrypted target media file by using the key acquired by the application server so as to display the target media file.
Continuing with the description of the scenario illustrated in FIG. 3: as shown in fig. 10, the application client 1002 running with the first user account (e.g., ID-1) triggers to obtain a viewing request (e.g., a red-envelope photo) for viewing the target media file by performing a click operation on a file icon of the target media file displayed on the human-computer interaction screen, and sends the viewing request to the application server 304 in step S1002. The application server 304 executes step S1004, determines a resource transfer state corresponding to the target media file according to the file identifier of the target media file carried in the viewing request, and executes step S1006, and returns a first URL for storing the obfuscated target media file to the application client 1002, in a case that the resource transfer state indicates that the first user account does not transfer the target virtual resource corresponding to the target media file to the target resource platform. Further, the application client 1002 will pull the obfuscated target media file from the first UDL in the picture storage platform 306 corresponding to the application server 304 according to the first URL, as in steps S1008-S1010.
Further, as shown in step S1012, the resource transfer prompt message is displayed in the application client 1002, and the application client 1002 is controlled to transfer the target virtual resource to the target resource platform 1004 according to the guidance of the resource transfer prompt message, as shown in step S1014. Then, when the application server 304 acquires the response message indicating that the transfer is successful, which is returned by the target resource platform 1004 as in step S1016, step S1018 is executed to adjust the resource transfer state to a state in which the first user account transfers the virtual resource to the target resource platform. Then, the second URL and the signature information corresponding to the target media file are returned to the application client 1002 in step S1020. Then, the application client 1002 will pull the target media file from the second URL in the picture storage platform 306 corresponding to the application server 304 according to the second URL, as in step S1022. And when the application server 304 acquires the pull request, step S1024 is executed first to verify the verification signature, and when the verification passes, step S1026 is executed again to return the encrypted original clear target media file.
The application client 1002 will encrypt the encrypted original clear target media file with the key obtained from the application server 304, so as to display the original clear target media file. Thereby realizing further security guarantee of the target media file. The obtaining timing of the key may be, but is not limited to, at least one of the following: before the second URL is obtained, after the second URL is obtained, or before the encrypted original clear target media file is obtained, after the encrypted original clear target media file is obtained. The acquisition waiting time is short, and the user can open and display the original clear target media file under the condition of no perception.
According to another aspect of the embodiments of the present invention, there is also provided a media file viewing method, as shown in fig. 11, including:
s1102, a viewing request sent by an application client using a first user account is obtained, wherein the viewing request is used for requesting to view a target media file, and the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s1104, determining a resource transfer state of the target media file according to the viewing request, wherein a first path for storing the blurred target media file is sent to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform; under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, sending a second path for storing the target media file and signature information for verification to the application client;
and S1106, sending the encrypted target media file in the second path to the application client under the condition that the signature information returned by the application client is acquired and the signature information is verified to pass, so that the target media file is displayed in the application client.
Optionally, in this embodiment, the media file viewing method may be, but is not limited to, applied to an application server that shares a media file with viewing permissions. The terminal application applying the media file viewing method may include, but is not limited to: instant messaging applications, community space sharing applications, and the like. That is to say, after the second user account publishes the target media file with viewing permissions through the session window or the community space, the first user account associated with the second user account can view and display the target media file safely by using the media file viewing method provided in this embodiment, so as to avoid that other users obtain the target media file with viewing permissions through a network capture tool, thereby avoiding the process of transferring virtual resources, which results in the problem that the rights and interests of the second user account are damaged. And then the effect of ensuring the viewing safety of the media files is realized. Optionally, in this embodiment, the target media file may include, but is not limited to, at least one of the following: text files, picture files, audio files, and video files. The above is merely an example, and this is not limited in this embodiment.
According to the embodiment provided by the application, a viewing request for requesting to view a target media file is obtained from an application client operating by using a first user account, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission. Responding to the viewing request, the application client displays resource transfer prompt information and the fuzzy processed target media file acquired from the first path of the application server; further, when the application client transfers the virtual resource to the target resource platform according to the resource transfer prompt information, determining that the first user account is allowed to view the target media file, and when detecting that the first touch screen operation is performed on the displayed target media file after the fuzzy processing, displaying the target media file acquired from the second path. That is to say, the target media file and the target media file after the fuzzy processing are separately stored, so that different storage paths are returned to the application client according to different resource transfer states, so that the application client which determines the user account with the viewing right can view the clear target media file, otherwise, only the target media file after the fuzzy processing can be viewed, thereby ensuring the security of viewing the media file, and avoiding the problem that the target media file is stolen for viewing.
As an optional scheme, after determining the resource transfer state of the target media file according to the viewing request, the method further includes:
s1, sending the first path to the application client under the condition that the resource transfer state indicates that the first user account does not transfer the virtual resource to the target resource platform;
s2, acquiring a first pulling request sent by the application client, wherein the first pulling request is used for requesting to pull the target media file after the fuzzy processing in the first path;
and S3, sending the target media file after the fuzzy processing to the application client.
The embodiment in this embodiment may refer to the above embodiment without limitation, as shown in fig. 10, which is not limited in this embodiment.
As an optional scheme, after sending the obfuscated target media file to the application client, the method further includes:
s1, acquiring a resource transfer request sent by the application client;
s2, transferring the target virtual resource matched with the target media file to the target resource platform according to the resource transfer request;
and S3, under the condition that a response message which is returned by the target resource platform and used for indicating that the transfer is successful is acquired, adjusting the resource transfer state to the state that the first user account transfers the virtual resource to the target resource platform.
The embodiment in this embodiment may refer to the above embodiment without limitation, as shown in fig. 10, which is not limited in this embodiment.
As an optional scheme, after determining the resource transfer state of the target media file according to the viewing request, the method further includes:
s1, sending the second path and the signature information to the application client under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform;
and S2, acquiring a second pull request sent by the application client, wherein the second pull request is used for requesting to pull the target media file in the second path, and the second pull request carries the signature information.
The embodiment in this embodiment may refer to the above embodiment without limitation, as shown in fig. 10, which is not limited in this embodiment.
As an optional scheme, after obtaining the second pull request sent by the application client, the method further includes:
s1, analyzing the signature information to obtain first verification information;
s2, comparing the first verification information with second verification information, wherein the second verification information is the verification information stored locally by the application server;
and S3, determining that the signature information is verified under the condition that the comparison result indicates that the first verification information is matched with the second verification information.
Optionally, in this embodiment, the step S2 of comparing the first verification information and the second verification information includes:
s21, acquiring a second path in the first verification information, and performing hash processing on the second path to obtain a first hash value;
s22, acquiring a first verification code in the first verification information under the condition that the first hash value is consistent with a second hash value in the second verification information;
s23, acquiring a verification validity period in the first verification information under the condition that the first verification code is consistent with the second verification code in the second verification information;
and S24, determining that the first verification information is matched with the second verification information under the condition that the time stamp of the acquired first verification information is within the verification validity period.
Specifically, as shown in fig. 12:
in step S1202, after the application server obtains the signature information returned by the client, the application server may, but is not limited to, analyze the signature information to obtain first verification information: URL, a verification code (also known as magic number), a verification validity period, etc.
Step S1204, verifying whether the URL is tampered. Performing hash processing on the part of the URL except the domain name (for example, md5) to obtain a first hash value, comparing the first hash value with a second hash value locally stored by the application server, and if the first hash value and the second hash value are not consistent, determining that the URL may have been tampered, returning prompt information for prompting verification failure to the corresponding client (for example, step S1214); if the two are consistent, step S1206 is executed;
step S1206, checking whether the verification codes are consistent. The verification code may be, but is not limited to, a magic number, which is a numeric constant or a character string appearing in the program code. Comparing the first verification code in the first verification information with the second verification code locally stored by the application server, and if the first verification code and the second verification code are not consistent, determining that the first verification code is tampered, returning prompt information for prompting verification failure to the corresponding client (in step S1214); and in case of coincidence, executing step S1208;
step S1208, acquiring a timestamp of the first verification information;
step S1210, checking whether the validity period is expired. If the acquired timestamp of the first verification information is not within the verification validity period, which indicates that the signature information is expired and invalid, then a prompt message for prompting verification failure is returned to the application client (in step S1214). And under the condition that the timestamp of the acquired first verification information is within the verification validity period, determining that the first verification information is matched with the second verification information, and returning response information to the corresponding client to prompt that the signature information is verified to be passed, in step S1212.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the invention, a media file viewing device for implementing the media file viewing method is also provided. As shown in fig. 13, the apparatus is applied to an application client operating using a first user account, and includes:
1) a first obtaining unit 1302, configured to obtain a viewing request for requesting to view a target media file, where the target media file is a media file which is issued by a second user account associated with a first user account and has a viewing right;
2) a first display unit 1304, configured to display, in response to the viewing request, resource transfer prompt information and the target media file after the fuzzy processing, which are acquired from the first path of the application server, in the application client, where the resource transfer prompt information is used to prompt the first user account to transfer the virtual resource to the target resource platform;
3) a first determining unit 1306, configured to determine to allow the first user account to view the target media file in the application client when the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt information;
4) a second display unit 1308, configured to display, in the application client, the target media file acquired from the second path of the application server when it is detected that the first touch screen operation is performed on the target media file after the blurring processing displayed in the application client.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an optional scheme, the method further comprises the following steps:
1) and the third display unit is used for restoring and displaying the target media file after the fuzzy processing in the application client under the condition that a second touch screen operation is detected to be executed on the target media file displayed in the application client after the target media file acquired from the second path of the application server is displayed in the application client.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an alternative to this, it is possible to,
1) the second display unit includes: (1) the first display module is used for displaying the target media file under the condition that long-time pressing operation of the target media file after the fuzzy processing displayed in the application client is detected, and the operation duration of the long-time pressing operation reaches a first threshold value, wherein the first touch screen operation comprises long-time pressing operation;
2) the third display unit includes: (1) and the second display module is used for restoring and displaying the blurred target media file in the application client under the condition that the release operation corresponding to the long press operation is detected, wherein the second touch operation comprises the release operation.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an alternative to this, it is possible to,
1) the second display unit includes: (1) the third display module is used for displaying the target media file under the condition that the first sliding operation of the target media file after the fuzzy processing displayed in the application client is detected, wherein the first touch screen operation comprises the first sliding operation;
2) the third display unit includes: (1) and the fourth display module resumes and displays the blurred target media file in the application client under the condition that a second sliding operation is detected to be executed on the application client, wherein the second touch screen operation comprises a second sliding operation, and the first sliding operation and the second sliding operation are different sliding operations.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an optional scheme, the method further comprises the following steps:
1) the detection unit is used for detecting screen capture operation on the terminal equipment where the application client is located in the process of displaying the target media file acquired from the second path of the application server in the application client;
2) and the setting unit is used for prohibiting the first user account from issuing the media file with the viewing permission in the target time period under the condition of detecting the screen capturing operation.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an optional scheme, the method further comprises the following steps:
1) the system comprises a first sending unit, a second sending unit and a third sending unit, wherein the first sending unit is used for sending a viewing request to an application server after the viewing request for requesting to view a target media file is obtained, so that the application server determines a resource transfer state corresponding to the target media file according to the viewing request, and the application server returns a first path to an application client under the condition that the resource transfer state indicates that a first user account does not transfer virtual resources to a target resource platform; and under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, the application server returns the second path and the signature information for verification to the application client.
2) The second obtaining unit is used for obtaining the target media file after the fuzzy processing from the first path under the condition that the application client obtains the first path;
3) and the processing unit is used for sending the signature information to the application server for verification under the condition that the application client acquires the second path and the signature information, and acquiring the encrypted target media file from the second path under the condition that the verification is passed.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
As an optional scheme, the method further comprises the following steps:
1) and the decryption unit is used for decrypting the encrypted target media file by using the key acquired by the application server after acquiring the encrypted target media file from the second path so as to display the target media file.
The embodiment in the present disclosure may refer to, but is not limited to, the embodiment in the application client that operates using the first user account, and this is not limited in this embodiment.
According to another aspect of the embodiment of the invention, a media file viewing device for implementing the media file viewing method is also provided. As shown in fig. 14, the apparatus is applied to an application server, and includes:
1) a first obtaining unit 1402, configured to obtain a viewing request sent by an application client using a first user account, where the viewing request is used to request to view a target media file, and the target media file is a media file issued by a second user account associated with the first user account and provided with a viewing right;
2) a first determining unit 1404, configured to determine a resource transfer state of the target media file according to the viewing request, where in a case that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform, the first path used for storing the obfuscated target media file is sent to the application client; under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, sending a second path for storing the target media file and signature information for verification to the application client;
3) and a first sending unit 1406, configured to send the encrypted target media file in the second path to the application client when the signature information returned by the application client is acquired and the signature information is verified, so that the target media file is displayed in the application client.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
As an optional scheme, the method further comprises the following steps:
1) the second sending unit is used for sending the first path to the application client side under the condition that the resource transfer state indicates that the first user account does not transfer the virtual resources to the target resource platform after the resource transfer state of the target media file is determined according to the viewing request;
2) the second obtaining unit is used for obtaining a first pulling request sent by the application client, wherein the first pulling request is used for requesting to pull the target media file after the fuzzy processing in the first path;
3) and the third sending unit is used for sending the target media file after the fuzzy processing to the application client.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
As an optional scheme, the method further comprises the following steps:
1) the third acquisition unit is used for acquiring a resource transfer request sent by the application client after the target media file after the fuzzy processing is sent to the application client;
2) the transfer unit is used for transferring the target virtual resource matched with the target media file to the target resource platform according to the resource transfer request;
3) and the adjusting unit is used for adjusting the resource transfer state to a state that the first user account transfers the virtual resource to the target resource platform under the condition that a response message which is returned by the target resource platform and used for indicating that the transfer is successful is acquired.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
As an optional scheme, the method further comprises the following steps:
1) the fourth sending unit is used for sending the second path and the signature information to the application client under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform after the resource transfer state of the target media file is determined according to the viewing request;
2) and the fourth obtaining unit is configured to obtain a second pull request sent by the application client, where the second pull request is used to request to pull the target media file in the second path, and the second pull request carries the signature information.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
As an optional scheme, the method further comprises the following steps:
1) the analysis unit is used for analyzing the signature information after acquiring a second pull request sent by the application client to obtain first verification information;
2) the comparison unit is used for comparing the first verification information with second verification information, wherein the second verification information is locally stored verification information of the application server;
3) and the second determining unit is used for determining that the signature information passes the verification under the condition that the comparison result indicates that the first verification information is matched with the second verification information.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
As an optional scheme, the alignment unit includes:
1) the first obtaining module is used for obtaining a second path in the first verification information and carrying out hash processing on the second path to obtain a first hash value;
2) the second obtaining module is used for obtaining the first verification code in the first verification information under the condition that the first hash value is consistent with the second hash value in the second verification information;
3) the third obtaining module is used for obtaining the verification validity period in the first verification information under the condition that the first verification code is consistent with the second verification code in the second verification information;
4) and the determining module is used for determining that the first verification information is matched with the second verification information under the condition that the time stamp of the acquired first verification information is within the verification validity period.
The embodiment in the present disclosure may refer to the embodiment in the application server, but is not limited to this.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the media file viewing method, as shown in fig. 15, the electronic device includes a memory 1502 and a processor 1504, the memory 1502 stores a computer program, and the processor 1504 is configured to execute the steps of any one of the above method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, in an application client operating by using a first user account, acquiring a viewing request for requesting to view a target media file, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s2, responding to the viewing request, displaying resource transfer prompt information in the application client and the target media file after the fuzzy processing, wherein the resource transfer prompt information is used for prompting the first user account to transfer the virtual resource to the target resource platform;
s3, determining to allow the first user account to view the target media file in the application client under the condition that the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt message;
and S4, displaying the target media file acquired from the second path of the application server in the application client under the condition that the first touch screen operation is detected to be executed on the target media file after the fuzzy processing displayed in the application client.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 15 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 15 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
The memory 1502 may be used for storing software programs and modules, such as program instructions/modules corresponding to the media file viewing method and apparatus in the embodiments of the present invention, and the processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, that is, implements the media file viewing method described above. The memory 1502 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1502 can further include memory located remotely from the processor 1504, which can be coupled to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1502 may be used for storing information such as a target media file and a blurred target media file. As an example, as shown in fig. 15, the memory 1502 may include, but is not limited to, a first obtaining unit 1302, a first display unit 1304, a first determining unit 1306, and a second display unit 1308 of the media file viewing apparatus. In addition, other module units in the media file viewing apparatus may also be included, but are not limited to these, and are not described in this example again.
Optionally, the transmission device 1506 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1506 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 1506 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1508 for displaying the target media file; and a connection bus 1510 for connecting the respective module parts in the above-described electronic apparatus.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the media file viewing method, as shown in fig. 16, the electronic device includes a memory 1602 and a processor 1604, the memory 1602 stores therein a computer program, and the processor 1604 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining a viewing request sent by an application client using a first user account, wherein the viewing request is used for requesting to view a target media file, and the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s2, determining the resource transfer state of the target media file according to the viewing request, wherein the first path for storing the blurred target media file is sent to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform; under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, sending a second path for storing the target media file and signature information for verification to the application client;
and S3, sending the encrypted target media file in the second path to the application client side under the condition that the signature information returned by the application client side is acquired and the signature information is verified to pass, so that the target media file is displayed in the application client side.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 16 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 16 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 16, or have a different configuration than shown in FIG. 16.
The memory 1602 may be configured to store software programs and modules, such as program instructions/modules corresponding to the media file viewing method and apparatus in the embodiments of the present invention, and the processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, that is, implements the media file viewing method described above. The memory 1602 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1602 can further include memory located remotely from the processor 1604, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1602 may be used for storing information such as a target media file and a blurred target media file, but is not limited thereto. As an example, as shown in fig. 16, the memory 1602 may include, but is not limited to, a first obtaining unit 1402, a first determining unit 1404, and a first sending unit 1406 in the media file viewing device. In addition, other module units in the media file viewing apparatus may also be included, but are not limited to these, and are not described in this example again.
Optionally, the transmission device 1606 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1606 includes a Network adapter (NIC) that can be connected to a router via a Network line to communicate with the internet or a local area Network. In one example, the transmission device 1606 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1608 for displaying the target media file; and a connection bus 1610 for connecting respective module components in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, in an application client operating by using a first user account, acquiring a viewing request for requesting to view a target media file, wherein the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s2, responding to the viewing request, displaying resource transfer prompt information in the application client and the target media file after the fuzzy processing, wherein the resource transfer prompt information is used for prompting the first user account to transfer the virtual resource to the target resource platform;
s3, determining to allow the first user account to view the target media file in the application client under the condition that the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt message;
and S4, displaying the target media file acquired from the second path of the application server in the application client under the condition that the first touch screen operation is detected to be executed on the target media file after the fuzzy processing displayed in the application client.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, obtaining a viewing request sent by an application client using a first user account, wherein the viewing request is used for requesting to view a target media file, and the target media file is a media file which is issued by a second user account associated with the first user account and is provided with viewing permission;
s2, determining the resource transfer state of the target media file according to the viewing request, wherein the first path for storing the blurred target media file is sent to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform; under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, sending a second path for storing the target media file and signature information for verification to the application client;
and S3, sending the encrypted target media file in the second path to the application client side under the condition that the signature information returned by the application client side is acquired and the signature information is verified to pass, so that the target media file is displayed in the application client side.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (16)

1. A media file viewing method, comprising:
the method comprises the steps that a viewing request for requesting to view a target media file is obtained from an application client operating by using a first user account, wherein the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with a viewing permission, and the application client operates on a mobile terminal;
responding to the viewing request, displaying resource transfer prompt information and the target media file after fuzzy processing acquired from a first path of an application server in the application client, wherein the resource transfer prompt information is used for prompting the first user account to transfer virtual resources to a target resource platform;
determining to allow the first user account to view the target media file in the application client under the condition that the first user account transfers the virtual resource to the target resource platform according to the resource transfer prompt information;
replacing the displayed blurred target media file with the target media file acquired from a second path of the application server when it is detected that the duration of executing a first touch screen operation on the blurred target media file displayed in the application client reaches a first threshold value, including: and under the condition that the first touch screen operation is detected to be finished, resuming and displaying the blurred target media file in the application client, wherein the second path is a file path different from the first path.
2. The method of claim 1,
displaying, in the application client, the target media file acquired from the second path of the application server includes: displaying the target media file after the fuzzy processing is detected to be executed on the target media file displayed in the application client, and under the condition that the operation duration of the long-press operation reaches a first threshold, displaying the target media file, wherein the first touch screen operation comprises the long-press operation;
restoring the target media file after the display blurring processing in the application client comprises: and under the condition that the release operation corresponding to the long-press operation is detected, restoring and displaying the target media file after the fuzzy processing in the application client.
3. The method of claim 1,
displaying, in the application client, the target media file acquired from the second path of the application server includes: displaying the target media file under the condition that a first sliding operation is detected to be executed on the target media file after the blurring processing is performed on the target media file displayed in the application client, wherein the first touch screen operation comprises the first sliding operation;
restoring the target media file after the display blurring processing in the application client comprises: and under the condition that a second sliding operation is detected to be executed on the application client, resuming and displaying the blurred target media file in the application client, wherein the first sliding operation and the second sliding operation are different sliding operations.
4. The method according to claim 1, wherein, in displaying, in the application client, the target media file acquired from the second path of the application server, further comprising:
detecting screen capturing operation on terminal equipment where the application client is located;
and under the condition that the screen capturing operation is detected, prohibiting the first user account from issuing the media file with the viewing permission in the target time period.
5. The method according to any one of claims 1 to 4, further comprising, after the obtaining of the viewing request for requesting viewing of the target media file:
sending the viewing request to the application server, so that the application server determines a resource transfer state corresponding to the target media file according to the viewing request, wherein the application server returns the first path to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform; under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform, the application server returns the second path and the signature information for verification to the application client;
under the condition that the application client side acquires the first path, acquiring the target media file subjected to fuzzy processing from the first path;
and sending the signature information to the application server for verification under the condition that the application client acquires the second path and the signature information, and acquiring the encrypted target media file from the second path under the condition that the verification is passed.
6. The method of claim 5, further comprising, after said obtaining the encrypted target media file from the second path:
and decrypting the encrypted target media file by using the key acquired by the application server so as to display the target media file.
7. A media file viewing method, comprising:
the method comprises the steps of obtaining a viewing request sent by an application client side using a first user account, wherein the viewing request is used for requesting to view a target media file, the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with a viewing permission, and the application client side runs on a mobile terminal;
determining a resource transfer state of the target media file according to the viewing request, wherein a first path for storing the blurred target media file is sent to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to a target resource platform; sending a second path for storing the target media file and signature information for verification to the application client under the condition that the resource transfer state indicates that the first user account has transferred virtual resources to the target resource platform, wherein the second path is a file path different from the first path;
and under the condition that the signature information returned by the application client is acquired and the signature information is verified, sending the encrypted target media file under the second path to the application client, so that the displayed blurred target media file is replaced by the target media file acquired under the second path of the application server under the condition that the time for executing the first touch screen operation on the blurred target media file displayed in the mobile client is detected to reach a first threshold value.
8. The method of claim 7, further comprising, after said determining a resource transfer state of the target media file from the view request:
sending the first path to the application client under the condition that the resource transfer state indicates that the first user account does not transfer virtual resources to the target resource platform;
acquiring a first pulling request sent by the application client, wherein the first pulling request is used for requesting to pull the target media file after the fuzzy processing in the first path;
and sending the target media file after the fuzzy processing to the application client.
9. The method of claim 8, further comprising, after the sending the obfuscated target media file to the application client:
acquiring a resource transfer request sent by the application client;
transferring the target virtual resource matched with the target media file to the target resource platform according to the resource transfer request;
and under the condition that a response message which is returned by the target resource platform and used for indicating that the transfer is successful is acquired, adjusting the resource transfer state to a state that the first user account transfers the virtual resource to the target resource platform.
10. The method of claim 7, further comprising, after said determining a resource transfer state of the target media file from the view request:
sending the second path and the signature information to the application client under the condition that the resource transfer state indicates that the first user account transfers the virtual resource to the target resource platform;
and acquiring a second pull request sent by the application client, wherein the second pull request is used for requesting to pull the target media file under the second path, and the second pull request carries the signature information.
11. The method according to claim 10, further comprising, after the obtaining the second pull request sent by the application client:
analyzing the signature information to obtain first verification information;
comparing the first verification information with second verification information, wherein the second verification information is verification information locally stored by the application server;
and determining that the signature information is verified under the condition that the comparison result indicates that the first verification information is matched with the second verification information.
12. The method of claim 11, wherein the comparing the first verification information and the second verification information comprises:
acquiring the second path in the first verification information, and performing hash processing on the second path to obtain a first hash value;
under the condition that the first hash value is consistent with a second hash value in the second verification information, acquiring a first verification code in the first verification information;
under the condition that the first verification code is consistent with a second verification code in the second verification information, acquiring a verification validity period in the first verification information;
and under the condition that the timestamp of the acquired first verification information is within the verification validity period, determining that the first verification information is matched with the second verification information.
13. A media file viewing apparatus, for use in an application client running using a first user account, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a viewing request for requesting to view a target media file, the target media file is a media file which is issued by a second user account and is associated with a first user account and provided with a viewing authority, and the application client is operated on a mobile terminal;
a first display unit, configured to display, in response to the viewing request, resource transfer prompt information and the target media file after the fuzzy processing, where the resource transfer prompt information is used to prompt the first user account to transfer virtual resources to a target resource platform, and the target media file is obtained from a first path of an application server;
a first determining unit, configured to determine to allow the first user account to view the target media file in the application client when the first user account transfers a virtual resource to the target resource platform according to the resource transfer prompt information;
a second display unit, configured to replace the displayed blurred target media file with the target media file acquired from a second path of the application server when it is detected that a duration of performing a first touch screen operation on the blurred target media file displayed in the application client reaches a first threshold, where the second display unit includes: and under the condition that the first touch screen operation is detected to be finished, resuming and displaying the blurred target media file in the application client, wherein the second path is a file path different from the first path.
14. A media file viewing apparatus, for use in an application server, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring a viewing request sent by an application client using a first user account, the viewing request is used for requesting to view a target media file, the target media file is a media file which is issued by a second user account and is associated with the first user account and provided with a viewing authority, and the application client runs on a mobile terminal;
a first determining unit, configured to determine a resource transfer state of the target media file according to the viewing request, where, when the resource transfer state indicates that the first user account does not transfer virtual resources to a target resource platform, a first path used for storing the obfuscated target media file is sent to the application client; sending a second path for storing the target media file and signature information for verification to the application client under the condition that the resource transfer state indicates that the first user account has transferred virtual resources to the target resource platform;
and the first sending unit is used for sending the encrypted target media file under the second path to the application client under the condition that the signature information returned by the application client is acquired and the signature information is verified, so that the displayed blurred target media file is replaced by the target media file acquired under the second path of the application server under the condition that the time for executing the first touch screen operation on the blurred target media file displayed in the mobile client reaches a first threshold value, wherein the second path is a file path different from the first path.
15. A storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 6 or 7 to 12.
16. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 6 or 7 to 12 by means of the computer program.
CN201910628758.2A 2019-07-12 2019-07-12 Media file viewing method and device, storage medium and electronic device Active CN110377763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910628758.2A CN110377763B (en) 2019-07-12 2019-07-12 Media file viewing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910628758.2A CN110377763B (en) 2019-07-12 2019-07-12 Media file viewing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN110377763A CN110377763A (en) 2019-10-25
CN110377763B true CN110377763B (en) 2022-04-26

Family

ID=68252934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910628758.2A Active CN110377763B (en) 2019-07-12 2019-07-12 Media file viewing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN110377763B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637635B (en) * 2020-12-15 2023-07-04 西安万像电子科技有限公司 File confidentiality method and system, computer readable storage medium and processor
CN115576456A (en) * 2022-09-21 2023-01-06 北京字跳网络技术有限公司 Session page display method, device, equipment, readable storage medium and product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394894A (en) * 2011-11-28 2012-03-28 武汉大学 Network virtual disk file safety management method based on cloud computing
CN106302548A (en) * 2016-10-18 2017-01-04 许遥 Distinguish user right to provide the mechanism of map network image data service
CN109711824A (en) * 2019-01-02 2019-05-03 深圳壹账通智能科技有限公司 Resource transfers method, apparatus, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7617134B2 (en) * 2005-06-17 2009-11-10 Match.Com, L.L.C. System and method for providing a certified photograph in a network environment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394894A (en) * 2011-11-28 2012-03-28 武汉大学 Network virtual disk file safety management method based on cloud computing
CN106302548A (en) * 2016-10-18 2017-01-04 许遥 Distinguish user right to provide the mechanism of map network image data service
CN109711824A (en) * 2019-01-02 2019-05-03 深圳壹账通智能科技有限公司 Resource transfers method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110377763A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
KR101590076B1 (en) Method for managing personal information
CN108322461B (en) Method, system, device, equipment and medium for automatically logging in application program
CN105897565B (en) The system and method for privacy of user are protected in the multimedia for uploading to internet website
CN101305545B (en) Method and apparatus for managing digital rights of secure removable media
CN104731612B (en) Mobile equipment safety component software is tied to SIM
CN110414258B (en) File processing method and system and data processing method
US20110289116A1 (en) Method and Apparatus for Protecting Online Content by Detecting Noncompliant Access Patterns
CN110958239B (en) Method and device for verifying access request, storage medium and electronic device
CN104662870A (en) Data security management system
US20170371625A1 (en) Content delivery method
CN103561040A (en) File downloading method and system
CN104199657A (en) Call method and device for open platform
CN110377763B (en) Media file viewing method and device, storage medium and electronic device
KR101785481B1 (en) Method for providing scraping service, server and system thereof
CN103036852B (en) A kind of method and device realizing network entry
CN112669104B (en) Data processing method of leasing equipment
CN108463970A (en) The method and system of protection and retrieval secret information
WO2007078037A1 (en) Web page protection method employing security appliance and set-top box having the security appliance built therein
CN105306493A (en) Method and system for implementing IPC (IP Camera) service based on encryption mechanism
CN106095781A (en) Malicious websites recognition methods and device
CN106936844B (en) Data interaction method and system for remote access service
CN107276874B (en) Network connection method, device, electronic equipment and storage medium
CN109522708B (en) Method and device for safely controlling running environment of application program
CN114333113A (en) Bluetooth key shortcut control method based on negative one screen and computer readable storage medium
CN113065160A (en) Intelligent court data transmission method and system

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