Working with effect profiles from Java SDK
Java SDK offers you a way to handle effect profiles from the backend of your system.
Create and manage your effect profiles and their processes through simple API calls. All that from the comfort of your Java scripts.
It is simple, fast and bellow you can see exactly how to do it.
Java SDK Effect Profiles Methods
- create Create a new effect profile.
ziggeo.effectProfiles().create(JSONObject arguments)
- key Effect profile key.
- title Effect profile title.
- default_effect Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect
This method returns JSON - index Get list of effect profiles.
ziggeo.effectProfiles().index(JSONObject arguments)
- limit Limit the number of returned effect profiles. Can be set up to 100.
- skip Skip the first [n] entries.
- reverse Reverse the order in which effect profiles are returned.
This method returns JSON - get Get a single effect profile
ziggeo.effectProfiles().get(String token_or_key)
This method returns JSON - delete Delete the effect profile
ziggeo.effectProfiles().delete(String token_or_key)
- update Updates an effect profile.
ziggeo.effectProfiles().update(String token_or_key, JSONObject arguments)
- default_effect Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect
This method returns JSON
Java SDK Effect Profile Processes Methods
- index Return all processes associated with a effect profile
ziggeo.effectProfileProcess().index(String effect_token_or_key, JSONObject arguments)
- states Filter streams by state
This method returns JSON - get Get a single process
ziggeo.effectProfileProcess().get(String effect_token_or_key, String token_or_key)
This method returns JSON - delete Delete the process
ziggeo.effectProfileProcess().delete(String effect_token_or_key, String token_or_key)
- create_filter_process Create a new filter effect process
ziggeo.effectProfileProcess().create_filter_process(String effect_token_or_key, JSONObject arguments)
- effect Effect to be applied in the process
This method returns JSON - create_watermark_process Attaches an image to a new stream
ziggeo.effectProfileProcess().create_watermark_process(String effect_token_or_key, JSONObject arguments, String file)
- file Image file to be attached
- vertical_position Specify the vertical position of your watermark (a value between 0.0 and 1.0)
- horizontal_position Specify the horizontal position of your watermark (a value between 0.0 and 1.0)
- video_scale Specify the image scale of your watermark (a value between 0.0 and 1.0)
This method returns JSON - edit_watermark_process Edits an existing watermark process.
ziggeo.effectProfileProcess().edit_watermark_process(String effect_token_or_key, String token_or_key, JSONObject arguments, String file)
- file Image file to be attached
- vertical_position Specify the vertical position of your watermark (a value between 0.0 and 1.0)
- horizontal_position Specify the horizontal position of your watermark (a value between 0.0 and 1.0)
- video_scale Specify the image scale of your watermark (a value between 0.0 and 1.0)
This method returns JSON