WO2017140273A1 - 控制应用的方法、装置和计算机存储介质 - Google Patents

控制应用的方法、装置和计算机存储介质 Download PDF

Info

Publication number
WO2017140273A1
WO2017140273A1 PCT/CN2017/074137 CN2017074137W WO2017140273A1 WO 2017140273 A1 WO2017140273 A1 WO 2017140273A1 CN 2017074137 W CN2017074137 W CN 2017074137W WO 2017140273 A1 WO2017140273 A1 WO 2017140273A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
played
preview
playing
sliding
Prior art date
Application number
PCT/CN2017/074137
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 WO2017140273A1 publication Critical patent/WO2017140273A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, apparatus, and computer storage medium for controlling an application.
  • the existing application displays various items of data to be played for the user to select; in a certain data playing process, the user needs to control the playing progress of the data by dragging the progress bar, in order to select valuable or interesting data, Users need to perform a large number of operations in a precise location, which is very inconvenient.
  • Embodiments of the present invention are directed to a method, apparatus, and computer storage medium for controlling an application to improve the convenience of selection of playback data.
  • An embodiment of the present invention provides a method for controlling an application, where the method includes:
  • the data set to be played is an audio data set and/or a video data set;
  • the data is at least one of a climax segment of the data to be played and associated data corresponding to the data to be played.
  • An embodiment of the present invention further provides an apparatus for controlling an application, where the apparatus includes:
  • An acquiring module configured to obtain a pressing operation on an interface of the data set to be played, where the data set to be played is an audio data set and/or a video data set;
  • a preview module configured to acquire a pressing force corresponding to the pressing operation, and when the pressing force meets a preset condition corresponding to the preview, displaying preview data of the data to be played corresponding to the pressing operation, and the preview data is data to be played At least one of the climax segment and the associated data corresponding to the data to be played.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method for controlling an application according to an embodiment of the present invention.
  • the method, the device and the computer storage medium for controlling the application provided by the embodiment of the present invention obtain the pressing data operation by the pressing operation of the data set interface to be played, and the data set to be played is the audio data set and/or the video data set, and the corresponding pressing operation is obtained.
  • Pressing the strength when the pressing force meets the preset condition corresponding to the preview, displaying preview data of the data to be played corresponding to the pressing operation, and the preview data is at least one of a climax segment of the data to be played and associated data corresponding to the data to be played,
  • the interaction between the user and the application is increased by the second dimension of the Z-axis pressure sensing by the two-dimensional screen of the mobile phone screen, and the preview data of the data to be played is displayed by recognizing the pressing force, and the data to be played has been pre-matched with the corresponding preview data, and the user is not required.
  • the self-driving progress is blindly previewed, and the purpose is strong, so that the user can quickly understand the data to be played and improve the convenience of playing data selection.
  • 1 is an application environment diagram of a method for controlling an application in an embodiment
  • Figure 2 is a diagram showing the internal structure of the terminal of Figure 1 in an embodiment
  • FIG. 3 is a flow chart of a method of controlling an application in an embodiment
  • FIG. 5 is a schematic diagram of a receiving and pressing operation of a data set interface to be played in an embodiment
  • FIG. 6 is a schematic diagram of an interface showing preview data in an embodiment
  • FIG. 7 is a schematic diagram of a play interface in an embodiment
  • FIG. 10 is a schematic diagram showing a shortcut control interface according to a touch operation in an embodiment
  • 11 is a schematic diagram of controlling playback parameters according to a sliding trajectory in one embodiment
  • FIG. 12 is a schematic diagram of controlling playback parameters according to a sliding trajectory in another embodiment
  • Figure 13 is a block diagram showing the structure of an apparatus for controlling an application in an embodiment
  • FIG. 14 is a structural block diagram of an apparatus for controlling an application in another embodiment
  • 15 is a structural block diagram of a preview module in an embodiment
  • Figure 16 is a block diagram showing the structure of an apparatus for controlling an application in still another embodiment
  • Figure 17 is a block diagram showing the structure of an apparatus for controlling an application in still another embodiment
  • Figure 18 is a block diagram showing the structure of a playback control module in an embodiment.
  • FIG. 1 is an application environment diagram of a method for controlling an application in an embodiment.
  • the application environment includes a terminal 110 and a server 120; wherein the terminal 110 and the server 120 can communicate via a network.
  • the type of the terminal 110 may be a terminal type such as a smart phone, a tablet computer, a notebook computer, or a desktop computer, but is not limited thereto.
  • the terminal 110 sends a request to the server 120 over the network, such as sending a preview data request; the server 120 can respond to the request sent by the terminal 110; the server can be a single server or a cluster of servers.
  • the internal hardware component of the terminal 110 in FIG. 1 may be as shown in FIG. 2, and the terminal 110 includes a processor, a graphics processing unit, and a storage medium connected through a system bus. Quality, memory, network interface, display screen and input device.
  • the storage medium of the terminal 110 stores an operating system, and further includes a device for controlling an application, and the device is used to implement a method for controlling an application of the terminal.
  • the processor is used to provide computing and control capabilities to support the operation of the entire terminal 110.
  • the graphics processing unit in the terminal 110 is configured to provide at least a rendering capability of the display interface, the memory provides an environment for running the device of the control application in the storage medium, and the network interface is used for network communication with the server 120, such as sending a preview request to the server 120.
  • the preview data returned by the server 120 and the like are received.
  • the display screen is used to display an application interface, such as a preview interface
  • the input device is used to receive commands or data input by the user.
  • the terminal 110 includes a touch screen, and the display screen and the input device are implemented by the touch screen for receiving a touch operation of the user.
  • the terminal 110 may further include a pressure sensor, and the pressing force of the user may be acquired.
  • a method for controlling an application is provided to be applied to a terminal in the application environment, and the following steps are included:
  • step S210 a pressing operation is performed on the interface of the data set to be played, and the data set to be played is an audio data set and/or a video data set.
  • the to-be-played data set interface may be provided by different applications, such as a music player application, a social application, and the like.
  • the data set to be played includes at least one data to be played, which may be displayed by a list or other manner; the data to be played may be a plurality of different categories, such as audio data, video data, audio and video mixed data, and the like.
  • the pressing operation may be an operation performed by a finger or a stylus, and may be a single-point pressing operation or a multi-point pressing operation, and the terminal may detect a pressing operation applied to the data set interface to be played in real time or periodically.
  • step S220 the pressing force corresponding to the pressing operation is acquired, and when the pressing force meets the preset condition corresponding to the preview, the preview data of the data to be played corresponding to the pressing operation is displayed, and the preview data includes at least the following data.
  • the terminal can be read by pressing
  • the interface of the force sensor data reads data indicative of the pressing force from a corresponding pressure sensor, wherein the data characterizing the pressing force may be sensor data obtained from a plurality of pressure sensors, or may be from a pressure sensor
  • the obtained sensor data; the pressing force corresponding to the pressing operation is obtained according to the sensor data.
  • the terminal can sense different pressing forces through the screen through the stereo touch technology.
  • the touch technology of the stereo touch screen also referred to as 3D Touch
  • 3D Touch the iOS operating system can sense different pressing forces through the screen.
  • the pressing corresponding to the pressing operation can also be obtained by the force touch technology provided by the corresponding operating system. If the pressure is multi-pointed, the pressing force corresponding to each pressing point can be respectively obtained, and different preview preset conditions are set for different pressing points, and it is determined whether the pressing force corresponding to each pressing point satisfies the preset condition corresponding to the preview. It is also possible to calculate according to the pressing force of each pressing point, obtain the target pressing force, and then determine whether the target pressing strength satisfies the preset condition corresponding to the preview.
  • the preset condition corresponding to the preview can be customized, for example, when the pressing force is greater than the first velocity threshold and less than the second velocity threshold, the preview preset condition is met.
  • the preview data will only be displayed if the preset conditions corresponding to the preview are met.
  • the preview data of the corresponding data to be played may be determined by the position or the identifier of the pressing operation, and the preview data may be at least one of the following data: audio data, video data, text data, and image data.
  • the preview data is matched in advance for the data to be played, and the preview data may be pre-stored so as to be directly playable, and may be a part of the data to be played itself or data associated with the data to be played.
  • the preview data may be extracted from the data to be played according to a preset algorithm.
  • the preview data is data associated with the data to be played, the data to be played and the associated data may be set in advance. Correspondence relationship.
  • the preview data is extracted according to the interaction response data of the data to be played, and the interaction response data of the data to be played is based on an operation of the user for the data to be played (the operation, such as a playback operation, a comment operation, etc.
  • the interactive response data corresponding to the segment such as the amount of praise, the rating, the comment information, the barrage information, etc., calculate the degree of user attention corresponding to different playing time periods (the degree of attention of the user may be through the rating, the amount of praise, the number of comments, The number of the information of the barrage information is expressed as a preview data, and the data segment to be played that meets the preset condition is extracted as the preview data; wherein the user's degree of interest satisfies the preset condition includes: determining whether the interactive response data indicating the degree of attention of the user reaches the pre-predetermined A threshold is set; when the interaction response data indicating the degree of user attention reaches a preset threshold, determining that the degree of attention of the user satisfies a preset condition.
  • the data segment to be played may be extracted as preview data by using an extraction algorithm based on the frequency of occurrence of lyrics, audio energy, or the like, or the data segment to be played may be extracted as preview data according to the content of the data to be played.
  • the data associated with the data to be played may also be one of video data, audio data, text data, image data or a combination thereof, such as a singer avatar, an album cover, an introduction to data to be played, and the like.
  • the display interface of the terminal can be switched from the dataset interface to the preview interface, and the preview data can be customized in the preview interface, or the preview interface can be displayed in the current interface through the pop-up window, and the current interface is displayed.
  • the interface is blurred and blurs, no interface switching and jumping are required, and interactive data is reduced.
  • the data segment to be played that the user pays attention to the preset condition is a segment that most reflects the substantial content of the data to be played or is popular or hot, and sets the preview data to be the user's attention level to meet the preset condition. Playing the data segment enables the user to quickly know the data to be played, thereby determining whether the content is of interest to the user, and improving the speed of the data to be played.
  • the associated data can be data introduction, actor information, singer information, posters, etc., and can quickly make the user intuitively understand the data to be played.
  • the data set to be played is an audio data set and/or a video data set, and the pressing force corresponding to the pressing operation is obtained, and when the pressing force meets the preset corresponding to the preview
  • the preview data of the data to be played corresponding to the pressing operation is displayed, and the preview data includes at least one of the following data: user attention in the data to be played.
  • the preview data of the data, the data to be played has been pre-matched with the corresponding preview data, and the user does not need to drag the progress of the user to blindly preview, and the purpose is strong, so that the user can quickly understand the data to be played and improve the convenience of playing data selection.
  • the method before step S210, further includes: registering a preview callback event to the operating system, where the preview callback event is used to display preview data of the data to be played corresponding to the pressing operation, and the preview callback event includes a corresponding preview callback condition.
  • the step of displaying the preview data of the data to be played corresponding to the pressing operation when the pressing force satisfies the preset condition corresponding to the preview comprises: performing the preview callback event when the pressing force satisfies the preview callback condition.
  • the interface provided by the calling system registers a preview callback event with the operating system, and each preview callback event has a corresponding callback condition. For example, if two callback events are registered, one is to press the preview callback event, and the other is to press the open callback event; wherein, the preview callback condition corresponding to the preview callback event is that the pressing force is greater than the first threshold and less than the second threshold; The open callback condition corresponding to the open callback event is that the pressing force is greater than the second threshold, wherein the second threshold is greater than the first threshold. Therefore, the application can call different callback events according to the user's operating strength to complete different responses.
  • the callback event can be directly implemented by using the interface provided by the system, such as the iOS operating system, providing the Peek operation and the Pop operation of the 3D Touch, the Peek operation corresponding to the preview event, and the Pop operation corresponding to the open event.
  • the preview operation and the open operation can be directly called.
  • the specific operation of implementing the callback event can be customized.
  • the callback event can be automatically executed when the callback condition of the callback event arrives, which is quick and convenient.
  • the corresponding preview operation and the opening operation can be implemented through the callback event provided by the operating system.
  • step S220 the step of displaying the preview data of the data to be played corresponding to the pressing operation in step S220 includes:
  • Step S221 Acquire corresponding target to-be-played data from the to-be-played data set according to the location of the pressing operation.
  • the target to be played data is obtained according to the position of the pressing operation, and the position of the pressing operation may be a screen position corresponding to the name of the data to be played, a position of the virtual button corresponding to the pressing operation, or a position of the image corresponding to the data to be played, and the like.
  • the data set to be played is a plurality of song name lists, and the position of the pressing operation is on the first song name, the target to-be-played data is the first song.
  • Step S222 sending a preview data request corresponding to the target to-be-played data to the server.
  • the preview data request includes an identifier of the target to be played data, and the identifier may be a name, an identifier number, or the like, so that the server searches for the associated preview data according to the identifier.
  • Step S223 receiving preview data corresponding to the target to-be-played data returned by the server, and playing the same.
  • the corresponding relationship between the target to-be-played data and the preview data may be pre-established on the server, so that the corresponding preview data is searched according to the identifier of the target to-be-played data, and returned to the terminal, so that the terminal quickly obtains the preview data, and performs Play.
  • the storage space of the terminal is limited, the storage space of the server is large, and the hardware capability is strong.
  • the preview data corresponding to the data to be played by the server is obtained from the server, and the preview data is not stored in the terminal, which saves space and is fast and convenient.
  • the method before the step of sending the preview data corresponding to the to-be-played data request to the server, the method further includes: determining whether there is preview data corresponding to the target to-be-played data in the terminal cache, and if present, directly Obtaining the preview data from the terminal cache, if not, entering the step of sending a preview data request corresponding to the data to be played to the server to the server.
  • the preview data corresponding to the target to-be-played data already exists in the terminal cache, It can be quickly obtained from the cache and does not need to be retrieved from the server again, which further improves the speed of preview data acquisition.
  • the method further includes: detecting a pressing force corresponding to the pressing operation, determining whether the pressing strength meets a preset condition corresponding to the playing, and if yes, playing the data to be played.
  • the data to be played can be played. It is convenient for the user to quickly play the data when the data needs to be played back by previewing the data.
  • the method further includes: if the pressing operation is canceled, stopping displaying the preview data, and returning to the data set interface to be played.
  • the user if the pressing operation is canceled, the user is not interested in the current data to be played corresponding to the preview data, and can quickly return to the data set interface to be played, so that the user can continue to select the playing data of interest.
  • the data set interface to be played is a song song list
  • the preview data is a climax fragment of the song and the corresponding lyrics
  • the specific process of controlling the application is as follows:
  • the method further includes:
  • step S410 in the process of playing data, the touch operation on the play interface is monitored, and the operation strength corresponding to the touch operation is acquired.
  • the method provided by the operating system may be invoked to monitor a user's touch operation, and the touch operation may be a single touch or a multi-touch, and the interface that reads the pressure sensor data may read the characteristic pressure sensor from the corresponding pressure sensor.
  • Data; wherein the data characterizing the operating force may be sensor data obtained from a plurality of pressure sensors, or sensor data obtained from a pressure sensor; and the operating force corresponding to the touch operation is obtained according to the sensor data.
  • step S420 it is determined whether the operating strength meets the control preset condition.
  • the process proceeds to step S430; when the operating force does not satisfy the control preset condition, no processing is performed.
  • the operation strength corresponding to each touch point can be respectively obtained, and different control preset conditions are set for different touch points, and it is determined whether the operation strength corresponding to each touch point satisfies the control preset condition. It is also possible to calculate according to the touch intensity of each touch point, obtain the target touch strength, and then determine whether the target touch strength satisfies the control preset condition, wherein the control preset condition can be customized as needed. Only when the operating strength satisfies the control preset condition, the process proceeds to step S430, otherwise no processing is performed.
  • step S430 the sliding operation data is applied to the playing interface, and the playing parameters of the playing data are controlled according to the sliding track direction corresponding to the sliding operation data, and the playing parameters include at least one of a playing progress and a playing volume.
  • the sliding operation data includes a plurality of coordinate data arranged at intervals on the sliding track, and the direction of the sliding track can be recognized according to the coordinate data in the sliding track data, for example, a direction of sliding to the left and a direction of sliding to the right, for Touch the touch to identify multiple sliding track directions and jointly control the playback parameters. It is also possible to first determine the trend of the sliding track according to the sliding direction of each touch point, such as gathering sliding, diverging sliding, etc., and then controlling the playing parameters through the sliding track trend.
  • the playback parameters Pre-set the correspondence between the direction or trend of the sliding track and the playback parameters, for example, sliding to the left Or gather the slide corresponding to the playback progress rewind, slide to the right or divergence slide corresponding to the playback progress fast forward, according to the sliding track direction or the relationship between the sliding track trend and the playback parameters control the corresponding play parameters to adjust accordingly.
  • the direction of the sliding track is the first direction
  • the playback progress is controlled to fast forward
  • the sliding track direction is the second direction
  • the playback progress is controlled to rewind, wherein the first direction and the second direction are opposite to each other.
  • the direction If the direction of the sliding track is the third direction, the control playback volume is increased, and if the sliding track direction is the fourth direction, the control playback volume is decreased, wherein the third direction and the fourth direction are mutually opposite directions.
  • the method further includes: displaying a predefined floating image at a position of the touch operation, and displaying the play parameter adjustment prompt information in a peripheral area of the floating image.
  • the floating image may be a custom pattern such as a circle with a current touch point as a center and a preset length as a radius, and the floating image may be fixed or followed by a position of the touch operation, and display a play parameter adjustment in a peripheral area of the floating image.
  • the prompt information is convenient for the user to adjust the play parameters near the touch point at any time.
  • the peripheral area of the floating image may be an area other than the floating image in a specific area centering on a center point of the floating image. For example, as shown in FIG. 10, the floating image 511 corresponding to the touch point, and the area 510 centered on the floating image 511 can be specifically understood as the peripheral area of the floating image.
  • the peripheral area of the floating image is a rectangle, and in other embodiments, it is not limited to a rectangular area, and a pre-configured area of any shape, such as a circular area, or the like may be used.
  • the play parameter adjustment prompt information may be text information, an icon, an animation, etc., so that the user can perform a corresponding sliding operation according to the prompt information, and correctly realize the play parameter adjustment.
  • the state of the play parameter adjustment prompt information may be changed according to the adjustment of the corresponding play parameter, wherein the state change includes a brightness change, a color change, an animation effect change, and the like.
  • the playing parameters are adjusted according to the sliding track direction by the operating force, so that the adjustment of the playing is not limited to a fixed position, and may be any in the playing interface. Position, and adjust according to the direction of the track, convenient and fast, users can set the adjustment method according to their own habits, improving the convenience and customization of the application.
  • step S430 includes:
  • Step S431 determining a sliding distance according to the sliding operation data.
  • the sliding track direction is identified according to the sliding operation data, and the to-be-controlled playing parameter is determined according to the sliding track direction.
  • the direction of the sliding track is recognized only when the sliding distance exceeds the preset distance threshold, thereby reducing the probability of misoperation.
  • Step S432 determining an adjustment range of the to-be-controlled playback parameter according to the sliding distance and/or the sliding speed, and controlling the to-be-controlled playing parameter according to the adjustment amplitude.
  • the sliding distance and/or the sliding speed may be predefined as an independent variable, and the adjustment amplitude of the playing parameter is a function of the dependent variable, thereby calculating the adjustment range of the playing parameter to be controlled according to the sliding distance and/or the sliding speed. If the adjustment amplitude is proportional to the sliding distance and/or the sliding speed.
  • the adjustment range of the playback parameter to be controlled is determined according to the sliding distance and/or the sliding speed, which further improves the flexibility of the adjustment of the playing parameters.
  • the sliding speed can be determined by the sliding distance and the sliding time of the sliding operation.
  • the adjusted play parameters are the play progress and the play volume, and the specific process of controlling the play parameters is as follows:
  • the touch operation on the playback interface is monitored. If the touch operation corresponding to the touch operation is a tap, the shortcut operation interface 510 is displayed at the touch point, and the shortcut operation interface 510 includes a floating slider 511 and a playback progress. A fast forward icon 512, a play progress rewind icon 513, a play volume increase icon 514, and a play volume decrease icon 515.
  • an apparatus for controlling an application including:
  • the obtaining module 610 is configured to obtain a pressing operation on the data set interface to be played, where the data set to be played is an audio data set and/or a video data set;
  • the preview module 620 is configured to obtain a pressing force corresponding to the pressing operation, and when the pressing force meets the preset condition corresponding to the preview, displaying preview data of the data to be played corresponding to the pressing operation, where the preview data includes at least the following data.
  • A the data segment to be played in the data to be played that meets the preset condition, and the associated data corresponding to the data to be played.
  • the apparatus further includes:
  • the registration module 630 is configured to register a preview callback event to the operating system, where the preview callback event is used to display preview data of the data to be played corresponding to the pressing operation, and the preview callback event includes a corresponding preview callback condition;
  • the preview module 620 is further configured to execute a preview callback event when the pressing force satisfies a preview callback condition.
  • the preview module 620 includes:
  • the target to-be-played data acquiring unit 621 is configured to acquire corresponding target to-be-played data from the to-be-played data set according to the location of the pressing operation;
  • the sending unit 622 is configured to send a preview data request corresponding to the target to-be-played data to the server;
  • the preview unit 623 is configured to receive preview data corresponding to the target to-be-played data returned by the server, and play the same.
  • the device further includes:
  • the playing module 640 is configured to detect a pressing force corresponding to the pressing operation, and determine whether the pressing force meets a preset condition corresponding to the playing, and when the pressing force meets the preset condition corresponding to the playing, Play the data to be played.
  • the apparatus further includes:
  • the play control module 650 is configured to monitor a touch operation applied to the play interface during the process of playing data, obtain an operation strength corresponding to the touch operation, determine whether the operation strength satisfies the control preset condition, and when the operation strength satisfies the control preset condition And acquiring the sliding operation data acting on the playing interface, and controlling the playing parameter of the playing data according to the sliding track direction corresponding to the sliding operation data, where the playing parameter includes at least one of a playing progress and a playing volume.
  • the play control module 650 is further configured to display a predefined floating image at a position of the touch operation when the operating force satisfies a control preset condition, and at a periphery of the floating image The area displays the playback parameter adjustment prompt information.
  • the play control module 650 includes:
  • the to-be-controlled playback parameter determining unit 651 is configured to determine a sliding distance according to the sliding operation data, and when the sliding distance exceeds a preset distance threshold, identify a sliding track direction according to the sliding operation data, and determine according to the sliding track direction
  • the playback parameters are to be controlled.
  • the adjusting unit 652 is configured to determine an adjustment range of the to-be-controlled playback parameter according to the sliding distance and/or the sliding speed, and control the to-be-controlled playing parameter according to the adjustment amplitude.
  • the acquiring module 610, the preview module 620, the registration module 630, the playing module 640, and the playing control module 650 in the device for controlling the application may be used by the central processing unit (CPU of the device) in practical applications.
  • CPU central processing unit
  • DSP Digital Signal Processor
  • MCU Microcontroller Unit
  • FPGA Field-Programmable Gate Array
  • communication module including: basic Communication kits, operating systems, communication modules, standardized interfaces, protocols, and transceiver antennas, as well as pressure sensors.
  • the disclosed method and apparatus may be implemented in other manners.
  • the device embodiments described above are merely illustrative, examples
  • the division of the module is only a logical function division, and the actual implementation may have another division manner, for example, multiple modules or components may be combined, or may be integrated into another system, or some features may be ignored. Or not.
  • the communication connections between the various components shown or discussed may be indirect coupling or communication connections through some interfaces, devices or modules, and may be electrical, mechanical or otherwise.
  • the modules described above as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place or distributed to multiple network modules; Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may be separately used as one module, or two or more modules may be integrated into one module;
  • the module can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a removable storage device, a read-only memory (ROM), a magnetic disk or an optical disk, and the like, which can store program codes.
  • ROM read-only memory
  • the above-described integrated module of the embodiment of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a stand-alone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a mobile storage device, a ROM, a disk, or a light.
  • a medium such as a disk that can store program code.
  • the technical solution of the embodiment of the present invention displays the preview data of the data to be played by identifying the pressing force, and the interaction between the user and the application is increased by the third dimension of the Z-axis pressure sensing by the two-dimensional movement of the mobile phone screen, and the data to be played has been matched in advance.
  • the preview data does not require the user to drag the progress to blindly preview, and the purpose is strong, so that the user can quickly understand the data to be played and improve the convenience of playing data selection.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种控制应用的方法、装置和计算机存储介质,包括:获取作用于待播放数据集界面的按压操作,待播放数据集为音频数据集和/或视频数据集;获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据,所述预览数据包括以下数据的至少之一:所述待播放数据中的用户关注程度满足预设条件的待播放数据片段、待播放数据对应的关联数据。

Description

控制应用的方法、装置和计算机存储介质 技术领域
本发明涉及计算机技术领域,特别是涉及一种控制应用的方法、装置和计算机存储介质。
背景技术
随着计算机技术的发展,各种网络应用在人们的日常生活中越来越常见。
用户可通过各种网络应用进行娱乐和工作,如通过音乐播放器收听歌曲等。但由于用户在通过网络应用播放的待播放数据种类多且数量大,用户往往通过依次播放各个数据来获取感兴趣的内容。
现有的应用显示各种待播放数据的条目以供用户选择;待某一数据播放过程中,用户需采用拖动进度条的方式控制数据的播放进度,为了选择有价值或感兴趣的数据,用户需要在精准的位置进行大量的操作,非常不方便。
发明内容
本发明实施例期望提供一种控制应用的方法、装置和计算机存储介质,以提高播放数据选择的便利性。
本发明实施例提供了一种控制应用的方法,所述方法包括:
获取作用于待播放数据集界面的按压操作,所述待播放数据集为音频数据集和/或视频数据集;
获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据,所述预览 数据为待播放数据的高潮片段、待播放数据对应的关联数据中的至少一种。
本发明实施例还提供了一种控制应用的装置,所述装置包括:
获取模块,配置为获取作用于待播放数据集界面的按压操作,所述待播放数据集为音频数据集和/或视频数据集;
预览模块,配置为获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据,预览数据为待播放数据的高潮片段、待播放数据对应的关联数据中的至少一种。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行本发明实施例所述的控制应用的方法。
本发明实施例提供的控制应用的方法、装置和计算机存储介质,通过获取作用于待播放数据集界面的按压操作,待播放数据集为音频数据集和/或视频数据集,获取按压操作对应的按压力度,当按压力度满足预览对应的预设条件时,展示按压操作对应的待播放数据的预览数据,预览数据为待播放数据的高潮片段、待播放数据对应的关联数据中的至少一种,用户与应用之间的交互由手机屏幕的二维增加了Z轴压力感应的第三维,通过识别按压力度展示待播放数据的预览数据,待播放数据已经预先匹配了对应的预览数据,不需要用户自行拖动进度盲目进行预览,目的性强,使用户快速了解待播放数据,提高播放数据选择的便利性。
附图说明
图1为一个实施例中控制应用的方法的应用环境图;
图2为一个实施例中图1中终端的内部结构图;
图3为一个实施例中控制应用的方法的流程图;
图4为一个实施例中展示按压操作对应的待播放数据的预览数据的流 程图;
图5为一个实施例中待播放数据集界面接收按压操作的示意图;
图6为一个实施例中展示预览数据的界面示意图;
图7为一个实施例中播放界面的示意图;
图8为一个实施例中控制播放参数的流程图;
图9为一个实施例中根据滑动操作数据控制播放参数的流程图;
图10为一个实施例中根据触摸操作显示快捷控制界面的示意图;
图11为一个实施例中根据滑动轨迹控制播放参数的示意图;
图12为另一个实施例中根据滑动轨迹控制播放参数的示意图;
图13为一个实施例中控制应用的装置的结构框图;
图14为另一个实施例中控制应用的装置的结构框图;
图15为一个实施例中预览模块的结构框图;
图16为再一个实施例中控制应用的装置的结构框图;
图17为又一个实施例中控制应用的装置的结构框图;
图18为一个实施例中播放控制模块的结构框图。
具体实施方式
图1为一个实施例中控制应用的方法运行的应用环境图。如图1所示,该应用环境包括终端110和服务器120;其中,终端110和服务器120可通过网络进行通信。
其中,终端110的类型可为智能手机、平板电脑、笔记本电脑、台式计算机等各终端类型,但并不局限于此。终端110通过网络向服务器120发送请求,如发送预览数据请求;服务器120可响应终端110发送的请求;服务器可以是单个服务器或服务器集群。
在一个实施例中,图1中的终端110的内部硬件组成结构可如图2所示,该终端110包括通过系统总线连接的处理器、图形处理单元、存储介 质、内存、网络接口、显示屏幕和输入设备。其中,终端110的存储介质存储有操作系统,还包括控制应用的装置,该装置用于实现适用于终端的一种控制应用的方法。该处理器用于提供计算和控制能力,支撑整个终端110的运行。终端110中的图形处理单元用于至少提供显示界面的绘制能力,内存为存储介质中的控制应用的装置的运行提供环境,网络接口用于与服务器120进行网络通信,如发送预览请求至服务器120,接收服务器120返回的预览数据等。显示屏幕用于显示应用界面等,如显示预览界面等,输入设备用于接收用户输入的命令或数据等。作为一种实施方式,终端110包括触摸屏,显示屏幕和输入设备可通过触摸屏实现,用于接收用户的触摸操作,所述终端110还可包括压力传感器,可获取用户的按压力度。
如图3所示,在一个实施例中,提供了一种控制应用的方法,以应用于上述应用环境中的终端来举例说明,包括如下步骤:
步骤S210,获取作用于待播放数据集界面的按压操作,所述待播放数据集为音频数据集和/或视频数据集。
具体的,待播放数据集界面可以由不同的应用提供,如音乐播放器应用、社交应用等。所述待播放数据集包括至少一个待播放数据,可通过列表或其它方式展示;所述待播放数据可为多个不同的种类,如音频数据、视频数据、音视频混合数据等等。按压操作可以是手指或触控笔进行的操作,可以是单点按压操作或多点按压操作,终端可实时或者定时检测作用于待播放数据集界面的按压操作。
步骤S220,获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据,所述预览数据包括以下数据的至少之一:待播放数据中的用户关注程度满足预设条件的待播放数据片段、待播放数据对应的关联数据。
具体的,以图2所示的终端的组成结构为例,所述终端可通过读取压 力传感器数据的接口从相应的压力传感器读取表征所述按压力度的数据,其中,所述表征所述按压力度的数据可以是从多个压力传感器获得的传感器数据,也可以是从一个压力传感器获得的传感器数据;根据传感器数据得到按压操作对应的按压力度。作为一种实施方式,终端可通过立体触控技术通过屏幕感应不同的按压力度。例如,对于iOS操作系统,可通过iOS操作系统下的立体触屏(也可以称为3D Touch)的触控技术通过屏幕感应不同的按压力度触控。当然,对于其他操作系统(例如安卓操作系统),也可通过相应操作系统所提供的力图触控技术获得按压操作对应的按压例如。如果是多点按压,则可以分别得到各个按压点对应的按压力度,对不同的按压点设置不同的预览预设条件,分别判断各个按压点对应的按压力度是否满足预览对应的预设条件。也可以根据各个按压点的按压力度进行计算,得到目标按压力度,再判断目标按压力度是否满足预览对应的预设条件。可自定义预览对应的预设条件,如定义为按压力度大于第一力度阈值,而小于第二力度阈值时,为满足预览预设条件。只有满足预览对应的预设条件才会展示预览数据。
本实施例中,可通过按压操作的位置或标识等确定对应的待播放数据的预览数据,所述预览数据可以是以下数据的至少之一:音频数据、视频数据、文本数据、图像数据。具体的,预先为待播放数据匹配预览数据,预览数据可以是预存的从而可直接播放,可以是待播放数据本身的一部分或与待播放数据关联的数据。当预览数据是待播放数据本身的一部分时,可根据预设算法从所述待播放数据中提取预览数据,当预览数据是待播放数据关联的数据时,可提前设置待播放数据和关联数据的对应关系。在一个实施例中,根据待播放数据的交互响应数据提取预览数据,所述待播放数据的交互响应数据为基于用户针对所述待播放数据的操作(所述操作例如播放操作、评论操作等等)获得的数据;如获取待播放数据不同播放时 段对应的交互响应数据,如点赞量、收视率、评论信息、弹幕信息等,计算不同播放时段对应的用户关注程度(该用户关注程度可通过收视率、点赞量、评论信息数量、弹幕信息数量等表示),提取用户关注程度满足预设条件的待播放数据片段作为预览数据;其中,所述用户关注程度满足预设条件包括:判断表征用户关注程度的交互响应数据是否达到预设阈值;当表征用户关注程度的交互响应数据达到预设阈值时,确定所述用户关注程度满足预设条件。当待播放数据为音频数据时,可采用基于歌词出现频率、音频能量等相关信息通过提取算法提取待播放数据片段作为预览数据,也可以根据待播放数据的内容人为提取待播放数据片段作为预览数据。与待播放数据关联的数据也可以为视频数据、音频数据、文本数据、图像数据中的一种或其结合,如歌手头像、专辑封面、待播放数据简介等。展示预览数据时,终端的展示界面可从待播放数据集界面切换到预览界面,可自定义预览数据在预览界面的展示方式,也可以在当前界面通过弹窗的方式展示预览界面,并将当前界面模糊虚化,不需要进行界面切换和跳转,减少交互数据。
本实施例中,用户关注程度满足预设条件的待播放数据片段为最能反应待播放数据实质内容或受欢迎、或者热度高的片段,将预览数据设置为用户关注程度满足预设条件的待播放数据片段,能使用户快速了解待播放数据,从而确定是否为用户感兴趣的内容,提高待播放数据选取的速度。关联数据可为数据简介、演员信息、歌手信息、海报等,能快速使用户对待播放数据有直观的了解。
本实施例中,通过获取作用于待播放数据集界面的按压操作,待播放数据集为音频数据集和/或视频数据集,获取按压操作对应的按压力度,当按压力度满足预览对应的预设条件时,展示按压操作对应的待播放数据的预览数据,预览数据包括以下数据的至少之一:待播放数据中的用户关注 程度满足预设条件的待播放数据片段、待播放数据对应的关联数据,用户与应用之间的交互由手机屏幕的二维增加了Z轴压力感应的第三维,通过识别按压力度来展示待播放数据的预览数据,待播放数据已经预先匹配了对应的预览数据,不需要用户自行拖动进度盲目进行预览,目的性强,使用户快速了解待播放数据,提高播放数据选择的便利性。
在一个实施例中,步骤S210之前,还包括:向操作系统注册预览回调事件,所述预览回调事件用于展示按压操作对应的待播放数据的预览数据,预览回调事件包括对应的预览回调条件。
所述当按压力度满足预览对应的预设条件时,展示按压操作对应的待播放数据的预览数据的步骤包括:当所述按压力度满足预览回调条件时,执行所述预览回调事件。
具体的,调用系统提供的接口向操作系统注册预览回调事件,每个预览回调事件有对应的回调条件。如注册2个回调事件,一个为轻按预览回调事件,另一个为重按打开回调事件;其中,轻按预览回调事件对应的预览回调条件为按压力度大于第一阈值且小于第二阈值;重按打开回调事件对应的打开回调条件为按压力度大于第二阈值,其中第二阈值大于第一阈值。从而使得应用可根据用户的操作力度调用不同的回调事件,完成不同的响应。如果操作系统自身实现了回调事件,则可直接采用系统提供的接口实现回调事件,如iOS操作系统,提供了3D Touch的Peek操作和Pop操作,Peek操作对应预览事件,Pop操作对应打开事件,则可直接调用实现预览操作和打开操作,如果操作系统自身没有实现,则可自定义实现回调事件的具体操作。通过向操作系统注册回调事件,可在回调事件的回调条件到达时自动执行回调事件,快速方便。当然,对于其他操作系统(例如安卓操作系统),可通过操作系统提供的回调事件实现对应的预览操作和打开操作。
在一个实施例中,如图4所示,步骤S220中展示按压操作对应的待播放数据的预览数据的步骤,包括:
步骤S221,根据所述按压操作的位置从所述待播放数据集中获取对应的目标待播放数据。
具体的,根据按压操作的位置得到目标待播放数据,按压操作的位置可以是待播放数据的名称对应的屏幕位置、或按压操作对应的虚拟按键所在位置、或待播放数据对应的图像所在位置等。如待播放数据集为多个歌曲名称列表,按压操作的位置在其中第一歌曲名称上,则目标待播放数据为第一歌曲。
步骤S222,发送目标待播放数据对应的预览数据请求至服务器。
具体的,预览数据请求包括目标待播放数据的标识,标识可以为名称、标识编号等,便于服务器根据标识寻找关联的预览数据。
步骤S223,接收服务器返回的目标待播放数据对应的预览数据,并进行播放。
具体的,在服务器上可预先建立了目标待播放数据与预览数据的对应关系,从而根据目标待播放数据的标识查找对应的预览数据,并返回至终端,以使终端快速获取预览数据,并进行播放。由于终端存储空间有限,服务器存储空间大,硬件能力强,从服务器获取目标待播放数据对应的预览数据,不需要在终端中存储预览数据,节省空间且快速方便。
在一个实施例中,所述发送目标待播放数据对应的预览数据请求至服务器的步骤之前,所述方法还包括:判断终端缓存中是否存在目标待播放数据对应的预览数据,如果存在,则直接从终端缓存中获取所述预览数据,如果不存在,则进入发送目标待播放数据对应的预览数据请求至服务器的步骤。
具体的,如果终端缓存中已经存在目标待播放数据对应的预览数据, 则可快速从缓存中获取,不需要从服务器再次获取,进一步提高了预览数据获取的速度。
在一个实施例中,步骤S220之后,还包括:检测所述按压操作对应的按压力度,判断按压力度是否满足播放对应的预设条件,如果是,则播放待播放数据。
具体的,如果按压操作对应的按压力度变大,达到了播放对应的预设条件,则可播放待播放数据。便于用户通过预览数据确定需要播放的数据时,快速进行播放。
在一个实施例中,步骤S220之后,还包括:如果按压操作取消,则停止展示预览数据,返回待播放数据集界面。
具体的,如果按压操作取消,则说明用户对预览数据对应的当前待播放数据不感兴趣,可快速返回待播放数据集界面,便于用户继续选择感兴趣的播放数据。
在一个具体的实施例中,待播放数据集界面为歌曲歌单,预览数据为歌曲的高潮片段和对应的歌词,控制应用的方法具体过程如下:
1、如图5所示,进入待播放数据集界面,展示歌单310,接收对其中第一歌曲311的按压(所述第一歌曲311可以为用户通过操作选定的,和/或当前终端播放的歌曲),当按压力度为轻压时,开始播放第一歌曲对应的高潮片段,在当前界面弹出预览窗口320,如图6所示,预览窗口320显示高潮片段对应的歌词。
2、保持轻压状态,则继续预览播放状态,如果取消轻压,则返回待播放数据集界面,继续展示歌单,如果按压力度加大,变为重压,则进入播放界面330,如图7所示,应用从歌曲起始位置可以播放,同时展示对应的歌词。
在一个实施例中,如图8所示,所述方法还包括:
步骤S410,在播放数据的过程中,监听作用于播放界面的触摸操作,获取所述触摸操作对应的操作力度。
具体的,可调用操作系统提供的方法监听用户的触摸操作,触摸操作可以是单点触摸或多点触摸,可通过读取压力传感器数据的接口从相应的压力传感器读取表征所述操作力度的数据;其中,所述表征所述操作力度的数据可以是从多个压力传感器获得的传感器数据,也可以是从一个压力传感器获得的传感器数据;根据传感器数据得到触摸操作对应的操作力度。
步骤S420,判断操作力度是否满足控制预设条件,当所述操作力度满足控制预设条件时,则进入步骤S430;当所述操作力度不满足控制预设条件时,不作任何处理。
具体的,如果是多点触摸,则可以分别得到各个触摸点对应的操作力度,对不同的触摸点设置不同的控制预设条件,分别判断各个触摸点对应的操作力度是否满足控制预设条件。也可以根据各个触摸点的触摸力度进行计算,得到目标触摸力度,再判断目标触摸力度是否满足控制预设条件,其中控制预设条件可根据需要自定义。只有操作力度满足控制预设条件才进入步骤S430,否则不作处理。
步骤S430,获取作用于播放界面的滑动操作数据,根据所述滑动操作数据对应的滑动轨迹方向控制播放数据的播放参数,所述播放参数包括播放进度和播放音量中的至少一种。
具体的,滑动操作数据包含在滑动轨迹上间隔排列的多个坐标数据,根据滑动轨迹数据中的坐标数据即可识别出滑动轨迹方向,例如向左滑动的方向、向右滑动的方向,对于多点触摸,可识别出多个滑动轨迹方向,共同控制播放参数。也可先根据各个触摸点的滑动方向确定滑动轨迹趋势,如聚拢滑动、发散滑动等,再通过滑动轨迹趋势控制播放参数。预先可自定义设置滑动轨迹的方向或趋势与播放参数的对应关系,例如,向左滑动 或聚拢滑动对应播放进度快退,向右滑动或发散滑动对应播放进度快进,根据滑动轨迹方向或滑动轨迹趋势与播放参数的对应关系控制对应的播放参数进行相应的调整。在一个实施例中,若滑动轨迹方向为第一方向,则控制播放进度快进,若滑动轨迹方向为第二方向,则控制播放进度快退,其中第一方向和第二方向为互为相反的方向。若滑动轨迹方向为第三方向,则控制播放音量增大,若滑动轨迹方向为第四方向,则控制播放音量减小,其中第三方向和第四方向为互为相反的方向。
在一个实施例中,如果操作力度满足控制预设条件的步骤之后,还包括:在触摸操作的位置显示预定义的浮动图像,且在浮动图像的周边区域显示播放参数调整提示信息。
具体的,浮动图像可以是以当前触摸点为圆心,以预设长度为半径的圆形等自定义图案,浮动图像可以固定或跟随触摸操作的位置移动,在浮动图像的周边区域显示播放参数调整提示信息,便于用户随时在触摸点附近进行播放参数调整。其中,所述浮动图像的周边区域可以为:以所述浮动图像的中心点为中心点的特定区域中、除所述浮动图像以外的其他区域。例如图10所示,触摸点对应的浮动图像511,以浮动图像511为中心点的区域510具体可以理解为所述浮动图像的周边区域。当然,在本示意中,所述浮动图像的周边区域为矩形,在其他实施方式中不限于是矩形区域,还可以使预先配置的任意形状的区域,例如圆形区域等等。播放参数调整提示信息可以是文字信息、图标、动画等,便于用户根据提示信息进行对应的滑动操作,正确的实现播放参数调整。且播放参数调整提示信息的状态可根据对应的播放参数的调整改变,其中状态改变包括亮度改变、颜色改变、动画效果改变等。
本实施例中,通过操作力度满足预设条件则根据滑动轨迹方向调整播放参数,使得对播放的调整不受限于固定的位置,可以在播放界面的任意 位置,且根据轨迹方向进行调整,方便快捷,用户可根据自己的习惯设置调整方式,提高了应用的便利性与定制性。
在一个实施例中,如图9所示,步骤S430包括:
步骤S431,根据滑动操作数据确定滑动距离,当滑动距离超过预设距离阈值时,根据滑动操作数据识别滑动轨迹方向,根据滑动轨迹方向确定待控制播放参数。
具体的,通过设置预设距离阈值,只有滑动距离超过预设距离阈值时才会识别滑动轨迹方向,减少误操作的概率。
步骤S432,根据滑动距离和/或滑动速度确定待控制播放参数的调整幅度,根据所述调整幅度控制待控制播放参数。
具体的,可预定义以滑动距离和/或滑动速度为自变量,以播放参数的调整幅度为因变量的函数,从而根据滑动距离和/或滑动速度计算待控制播放参数的调整幅度。如调整幅度与滑动距离和/或滑动速度的大小成正比例关系。根据滑动距离和/或滑动速度确定待控制播放参数的调整幅度,进一步提高了播放参数调整的灵活性。其中,滑动速度可通过滑动距离以及滑动操作的滑动时间确定。
在一个具体的实施例中,调整的播放参数为播放进度和播放音量,控制播放参数的具体过程如下:
1、如图10所示,监听作用于播放界面的触摸操作,如果触摸操作对应的操作力度为轻按,则在触摸点显示快捷操作界面510,快捷操作界面510包括浮动滑块511、播放进度快进图标512、播放进度快退图标513和播放音量增大图标514、播放音量减小图标515。
2、如图11所示,当用户向左滑动时,浮动滑块511向左移动,且播放进度快退图标513亮起,表示正在进行播放进度的快退,且歌词随着播放进度的快退滚动到对应的歌词。
3、如图12所示,当用户向上滑动时,浮动滑块511向上移动,且播放音量增大图标514亮起,表示正在进行播放音量的增大。
在一个实施例中,如图13所示,提供了一种控制应用的装置,包括:
获取模块610,配置为获取作用于待播放数据集界面的按压操作,待播放数据集为音频数据集和/或视频数据集;
预览模块620,配置为获取按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示按压操作对应的待播放数据的预览数据,所述预览数据包括以下数据的至少之一:所述待播放数据中的用户关注程度满足预设条件的待播放数据片段、待播放数据对应的关联数据。
在一个实施例中,如图14所示,所述装置还包括:
注册模块630,配置为向操作系统注册预览回调事件,所述预览回调事件用于展示按压操作对应的待播放数据的预览数据,所述预览回调事件包括对应的预览回调条件;
所述预览模块620还配置为当所述按压力度满足预览回调条件时,执行预览回调事件。
在一个实施例中,如图15所示,所述预览模块620包括:
目标待播放数据获取单元621,配置为根据所述按压操作的位置从待播放数据集中获取对应的目标待播放数据;
发送单元622,配置为发送目标待播放数据对应的预览数据请求至服务器;
预览单元623,配置为接收服务器返回的目标待播放数据对应的预览数据,并进行播放。
在一个实施例中,如图16所示,所述装置还包括:
播放模块640,配置为检测按压操作对应的按压力度,判断按压力度是否满足播放对应的预设条件,当所述按压力度满足播放对应的预设条件时, 播放待播放数据。
在一个实施例中,如图17所示,所述装置还包括:
播放控制模块650,配置为在播放数据的过程中,监听作用于播放界面的触摸操作,获取触摸操作对应的操作力度,判断操作力度是否满足控制预设条件,当操作力度满足控制预设条件时,获取作用于播放界面的滑动操作数据,根据滑动操作数据对应的滑动轨迹方向控制播放数据的播放参数,播放参数包括播放进度和播放音量中的至少一种。
在一个实施例中,所述播放控制模块650,还配置为当所述操作力度满足控制预设条件时,在所述触摸操作的位置显示预定义的浮动图像,且在所述浮动图像的周边区域显示播放参数调整提示信息。
在一个实施例中,如图18所示,所述播放控制模块650包括:
待控制播放参数确定单元651,配置为根据所述滑动操作数据确定滑动距离,当所述滑动距离超过预设距离阈值时,根据所述滑动操作数据识别滑动轨迹方向,根据所述滑动轨迹方向确定待控制播放参数。
调整单元652,配置为根据所述滑动距离和/或滑动速度确定待控制播放参数的调整幅度,根据所述调整幅度控制待控制播放参数。
本发明实施例中,所述控制应用的装置中的获取模块610、预览模块620、注册模块630、播放模块640和播放控制模块650,在实际应用中均可由所述装置的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)、微控制单元(MCU,Microcontroller Unit)或可编程门阵列(FPGA,Field-Programmable Gate Array),结合通信模组(包含:基础通信套件、操作系统、通信模块、标准化接口、协议及收发天线等)以及压力传感器实现。
在本发明所提供的几个实施例中,应该理解到,所揭露的方法及装置,可以通过其他的方式实现。以上所描述的装置实施例仅仅是示意性的,例 如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个模块或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的通信连接可以是通过一些接口,设备或模块的间接耦合或通信连接,可以是电性的、机械的或其他形式的。
上述作为分离部件说明的模块可以是、或也可以不是物理上分开的,作为模块显示的部件可以是、或也可以不是物理模块,即可以位于一个地方,也可以分布到多个网络模块上;可以根据实际的需要选择其中的部分或全部模块来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能模块可以全部集成在一个处理模块中,也可以是各模块分别单独作为一个模块,也可以两个或两个以上模块集成在一个模块中;上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
或者,本发明实施例上述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、磁碟或者光 盘等各种可以存储程序代码的介质。
本发明实施例中记载的存储器切换方法、装置只以上述实施例为例,但不仅限于此,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。
工业实用性
本发明实施例的技术方案通过识别按压力度展示待播放数据的预览数据,用户与应用之间的交互由手机屏幕的二维增加了Z轴压力感应的第三维,待播放数据已经预先匹配了对应的预览数据,不需要用户自行拖动进度盲目进行预览,目的性强,使用户快速了解待播放数据,提高播放数据选择的便利性。

Claims (15)

  1. 一种控制应用的方法,所述方法包括:
    获取作用于待播放数据集界面的按压操作,所述待播放数据集为音频数据集和/或视频数据集;
    获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据,所述预览数据包括以下数据的至少之一:所述待播放数据中的用户关注程度满足预设条件的待播放数据片段、待播放数据对应的关联数据。
  2. 根据权利要求1所述的方法,其中,所述获取作用于待播放数据集界面的按压操作的步骤之前,所述方法还包括:
    向操作系统注册预览回调事件,所述预览回调事件用于展示所述按压操作对应的待播放数据的预览数据,所述预览回调事件包括对应的预览回调条件;
    所述当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预览数据的步骤包括:
    当所述按压力度满足所述预览回调条件时,执行所述预览回调事件。
  3. 根据权利要求1所述的方法,其中,所述展示所述按压操作对应的待播放数据的预览数据的步骤包括:
    根据所述按压操作的位置从所述待播放数据集中获取对应的目标待播放数据;
    发送所述目标待播放数据对应的预览数据请求至服务器;
    接收服务器返回的所述目标待播放数据对应的预览数据,并进行播放。
  4. 根据权利要求1所述的方法,其中,所述展示所述按压操作对应的待播放数据的预览数据的步骤之后,所述方法还包括:
    检测所述按压操作对应的按压力度,判断所述按压力度是否满足播放 对应的预设条件,当所述按压力度满足播放对应的预设条件时,播放所述待播放数据。
  5. 根据权利要求1所述的方法,其中,所述方法还包括:
    在播放数据的过程中,监听作用于播放界面的触摸操作,获取所述触摸操作对应的操作力度;
    判断所述操作力度是否满足控制预设条件,当所述操作力度满足控制预设条件时,获取作用于所述播放界面的滑动操作数据;
    根据所述滑动操作数据对应的滑动轨迹方向控制所述播放数据的播放参数,所述播放参数包括播放进度和播放音量中的至少一种。
  6. 根据权利要求5所述的方法,其中,所述如果操作力度满足控制预设条件的步骤之后,所述方法还包括:
    在所述触摸操作的位置显示预定义的浮动图像,且在所述浮动图像的周边区域显示播放参数调整提示信息。
  7. 根据权利要求5所述的方法,其中,所述根据所述滑动操作数据对应的滑动轨迹方向控制所述播放数据的播放参数的步骤包括:
    根据所述滑动操作数据确定滑动距离,当滑动距离超过预设距离阈值时,根据所述滑动操作数据识别滑动轨迹方向,根据所述滑动轨迹方向确定待控制播放参数;
    根据滑动距离和/或滑动速度确定所述待控制播放参数的调整幅度,根据所述调整幅度控制所述待控制播放参数。
  8. 一种控制应用的装置,所述装置包括:
    获取模块,配置为获取作用于待播放数据集界面的按压操作,所述待播放数据集为音频数据集和/或视频数据集;
    预览模块,配置为获取所述按压操作对应的按压力度,当所述按压力度满足预览对应的预设条件时,展示所述按压操作对应的待播放数据的预 览数据,所述预览数据包括以下数据的至少之一:所述待播放数据中的用户关注程度满足预设条件的待播放数据片段、待播放数据对应的关联数据。
  9. 根据权利要求8所述的装置,其中,所述装置还包括:
    注册模块,配置为向操作系统注册预览回调事件,所述预览回调事件用于展示所述按压操作对应的待播放数据的预览数据,所述预览回调事件包括对应的预览回调条件;
    所述预览模块,还配置为当所述按压力度满足所述预览回调条件时,执行所述预览回调事件。
  10. 根据权利要求8所述的装置,其中,所述预览模块包括:
    目标待播放数据获取单元,配置为根据所述按压操作的位置从所述待播放数据集中获取对应的目标待播放数据;
    发送单元,配置为发送所述目标待播放数据对应的预览数据请求至服务器;
    预览单元,配置为接收服务器返回的所述目标待播放数据对应的预览数据,并进行播放。
  11. 根据权利要求8所述的装置,其中,所述装置还包括:
    播放模块,配置为检测所述按压操作对应的按压力度,判断所述按压力度是否满足播放对应的预设条件,当所述按压力度满足播放对应的预设条件时,播放所述待播放数据。
  12. 根据权利要求8所述的装置,其中,所述装置还包括:
    播放控制模块,配置为在播放数据的过程中,监听作用于播放界面的触摸操作,获取所述触摸操作对应的操作力度,判断所述操作力度是否满足控制预设条件,当所述操作力度满足控制预设条件时,获取作用于所述播放界面的滑动操作数据,根据所述滑动操作数据对应的滑动轨迹方向控制所述播放数据的播放参数,所述播放参数包括播放进度和播放音量中的 至少一种。
  13. 根据权利要求12所述的装置,其中,所述播放控制模块,还配置为当所述操作力度满足控制预设条件时,在所述触摸操作的位置显示预定义的浮动图像,且在所述浮动图像的周边区域显示播放参数调整提示信息。
  14. 根据权利要求12所述的装置,其中,所述播放控制模块包括:
    待控制播放参数确定单元,配置为根据所述滑动操作数据确定滑动距离,当所述滑动距离超过预设距离阈值时,根据所述滑动操作数据识别滑动轨迹方向,根据所述滑动轨迹方向确定待控制播放参数;
    调整单元,配置为根据滑动距离和/或滑动速度确定所述待控制播放参数的调整幅度,根据所述调整幅度控制所述待控制播放参数。
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至7任一项所述的控制应用的方法。
PCT/CN2017/074137 2016-02-19 2017-02-20 控制应用的方法、装置和计算机存储介质 WO2017140273A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610095327.0 2016-02-19
CN201610095327.0A CN105677189B (zh) 2016-02-19 2016-02-19 控制应用的方法和装置

Publications (1)

Publication Number Publication Date
WO2017140273A1 true WO2017140273A1 (zh) 2017-08-24

Family

ID=56304738

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/074137 WO2017140273A1 (zh) 2016-02-19 2017-02-20 控制应用的方法、装置和计算机存储介质

Country Status (2)

Country Link
CN (1) CN105677189B (zh)
WO (1) WO2017140273A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488188A (zh) * 2019-01-28 2020-08-04 阿里巴巴集团控股有限公司 一种动画实现方法和相关装置、系统
WO2022060465A1 (en) * 2020-09-18 2022-03-24 Google Llc Interface for communicating a threshold in a camera
EP4131027A4 (en) * 2020-09-11 2023-05-31 Beijing Zitiao Network Technology Co., Ltd. AUDIO PREVIEW METHOD AND APPARATUS AND STORAGE MEDIA

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677189B (zh) * 2016-02-19 2020-02-18 腾讯科技(深圳)有限公司 控制应用的方法和装置
CN107133028B (zh) * 2017-03-30 2021-07-16 联想(北京)有限公司 一种信息处理方法及电子设备
CN107155130A (zh) * 2017-05-25 2017-09-12 珠海市魅族科技有限公司 播放控制方法及装置、计算机装置和可读存储介质
CN109218834A (zh) * 2017-06-30 2019-01-15 武汉斗鱼网络科技有限公司 一种直播列表浏览交互方法及装置
CN109005464A (zh) * 2018-08-28 2018-12-14 深圳市有钱科技有限公司 视频播放方法、存储介质及计算机设备
CN110968727B (zh) * 2018-09-29 2023-10-20 阿里巴巴集团控股有限公司 信息处理方法和装置
CN109462779B (zh) * 2018-11-30 2022-07-12 北京微播视界科技有限公司 视频预览信息的播放控制方法、应用客户端及电子设备
CN109800041B (zh) * 2018-12-24 2022-10-18 天津字节跳动科技有限公司 小程序背景模糊实现方法、装置、电子设备及存储介质
CN109918536A (zh) * 2019-02-28 2019-06-21 广州酷狗计算机科技有限公司 播放歌曲高潮的方法、装置、设备及存储介质
CN110225391B (zh) * 2019-07-18 2022-02-18 北京字节跳动网络技术有限公司 视频播放的控制方法、装置、电子设备、及存储介质
CN113259733B (zh) * 2020-02-12 2022-06-14 聚好看科技股份有限公司 一种显示设备
CN111414147A (zh) * 2020-03-26 2020-07-14 广州酷狗计算机科技有限公司 歌曲播放方法、装置、终端及存储介质
CN111984174A (zh) * 2020-07-29 2020-11-24 维沃移动通信有限公司 内容下载方法、装置及电子设备
CN112462954B (zh) * 2020-12-16 2023-07-18 深圳市富途网络科技有限公司 表情显示方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566851A (zh) * 2010-12-15 2012-07-11 盛乐信息技术(上海)有限公司 预览文件对象的装置及方法
CN104038620A (zh) * 2013-03-06 2014-09-10 风网科技(北京)有限公司 一种手机视频播放控制系统及其方法
US20140258866A1 (en) * 2013-03-06 2014-09-11 Samsung Electronics Co., Ltd. Mobile apparatus providing preview by detecting rubbing gesture and control method thereof
CN104238893A (zh) * 2013-06-08 2014-12-24 腾讯科技(深圳)有限公司 一种对视频预览图片进行显示的方法和装置
CN105677189A (zh) * 2016-02-19 2016-06-15 腾讯科技(深圳)有限公司 控制应用的方法和装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466708C (zh) * 2002-09-23 2009-03-04 皇家飞利浦电子股份有限公司 视频记录器装置以及操作视频记录器装置的方法
US20060143566A1 (en) * 2004-12-28 2006-06-29 Meng-Han Tsai Recording medium, method for previewing on-demand digital multimedia data on the recording medium
US8379154B2 (en) * 2006-05-12 2013-02-19 Tong Zhang Key-frame extraction from video

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566851A (zh) * 2010-12-15 2012-07-11 盛乐信息技术(上海)有限公司 预览文件对象的装置及方法
CN104038620A (zh) * 2013-03-06 2014-09-10 风网科技(北京)有限公司 一种手机视频播放控制系统及其方法
US20140258866A1 (en) * 2013-03-06 2014-09-11 Samsung Electronics Co., Ltd. Mobile apparatus providing preview by detecting rubbing gesture and control method thereof
CN104238893A (zh) * 2013-06-08 2014-12-24 腾讯科技(深圳)有限公司 一种对视频预览图片进行显示的方法和装置
CN105677189A (zh) * 2016-02-19 2016-06-15 腾讯科技(深圳)有限公司 控制应用的方法和装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111488188A (zh) * 2019-01-28 2020-08-04 阿里巴巴集团控股有限公司 一种动画实现方法和相关装置、系统
CN111488188B (zh) * 2019-01-28 2024-03-29 阿里巴巴集团控股有限公司 一种动画实现方法和相关装置、系统
EP4131027A4 (en) * 2020-09-11 2023-05-31 Beijing Zitiao Network Technology Co., Ltd. AUDIO PREVIEW METHOD AND APPARATUS AND STORAGE MEDIA
WO2022060465A1 (en) * 2020-09-18 2022-03-24 Google Llc Interface for communicating a threshold in a camera

Also Published As

Publication number Publication date
CN105677189A (zh) 2016-06-15
CN105677189B (zh) 2020-02-18

Similar Documents

Publication Publication Date Title
WO2017140273A1 (zh) 控制应用的方法、装置和计算机存储介质
US10423303B1 (en) Progressive information panels in a graphical user interface
KR101651577B1 (ko) 로컬 및 원격 미디어 아이템 관리
KR101847754B1 (ko) 근접 기반 입력을 위한 장치 및 방법
US8738783B2 (en) System for interaction of paired devices
CN111050203B (zh) 一种视频处理方法、装置、视频处理设备及存储介质
US20140280603A1 (en) User attention and activity in chat systems
CN104102417B (zh) 电子装置及其显示播放列表的方法
US11635938B2 (en) Spatial management of audio
CN108170342B (zh) 应用程序界面显示方法及装置、终端、可读存储介质
WO2012166352A1 (en) Graphical user interfaces for displaying media items
CN114564604B (zh) 媒体合集生成方法、装置、电子设备及存储介质
CN109286836A (zh) 多媒体数据处理方法、装置及智能终端、存储介质
WO2022262485A1 (zh) 操作控件的位置调整方法、装置、终端及存储介质
CN109089142A (zh) 播放控制方法、装置以及计算机设备
KR102641470B1 (ko) 쇼핑 콘텐츠 제공 방법 및 시스템
CN112929725B (zh) 视频发布方法、视频播放方法、电子设备和存储介质
WO2024007833A1 (zh) 视频播放方法、装置、设备和存储介质
KR102626739B1 (ko) 음악 관련 컨텐츠의 분석 결과를 제공하는 방법 및 컴퓨터가 판독가능한 기록 매체
KR20160089205A (ko) 아이템 관리를 위한 방법 및 전자 장치
EP3722971A1 (en) Graphical user interface for dynamically creating and adjusting playlists
CN116166242B (zh) 一种基于画布的度量卡片实现方法、装置及存储介质
KR20120103923A (ko) 터치스크린을 구비한 사용자 단말 제어방법, 장치, 이를 위한 기록매체 및 이를 포함하는 사용자 단말
WO2023208229A1 (zh) 信息展示方法、装置、电子设备及存储介质
EP4220368A1 (en) Multimedia data processing method and apparatus, and device, computer-readable storage medium and computer program product

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: 17752705

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: 17752705

Country of ref document: EP

Kind code of ref document: A1