This website uses cookies to ensure you get the best experience on our website. Learn more

DDX for Devs 3 - Libraries


DDX for Devs 3 - Libraries

Some details about the JS libraries used in DDX

DDX for Devs 2: Using DDX

Ryan walks through DDX's functions and how to use it to create new Record Templates and publish new Records

DDX for OIP Step by Step


Helpful template IDs:
Registered Publishers - tmpl_433C2783
Verified Publishers - tmpl_F471DFF9
Registered Platform - tmpl_F6A8A55E
Video w/ Payments:
Basic - tmpl_66089C48
Basic Video - tmpl_4769368E
Payments - tmps_3084380e

And for a peak behind the scenes, here's what the record published in this video looks like in a few different stages:
•First the media files themselves:
•That gets referenced into a new record along with other metadata and then serialized using protobuf, according to the serialization of the record template
•The serialized and protobuf encoded data goes into the blockchain:
•The OIP Daemon decodes the protobuf and uses what it knows about the record templates to deserialize the fields into nice pretty JSON:
•And DDX detects that it has a player for the Basic Video template files in the record, so it displays it like such:

After this, start this series:

DDX for Devs 4 - React JSS and Protobuf

Ryan digs into how JSS is used to control styling from within a JS library, and explains how we serialize, encode and decode Protobuf data

Disha Sule: React with gRPC / React Boston 2019

Disha Sule: React with gRPC

Presented by: Disha Sule – Optimus Ride

The subject explored in this talk is using gRPC-Web with React. gRPC was released by Google a few years back and since then there has been a lot of effort towards getting the industry to consider this as the glue for micro-services communication. It is built on HTTP/2, which provides us with a high-speed communication protocol. The data transferred is in a binary format and, hence, is lighter than JSON/XML payloads. This can make a big difference when latency is an issue. gRPC-Web provides a Javascript library that lets browser clients access a gRPC service. gRPC-Web clients connect to gRPC services via a special gateway proxy: the current version of the library uses Envoy by default, in which gRPC-Web support is built-in. React does not offer official support for gRPC-web yet but it is possible to integrate the two. The presentation talks about gRPC and its integration with React for utilizing the benefits that gRPC offers and circumventing the flaws of HTTP and REST.



Check Also