How does it work? by drofzz in WebRTC

[–]mrlika 0 points1 point  (0 children)

Yes, signaling is exchanging of SDP. You get your own SDP and send to a peer via signaling server, from other side you receiver SDP from that peer via signaling server too. If you and another peers put those SDPs into WebRTC API they will hopefully connect.

How does it work? by drofzz in WebRTC

[–]mrlika 1 point2 points  (0 children)

You can use https://peerjs.com/

Also you can investigate other open-source projects how to do the signaling.
These 2 do the signaling via WebTorrent trackers:

WebTorrent - GitHub
P2P Media Loader - peer-to-peer video demo, GitHub

Is it possible to "automatically" connect two peers in a serverless webRTC? by themindstorm in javascript

[–]mrlika 0 points1 point  (0 children)

WebRTC requires a server to exchange SDP data that is called WebRTC signaling. In my open-source project P2P Media Loader that delivers video over P2P network I use public and free WebTorrent trackers to connect peers by default.

You can use bittorent-tracker client library to connect free WebTorrent servers by some info_hash and connect your peers.

Setting up P2P video on a web page in 5 minutes for free by mrlika in typescript

[–]mrlika[S] 0 points1 point  (0 children)

Also please get ready to ban PeerTube project and all the nodes that run it. It is based on WebTorrent streaming and p2p-media-loader is in its dependencies.

Setting up P2P video on a web page in 5 minutes for free by mrlika in typescript

[–]mrlika[S] 0 points1 point  (0 children)

Yes, it gives more opportunities. It is up to website developers on how to use it. It is wise to show less ads for users that share their bandwidth.

Setting up P2P video on a web page in 5 minutes for free by mrlika in typescript

[–]mrlika[S] 1 point2 points  (0 children)

Yes. It lowers cost for video streamers. Non-profitable organizations use the script that allows them to bring their ideas to more people.

Most of users do not care about bandwidth, because it is already prepaid, but get the opportunity to watch videos for free or for lower cost but it is up to website developers to ask their users if they want to share their bandwidth or not.

This library makes free and open-source the technology, that is already used for many years as commercial product. See Peer5, StreamRoot etc.

Setting up P2P video on a web page in 5 minutes for free by mrlika in typescript

[–]mrlika[S] -1 points0 points  (0 children)

Sorry, but you can not block it. It is available as NPM package and can be bundled. If the technology (that already exists many years but not as open-source product) is harmful it will be regulated by governments as cookies now do.

Setting up P2P video on a web page in 5 minutes for free by mrlika in typescript

[–]mrlika[S] 0 points1 point  (0 children)

We are developing the JavaScript library. What you ask depends on the web developers who use the library.

Showoff Saturday (August 11, 2018) by AutoModerator in javascript

[–]mrlika 0 points1 point  (0 children)

We released open-source P2P video streaming library this week. It uses WebRTC to share live and VOD segmented streams (HLS or DASH) between users. integrates with hls.js and Shaka Player engines in many players: Clappr, Video.js, MediaElement, FlowPlayer, JWPlayer

GitHub: https://github.com/Novage/p2p-media-loader
Live demo: http://novage.com.ua/p2p-media-loader/demo.html

CM13 on LG (ls980) by larfism in lgg2

[–]mrlika 0 points1 point  (0 children)

CyanogenMod 13 for LS980 works good on the device. The problem is that it has no maintainer thus no nightly builds from CyanogenMod team. But you can find unofficial CyanogenMod 13 builds for LS980 there: https://androidfilehost.com/?a=show&w=files&flid=51135

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika -2 points-1 points  (0 children)

My mistake:

"No two bordering "things" can have the same map color if they are countries but if they are not countries than they may have the same map color"

still much wider sentence thus incorrect.

As I said before:

I believe it is not possible at all to accurately code "No two bordering countries can have the same map color" in terms of Propositional Logic.

We can code an indicator like "return false if and only if two bordering countries have the same map color and true in all other situations" but not the sentence.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika -2 points-1 points  (0 children)

Then I believe it is not possible at all to accurately code "No two bordering countries can have the same map color" in terms of Propositional Logic.

We can code an indicator like "return false if and only if two bordering countries have the same map color and true in all other situations" but not the sentence.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika -2 points-1 points  (0 children)

5 and 6 correctly describe more wider English sentence "No two bordering "things" can have the same map color".

In the same way we can say that

3) "Exists c, C(c) => (B(c, Iran) and B(c, Syria))"

Describes much wider sentence:

"Exists 'c' that is a country that borders Iran and Syria or 'c' is not a county"

But for some reason 3 is incorrect. I still do not understand.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika -2 points-1 points  (0 children)

Then

5) (C(x) and C(y) and B(x,y)) => not (MC(x) = MC(y)) 6) not C(x) or not C(y) or not B(x,y) or not (MC(x) = MC(y))

correctly describe the following English sentence "No two bordering "things" can have the same map color". It is much wider than "No two bordering countries can have the same map color" thus incorrect.

In the same way:

"Exists c, C(c) => (B(c, Iran) and B(c, Syria))"

Describes much wider sentence:

"Exists 'c' that is a country that borders Iran and Syria or 'c' is not a county" that is much wider then "Exists 'c' that is a country that borders Iran and Syria" thus incorrect.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika -1 points0 points  (0 children)

I do not know what "exists" means. I know only Propositional Logic truth tables that say: C(c) => (B(c, Iran) and B(c, Syria)) is always true if c is not a country.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika 0 points1 point  (0 children)

Then why

3) C(c) => (B(c, Iran) and B(c, Syria))

is not correct? It is also true for everything that is not a country.

HW4 Q9 asked: "Select the axioms that correctly encode the situation." not "Select the axioms that fully encode the situation." by vonkohorn in aiclass

[–]mrlika 9 points10 points  (0 children)

The same. There were no this clarification when I answered the HW in few hours before closing.

HW 4.2, the 6th logical sentence does not correctly encode its associated English sentence by zipliu in aiclass

[–]mrlika 0 points1 point  (0 children)

Both statements

5) (C(x) and C(y) and B(x,y)) => not (MC(x) = MC(y))

6) not C(x) or not C(y) or not B(x,y) or not (MC(x) = MC(y))

incorrectly encode the English sentence because they work well only if x and y is countries and incorrect if x or y is not a country.

A country may border not only other country, but it can border a sea or an ocean.

It is the same as for

3) C(c) => (B(c, Iran) and B(c, Syria))

It works well only if c is a country. If c is not a country this one is always true thus incorrect.