This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A telephony to JSSIP gateway. | |
A Node.js based server serving a single HTTPS web page that provides bidirectional web calling (audio only). A single HTTP parameter to the page (id) identifies the user. | |
There is no authentication or storage for user accounts. User may open a page with any non-negative, numerical id, a user opening a page with negative, duplicating (two identical at same time), or non-numerical id MAY result in unspecified behavior. | |
Javascript in page MUST be compatible with the reasonably recent Google Chrome browser. Need not be compatible with any other browser. | |
HTTPS certificate for the page MAY be stored locally as part of delivery, provision or maintenance of certificate is not a part of scope. Just one received manually from letseencrypt is acceptable. | |
When a page with a given ID is opened somewhere by the user, say | |
```https://example.com?id=1001``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[14:01:33.090]] [LOG] trace { direction: 'out', | |
info: { ssrc: 1293561603 }, | |
timestamp: 22059947189, | |
type: 'pli' } | |
[[14:01:33.198]] [LOG] trace { direction: 'in', | |
info: | |
{ isKeyFrame: true, | |
marker: 'false', | |
payloadSize: 1146, | |
payloadType: 96, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[13:12:16.651]] [LOG] trace { direction: 'out', | |
info: { ssrc: 1366638920 }, | |
timestamp: 22056990756, | |
type: 'pli' } | |
[[13:12:16.743]] [LOG] trace { direction: 'in', | |
info: | |
{ isKeyFrame: true, | |
marker: 'false', | |
payloadSize: 1133, | |
payloadType: 96, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"options": { | |
"basicWidth": 1280, | |
"basicHeight": 720, | |
"frameRate": 30, | |
"path": "/tmp/codeda/test.mp4" | |
}, | |
"items": [ | |
{ | |
"layer": 1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import csv | |
data = [] | |
with open('./SolarWindTotal.csv', 'rb') as inp: | |
rdr = csv.reader(inp, delimiter=';') | |
for row in rdr: | |
data.append(row); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testSub() throws PubNubException, InterruptedException { | |
PNConfiguration pnConfiguration = new PNConfiguration(); | |
pnConfiguration.setSubscribeKey("demo"); | |
pnConfiguration.setPublishKey("demo"); | |
PubNub pubnub = new PubNub(pnConfiguration); | |
pubnub.addListener(new SubscribeCallback() { | |
@Override | |
public void status(PubNub pubnub, PNStatus status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import logging | |
import time | |
from pubnub.callbacks import SubscribeCallback | |
from pubnub.pnconfiguration import PNConfiguration | |
from pubnub.pubnub import PubNub | |
d = os.path.dirname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var pubnub = PUBNUB.init({ | |
publish_key: '<?php echo getenv("PUBNUB_PUBLISH_KEY"); ?>', | |
subscribe_key: '<?php echo getenv("PUBNUB_SUBSCRIBE_KEY"); ?>' | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SetEnv PUBNUB_PUBLISH_KEY my_publish_key | |
SetEnv PUBNUB_SUBLISH_KEY my_subscribe_key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"publish_key": "your_publish_key", "subscribe_key": "your_subscribe_key"} |
NewerOlder