Can anyone give me an example of sdpTransform option in simplepeer - webrtc

Hi I've been searching for an example of how to use sdpTransform feature in simple peer and haven't found anything yet. Also is there any way to check what codecs were used in mediaStream object. Is there anyway to create custom sdp offer in SimplePeer.

the parameter must contain a function that returns the transformed sdp. Found this github issue as example. github

Related

netlink ipset list response format

I'm working on the golang netlink ipset control library.
Everything is working fine except I have no idea how to parse the answer I'm getting from netlink for the list command.
The data I'm getting obviously is what I'm looking for.
But I'm not able to find a spec for the format!
Can anybody point me to the right doc?
Thank you
Finally I found a lib https://github.com/subgraph/go-nfnetlink, which contains a working parser.

Is it possible to use the Canonical Landscape API to get script output?

The documentation I can find for the Canonical Landscape API lets you do lots of things with scripts, but I can't find anything suggesting that you can get output. However, if you use the Canonical web interface, script output is available, so it's presumably exposed somehow...?
I just had this issue as well and since you're the first hit right now on google, I wanted to share the answer for everyone - if you run ExecuteScript on a landscape client and get back an ID of 123, and let's assume the job finished already - you want to then use that ID to ask the GetActivities API, with an input argument of "query" with value "parent-id:123". If there is a result there, you will find the script output you are looking for under the result_text field of the response. Good luck!!! It worked over here very well.

Can Branch.io deep link URL's be customized

A regular deep link dynamically generated using the iOS/Android SDK's might look like this: https://example.app.link/fzmLEhobLD
Would I be able to dynamically generate a deep link that would look something like: https://example.app.link/jsmith49
this would greatly help for marketing purposes
If yes, how?
Jackie from Branch here.
You can definitely use a link alias to replace the standard encoded short URL (e.g. https://example.app.link/fzmLEhobLD -> https://example.app.link/jsmith49). Note that link aliases must be unique, otherwise a 409 error will occur.
If you are creating Branch links via the SDK and/or HTTP API, you'd need to set the value of 'alias' key. Please refer to our documentation on configuring links here.
Alternatively, you can use the Branch dashboard to create links by entering the link alias on the 'Configure Options' step here.
Let us know if you have more questions. Hope this helps!

Podio update app field API not listening for hidden_create_view_edit

looking at https://developers.podio.com/doc/applications/update-an-app-field-22356
as the documentation states we cannot pass the new hidden_create_view_edit attribute to the API call. (FYI: I attempted to pass it anyway but the documentation is right, it does not take the hidden_create_view_edit into account).
Can you please listen for this parameter? And in what timeframe would this become available? I need this to clone a ton of app fields with right settings.
Thanks for reporting this. It seems that we haven't included support for this specific method while implementing great new attribute hidden_create_view_edit. This is now fixed and planned for public release some time during next week.

Jira V6.0+ creating a project over REST API

I've got a problem: I'm working on an external webinterface for my company and we use Atlassians JIRA as a project issue and tracking method. I am trying to connect our webinterface over the REST API. After a short research I found out, that Atlassian never implemented the possibility to create a new JIRA Project over their REST API. Well, that isn't that true, they've implemented it in the actual version (7.0) because they migrated their other two APIs to one REST API. Now comes my problem: We are currently unable to upgrade from version 6.4.4 to version 7.0.0. After a second search I found a workaround for this problem. You can find it here:
The real problem is that this workaround isn't working or I'm doing it wrong.
I've already tried it with a GET request and the given arguments as parameters and over the normal POST method with a JSON body in it.
What's my problem?
Here some more informations: When I try it over GET, I always receive the normal response for the URL (it returns a list with all available templates). When I try it over POST with a JSON body (this is by the way the normal method for the normal functions of the REST API) I get back a HTTP-Error 415 Unsupported media type.
it would be nice if someone could test this workaround with a 6.0+ version of JIRA
So after some months I got it by myself. You have to make a POST request with the following header fields:
Content-Type=application/x-www-form-urlencoded; charset=UTF-8
Authorization=Basic {set your credentials as a Base64-String: "user:password"}
X-Atlassian-Token=nocheck
Once done you can set your POST-Parameters to the following:
name=Name of the Project
key=Key of the Project
lead=Leader of the Project
keyEdited=true (don't change it!)
projectTemplateWebItemKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
projectTemplateModuleKey=com.atlassian.jira-legacy-project-templates:jira-blank-item (don't change it!)
Hope that this helps someone, Jira is just weird in some cases :/