WO2022068768A1 - 权限设置方法、文件播放方法、装置和电子设备 - Google Patents

权限设置方法、文件播放方法、装置和电子设备 Download PDF

Info

Publication number
WO2022068768A1
WO2022068768A1 PCT/CN2021/120891 CN2021120891W WO2022068768A1 WO 2022068768 A1 WO2022068768 A1 WO 2022068768A1 CN 2021120891 W CN2021120891 W CN 2021120891W WO 2022068768 A1 WO2022068768 A1 WO 2022068768A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
data
user
input
multimedia file
Prior art date
Application number
PCT/CN2021/120891
Other languages
English (en)
French (fr)
Inventor
马明月
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022068768A1 publication Critical patent/WO2022068768A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6209Protecting access to data via a platform, e.g. using keys or access control rules to a single file or object, e.g. in a secure envelope, encrypted and accessed using a key, or with access control rules appended to the object itself
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Definitions

  • the present application belongs to the field of communication technologies, and specifically relates to a method for setting rights, a method for playing a file, an apparatus and an electronic device.
  • user A wants to share the video file, but does not want other users to see a certain video clip in the video file.
  • User A can first cut out the video clip in the video file through a professional video editing application in the electronic device; then, trigger the electronic device to save the cropped video file; finally, share the saved cropped video with the other party through the electronic device document.
  • the purpose of the embodiments of the present application is to provide a permission setting method, a file playing method, an apparatus, and an electronic device, which can solve the problems of complicated operation and low efficiency in the video sharing process.
  • an embodiment of the present application provides a method for setting permissions, the method includes: in the case of recording or playing a target multimedia file, displaying N identifiers, where N is an integer greater than or equal to 1; The first input of the target identification in the identification; in response to the above-mentioned first input, the authority of the target user to view the target data is set; wherein, the target user is the user indicated by the target identification, and the target data is the first time period in the target multimedia file data within.
  • an embodiment of the present application provides a permission setting device, the permission setting device includes: a display module, a receiving module, and an execution module; the display module is configured to display N under the condition of recording or playing a target multimedia file identifier, N is an integer greater than or equal to 1; the receiving module is used to receive the first input of the target identifier in the above-mentioned N identifiers displayed by the display module; the execution module is used to respond to the first input received by the receiving module , setting the permission of the target user to view the target data; wherein, the target user is the user indicated by the target identifier, and the target data is the data in the first time period in the target multimedia file.
  • an embodiment of the present application provides a method for playing a file, the method comprising: acquiring a target multimedia file, where the target multimedia file includes at least first data in a second time period and second data in a third time period ; This first data is the data that the host user has the authority to view, and the second data is the data that the host user has no authority to view; Receive the second input to the above-mentioned target multimedia file; In response to the above-mentioned second input, play the above-mentioned target multimedia files, and skip the second data during playback.
  • an embodiment of the present application provides a file playback device, the file playback device includes: an acquisition module, a receiving module, and a playback module; the acquisition module is configured to acquire a target multimedia file, where the target multimedia file includes at least a second time The first data in the segment and the second data in the third time segment; the first data is the data that the host user has the right to view, and the second data is the data that the host user has no right to view; the receiving module is used for Receive the second input of the target multimedia file obtained by the obtaining module; the playing module is configured to play the above-mentioned target multimedia file in response to the second input received by the receiving module, and skip the second data during the playing process.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect or the third aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the implementation is as described in the first aspect or the third aspect steps of the method.
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect or the method described in the third aspect.
  • the authority setting apparatus may display N identifiers. Then, the authority setting device may set the authority of the target user to view the target data after receiving the first input of the target identification among the above N identifications.
  • the target user is the user indicated by the target identifier, and the target data is the data in the first time period in the target multimedia file.
  • the electronic device needs to cut out the segment 1 and the segment 2 in the video file 1 respectively, and then respectively send the video file 1 with the segment 1 cut out to the user A, and send the video file 1 with the segment 2 cut out to the user A respectively.
  • User B's solution does not need to cut the video file 1 in this application, but sets the viewing authority for the user to view the data of the video file 1, so that even if the same video file is shared, different users can view different data. In this way, the operation of the target multimedia file sharing process is simple and efficient.
  • FIG. 1 is a schematic flowchart of a method for setting permissions according to an embodiment of the present application
  • FIG. 2 is one of schematic diagrams of interfaces to which a method for setting permissions provided by an embodiment of the present application is applied;
  • FIG. 3 is the second schematic diagram of an interface applied by a permission setting method provided by an embodiment of the present application
  • FIG. 4 is a schematic flowchart of a method for playing a file provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an apparatus for setting permissions according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a file playback device provided by an embodiment of the present application.
  • FIG. 7 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present application.
  • FIG. 8 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
  • first”, “second” and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that embodiments of the application can be practiced in sequences other than those illustrated or described herein.
  • the objects distinguished by “first”, “second”, etc. are usually one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • FIG. 1 is a schematic flowchart of a method for setting permissions according to an embodiment of the present application, including steps 201 to 203:
  • Step 201 In the case of recording or playing the target multimedia file, the authority setting apparatus displays N identifiers.
  • one identifier indicates at least one user, and N is an integer greater than or equal to 1.
  • the above-mentioned target multimedia file may include at least one of the following: a video file and an audio file, which is not limited in this embodiment of the present application.
  • the identifiers in the present application may include at least one of the following: characters and pictures, which are not limited in the embodiments of the present application.
  • the above N identifiers may be displayed in any area on the screen of the authority setting apparatus.
  • the above N logos can be displayed in the upper area of the screen, or displayed in the lower area of the screen, or displayed in the left area of the screen, or displayed in the right area of the screen, or displayed in the upper left area of the screen, Or displayed in the upper right area of the screen, or displayed in the lower left area of the screen, or displayed in the lower right area of the screen, which is not limited in this embodiment of the present application.
  • the above-mentioned N logos may be displayed in a side area of the waterfall screen.
  • the left area 31a of the waterfall screen 31 of the mobile phone displays four signs
  • the right area 31b displays two signs.
  • the four identifiers are "Group 1", “Group 2", “Group 3” and “Group 4" respectively
  • the two identifiers are "Local” and "Public” respectively.
  • Step 202 The authority setting device receives a first input of a target identifier in the above N identifiers.
  • the above-mentioned target identifier may be one or multiple, which is not limited in the embodiment of the present application.
  • the above-mentioned first input may be the user's click input on the target identifier, or the user's input of a voice command, or the user's input of a specific gesture, which can be determined according to actual use requirements.
  • the example does not limit this.
  • the specific gesture in the embodiment of the present invention may be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-click gesture; in the embodiment of the present invention
  • the click input can be single-click input, double-click input, or click input for any number of times, etc., and can also be long-press input or short-press input.
  • Step 203 In response to the above-mentioned first input, the authority setting device sets the authority of the target user to view the target data.
  • the above-mentioned target user is the user indicated by the above-mentioned target identifier
  • the above-mentioned target data is the data in the first time period in the target multimedia file.
  • the above-mentioned authority means having the authority to view the data in the target multimedia file, or means having no authority to view the data in the target multimedia file.
  • the above-mentioned target data may be defaulted by the system, or may be set by the user, which is not limited in the embodiment of the present application.
  • the above-mentioned target user may be one user or multiple users, which is not limited in this embodiment of the present application.
  • one target identifier may indicate one user, or may indicate multiple users, which is not limited in this embodiment of the present application.
  • multiple users can be a user group.
  • the above-mentioned user group may be an existing user group in the electronic device.
  • the above-mentioned user group may be a user group in a social application program.
  • the aforementioned target user may include at least one of the following: the owner user of the aforementioned electronic device, and any user other than the owner user.
  • different first inputs correspond to different permissions.
  • the corresponding authority may be the right to view the data in the above-mentioned target multimedia file; or, in the case that the user double-clicks the target identifier, the corresponding authority may be no authority to view the above-mentioned target multimedia file. data in the file.
  • the mobile phone can divide the total duration of video file 1 into 3 time periods.
  • the three time periods are 0 to 3 minutes, 4 to 5 minutes, and 6 to 8 minutes.
  • the user wants the 0th to 3rd minutes of the video file 1 to be visible to everyone, when the playback time point of the video file 1 is any time point between the 0th and 3rd minutes, the user can click the "Public" logo, this When the mobile phone sets the 0th to 3rd minutes of video file 1 to be visible to everyone; if the user wants the 4th to 5th minutes of video file 1 to be visible only to the users indicated by group 1, when the playback time point of video file 1 is the first At any time point between 4 and 5 minutes, the user can click the "group 1" logo.
  • the mobile phone sets the 4th to 5th minutes of video file 1 to be visible to users indicated by group 1; if the user wants video file 1
  • the 6th to 8th minutes are only visible to the users indicated by group 2 and group 3, then when the playback time point of video file 1 is any time point between the 6th and 8th minutes, the user can click "Group 2" at the same time The logo and the "group 3" logo, at this time, the mobile phone sets the 6th to 8th minutes of video file 1 to be visible to users indicated by group 2 and group p3.
  • users indicated by group 1 can view minutes 0 to 5 in video file 1
  • users indicated by groups 2 and 3 can view minutes 0 to 3 in video file 1
  • users other than the users indicated by group 1, group 2 and group 3 (such as the users indicated by group 4) among other users can only view the 0th to 3rd minutes in video file 1.
  • the above-mentioned mobile phone may not display the "public" logo. It can be understood that when the mobile phone user does not select any other logo, the mobile phone determines that the data of the video file is visible to everyone.
  • the authority setting device can respectively set identification bits for data in different positions in the target multimedia file, wherein one identification bit corresponds to one identification. Then, the authority setting device can share the target multimedia file containing the identification bit to other users, and when the other user receives the target multimedia file, the other user can only be represented when the identification of the other user matches the identification corresponding to the identification bit. The user has the right to view the data corresponding to the identification bit. If the identification of other users does not match the identification corresponding to the identification bit, it means that the other user does not have the right to view the data corresponding to the identification bit.
  • the authority setting device may save the target multimedia file and the target multimedia file including the identification bit, or the authority setting device may replace the original target multimedia file with the target multimedia file including the identification bit.
  • the authority setting apparatus may determine the first time period in the following at least two possible manners.
  • the first time period may be a time period corresponding to recording or playing the target multimedia file in the process of receiving the first input.
  • the above-mentioned first time period is the time period from the start of the first input until the end of the first input.
  • the first time period may be a time period between the time point when the user's finger starts to press the target multimedia file corresponding to the target identifier until the time point when the user's finger lifts and stops pressing the corresponding target multimedia file.
  • the above-mentioned first input may be an input when recording or playing the target multimedia file to a first time point
  • the above-mentioned first time period may be a time period before or a time period after the first time point .
  • the above-mentioned time period before or after the first time point may be set by the system by default, or may be set by the user, which is not limited in this embodiment of the present application.
  • the permission setting apparatus can display N identifiers. Then, the authority setting device may set the authority of the target user to view the target data after receiving the first input of the target identification among the above N identifications.
  • the target user is the user indicated by the target identifier, and the target data is the data in the first time period in the target multimedia file.
  • the electronic device needs to cut out the segment 1 and the segment 2 in the video file 1 respectively, and then respectively send the video file 1 with the segment 1 cut out to the user A, and send the video file 1 with the segment 2 cut out to the user A respectively.
  • User B's solution does not need to cut the video file 1 in this application, but sets the viewing authority for the user to view the data of the video file 1, so that even if the same video file is shared, different users can view different data. In this way, the operation of the target multimedia file sharing process is simple and efficient.
  • the authority setting apparatus may perform different operations.
  • the setting of the permission of the target user to view the target data in the above step 203 may specifically include the following step 203a:
  • Step 203a In the case that the above-mentioned target identification includes the first identification, the authority setting device only sets the owner user to have authority to view the target data.
  • the mobile phone can divide the total duration of video file 1 into 3 time periods. The three time periods are 0 to 3 minutes, 4 to 5 minutes, and 6 to 8 minutes. If the user wants the 0th to 3rd minutes of the video file 1 to be visible only to himself, when the playback time point of the video file 1 is any time point between the 0th and 3rd minutes, the user can click the "local" logo (that is, the above-mentioned The first identifier), at this time, the mobile phone sets the 0th to 3rd minutes of the video file 1 to be visible only to the host user.
  • the "local" logo that is, the above-mentioned The first identifier
  • the setting of the permission of the target user to view the target data in the above step 203 may specifically include the following step 203b:
  • Step 203a In the case that the above-mentioned target identifier includes the second identifier, the authority setting device sets that all users have the authority to view the target data.
  • the mobile phone can divide the total duration of video file 1 into 3 time periods. The three time periods are 0 to 3 minutes, 4 to 5 minutes, and 6 to 8 minutes. If the user wants the 0th to 3rd minutes of the video file 1 to be visible to all users, when the playback time point of the video file 1 is any time point between the 0th and 3rd minutes, the user can click the "public" logo (that is, the above-mentioned ), at this time, the mobile phone sets minutes 0 to 3 of video file 1 to be visible to all users.
  • the setting of the permission of the target user to view the target data in the above step 203 may specifically include the following step 203c:
  • Step 203c In the case where the above target identifiers include the first identifier and the third identifier, the authority setting device sets the owner user to have the authority to view the target data, and sets at least one first user to have no authority to view the target data.
  • the aforementioned target identifiers may include a first identifier and a third identifier, wherein the first identifier indicates the owner user, and the third identifier indicates at least one first user different from the owner user.
  • the above-mentioned third identification and the above-mentioned second identification may be the same identification, or may be different identifications, which are not limited in this embodiment of the present application.
  • the authority setting device can only respond to the setting that the owner user has the authority to view the target data. enter.
  • the host user wants the target data to be visible only to himself, if the host user mistakenly clicks to set at least one identifier that the first user has the authority to view the target data, the authority setting device can only set the host user to have the authority to view the target data.
  • the authority setting method provided by the embodiment of the present application can be applied to the scenario of setting authority of different users according to different identifiers, and the user can quickly set the authority of the user corresponding to the target identifier according to the input of different identifiers.
  • the authority setting device may display the logos in different display areas respectively, and quickly set the user to have the authority to view the data in the target multimedia file or to have no authority to view the data in the target multimedia file through the different display areas.
  • the data may be displayed the logos in different display areas respectively, and quickly set the user to have the authority to view the data in the target multimedia file or to have no authority to view the data in the target multimedia file through the different display areas.
  • the above-mentioned N identifications may include a first identification group and a second identification group, the first identification group and the second identification group both include N/2 identifications, the identification of the first identification group and the second identification.
  • the identifiers in the group correspond one-to-one, and N is an even number greater than 1.
  • the above-mentioned N signs can be displayed in the suspension control; the first area of the suspension control is displayed with the above-mentioned first group of signs, and the second area of the suspension control is displayed with the above-mentioned second group of signs; the signs displayed in the first area are In order to indicate that there is permission to view data in the target multimedia file, the identifier displayed in the second area is used to indicate that there is no permission to view data in the target multimedia file, and the floating control includes a target button.
  • the first input may be the input of the user dragging the target button to the target identifier displayed in the target area of the floating control, where the target area is the first area or the second area.
  • the above-mentioned identifiers of the first identifier group and the identifiers in the second identifier group may be the same or different, which are not limited in this embodiment of the present application.
  • the colors of the markers in the first marker group and the markers in the second marker group may be different.
  • the permission setting device when the user presses the target button for a long time, the permission setting device can be triggered to close the setting viewing permission.
  • the above-mentioned target button may move with the dragging of the user's finger.
  • a circular control 41 is displayed on the screen of the mobile phone, and the circular control 41 includes the left half area 41a (that is, the above-mentioned No. one area), the right half area 41b (ie, the above-mentioned second area), and the black button 41c.
  • the circular control 41 displays a total of 8 logos, among which, four logos are displayed in the left half area 41a, namely "Group 1", “Group 2", “Local” and "Public”; in the right half area 41b It also shows that there are 4 identifiers, namely "Group 1", “Group 2", “Local” and "Public".
  • the mobile phone sets the group The user indicated by 1 has permission to view the 0th to 2nd minutes of video file 1; when the user wants the 0th to 2nd minutes of video file 1 to be invisible to the user indicated by group 1, the user can drag the black button 41c to the right half In the area 41b, the area where the "group 1" mark is located. At this time, the user indicated by the mobile phone setting group 1 has no right to view the 0th to 2nd minutes of the video file 1.
  • the authority setting method provided by the embodiment of the present application can be applied to the scene of quickly setting viewing authority by area.
  • the authority setting apparatus can display the above N/2 marks in both the first area and the second area. Since the marks displayed in the first area Indicates that the user has the right to view the data in the target multimedia file, and the indicator displayed in the second area indicates that the user has no right to view the data in the target multimedia file. Therefore, the user can quickly set the viewing authority by dragging the target button to the target area.
  • the authority setting device may be set by the following at least two possible implementation manners: permissions.
  • the first time period is the time period after the first time point
  • the method may further include the following steps A1 and A2:
  • Step A1 The authority setting device receives a third input.
  • the above-mentioned third input may be a user's click input on the screen, or a voice command input by the user, or a specific gesture input by the user. limited.
  • Step A2 In response to the above-mentioned third input, the authority setting means sets the second user to have authority to view files after the second time point.
  • the above-mentioned second user may be the above-mentioned host user, or may be the above-mentioned first user, which is not limited in this embodiment of the present application.
  • the above-mentioned second time point may be the same as the time point at which the authority setting apparatus receives the third input, or may be different from the time point at which the authority setting apparatus receives the third input, which is not limited in this embodiment of the present application.
  • the second time point when the second time point is the start recording time point, the second time point may be the time point when the authority setting apparatus receives the third input, or may be the time point after the time point when the authority setting apparatus receives the third input.
  • the setting of the permission of the target user to view the target data in the above step 203 may specifically include the following step 203d:
  • Step 203d The authority setting device sets that the target user has the authority to view the data after the first time point, and sets that the second user has no authority to view the data after the first time point.
  • the above-mentioned first time point is later than the above-mentioned second time point.
  • the data corresponding to the time period after the first time point is the above-mentioned target data, and the target user is different from the second user.
  • the mobile phone user can click the "group 1" logo (that is, the third input above) before recording the conference video, and then the mobile phone user can click "record” button to start recording the conference video.
  • the user corresponding to the mobile phone setting group 1 has the right to view the video after the 0th minute of the conference video.
  • the mobile phone user wants the video after 3 minutes to be invisible to the users corresponding to group 1 and visible to the users corresponding to group 2, the mobile phone user can click the "group 2" logo (that is, the above-mentioned The first input), at this time, the user corresponding to the mobile phone set group 2 has the right to view the video after the 3rd minute of the conference video, and the user corresponding to the group 1 has no permission to view the video after the 3rd minute of the conference video.
  • the "group 2" logo that is, the above-mentioned The first input
  • the first time period is the time period before the first time point
  • the method may further include the following steps B1 and B2:
  • Step B1 The authority setting device receives a fourth input.
  • the above-mentioned fourth input may be a user's click input on the screen, or a voice command input by the user, or a specific gesture input by the user. limited.
  • Step B2 In response to the above fourth input, the authority setting device sets the third user to have the authority to view files before the third time point.
  • the above-mentioned third user may be the above-mentioned host user or the above-mentioned first user, which is not limited in this embodiment of the present application.
  • time point at which the above-mentioned authority setting apparatus receives the fourth input may be the same as the third time point, or may be different from the time point at which the authority setting apparatus receives the fourth input, which is not limited in this embodiment of the present application.
  • the time point at which the authority setting apparatus receives the fourth input may be the third time point, or may be a time point of a preset duration (eg, 1 second) after the third time point.
  • the setting of the permission of the target user to view the target data in the above step 203 may specifically include the following step 203e:
  • Step 203e The authority setting device sets the target user to have authority to view data later than the third time point and earlier than the first time point.
  • the above-mentioned first time point is later than the above-mentioned third time point.
  • the data that is later than the third time point and earlier than the first time point is the above-mentioned target data.
  • the mobile phone user can click the "record” button to start recording the conference video.
  • the conference video is recorded for 3 minutes, if the mobile phone user wants the video 3 minutes ago to be visible to the users corresponding to group 1, the mobile phone user can click the "group 1" logo (that is, the fourth input above). Users corresponding to group 1 have permission to view the video from the 0th to the 3rd minute of the conference video.
  • the mobile phone user wants the video from the 3rd to the 6th minute to be visible to the users corresponding to group 2, the mobile phone user can click the "group 2" logo (that is, the above-mentioned first input), at this time , the user corresponding to the mobile phone setting group 2 has the right to view the 3rd to 6th minutes of the conference video.
  • the permission setting method provided by the embodiment of the present application can be applied to the scenario where viewing permission is set when recording or playing a target multimedia file.
  • the viewing permission of the file is set, so that the permission setting device can set the permission more flexibly in the case of recording or playing the target multimedia file.
  • time point in this application can be understood as a time point.
  • FIG. 4 is a schematic flowchart of a file playback method provided by an embodiment of the present application, including steps 501 to 503:
  • Step 501 The file playing device obtains the target multimedia file.
  • the above-mentioned target multimedia file includes at least the first data in the second time period and the second data in the third time period.
  • the first data is data that the owner user has permission to view
  • the second data is data that the owner user has no permission to view.
  • the above-mentioned target multimedia file may include at least one of the following: a video file and an audio file, which is not limited in this embodiment of the present application.
  • the above-mentioned target multimedia file may be a multimedia file downloaded by a file playback device, a multimedia file sent by a target device, or a multimedia file in a local storage area of a file playback device, which is not made in the embodiments of the present application.
  • the target device may be a server, may also be the above-mentioned authority setting device, or may be any other possible device, which is not limited in this embodiment of the present application.
  • the above-mentioned first data may be the above-mentioned target data, or may be different from the above-mentioned target data, which is not limited in this embodiment of the present application.
  • the above-mentioned second data may be the above-mentioned target data, or may be different from the above-mentioned target data, which is not limited in this embodiment of the present application.
  • Step 502 The file playing device receives the second input of the above-mentioned target multimedia file.
  • the above-mentioned second input may be the user's click input on the target multimedia file, or the user's input of a voice command, or the user's input of a specific gesture, which can be determined according to actual use requirements.
  • the embodiment does not limit this.
  • Step 503 In response to the above-mentioned second input, the file playing device plays the above-mentioned target multimedia file, and skips the second data during the playing process.
  • skipping of the second data during the playing process can be understood as skipping the third time period during the playing process.
  • the mobile phone acquires a video file 1, and the video file 1 includes two time periods, and the two time periods are respectively 0 to 3 minutes and 4 to 5 minutes.
  • the mobile phone user has no right to view the 0th to 3rd minutes of the video file 1, and has the right to view the 4th to 5th minutes of the video file 1.
  • the mobile phone user wants to watch the video file 1, the mobile phone user can click the "play" button of the video file 1.
  • the mobile phone skips the 0th to 3rd minutes of the video file 1 and plays the 4th to 5th minutes of the video file 1 normally. minute.
  • the file playing device can acquire the target multimedia file, and then, after receiving the second input of the above-mentioned target multimedia file, the file playing device can play the above-mentioned target multimedia file, and after playing The second data is skipped during the process.
  • the target multimedia file includes at least the first data in the second time period and the second data in the third time period; the first data is the data that the host user has permission to view, and the second data is the host user Data without permission to view.
  • the execution subject may be a permission setting device, or a control module in the permission setting device for executing the permission setting method.
  • the authority setting apparatus provided by the embodiment of the present application is described by taking the authority setting apparatus executing the authority setting method as an example.
  • FIG. 5 is a schematic diagram of a possible structure for implementing a permission setting device provided by an embodiment of the present application.
  • the permission setting device 600 includes: a display module 601, a receiving module 602, and an execution module 603; wherein, the display module 601 , used to display N identifiers in the case of recording or playing the target multimedia file, where N is an integer greater than or equal to 1; the receiving module 602 is used to receive the first number of the target identifiers in the N identifiers displayed by the display module 601 An input; the execution module 603 is used to set the authority of the target user to view the target data in response to the first input received by the receiving module 602; wherein, the target user is the user indicated by the target identification, and the target data is in the target multimedia file. Data for the first time period.
  • the above-mentioned first time period is a time period corresponding to the recording or playing of the target multimedia file in the process of receiving the first input.
  • the above-mentioned first input is an input when recording or playing the target multimedia file to a first time point
  • the above-mentioned first time period is a time period before or a time period after the first time point.
  • the execution module 603 is specifically configured to: in the case that the target identifier includes the first identifier, only the owner user is set to have the authority to view the target data; or, in the case that the target identifier includes the second identifier, set all users All have permission to view the target data.
  • the N identifications include a first identification group and a second identification group, the first identification group and the second identification group both include N/2 identifications, and the identification of the first identification group and the second identification group.
  • the identifiers are in one-to-one correspondence, and N is an even number greater than 1; the N identifiers are displayed in the suspension control; the first area of the suspension control displays the first identifier group, and the second area of the suspension control displays the second identifier group; the The logo displayed in the first area is used to indicate that you have the right to view the data in the target multimedia file, the logo displayed in the second area is used to indicate that you have no right to view the data in the target multimedia file, and the floating control includes a target button; wherein the first The input is the input of the target identifier displayed by the user dragging the target button to the target area of the floating control, and the target area is the first area or the second area.
  • the authority setting apparatus In the authority setting apparatus provided by the embodiment of the present application, first, in the case of recording or playing a target multimedia file, the authority setting apparatus can display N identifiers. Then, the authority setting device may set the authority of the target user to view the target data after receiving the first input of the target identification among the above N identifications.
  • the target user is the user indicated by the target identifier, and the target data is the data in the first time period in the target multimedia file.
  • the user can quickly set the viewing authority of the target user to view the data in the target multimedia file through the displayed N identifiers.
  • the electronic device needs to cut out the segment 1 and the segment 2 in the video file 1 respectively, and then respectively send the video file 1 with the segment 1 cut out to the user A, and send the video file 1 with the segment 2 cut out to the user A respectively.
  • User B's solution does not need to cut the video file 1 in this application, but sets the viewing authority for the user to view the data of the video file 1, so that even if the same video file is shared, different users can view different data. In this way, the operation of the target multimedia file sharing process is simple and efficient.
  • the authority setting apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the permission setting device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the authority setting apparatus provided in the embodiment of the present application can implement each process implemented by the method embodiments in FIG. 1 to FIG. 3 , and to avoid repetition, details are not repeated here.
  • the execution body may be a file playing device, or a control module in the file playing device for executing the file playing method.
  • the file playing device provided by the embodiment of the present application is described by taking the file playing method performed by the file playing device as an example.
  • FIG. 6 is a schematic diagram of a possible structure for implementing a file playback device provided by an embodiment of the present application.
  • the file playback device 700 includes: an acquisition module 701, a reception module 702, and a playback module 703; wherein, the acquisition module 701 , used to obtain the target multimedia file, the above-mentioned target multimedia file includes at least the first data in the second time period and the second data in the third time period; the first data is the data that the owner user has the right to view, the The second data is the data that the host user has no right to view; the receiving module 702 is used to receive the second input to the above-mentioned target multimedia file obtained by the obtaining module 701 ; the playing module 703 is used to respond to the above-mentioned received The second input is to play the above-mentioned target multimedia file, and skip the second data during the playing process.
  • the acquisition module 701 used to obtain the target multimedia file
  • the above-mentioned target multimedia file includes at least the first data in
  • the file playing device can obtain the target multimedia file, and then, after receiving the second input of the above-mentioned target multimedia file, the file playing device can play the above-mentioned target multimedia file, and after playing The second data is skipped during the process.
  • the target multimedia file includes at least the first data in the second time period and the second data in the third time period; the first data is the data that the host user has permission to view, and the second data is the host user Data without permission to view.
  • the authority setting apparatus in this embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • the permission setting device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • the authority setting apparatus provided in the embodiment of the present application can implement each process of the file playing method embodiment, and in order to avoid repetition, details are not repeated here.
  • an embodiment of the present application further provides an electronic device 800, including a processor 801, a memory 802, a program or instruction stored in the memory 802 and executable on the processor 801,
  • an electronic device 800 including a processor 801, a memory 802, a program or instruction stored in the memory 802 and executable on the processor 801,
  • the program or instruction is executed by the processor 801
  • each process of the above-mentioned embodiment of the permission setting method or the file playing method can be achieved, and the same technical effect can be achieved. To avoid repetition, details are not described here.
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 8 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the display unit 106 is used to display N identifiers when recording or playing the target multimedia file, where N is an integer greater than or equal to 1; the user input unit 107 is used to receive the N identifiers displayed on the display unit 106 The first input of the target identification in the processor 110, in response to the first input received by the user input unit 107, setting the authority of the target user to view the target data; wherein, the target user is the user indicated by the target identification, The target data is data in the first time period in the target multimedia file.
  • the above-mentioned first time period is a time period corresponding to the recording or playing of the target multimedia file in the process of receiving the first input.
  • the above-mentioned first input is an input when recording or playing the target multimedia file to a first time point
  • the above-mentioned first time period is a time period before or a time period after the first time point.
  • the processor 110 is specifically configured to: in the case that the target identifier includes the first identifier, set only the owner user to have the right to view the target data; or, in the case that the target identifier includes the second identifier, set all users All have permission to view the target data.
  • the N identifications include a first identification group and a second identification group, the first identification group and the second identification group both include N/2 identifications, and the identification of the first identification group and the second identification group.
  • the identifiers are in one-to-one correspondence, and N is an even number greater than 1; the N identifiers are displayed in the suspension control; the first area of the suspension control displays the first identifier group, and the second area of the suspension control displays the second identifier group; the The logo displayed in the first area is used to indicate that you have the right to view the data in the target multimedia file, the logo displayed in the second area is used to indicate that you have no right to view the data in the target multimedia file, and the floating control includes a target button; wherein the first The input is the input of the target identifier displayed by the user dragging the target button to the target area of the floating control, and the target area is the first area or the second area.
  • the electronic device first, in the case of recording or playing a target multimedia file, the electronic device can display N identifiers. Then, after receiving the first input of the target identifier among the above N identifiers, the electronic device may set the permission of the target user to view the target data.
  • the target user is the user indicated by the target identifier, and the target data is the data in the first time period in the target multimedia file.
  • the electronic device needs to cut out the segment 1 and the segment 2 in the video file 1 respectively, and then respectively send the video file 1 with the segment 1 cut out to the user A, and send the video file 1 with the segment 2 cut out to the user A respectively.
  • User B's solution does not need to cut the video file 1 in this application, but sets the viewing authority for the user to view the data of the video file 1, so that even if the same video file is shared, different users can view different data. In this way, the operation of the target multimedia file sharing process is simple and efficient.
  • the radio frequency unit 101 is used to obtain a target multimedia file, and the above-mentioned target multimedia file includes at least the first data in the second time period and the second data in the third time period; the first data is the owner user has the right to view The second data is the data that the host user has no right to view; the user input unit 107 is used to receive the second input of the above-mentioned target multimedia file obtained by the radio frequency unit 101; the audio output unit 103 is used to respond to the The above-mentioned second input received by the user input unit 107 plays the above-mentioned target multimedia file, and skips the second data during the playing process.
  • the electronic device can acquire the target multimedia file, and then, after receiving the second input to the above-mentioned target multimedia file, the electronic device can play the above-mentioned target multimedia file, and skips during the playing process. pass the second data.
  • the target multimedia file includes at least the first data in the second time period and the second data in the third time period; the first data is the data that the host user has permission to view, and the second data is the host user Data without permission to view.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 107 includes a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, and the like, and the modem processor mainly processes wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the permission setting method or the file playing method is implemented, And can achieve the same technical effect, in order to avoid repetition, it is not repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run a program or an instruction to implement the above-mentioned permission setting method or file playback
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run a program or an instruction to implement the above-mentioned permission setting method or file playback
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Abstract

一种权限设置方法、文件播放方法、装置和电子设备,该方法包括:在录制或者播放目标多媒体文件的情况下,权限设置装置显示N个标识(201),N为大于或等于1的整数;权限设置装置接收对上述N个标识中的目标标识的第一输入(202);响应于上述第一输入,权限设置装置设置目标用户查看目标数据的权限(203);其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。

Description

权限设置方法、文件播放方法、装置和电子设备
相关申请的交叉引用
本申请主张在2020年9月30日提交国家知识产权局、申请号为202011060332.0、申请名称为“权限设置方法、文件播放方法、装置和电子设备”的中国专利申请的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种权限设置方法、文件播放方法、装置和电子设备。
背景技术
随着电子设备的发展,用户使用电子设备向其他用户分享多媒体文件的频率越来越高。在用户通过电子设备分享多媒体文件时,经常存在不希望文件的部分内容被分享的情况。
以分享视频文件为例,用户A想要分享视频文件,但不希望其他用户看到该视频文件中的某一视频片段。用户A首先可以通过电子设备中的专业视频编辑应用程序裁剪掉视频文件中的该视频片段;然后,触发电子设备保存裁剪后的视频文件;最后,通过电子设备向对方分享保存的裁剪之后的视频文件。
然而,当用户A想要向多个其他用户分享同一个视频文件时,对于不同的其他用户,用户A不希望其他用户看到的视频片段不同,若用户按照上述方式裁剪视频文件,则可能需要用户对该视频文件多次重复执行上述的裁剪过程的操作步骤。如此,使得整个视频分享过程操作繁琐、效率低。
发明内容
本申请实施例的目的是提供一种权限设置方法、文件播放方法、装置和电子设备,能够解决视频分享过程中所存在的操作繁琐、效率低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种权限设置方法,该方法包括:在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;接收对上述N个标识中的目标标识的第一输入;响应于上述第一输入,设置目标用户查看目标数据的权限;其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。
第二方面,本申请实施例提供了一种权限设置装置,该权限设置装置包括:显示模块、接收模块和执行模块;显示模块,用于在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;接收模块,用于接收对显示模块显示的上述N个标识 中的目标标识的第一输入;执行模块,用于响应于接收模块接收到的第一输入,设置目标用户查看目标数据的权限;其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。
第三方面,本申请实施例提供了一种文件播放方法,该方法包括:获取目标多媒体文件,该目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据;接收对上述目标多媒体文件的第二输入;响应于上述第二输入,播放上述目标多媒体文件,并在播放过程中跳过第二数据。
第四方面,本申请实施例提供了一种文件播放装置,该文件播放装置包括:获取模块、接收模块和播放模块;获取模块,用于获取目标多媒体文件,该目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据;接收模块,用于接收对获取模块获取到的目标多媒体文件的第二输入;播放模块,用于响应于接收模块接收到的第二输入,播放上述目标多媒体文件,并在播放过程中跳过第二数据。
第五方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面或第三方面所述的方法的步骤。
第六方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面或第三方面所述的方法的步骤。
第七方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面或第三方面所述的方法。
在本申请实施例中,首先,在录制或者播放目标多媒体文件的情况下,权限设置装置可以显示N个标识。然后,权限设置装置可以在接收到对上述N个标识中的目标标识的第一输入之后,设置目标用户查看目标数据的权限。其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。通过上述方案,用户可以通过显示的N个标识快速设置目标用户查看目标多媒体文件中的数据的查看权限。例如,当用户想要向用户A和用户B分享视频文件1,但不希望用户A查看到视频文件1中的片段1,且不希望用户B查看到视频文件1中的片段2时,用户可以通过对用户A对应的标识的输入,快速设置用户A无权限查看视频文件1中的片段1,通过对用户B对应的标识的输入,快速设置用户B无权限查看视频文件1中的片段2。相比于现有技术需要电子设备分别裁剪掉视频文件1中的片段1和片段2,然后分别将裁剪掉片段1的视频文件1发送给用户A,将裁剪掉片段2的视频文件1发送给用户B的方案,本申请无需对视频文件1进行剪裁,而是通过设置用户查看视频文件1的数据的查看权限,使得即使分享同一视频文件也可实现不同的用户查看到不同的数据。如此,使得目标多媒体文件分享过程操作简便、效率高。
附图说明
图1为本申请实施例提供的一种权限设置方法流程示意图;
图2为本申请实施例提供的一种权限设置方法所应用的界面示意图之一;
图3为本申请实施例提供的一种权限设置方法所应用的界面示意图之二;
图4为本申请实施例提供的一种文件播放方法流程示意图;
图5为本申请实施例提供的一种权限设置装置的结构示意图;
图6为本申请实施例提供的一种文件播放装置的结构示意图;
图7为本申请实施例提供的一种电子设备的结构示意图之一;
图8为本申请实施例提供的一种电子设备的结构示意图之二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的权限设置方法进行详细地说明。
图1为本申请实施例提供的一种权限设置方法流程示意图,包括步骤201至步骤203:
步骤201:在录制或者播放目标多媒体文件的情况下,权限设置装置显示N个标识。
其中,一个标识指示至少一个用户,N为大于或等于1的整数。
在本申请实施例中,上述的目标多媒体文件可以包括以下至少一项:视频文件,音频文件,本申请实施例对此不作限定。
在本申请实施例中,本申请中的标识可以包括以下至少一项:字符、图片,本申请实施例对此不作限定。
在本申请实施例中,上述的N个标识可以显示在权限设置装置的屏幕中的任意区域。例如,上述的N个标识可以显示在屏幕的上方区域,或者显示在屏幕的下方区域,或者显示在屏幕的左方区域,或者显示在屏幕的右方区域,或者显示在屏幕的左上方区域,或者显示在屏幕的右上方区域,或者显示在屏幕的左下方区域,或者显示在屏幕的右下方区域,本申请实施例对此不作限定。
在一种示例中,在上述的权限设置装置具有瀑布屏的情况下,上述的N个标识可以显示在瀑布屏的侧边区域。例如,如图2所示,以权限设置装置为手机为例,手机的瀑布屏31的左侧区31a显示有4个标识,右侧区31b显示有2个标识。其中,该4个标识分别为“组1”、“组2”、“组3”和“组4”,该2个标识分别为“本地”和“公共”。
步骤202:权限设置装置接收对上述N个标识中的目标标识的第一输入。
在本申请实施例中,上述的目标标识可以为一个,也可以为多个,本申请实施例对此 不作限定。
在本申请实施例中,上述的第一输入可以为用户对目标标识的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
本发明实施例中的特定手势可以为单击手势、滑动手势、拖动手势、压力识别手势、长按手势、面积变化手势、双按手势、双击手势中的任意一种;本发明实施例中的点击输入可以为单击输入、双击输入或任意次数的点击输入等,还可以为长按输入或短按输入。
步骤203:响应于上述第一输入,权限设置装置设置目标用户查看目标数据的权限。
其中,上述目标用户为上述目标标识指示的用户,上述目标数据为目标多媒体文件中第一时间段内的数据。
在本申请实施例中,上述权限为有权限查看上述目标多媒体文件中的数据,或,为无权限查看该目标多媒体文件中的数据。
在本申请实施例中,上述的目标数据可以为系统默认的,也可以为用户设置的,本申请实施例对此不作限定。
在本申请实施例中,上述的目标用户可以为一个用户,也可以为多个用户,本申请实施例对此不作限定。
可以理解,一个目标标识可以指示一个用户,也可以指示多个用户,本申请实施例对此不作限定。其中,多个用户可以为一个用户群组。在一种示例中,上述的用户群组可以为电子设备中已有的用户群组。例如,上述的用户群组可以为社交应用程序中的用户群组。
在本申请实施例中,上述的目标用户可以包括以下至少一项:上述电子设备的机主用户,除机主用户以外的任意用户。
在本申请实施例中,不同的第一输入对应不同的权限。例如,在用户单击目标标识的情况下,对应的权限可以为有权限查看上述目标多媒体文件中的数据;或者,在用户双击目标标识的情况下,对应的权限可以为无权限查看上述目标多媒体文件中的数据。
举例说明,结合图2,以手机用户想要向其他用户分享视频文件1为例,假设视频文件1的总时长为8分钟,手机可以将视频文件1的总时长划分为3个时间段,该3个时间段分别为0至3分钟、4至5分钟以及6至8分钟。若用户希望视频文件1的第0至3分钟对所有人可见,则当视频文件1的播放时间点为第0到3分钟之间的任意时间点时,用户可以单击“公共”标识,此时,手机设置视频文件1的第0至3分钟为所有人可见;若用户希望视频文件1的第4至5分钟只对组1指示的用户可见,则当视频文件1的播放时间点为第4到5分钟之间的任意时间点时,用户可以单击“组1”标识,此时,手机设置视频文件1的第4至5分钟为组1指示的用户可见;若用户希望视频文件1的第6至8分钟只对组2和组3指示的用户可见,则当视频文件1的播放时间点为第6到8分钟之间的任意时间点时,用户可以同时单击“组2”标识和“组3”标识,此时,手机设置视频文件1的第6至8分钟为组2和组p3指示的用户可见。如此,当其他用户收到视频文件1时,组1指示的用户可以查看视频文件1中的第0至5分钟,组2和组3指示的用户可以查看视频文件1中的第0至3分钟和第6至8分钟,其他用户中除组1、组2和组3指示的用户以外的用户(如组4指示的用户)仅可以查看视频文件1中的第0至3分钟。
需要说明的是,上述的手机可以不显示“公共”标识,可以理解,当手机用户不选择 其他任一标识时,手机确定视频文件的数据对所有人可见。
需要说明的是,上述设置该目标标识指示的用户查看目标数据的查看权限可以理解,权限设置装置可以为目标多媒体文件中的不同位置的数据分别设置标识位,其中,一个标识位对应一个标识。然后,权限设置装置可以将包含标识位的目标多媒体文件分享给其他用户,当其他用户收到目标多媒体文件时,只有在其他用户的标识与标识位对应的标识匹配的情况下才表示该其他用户有权限查看该标识位对应的数据,在其他用户的标识与标识位对应的标识不匹配的情况下表示该其他用户无权限查看该标识位对应的数据。
需要说明的是,权限设置装置可以保存目标多媒体文件和包含标识位的目标多媒体文件,或者权限设置装置可以以包含标识位的目标多媒体文件替换原有的目标多媒体文件。
可选地,在本申请实施例中,权限设置装置可以通过以下至少两种可能的方式确定第一时间段。
在第一种示例中,在上述第一输入为长按输入的情况下,上述第一时间段可以是接收该第一输入的过程中,录制或播放目标多媒体文件对应的时间段。
可以理解,上述的第一时间段为第一输入开始直到第一输入结束的时间段。例如,第一时间段可以为用户手指开始按压目标标识对应的目标多媒体文件的时间点,直到用户手指抬起停止按压对应的目标多媒体文件的时间点之间的时间段。
在第二种示例中,上述第一输入可以为在录制或者播放目标多媒体文件至第一时间点时的输入,上述第一时间段可以为该第一时间点之前的时间段或之后的时间段。
示例性的,上述的第一时间点之前的时间段或之后的时间段可以为系统默认设置的,也可以为用户设置的,本申请实施例对此不作限定。
本申请实施例提供的权限设置方法,首先,在录制或者播放目标多媒体文件的情况下,权限设置装置可以显示N个标识。然后,权限设置装置可以在接收到对上述N个标识中的目标标识的第一输入之后,设置目标用户查看目标数据的权限。其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。通过上述方案,用户可以通过显示的N个标识快速设置目标用户查看目标多媒体文件中的数据的查看权限。例如,当用户想要向用户A和用户B分享视频文件1,但不希望用户A查看到视频文件1中的片段1,且不希望用户B查看到视频文件1中的片段2时,用户可以通过对用户A对应的标识的输入,快速设置用户A无权限查看视频文件1中的片段1,通过对用户B对应的标识的输入,快速设置用户B无权限查看视频文件1中的片段2。相比于现有技术需要电子设备分别裁剪掉视频文件1中的片段1和片段2,然后分别将裁剪掉片段1的视频文件1发送给用户A,将裁剪掉片段2的视频文件1发送给用户B的方案,本申请无需对视频文件1进行剪裁,而是通过设置用户查看视频文件1的数据的查看权限,使得即使分享同一视频文件也可实现不同的用户查看到不同的数据。如此,使得目标多媒体文件分享过程操作简便、效率高。
可选地,在本申请实施例中,在目标标识不同的情况下,权限设置装置可以执行不同的操作。
在第一种示例中,上述的步骤203中的设置目标用户查看目标数据的权限具体可以包括如下步骤203a:
步骤203a:在上述目标标识包括第一标识的情况下,权限设置装置仅设置机主用户有 权限查看目标数据。
举例说明,结合图2,以手机用户想要向其他用户分享视频文件1为例,假设视频文件1的总时长为8分钟,手机可以将视频文件1的总时长划分为3个时间段,该3个时间段分别为0至3分钟、4至5分钟以及6至8分钟。若用户希望视频文件1的第0至3分钟仅自己可见,则当视频文件1的播放时间点为第0到3分钟之间的任意时间点时,用户可以点击“本地”标识(即上述的第一标识),此时,手机设置视频文件1的第0至3分钟为仅机主用户可见。
在第二种示例中,上述的步骤203中的设置目标用户查看目标数据的权限具体可以包括如下步骤203b:
步骤203a:在上述目标标识包括第二标识的情况下,权限设置装置设置所有用户均有权限查看目标数据。
举例说明,结合图2,以手机用户想要向其他用户分享视频文件1为例,假设视频文件1的总时长为8分钟,手机可以将视频文件1的总时长划分为3个时间段,该3个时间段分别为0至3分钟、4至5分钟以及6至8分钟。若用户希望视频文件1的第0至3分钟为所有用户可见,则当视频文件1的播放时间点为第0到3分钟之间的任意时间点时,用户可以点击“公共”标识(即上述的第二标识),此时,手机设置视频文件1的第0至3分钟为所有用户可见。
在第三种示例中,上述的步骤203中的设置目标用户查看目标数据的权限具体可以包括如下步骤203c:
步骤203c:在上述目标标识包括第一标识和第三标识的情况下,权限设置装置设置机主用户有权限查看目标数据,并设置至少一个第一用户无权限查看目标数据。
示例性的,上述的目标标识可以包括第一标识和第三标识,其中,第一标识指示机主用户,第三标识指示与机主用户不同的至少一个第一用户。
需要说明的是,上述的第三标识与上述的第二标识可以为同一标识,也可以不同的标识,本申请实施例对此不作限定。
可以理解,在权限设置装置接收到设置机主用户有权限查看目标数据,以及至少一个第一用户有权限查看目标数据的输入之后,权限设置装置可以仅响应设置机主用户有权限查看目标数据的输入。如此,当机主用户希望目标数据仅自己可见时,若机主用户误点击设置至少一个第一用户有权限查看目标数据的标识时,权限设置装置可以仅设置机主用户有权限查看目标数据,并设置上述至少一个第一用户无权限查看目标数据,从而防止数据泄露,提高了数据安全性。
本申请实施例提供的权限设置方法可以应用于根据不同标识设置不同用户的权限的场景中,用户可以根据通过对不同标识输入,实现快速设置目标标识对应的用户的权限。
可选地,在本申请实施例中,权限设置装置可以在不同的显示区域中分别显示标识,通过不同的显示区域快速设置用户有权限查看目标多媒体文件中的数据或无权限查看目标多媒体文件中的数据。
示例性的,上述的N个标识可以包括第一标识组和第二标识组,该第一标识组和该第二标识组均包括N/2个标识,第一标识组的标识和第二标识组中的标识一一对应,N为大于1的偶数。
上述N个标识可以显示在悬浮控件中;该悬浮控件的第一区域显示有上述第一标识组,且该悬浮控件的第二区域显示有上述第二标识组;该第一区域显示的标识用于指示有权限查看目标多媒体文件中的数据,该第二区域显示的标识用于指示无权限查看目标多媒体文件中的数据,该悬浮控件包括目标按钮。
其中,上述第一输入可以为用户拖动目标按钮至上述悬浮控件的目标区域显示的目标标识的输入,该目标区域为上述第一区域或上述第二区域。
可以理解,上述的第一标识组的标识和第二标识组中的标识可以相同,也可以不同,本申请实施例对此不作限定。例如,第一标识组的标识的颜色和第二标识组中的标识的颜色可以不同。
在一种示例中,当用户长按目标按钮可以触发权限设置装置关闭设置查看权限。示例性的,上述的目标按钮可以随着用户手指的拖动而移动。
举例说明,以手机用户想要向其他用户分享视频文件1为例,如图3所示,手机屏幕上显示有一个圆形控件41,该圆形控件41包括左半区域41a(即上述的第一区域)、右半区域41b(即上述的第二区域)和黑色按钮41c。该圆形控件41中共显示有8个标识,其中,左半区域41a中显示有4个标识,分别为“组1”、“组2”、“本地”和“公共”;右半区域41b中也显示有4个标识,分别为“组1”、“组2”、“本地”和“公共”。当用户想要视频文件1的第0至2分钟对组1指示的用户可见时,用户可以拖动黑色按钮41c至左半区域41a中“组1”标识所在的区域,此时,手机设置组1指示的用户有权限查看视频文件1的第0至2分钟;当用户想要视频文件1的第0至2分钟对组1指示的用户不可见时,用户可以拖动黑色按钮41c至右半区域41b中“组1”标识所在的区域,此时,手机设置组1指示的用户无权限查看视频文件1的第0至2分钟。
本申请实施例提供的权限设置方法可以应用于分区域快速设置查看权限场景中,权限设置装置可以在第一区域和第二区域中均显示上述N/2个标识,由于第一区域显示的标识指示有权限查看目标多媒体文件中的数据,第二区域显示的标识指示无权限查看目标多媒体文件中的数据,因此,用户可以通过将目标按钮拖动到目标区域快速设置查看权限。
可选地,在本申请实施例中,在上述第一时间段为该第一时间点之前的时间段或之后的时间段的情况下,权限设置装置可以通过以下至少两种可能实现的方式设置权限。
在第一种实现方式中(第一时间段为该第一时间点之后的时间段):
示例性的,在上述的目标状态为录制或者播放目标多媒体文件的情况下,在上述的步骤202之前,该方法还可以包括如下步骤A1和步骤A2:
步骤A1:权限设置装置接收第三输入。
示例性的,上述的第三输入可以为用户对屏幕的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
步骤A2:响应于上述第三输入,权限设置装置设置第二用户有权限查看第二时间点之后的文件。
示例性的,上述的第二用户可以为上述的机主用户,也可以为上述的第一用户,本申请实施例对此不作限定。
示例性的,上述的第二时间点可以与权限设置装置接收第三输入的时间点相同,也可 以与权限设置装置接收第三输入的时间点不同,本申请实施例对此不作限定。例如,第二时间点为起始录制时间点时,第二时间点可以为权限设置装置接收第三输入的时间点,也可以为权限设置装置接收第三输入的时间点之后的时间点。
基于上述的步骤A1和步骤A2,上述的步骤203中的设置目标用户查看目标数据的权限具体可以包括如下步骤203d:
步骤203d:权限设置装置设置目标用户有权限查看第一时间点后的数据,并设置第二用户无权限查看第一时间点后的数据。
其中,上述第一时间点晚于上述第二时间点。
需要说明的是,第一时间点之后的时间段对应的数据即为上述的目标数据,目标用户与第二用户不同。
举例说明,以手机用户利用手机录制会议视频为例,结合图2,手机用户可以在录制会议视频前单击“组1”标识(即上述的第三输入),然后手机用户可以点击“录制”按钮,开始录制会议视频,此时,手机设置组1对应的用户有权限查看该会议视频的第0分钟以后的视频。当会议视频录制到3分钟时,若手机用户希望3分钟以后的视频对组1对应的用户不可见,对组2对应的用户可见,则手机用户可以单击“组2”标识(即上述的第一输入),此时,手机设置组2对应的用户有权限查看该会议视频的第3分钟以后的视频,组1对应的用户无权限查看该会议视频的第3分钟以后的视频。
在第二种实现方式中(第一时间段为该第一时间点之前的时间段):
示例性的,在上述的目标状态为录制或者播放目标多媒体文件的情况下,在上述的步骤202之前,该方法还可以包括如下步骤B1和步骤B2:
步骤B1:权限设置装置接收第四输入。
示例性的,上述的第四输入可以为用户对屏幕的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
步骤B2:响应于上述第四输入,权限设置装置设置第三用户有权限查看第三时间点前的文件。
示例性的,上述的第三用户可以为上述的机主用户,也可以为上述的第一用户,本申请实施例对此不作限定。
需要说明的是,上述的权限设置装置接收第四输入的时间点可以与第三时间点相同,也可以与权限设置装置接收第四输入的时间点不同,本申请实施例对此不作限定。例如,权限设置装置接收第四输入的时间点可以为第三时间点,也可以为第三时间点之后预设时长(如,1秒)的时间点。
基于上述的步骤B1和步骤B2,上述的步骤203中的设置目标用户查看目标数据的权限具体可以包括如下步骤203e:
步骤203e:权限设置装置设置目标用户有权限查看晚于第三时间点且早于第一时间点的数据。
其中,上述第一时间点晚于上述第三时间点。
需要说明的是,晚于第三时间点且早于第一时间点的数据即为上述的目标数据。
举例说明,以手机用户利用手机录制会议视频为例,结合图2,手机用户可以点击“录 制”按钮,开始录制会议视频。当会议视频录制到3分钟时,若手机用户希望3分钟以前的视频对组1对应的用户可见,手机用户可以单击“组1”标识(即上述的第四输入),此时,手机设置组1对应的用户有权限查看该会议视频的第0至3分钟的视频。当会议视频录制到6分钟时,若手机用户希望第3至6分钟的视频对组2对应的用户可见,则手机用户可以单击“组2”标识(即上述的第一输入),此时,手机设置组2对应的用户有权限查看该会议视频的第3至6分钟的视频。
本申请实施例提供的权限设置方法可以应用于录制或播放目标多媒体文件时设置查看权限的场景中,权限设置装置可以对未录制或未播放的文件提前设置查看权限,也可以对已录制已播放的文件设置查看权限,使得权限设置装置在录制或播放目标多媒体文件的情况下更灵活地设置权限。
需要说明的是,本申请中的时间点可以理解为时刻。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件播放方法进行详细地说明。
图4为本申请实施例提供的一种文件播放方法流程示意图,包括步骤501至步骤503:
步骤501:文件播放装置获取目标多媒体文件。
其中,上述目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据。该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据。
在本申请实施例中,上述的目标多媒体文件可以包括以下至少一项:视频文件,音频文件,本申请实施例对此不作限定。
示例性的,上述的目标多媒体文件可以为文件播放装置下载的多媒体文件,也可以为目标设备发送的多媒体文件,还可以为文件播放装置本地存储区中的多媒体文件,本申请实施例对此不作限定。其中,目标设备可以为服务器,也可以为上述的权限设置装置,还可以为其他任意可能的设备,本申请实施例对此不作限定。
示例性的,上述的第一数据可以为上述的目标数据,也可以与上述的目标数据不同,本申请实施例对此不作限定。上述的第二数据可以为上述的目标数据,也可以与上述的目标数据不同,本申请实施例对此不作限定。
步骤502:文件播放装置接收对上述目标多媒体文件的第二输入。
在本申请实施例中,上述的第二输入可以为用户对目标多媒体文件的点击输入,或者是用户输入的语音指令,或者是用户输入的特定手势,具体的可以根据实际使用需求确定,本发明实施例对此不作限定。
步骤503:响应于上述第二输入,文件播放装置播放上述目标多媒体文件,并在播放过程中跳过第二数据。
可以理解,上述的在播放过程中跳过第二数据可以理解为在播放过程中跳过第三时间段。
举例说明,手机获取到视频文件1,该视频文件1包括2个时间段,该2个时间段分别为0至3分钟以及4至5分钟。其中,手机用户无权限查看该视频文件1的第0至3分钟,有权限查看该视频文件1的第4至5分钟。当手机用户想要观看视频文件1时,手机用户可以点击视频文件1的“播放”按键,此时,手机跳过视频文件1的第0至3分钟, 正常播放视频文件1的第4至5分钟。
本申请实施例提供的文件播放方法,首先,文件播放装置可以获取目标多媒体文件,然后,文件播放装置在接收到对上述目标多媒体文件的第二输入之后,可以播放上述目标多媒体文件,并在播放过程中跳过第二数据。其中,该目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据。通过上述方案,文件播放装置在获取到目标多媒体文件之后,可以根据机主用户是否被设置查看目标多媒体文件中的数据的权限,对目标多媒体文件进行播放。
需要说明的是,本申请实施例提供的权限设置方法,执行主体可以为权限设置装置,或者该权限设置装置中的用于执行权限设置方法的控制模块。本申请实施例中以权限设置装置执行权限设置方法为例,说明本申请实施例提供的权限设置装置。
图5为实现本申请实施例提供的一种权限设置装置的可能的结构示意图,如图5所示,权限设置装置600包括:显示模块601、接收模块602和执行模块603;其中,显示模块601,用于在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;接收模块602,用于接收对显示模块601显示的N个标识中的目标标识的第一输入;执行模块603,用于响应于接收模块602接收到的第一输入,设置目标用户查看目标数据的权限;其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。
可选地,在上述第一输入为长按输入的情况下,上述的第一时间段是接收第一输入的过程中,录制或播放目标多媒体文件对应的时间段。
可选地,上述第一输入为在录制或者播放目标多媒体文件至第一时间点时的输入,上述的第一时间段为第一时间点之前的时间段或之后的时间段。
可选地,执行模块603,具体用于:在目标标识包括第一标识的情况下,仅设置机主用户有权限查看目标数据;或者,在目标标识包括第二标识的情况下,设置所有用户均有权限查看目标数据。
可选地,N个标识包括第一标识组和第二标识组,该第一标识组和第二标识组均包括N/2个标识,该第一标识组的标识和第二标识组中的标识一一对应,N为大于1的偶数;该N个标识显示在悬浮控件中;悬浮控件的第一区域显示有第一标识组,且悬浮控件的第二区域显示有第二标识组;该第一区域显示的标识用于指示有权限查看目标多媒体文件中的数据,该第二区域显示的标识用于指示无权限查看目标多媒体文件中的数据,该悬浮控件包括目标按钮;其中,第一输入为用户拖动目标按钮至悬浮控件的目标区域显示的目标标识的输入,目标区域为第一区域或第二区域。
本申请实施例提供的权限设置装置,首先,在录制或者播放目标多媒体文件的情况下,权限设置装置可以显示N个标识。然后,权限设置装置可以在接收到对上述N个标识中的目标标识的第一输入之后,设置目标用户查看目标数据的权限。其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。通过上述方案,用户可以通过显示的N个标识快速设置目标用户查看目标多媒体文件中的数据的查看权限。例如,当用户想要向用户A和用户B分享视频文件1,但不希望用户A查看到视频文件1中的片段1,且不希望用户B查看到视频文件1中的片段2时,用户可以通过对用户 A对应的标识的输入,快速设置用户A无权限查看视频文件1中的片段1,通过对用户B对应的标识的输入,快速设置用户B无权限查看视频文件1中的片段2。相比于现有技术需要电子设备分别裁剪掉视频文件1中的片段1和片段2,然后分别将裁剪掉片段1的视频文件1发送给用户A,将裁剪掉片段2的视频文件1发送给用户B的方案,本申请无需对视频文件1进行剪裁,而是通过设置用户查看视频文件1的数据的查看权限,使得即使分享同一视频文件也可实现不同的用户查看到不同的数据。如此,使得目标多媒体文件分享过程操作简便、效率高。
本申请实施例中的权限设置装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的权限设置装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的权限设置装置能够实现图1至图3的方法实施例实现的各个过程,为避免重复,这里不再赘述。
需要说明的是,本申请实施例提供的文件播放方法,执行主体可以为文件播放装置,或者该文件播放装置中的用于执行文件播放方法的控制模块。本申请实施例中以文件播放装置执行文件播放方法为例,说明本申请实施例提供的文件播放装置。
图6为实现本申请实施例提供的一种文件播放装置的可能的结构示意图,如图6所示,文件播放装置700包括:获取模块701、接收模块702和播放模块703;其中,获取模块701,用于获取目标多媒体文件,上述目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据;接收模块702,用于接收对获取模块701获取到的上述目标多媒体文件的第二输入;播放模块703,用于响应于接收模块702接收到的上述第二输入,播放上述目标多媒体文件,并在播放过程中跳过第二数据。
本申请实施例提供的权限设置装置,首先,文件播放装置可以获取目标多媒体文件,然后,文件播放装置在接收到对上述目标多媒体文件的第二输入之后,可以播放上述目标多媒体文件,并在播放过程中跳过第二数据。其中,该目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据。通过上述方案,文件播放装置在获取到目标多媒体文件之后,可以根据机主用户是否被设置查看目标多媒体文件中的数据的权限,对目标多媒体文件进行播放。
本申请实施例中的权限设置装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动 个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的权限设置装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的权限设置装置能够文件播放方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选的,如图7所示,本申请实施例还提供一种电子设备800,包括处理器801,存储器802,存储在存储器802上并可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述权限设置方法或文件播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要注意的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图8为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,显示单元106,用于在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;用户输入单元107,用于接收对显示单元106显示的N个标识中的目标标识的第一输入;处理器110,用于响应于用户输入单元107,接收到的第一输入,设置目标用户查看目标数据的权限;其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。
可选地,在上述第一输入为长按输入的情况下,上述的第一时间段是接收第一输入的过程中,录制或播放目标多媒体文件对应的时间段。
可选地,上述第一输入为在录制或者播放目标多媒体文件至第一时间点时的输入,上述的第一时间段为第一时间点之前的时间段或之后的时间段。
可选地,处理器110,具体用于:在目标标识包括第一标识的情况下,仅设置机主用户有权限查看目标数据;或者,在目标标识包括第二标识的情况下,设置所有用户均有权限查看目标数据。
可选地,N个标识包括第一标识组和第二标识组,该第一标识组和第二标识组均包括N/2个标识,该第一标识组的标识和第二标识组中的标识一一对应,N为大于1的偶数;该N个标识显示在悬浮控件中;悬浮控件的第一区域显示有第一标识组,且悬浮控件的第 二区域显示有第二标识组;该第一区域显示的标识用于指示有权限查看目标多媒体文件中的数据,该第二区域显示的标识用于指示无权限查看目标多媒体文件中的数据,该悬浮控件包括目标按钮;其中,第一输入为用户拖动目标按钮至悬浮控件的目标区域显示的目标标识的输入,目标区域为第一区域或第二区域。
本申请实施例提供的电子设备,首先,在录制或者播放目标多媒体文件的情况下,电子设备可以显示N个标识。然后,电子设备可以在接收到对上述N个标识中的目标标识的第一输入之后,设置目标用户查看目标数据的权限。其中,该目标用户为目标标识指示的用户,该目标数据为目标多媒体文件中第一时间段内的数据。通过上述方案,用户可以通过显示的N个标识快速设置目标用户查看目标多媒体文件中的数据的查看权限。例如,当用户想要向用户A和用户B分享视频文件1,但不希望用户A查看到视频文件1中的片段1,且不希望用户B查看到视频文件1中的片段2时,用户可以通过对用户A对应的标识的输入,快速设置用户A无权限查看视频文件1中的片段1,通过对用户B对应的标识的输入,快速设置用户B无权限查看视频文件1中的片段2。相比于现有技术需要电子设备分别裁剪掉视频文件1中的片段1和片段2,然后分别将裁剪掉片段1的视频文件1发送给用户A,将裁剪掉片段2的视频文件1发送给用户B的方案,本申请无需对视频文件1进行剪裁,而是通过设置用户查看视频文件1的数据的查看权限,使得即使分享同一视频文件也可实现不同的用户查看到不同的数据。如此,使得目标多媒体文件分享过程操作简便、效率高。
或者,
其中:射频单元101,用于获取目标多媒体文件,上述目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据;用户输入单元107,用于接收对射频单元101获取到的上述目标多媒体文件的第二输入;音频输出单元103,用于响应于用户输入单元107接收到的上述第二输入,播放上述目标多媒体文件,并在播放过程中跳过第二数据。
本申请实施例提供的电子设备,首先,电子设备可以获取目标多媒体文件,然后,电子设备在接收到对上述目标多媒体文件的第二输入之后,可以播放上述目标多媒体文件,并在播放过程中跳过第二数据。其中,该目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;该第一数据为机主用户有权限查看的数据,该第二数据为机主用户无权限查看的数据。通过上述方案,电子设备在获取到目标多媒体文件之后,可以根据机主用户是否被设置查看目标多媒体文件中的数据的权限,对目标多媒体文件进行播放。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、 操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述权限设置方法或文件播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述权限设置方法或文件播放方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种权限设置方法,所述方法包括:
    在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;
    接收对所述N个标识中的目标标识的第一输入;
    响应于所述第一输入,设置目标用户查看目标数据的权限;其中,所述目标用户为所述目标标识指示的用户,所述目标数据为所述目标多媒体文件中第一时间段内的数据。
  2. 根据权利要求1所述的方法,其中,在所述第一输入为长按输入的情况下,所述第一时间段是接收所述第一输入的过程中,录制或播放所述目标多媒体文件对应的时间段。
  3. 根据权利要求1所述的方法,其中,所述第一输入为在录制或者播放目标多媒体文件至第一时间点时的输入,所述第一时间段为所述第一时间点之前的时间段或之后的时间段。
  4. 根据权利要求1至3任一项所述的方法,其中,所述设置目标用户查看目标数据的权限,包括:
    在所述目标标识包括第一标识的情况下,仅设置机主用户有权限查看目标数据;或者,
    在所述目标标识包括第二标识的情况下,设置所有用户均有权限查看目标数据。
  5. 根据权利要求1所述的方法,其中,所述N个标识包括第一标识组和第二标识组,所述第一标识组和所述第二标识组均包括N/2个标识,所述第一标识组的标识和所述第二标识组中的标识一一对应,N为大于1的偶数;
    所述N个标识显示在悬浮控件中;所述悬浮控件的第一区域显示有所述第一标识组,且所述悬浮控件的第二区域显示有所述第二标识组;所述第一区域显示的标识用于指示有权限查看所述目标多媒体文件中的数据,所述第二区域显示的标识用于指示无权限查看所述目标多媒体文件中的数据,所述悬浮控件包括目标按钮;
    其中,所述第一输入为用户拖动所述目标按钮至所述悬浮控件的目标区域显示的目标标识的输入,所述目标区域为所述第一区域或所述第二区域。
  6. 一种文件播放方法,所述方法包括:
    获取目标多媒体文件,所述目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;所述第一数据为机主用户有权限查看的数据,所述第二数据为机主用户无权限查看的数据;
    接收对所述目标多媒体文件的第二输入;
    响应于所述第二输入,播放所述目标多媒体文件,并在播放过程中跳过所述第二数据。
  7. 一种权限设置装置,所述权限设置装置包括:显示模块、接收模块和执行模块;
    所述显示模块,用于在录制或者播放目标多媒体文件的情况下,显示N个标识,N为大于或等于1的整数;
    所述接收模块,用于接收对所述显示模块显示的所述N个标识中的目标标识的第一输入;
    所述执行模块,用于响应于所述接收模块接收到的所述第一输入,设置目标用户查看目标数据的权限;其中,所述目标用户为所述目标标识指示的用户,所述目标数据为所述 目标多媒体文件中第一时间段内的数据。
  8. 根据权利要求7所述的权限设置装置,其中,在所述第一输入为长按输入的情况下,所述第一时间段是接收所述第一输入的过程中,录制或播放所述目标多媒体文件对应的时间段。
  9. 根据权利要求7所述的权限设置装置,其中,所述第一输入为在录制或者播放目标多媒体文件至第一时间点时的输入,所述第一时间段为所述第一时间点之前的时间段或之后的时间段。
  10. 根据权利要求7至9任一项所述的权限设置装置,其中,所述执行模块,具体用于:
    在所述目标标识包括第一标识的情况下,仅设置机主用户有权限查看目标数据;或者,
    在所述目标标识包括第二标识的情况下,设置所有用户均有权限查看目标数据。
  11. 根据权利要求7所述的权限设置装置,其中,所述N个标识包括第一标识组和第二标识组,所述第一标识组和所述第二标识组均包括N/2个标识,所述第一标识组的标识和所述第二标识组中的标识一一对应,N为大于1的偶数;
    所述N个标识显示在悬浮控件中;所述悬浮控件的第一区域显示有所述第一标识组,且所述悬浮控件的第二区域显示有所述第二标识组;所述第一区域显示的标识用于指示有权限查看所述目标多媒体文件中的数据,所述第二区域显示的标识用于指示无权限查看所述目标多媒体文件中的数据,所述悬浮控件包括目标按钮;
    其中,所述第一输入为用户拖动所述目标按钮至所述悬浮控件的目标区域显示的目标标识的输入,所述目标区域为所述第一区域或所述第二区域。
  12. 一种文件播放装置,所述文件播放装置包括:获取模块、接收模块和播放模块;
    所述获取模块,用于获取目标多媒体文件,所述目标多媒体文件至少包括第二时间段内的第一数据和第三时间段内的第二数据;所述第一数据为机主用户有权限查看的数据,所述第二数据为机主用户无权限查看的数据;
    所述接收模块,用于接收对所述获取模块获取到的所述目标多媒体文件的第二输入;
    所述播放模块,用于响应于所述接收模块接收到的所述第二输入,播放所述目标多媒体文件,并在播放过程中跳过所述第二数据。
  13. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1至5中任一项所述的权限设置方法,或者实现权利要求6所述的文件播放方法的步骤。
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1至5中任一项所述的权限设置方法,或者实现权利要求6所述的文件播放方法的步骤。
  15. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的权限设置方法,或者实现权利要求6所述的文件播放方法。
  16. 一种电子设备,包括所述电子设备被配置成用于执行如权利要求1至5中任一项所述的权限设置方法,或者实现权利要求6所述的文件播放方法。
  17. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1至5中任一项所述的权限设置方法, 或者实现权利要求6所述的文件播放方法。
PCT/CN2021/120891 2020-09-30 2021-09-27 权限设置方法、文件播放方法、装置和电子设备 WO2022068768A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011060332.0A CN112214774A (zh) 2020-09-30 2020-09-30 权限设置方法、文件播放方法、装置和电子设备
CN202011060332.0 2020-09-30

Publications (1)

Publication Number Publication Date
WO2022068768A1 true WO2022068768A1 (zh) 2022-04-07

Family

ID=74050964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120891 WO2022068768A1 (zh) 2020-09-30 2021-09-27 权限设置方法、文件播放方法、装置和电子设备

Country Status (2)

Country Link
CN (1) CN112214774A (zh)
WO (1) WO2022068768A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214774A (zh) * 2020-09-30 2021-01-12 维沃移动通信有限公司 权限设置方法、文件播放方法、装置和电子设备
CN113271378B (zh) * 2021-04-25 2023-07-14 维沃移动通信有限公司 图像处理方法、装置及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170270974A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method for Controlling Multimedia and Electronic Device
CN107333182A (zh) * 2017-06-19 2017-11-07 北京小米移动软件有限公司 多媒体文件的播放方法及装置
CN111027030A (zh) * 2019-11-26 2020-04-17 维沃移动通信有限公司 权限设置方法及终端设备
CN111464428A (zh) * 2020-03-31 2020-07-28 维沃移动通信有限公司 音频处理方法、服务器、电子设备及计算机可读存储介质
CN112214774A (zh) * 2020-09-30 2021-01-12 维沃移动通信有限公司 权限设置方法、文件播放方法、装置和电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200430B (zh) * 2012-01-04 2017-05-31 华为终端有限公司 个人内容分享方法、系统、服务器和终端设备
CN103686396B (zh) * 2013-11-19 2017-02-22 乐视致新电子科技(天津)有限公司 视频分享方法及装置
CN103686250A (zh) * 2013-12-24 2014-03-26 深圳市龙视传媒有限公司 一种分享媒体文件片段的方法及相关设备
CN108650547A (zh) * 2018-05-09 2018-10-12 北京奇艺世纪科技有限公司 一种视频分享方法、装置及设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170270974A1 (en) * 2016-03-21 2017-09-21 Le Holdings (Beijing) Co., Ltd. Method for Controlling Multimedia and Electronic Device
CN107333182A (zh) * 2017-06-19 2017-11-07 北京小米移动软件有限公司 多媒体文件的播放方法及装置
CN111027030A (zh) * 2019-11-26 2020-04-17 维沃移动通信有限公司 权限设置方法及终端设备
CN111464428A (zh) * 2020-03-31 2020-07-28 维沃移动通信有限公司 音频处理方法、服务器、电子设备及计算机可读存储介质
CN112214774A (zh) * 2020-09-30 2021-01-12 维沃移动通信有限公司 权限设置方法、文件播放方法、装置和电子设备

Also Published As

Publication number Publication date
CN112214774A (zh) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2022063022A1 (zh) 视频预览方法、装置及电子设备
WO2022068768A1 (zh) 权限设置方法、文件播放方法、装置和电子设备
WO2023005920A1 (zh) 分屏方法、装置及电子设备
WO2022206697A1 (zh) 图像分享方法、装置及电子设备
CN111857510B (zh) 参数调节方法、装置及电子设备
CN112148163B (zh) 屏幕录制方法、装置及电子设备
WO2022268024A1 (zh) 视频播放方法、装置及电子设备
WO2022161406A1 (zh) 加密方法、装置、电子设备及介质
WO2022068721A1 (zh) 截屏方法、装置及电子设备
WO2022127804A1 (zh) 应用图标的管理方法及装置
CN113241097A (zh) 录音方法、装置、电子设备和可读存储介质
US9846980B2 (en) Lock releasing method of electronic device, and apparatus thereof
WO2023131092A1 (zh) 信息显示方法及其装置
WO2022253132A1 (zh) 信息显示方法、装置和电子设备
WO2022247814A1 (zh) 目标字符的选择方法、装置、电子设备及存储介质
WO2022143337A1 (zh) 显示控制方法、装置、电子设备和存储介质
WO2022247865A1 (zh) 显示控制方法、装置、电子设备及介质
CN112884651A (zh) 水印显示方法及装置
CN115134317B (zh) 消息显示方法、装置、存储介质和电子装置
WO2022089482A1 (zh) 图像防伪方法、装置及设备
CN112184535B (zh) 图像防伪方法、装置及设备
CN111201507B (zh) 一种信息显示方法及终端
CN117149020A (zh) 信息管理方法、装置、设备及介质
CN113885765A (zh) 截屏图片关联方法、装置及电子设备
CN117435104A (zh) 数据传输方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21874428

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21874428

Country of ref document: EP

Kind code of ref document: A1