Today, social media applications allow users to create, edit, and share content with other users. For example, a social media application can allow third party users or third party applications to publish content to the social media application. However, the social media application typically restricts the format of the content being published on the social media application to a format created by parties associated with the social media application, such as the programmers of the social media applications. In addition, there is no ability for third parties to add or enhance the functionality of the social media application. These limitations also exist in other applications, such as various audio-visual applications.
The present disclosure describes techniques that enable a third party unrelated to an application to add functionality authored by the third party to the application. In certain embodiments, a third party may create or author a script that encodes the functionality to be added to the application. The script may then be provided to and executed by the application, where execution of the script causes the functionality to be added to the application.
In certain embodiments, the added functionality may be in the form of one or more effects that are output by the application when a corresponding script is executed by the application. The one or more effects may include audio-visual effects that are displayed by the application to which the one or more effects are added. In some embodiments, the one or more effects may also include display of data provided by a third party in the application to which the one or more effects are added. In such an embodiment, the script provided by the third party application may identify the data to be displayed.
In one illustrative example, the application to which the one or more effects are added (i.e., the target application) by the third party may be a camera application that is configured to output audio-visual information (e.g., images, video information, audio information, or the like) captured by one or more audio-video capture devices (e.g., a camera, a microphone, or the like) on a user device. In such an example, a script authored by a third party may be made available to the camera application.
When executed by the camera application, the one or more effects corresponding to the script may be output through the camera application, such as via a user interface of the camera application. For example, in one embodiment, the one or more effects may be mixed with the media content (e.g., an image, a video, an audiovisual stream, or the like) being captured and output by the camera application. In such an example, the one or more effects and the media content may be together output by the camera application. The media content of the target application is augmented by the one or more effects (sometimes referred to as a media effect). In certain embodiments, the camera application may be part of a social media application such as a Facebook™ application.
In certain embodiments, according to an example workflow, a third party application may be executing on a user's device, such as the user's mobile device. The third party application may provide a user interface (e.g., a graphical user interface (GUI)) that enables a user to select a special share button provided by the third party application. The selection of the special share button may cause a message to be communicated from the third party application to a target application (e.g., a camera application). The camera application may then, based on the received message, determine a script that is associated with the third party application. The script may be authored by the same third party as the third party application or by some other third party. In some examples, when referring to a third party for authorship, this disclosure is referring to a party other than the party associated with the camera application.
In certain embodiments, the message that is received by the camera application may include the script. In some other embodiments, the message received by the camera application may include information that is used by the camera application to obtain the script. The script may then be executed by the camera application causing the one or more effects corresponding to the script to be output by the camera application. In some embodiments, the script may be executed within a sandbox container within the camera application so that the script is cordoned off from and does not have access to any information of the social media application.
From the perspective of the user using the third party application, upon selection of the special share button, the display on the user's device is switched from a user interface of the third party application to a user interface of the camera application. The user interface of the camera application can then display the one or more effects corresponding to the executed script. The user can then interact with the camera application to perform one or more actions with respect to the media content mixed with the media effect, such as cancel, share, save, interact with the media content mixed with the media effect, or the like. The camera application may also provide an exit button, which when selected by the user, causes the camera application to close and the user interface of the third party application to be redisplayed on the user's device.
In certain embodiments, the one or more effects may include audio-visual effects, such as, without limitation: audio sounds (e.g., happy birthday music, balloons popping, crowd cheering, etc.) and visual effects (e.g., streamers, floating balloons, a birthday cap superimposed on to a person's head, etc.). The one or more effects may also include the display of data provided by a third party such as a game score, a number of miles run by a runner, etc. In some embodiments, the data to be displayed may be sent from the third party application to the camera application in response to the selection of the special share button in the third party application by a user. In some other embodiments, the script encoding the one or more effects may contain the data or may contain pointers or references to the data. These pointers or references may then be used by the target application to download the corresponding data when the script is executed by the target application and the data may then be displayed by the target application as part of outputting the one or more effects.
In certain embodiments, multiple scripts, possibly provided by multiple third parties may be available for execution by the target application. For example, when the target application receives a message from a third party application (e.g., a message that is communicated when a user of the third party application selects a special share button provided by the third party application), the target application may identify multiple scripts from one or more third parties that are available for execution in response to receiving the message. In such a scenario, the target application may provide user-selectable representations for each of the available scripts, where the representations may be in the form of thumbnails, icons, buttons, etc. The user can then select a particular representation (and as a result a particular set of one or more effects), a particular script corresponding to the selected representation is then executed by the target application, and the one or more effects resulting from execution of the particular script are output by a user device executing the target application.
Techniques described in this disclosure enable a third party to add functionality to a target application. The functionality is added without having to change the target application code or to recompile the target application. In certain embodiments, the target application can be invoked via a third party application provided by a third party. Upon invocation, such as via a share button provided by the third party application, a user interface of the target application is displayed and a script authored by a third party is executed by the target application causing the one or more effects corresponding to the executed script to be output via the user interface of the target application. The user can then interact with the target application. The user interface of the target application may provide a user-selectable option, which when selected by the user, causes the target application to close and the display to be reverted back to the third party application. These and other examples of the disclosure, along with many of its advantages and features, are described in more detail in conjunction with the text below and attached figures.
The terms and expressions that have been employed in this disclosure are used as terms of description and not of limitation, and there is no intention in the use of such terms and expressions of excluding any equivalents of the features shown and described or portions thereof. It is recognized, however, that various modifications are possible within the scope of the systems and methods claimed. Thus, it should be understood that, although certain concepts and techniques have been specifically disclosed, modification and variation of these concepts and techniques may be resorted to by those skilled in the art, and that such modifications and variations are considered to be within the scope of the systems and methods as defined by this disclosure.
This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used in isolation to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent, any or all drawings, and each claim.
The foregoing, together with other features and examples, will be described in more detail below in the following specification, claims, and accompanying drawings.
Illustrative embodiments are described in detail below with reference to the following figures:
In the following description, for the purposes of explanation, specific details are set forth in order to provide a thorough understanding of examples of the disclosure. However, it will be apparent that various examples may be practiced without these specific details. For example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form in order to not obscure the examples in unnecessary detail. In other instances, well-known circuits, processes, algorithms, structures, and techniques may be shown without necessary detail in order to avoid obscuring the examples. The figures and description are not intended to be restrictive.
The ensuing description provides examples only, and is not intended to limit the scope, applicability, or configuration of the disclosure. Rather, the ensuing description of the examples will provide those skilled in the art with an enabling description for implementing an example. It should be understood that various changes may be made in the function and arrangement of elements without departing from the spirit and scope of the disclosure as set forth in the appended claims.
Also, it is noted that individual examples may be described as a process which is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process is terminated when its operations are completed, but could have additional steps not included in a figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination can correspond to a return of the function to the calling function or the main function.
The term “machine-readable storage medium” or “computer-readable storage medium” includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other mediums capable of storing, containing, or carrying instruction(s) and/or data. A machine-readable storage medium or computer-readable storage medium may include a non-transitory medium in which data can be stored and that does not include carrier waves and/or transitory electronic signals propagating wirelessly or over wired connections. Examples of a non-transitory medium may include, but are not limited to, a magnetic disk or tape, optical storage media such as compact disk (CD) or digital versatile disk (DVD), flash memory, memory or memory devices. A computer-program product may include code and/or machine-executable instructions that may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements.
Furthermore, examples may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks (e.g., a computer-program product) may be stored in a machine-readable medium. One or more processors may execute the software, firmware, middleware, microcode, the program code, or code segments to perform the necessary tasks.
Systems depicted in some of the figures may be provided in various configurations. In some examples, the systems may be configured as a distributed system where one or more components of the system are distributed across one or more networks such as in a cloud computing system.
Where components are described as being “configured to” perform certain operations, such configuration can be accomplished, for example, by designing electronic circuits or other hardware to perform the operation, by programming programmable electronic circuits (e.g., microprocessors, or other suitable electronic circuits) to perform the operation, or any combination thereof.
Techniques are described that enable a third party (unrelated to an application) add functionality authored by the third party to the application. In certain embodiments, a third party may create or author a script that encodes the functionality to be added to the application. The script may then be provided to and executed by the application, where execution of the script causes the functionality to be added to the application.
In certain embodiments, the added functionality may be in the form of one or more effects that are output when the corresponding script is executed by the application. The one or more effects may include audio-visual effects that are displayed by the application to which the one or more effects are added. In some embodiments, the one or more effects may also include displaying data corresponding to a third party application in the application to which the one or more effects are added. In such an embodiment, the script provided by the third party application may identify the data to be displayed.
In one illustrative example, the application to which the one or more effects are added (i.e., the target application) may be a camera application that is configured to output audio-visual information captured by one or more audio-video capture devices such as a video stream captured by a camera on a device. In such an example, a script authored by a third party may be made available to the camera application. When executed by the camera application, the script may cause the one or more effects corresponding to the script to be output through the camera application, such as via a user interface of the camera application. The one or more effects may include audio-visual effects and/or data (corresponding to the third party) that is to be displayed. For example, in one embodiment, the one or more effects may be mixed with the media content (e.g., an image, a video, or an audiovisual stream) being captured. Then the one or more effects and the media content may be together output by the camera application. In some examples, the media content of the target application is augmented by the one or more effects. In certain embodiments, the camera application may be part of a social media application such as a Facebook™ application.
In certain embodiments, according to an example workflow, a third party application may be executing on a user's device, such as the user's mobile device. The third party application may provide a user interface that enables a user to select a special share button provided by the third party application. The selection of the special share button may cause a message to be communicated from the third party application to the target application (e.g., a camera application. The camera application may then, based on the received message, determine a script that is associated with the third party application. The script may be authored by the same third party as the third party application or by some other third party. In some examples, when referring to a third party for authorship, this disclosure is referring to a party other than the party associated with the camera application.
In certain embodiments, the message that is received by the camera application may include the script. In some other embodiments, the message received by the camera application may include information that is used by the camera application to identify a particular script. The particular script may then be executed by the camera application causing the one or more effects corresponding to the script to be output by the camera application.
From the perspective of the user using the third party application, upon selection of the special share button, the display on the user's device is switched from a user interface (e.g., graphical user interface (GUI)) of the third party application to a user interface (e.g., a GUI) of the camera application, and the GUI of the camera application can then display the one or more effects corresponding to the executed script. The user can then interact with the camera application to perform one or more actions to the media content mixed with the media effect, such as cancel, share, save, or the like. The camera application may also provide an exit button, which when selected by the user, causes the camera application to close and the user interface of the third party application to be redisplayed on the user's device.
In some embodiments, the script may be executed by the target application within a sandbox container so that the script is cordoned off from and does not have access to any information of the target application. A sandbox container is one way of ensuring that the script is executed within a controlled environment, without access to private information of the target application. Other techniques, besides execution within a sandbox, may also be used to isolate the execution of the script by the target application.
In some examples, the message from the third party application may first be sent to a social media application (such as a Facebook™ application), which can then in response send a second message to the target application such as the camera application, which then outputs the effects as described herein. In certain embodiments, the social media application can provide the camera application. In such an example, the camera application can be a process executed by the social media application. Alternatively, the target application may be a separate application from the social media application.
In certain embodiments, the one or more effects may include audio-visual effects such as, without limitations: audio sounds (e.g., happy birthday music, balloons popping, crowd cheering, etc.) and visual effects (e.g., streamers, floating balloons, a birthday cap superimposed on to a person's head, etc.). The one or more effects may also include display of data provided by a third party such as a game score, a number of miles run by a runner, etc. In some embodiments, the data to be displayed may be sent from the third party application to the camera application in response to the selection of the special share button in the third party application by a user. In some other embodiments, the script encoding the effects may contain the data or may contain pointers or references to the data. These pointers or references may then be used by the target application to download the corresponding data when the script is executed by the target application and the data may then be displayed by the target application as part of outputting the one or more effects.
In certain embodiments, multiple scripts, possibly provided by multiple third parties, may be available for execution by the target application. For example, when the target application receives a message from a third party application (e.g., a message that is communicated when a user of the third party application selects a special share button provided by the third party application), the target application may identify multiple scripts from one or more third parties that are available for execution in response to receiving the message. In such a scenario, the target application may provide user-selectable representations for each of the available scripts, where the representations may be in the form of thumbnails, icons, buttons, etc. The user can then select a particular representation (and as a result a particular set of effects). A particular script corresponding to the selected representation is then executed by the target application and the one or more effects resulting from execution of the particular script are output by the target application.
For purposes of this disclosure, the term “third party” is used to refer to an entity (e.g., person, company, provider, or the like) that is different from a provider of a target application. An application provided by a third party is referred to as a third party application, which is separate and different from the target application. For example, if the target application was an application provided by Facebook, Inc., another company other than Facebook, Inc. could be a third party.
At 110, a user may be using an application (referred to as a third party application) executing on a user device (such as a computer, a mobile phone, or other electronic device). The third party application may provide a graphical user interface (GUI) that is displayed on the user's device and allows the user to interact with the third party application. An example of such a third party application and the GUI 200 displayed by the third party application is depicted in
At 120, the user may select the special share button 218 in the third party application. Selection of the special share button 218 enables the user to share information from the third party application to a target application. For example, the target application may be a camera application that is configured to output audio-visual information (e.g., images, video information, audio information) captured by one or more audio-video capture devices (e.g., a camera, a microphone, or the like) on a user device. An example of such a camera application is shown in
At 130, as a result of selecting the special share button in 120, the display on the user's device is switched from the third party application's GUI to the target application's GUI. At 140, one or more effects authored by a third party are output via the target application. The one or more effects may include audio-visual effects such as, without limitations, audio sounds (e.g., happy birthday music, balloons popping, crowd cheering, etc.) and visual effects (e.g., streamers, floating balloons, a birthday cap superimposed on to a person's head, etc.). The one or more effects may also include displaying data provided by a third party such as a game score, a number of miles run by a runner, etc. The one or more visual and data display effects may be output via the GUI of the target application and one or more audio effects may be output via an audio output device (e.g., a speaker) of the user's device under control of the target application. In certain embodiments, the one or more effects may be output along with (e.g., mixed with) the media content corresponding to the target application.
For example,
At 150, the user may interact with the target application. For example, the user may take pictures (e.g., a frame), capture videos (e.g., one or more frames), share the pictures and/or videos, etc. using the camera application. These pictures and videos may include the one or more effects.
In certain embodiments, the third party application may provide a user selectable option that enables the user to close the target application and revert back to the third party application. At 160, the user may select this option to exit the target application. In some examples, the pictures, videos, or a preview of either can be sent to the third party application. At 170, in response to the user selecting the exit option in 160, the display on the user's device switches from the target application's GUI back to the third party application's GUI. The target application may be closed and the third party application may display the pictures, videos, or the preview of either that was sent to the third party application.
In some examples, the effect may be such that it is activated based on a user interaction or input and may include animation. For example, given the effects shown in
Steps 310, 320, and 330 correspond to steps 110, 120, and 130 depicted in
At 350, the user may then select a particular representation from the multiple representations thereby indicating that the user would like the target application to output one or more effects corresponding to the selected representation. At 360, the one or more effects corresponding to the representation selected by the user in 350 are output by the target application. The visual and data display effects may be output via a GUI of the target application and the audio effects may be output via an audio output subsystem of the user's device. For example, as depicted in
At 370, the user may interact with the target application. These interactions may include, for example, taking pictures, capturing videos, sharing the captured pictures and/or videos, etc. using the target application such as the camera application. The user interactions in 360 may also include selecting a different representation or exiting the target application. Different actions may be taken depending on the user interaction.
For example, at 372, the user may select a different representation from the previously selected representation. In response, at 374, the one or more effects corresponding to the representation selected in 374 are output by the target application and the user's device.
At 380, the user may select an option that causes the display of the user device to switch from the target application back to the third party application. For example, the user may select an exit button, cancel button, store/share and exit button, etc. provided by the target application GUI. In response to the selection, at 390, display on the user device can switch from the target application to the third party application. The target application may be closed.
In the scenario where there are multiple sets of effects, in certain embodiments, a certain set may be tagged as the “default” and the effects corresponding to this default set may be output via the target application even before the user has specifically selected a particular representation in 350 above. Once the multiple representations are displayed, the user can always select a different representation to change the effects that are output from the default to the particular user-selected set.
Communication network 560 facilitates communications between the various systems depicted in
A user may use user device 510 to interact with applications executed by user device 510, including a third party application 550 and a target application (e.g., camera application 542). User device 510 can be a mobile device (e.g., an iPhone™ device, iPad™ device), a desktop computer, a laptop computer, or other computing device. User device 510 can include multiple subsystems including an input and/or output (I/O) subsystem 520. I/O subsystem 520 may include one or more subsystems 530 for capturing audio and/or video information.
I/O subsystem 520 may include components for inputting and/or outputting data to or from the user device 510. For example, I/O subsystem 520 can include a screen for displaying content on the user device 510 and receiving interactions through one or more touch sensors. As another example, the I/O subsystem 520 can further include one or more components such as a Global Positioning System (GPS), accelerometer, keyboard, speaker, or the like.
User device 510 may further include an audio-visual information capture subsystem 530 for capturing audio and/or video information. Audio-visual information capture subsystem 520 may include, for example, one or more cameras for capturing images or video information, one or more microphones for capturing audio information, and the like.
One or more applications may be installed on the user device 510 and may be executed by the user device 510. While
As depicted in
The target application 540 can determine an effect to mix with the output of the target application 540. For example, the target application 540 can receive a message indicating a third party application (such as the third party application 550), a particular media effect, a keyword for identifying one or more media effects, or the like.
Based on the message, the target application 540 can cause a script (such as a script 542) to be executed in a container 544 (sometimes referred to as a sandbox) of the target application 540. In some examples, one or more effects can be presented by the target application 540 based on execution of the script 544, which can include one or more operations. The script 544 can be authored by a user not associated with the target application 540. For example, a user associated with the third party application 550.
In some examples, the script 544 can cause the target application 540 to communicate with one or more remote sources (e.g., a data source 570, a target application server 580, or a third party server 590). The data source 570 can be associated with the target application server 580, the third party server 590, or another server. The data source 570 can be a database that at least includes third party data 572 (e.g., data associated and/or from the third party application 550). In some examples, the data source 570 can include live data that can be used by a script authored by the third party application 550. The target application server 580 can communicate with the target application 540 for providing server side functionality that supplements processing and storage on the user device 510. The third party server 590 can perform similar functionality as the social media server 580, but for the third party application 550 rather than the target application 540. The target application server 580 can also include one or more scripts 582 for sending to the target application 540 for execution.
As described above, the third party application 550 may send a message to the target application 540. To send the message, the third party application 550 can use an application programming interface (API) provided by a provider of the target application 540. The API can enable third party applications to perform various tasks such as: provide third party application data to the target application 540, provide scripts authored by a provider of the third party application 550 to the target application 540, initiate execution of the scripts, etc.
At 610, a third party application executing on a user device may receive an indication that the user has selected a special button provided by the third party application to initiate sharing with a target application. In some examples, selection of the special button may indicate that a user would like to share data from the third party application with the target application, such as a camera application.
At 620, the third party application determines information (e.g., third party data) to be sent from the third party application to the target application. In certain embodiments, the information to be sent is such that it enables the target application to determine a script based on the content, where the script encodes one or more effects to be output via the target application. In certain embodiments, the script itself or information identifying the script (e.g., file name) may be included in the information to be sent. In another embodiment, the third party application may include sufficient information (e.g., an identifier identifying the third party application or a provider of the third party application) in the communication that enables the target application to determine a script corresponding to the communication.
As described above, the one or more effects may also include outputting third party data. In one embodiment, as part of 620, the third party application may determine what third party data is to be sent to the target application and include that data in the communication to be sent to the target application. In some other embodiments, the data to be output may be identified by the script. The third party data may be stored by on the user device or may be stored on some storage location remote from the user device. For example, for the third party application depicted in
At 640, the third party application may enable the user device to switch from displaying the GUI of the third party application to displaying the GUI of the target application. In some examples, the switch can be a quick switch such that a user does not need to perform any action to have the switch occur.
After the user has exited the target application, at 650, the third party application may receive a message to again become the active application and as a result the display on the user's device may switch from displaying the GUI of the target application to displaying the GUI of the third party application.
At 710, a target application may receive a message or communication from a third party application executing on a device. The communication may include information that enables the target application to identify a script to be executed. For example, in some embodiments, the communication itself may comprise information identifying the script or may even include the script. In some embodiments, the communication may include information identifying the third party application or a third party provider of the third party application. The communication may include keywords, etc. In some examples, the received communication or message may include information identifying third party data to be included in one or more effects associated with the script.
At 720, the target application may be made an active application on the device. For example, display of the device can switch from a GUI of the third party application to a GUI of the target application.
At 730, the target application may identify a script based on the message received in 710. In certain embodiments, the target application may access information that identifies the script to use based on information contained in the message. For example, the target application may access information that maps third party applications to corresponding scripts. Accordingly, based on the information identifying the third party application included in the message, the target application may determine the script to use. As previously indicated, in some instances, the message itself may identify the script to use.
The task of identifying a script corresponding to a message received from a third party application may be performed by the target application by itself if the requisite information and the script is accessible to the target application. Alternatively, the processing may be performed by the target application in conjunction with a server. For example, as part of 730, the target application executing on a user device may send information contained in the communication, or a portion thereof, to a server, such as to target application server 580 depicted in
At 740, the identified script may be executed by the target application, where execution of the script causes one or more effects encoded by the script to be output by the target application. The one or more effects may include audio effects, visual or video effects, and/or displaying data. In some examples, the effects may be output along with other information output by the target application. For example, if the target application is a camera application that is configured to capture and output media information such as video information, the effects may be shown along with (e.g., mixed with) the information output by the target application. In this manner, the content output by the target camera application is augmented by the one or more effects.
In certain embodiments, the script is a JavaScript file that is executed by the target application. In some embodiments, the script may be executed within a sandbox container within the target application so that the script is cordoned off from and does not have access to any information of the target application.
In certain embodiments, the script may indicate that data, such as third party data, is to be output as part of the one or more effects. In some examples, the data to be displayed may be included in the message received by the target application from the third party application. In some other examples, the script may include references or pointers to the data, and the target application may use these references to access the data. For example, in one embodiment, the script may include a uniform resource identifier (URI) such as a URL that points to a location where the data to be included in the effects is stored. The location may be remote from the device where the target application is being executed, for example, the data may be stored on data source 570 depicted in
At 750, the target application may receive inputs (e.g., user interactions) from the user. At 760 and 770, if the user input is to exit from the target application, then the target application may be closed (or made not active) such that the third party application becomes the active application and the display on the user device is switched from the target application to the third party application. When the input does not cause an exit from the target application, the target application can wait for another user interaction.
At 802, a target application may receive a message or communication from a third party application executing on a device. The message may include information that enables the target application to identify multiple scripts to be executed. For example, in some embodiments, the message itself may comprise information identifying the multiple scripts or may even include the multiple scripts (or include one or more of the multiple scripts). In some embodiments, the message may include information identifying the third party application or a third party provider of the third party application. The message may include keywords, etc. In some examples, the message may include information identifying third party data to be included in one or more effects associated with at least one of the multiple scripts.
At 804, the target application may be made an active application on the device. For example, display of the device can switch from a GUI of the third party application to a GUI of the target application.
At 806, the target application may identify multiple scripts based on the message received in 802. In certain embodiments, the target application may access information that identifies the multiple scripts to use based on information contained in the message. For example, the target application may access information that maps third party applications to corresponding scripts. Accordingly, based on the information identifying the third party application included in the message, the target application may determine the multiple scripts. As previously indicated, in some instances, the message itself may include the multiple scripts.
The task of identifying a script corresponding to the message received from a third party application may be performed by the target application by itself if the requisite information and the script is accessible to the target application. Alternatively, the processing may be performed by the target application in conjunction with a server. For example, as part of 806, the target application executing on a user device may send information contained in the message, or a portion thereof, to a server, such as to target application server 580 depicted in
At 808, user-selectable representations can be displayed in the target application. Each user-selectable representation can correspond to a script that was identified based on the message. The representations may be in the form of thumbnails, icons, buttons, etc. At 810, a user can make a selection of a user-selectable representation. The selection can be received by the target application.
At 812, the script corresponding to the selection may be executed by the target application, where execution of the script causes one or more effects encoded by the script to be output by the target application. The one or more effects may include audio effects, visual or video effects, and/or displaying data. In some examples, the effects may be output along with other information output by the target application. For example, if the target application is a camera application that is configured to capture and output media information such as video information, the effects may be shown along with (e.g., mixed with) the information output by the target application. In this manner, the content output by the target camera application is augmented by the one or more effects.
In certain embodiments, the script is a JavaScript file that is executed by the target application. In some embodiments, the script may be executed within a sandbox container within the target application so that the script is cordoned off from and does not have access to any information of the target application.
In certain embodiments, the script may indicate that data, such as third party data, is to be output as part of the one or more effects. In some examples, the data to be displayed may be included in the message received by the target application from the third party application. In some other examples, the script may include references or pointers to the data, and the target application may use these references to access the data. For example, in one embodiment, the script may include a uniform resource identifier (URI) such as a URL that points to a location where the data to be included in the effects is stored. The location may be remote from the device where the target application is being executed, for example, the data may be stored on data source 570 depicted in
At 814, the target application may receive inputs (e.g., user interactions) from the user. At 816 and 822, if the user input indicates to exit from the target application, then the target application may be closed (or made not active) such that the third party application becomes the active application and the display on the user device is switched from the target application to the third party application.
At 818, when the input does not cause an exit from the target application, it can be determined whether the input is a new selection of a user-selectable representation. At 820, if the new selection is of a user-selectable representation, a new script corresponding to the new selection can be executed similarly as described at 812. When the new script is executed, the previous script might no longer be executing on the device (and accordingly, the one or more effects corresponding to the previous script may no longer be output by the device).
The target camera application may determine that there are multiple bundles or sets of effects, authored or created by one or more third parties, and which are candidates for selection by the user. Multiple representations 912 corresponding to multiple bundles or sets of effects are displayed in GUI 910. The user may then, via GUI 910, select a particular representation. The camera target application then executes the script corresponding to the selected representation and the one or more effects generated from executing the particular script are then output via GUI 910 as shown in
In the embodiment depicted in
As described above, this disclosure herein allows a third party to create an experience to run inside a virtual reality software camera in Facebook, then directly drive users to that in-camera experience from either a mobile app or a web link. This disclosure also allows the third party to send information at the time the share is initiated so that external data can be merged into the camera experience. Because third party Facebook applications (which can be mobile apps, or web services) are linked to third party effects, this disclosure allows a system to automatically provide identity information (e.g. email address, public profile information about the current viewer) to the code running to produce the third party effect, even when the current user of the third party effect found the third party effect inside Facebook (e.g. they were not initiated via an external share).
Examples of the computer interfaces 1050 typically include an Ethernet card, a modem (telephone, satellite, cable, ISDN), (asynchronous) digital subscriber line (DSL) unit, FireWire interface, USB interface, and the like. For example, the computer interfaces 1050 may be coupled to a computer network 1055, to a FireWire bus, or the like. In other embodiments, the computer interfaces 1050 may be physically integrated on the motherboard of the computer 1020, may be a software program, such as soft DSL, or the like.
In various examples, the computer 1020 typically includes familiar computer components such as a processor 1060, and memory storage devices, such as a random access memory (RAM) 1070, disk drives 1080, and system bus 1090 interconnecting the above components.
The RAM 1070 and disk drive 1080 are examples of tangible media configured to store data such as embodiments of the present invention, including executable computer code, human readable code, or the like. Other types of tangible media include floppy disks, removable hard disks, optical storage media such as CD-ROMS, DVDs and bar codes, semiconductor memories such as flash memories, read-only-memories (ROMS), battery-backed volatile memories, networked storage devices, and the like.
In various examples, the computer system 1000 may also include software that enables communications over a network such as the HTTP, TCP/IP, RTP/RTSP protocols, and the like. In alternative embodiments of the present invention, other communications software and transfer protocols may also be used, for example IPX, UDP or the like.
Although specific embodiments have been described, various modifications, alterations, alternative constructions, and equivalents are possible. Embodiments are not restricted to operation within certain specific data processing environments, but are free to operate within a plurality of data processing environments. Additionally, although certain embodiments have been described using a particular series of transactions and steps, it should be apparent to those skilled in the art that this is not intended to be limiting. Although some flowcharts describe operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be rearranged. A process may have additional steps not included in the figure. Various features and aspects of the above-described embodiments may be used individually or jointly.
Further, while certain embodiments have been described using a particular combination of hardware and software, it should be recognized that other combinations of hardware and software are also possible. Certain embodiments may be implemented only in hardware, or only in software, or using combinations thereof. In one example, software may be implemented with a computer program product containing computer program code or instructions executable by one or more processors for performing any or all of the steps, operations, or processes described in this disclosure, where the computer program may be stored on a non-transitory computer readable medium. The various processes described herein can be implemented on the same processor or different processors in any combination.
Where devices, systems, components or modules are described as being configured to perform certain operations or functions, such configuration can be accomplished, for example, by designing electronic circuits to perform the operation, by programming programmable electronic circuits (such as microprocessors) to perform the operation such as by executing computer instructions or code, or processors or cores programmed to execute code or instructions stored on a non-transitory memory medium, or any combination thereof. Processes can communicate using a variety of techniques including but not limited to conventional techniques for inter-process communications, and different pairs of processes may use different techniques, or the same pair of processes may use different techniques at different times.
Specific details are given in this disclosure to provide a thorough understanding of the embodiments. However, embodiments may be practiced without these specific details. For example, well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary detail in order to avoid obscuring the embodiments. This description provides example embodiments only, and is not intended to limit the scope, applicability, or configuration of other embodiments. Rather, the preceding description of the embodiments will provide those skilled in the art with an enabling description for implementing various embodiments. Various changes may be made in the function and arrangement of elements.
The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense. It will, however, be evident that additions, subtractions, deletions, and other modifications and changes may be made thereunto without departing from the broader spirit and scope as set forth in the claims. Thus, although specific embodiments have been described, these are not intended to be limiting. Various modifications and equivalents are within the scope of the following claims.