Let's make sure our Express app has the required base modules:
# within root of API
npm install --save express pg knex bcrypt
npm install --save-dev nodemon
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
import argparse | |
""" | |
Works only for raw 8 bit signed mono data. | |
This script was writen as an easy way to convert original Amiga ST-XX raw | |
samples to a more documented format that keeps the original data untouched. | |
See also: |
All of the following values for the <script type=" ••• ">
will cause inline or external JavaScript to execute:
Value | Note |
---|---|
"" |
The default value of script.type (eg: no type attribute present) |
"text/javascript" |
The official JavaScript MIME type |
"application/javascript" |
Legacy MIME type from when semantics mattered |
"text/x-javascript" |
Legacy MIME type from before JavaScript was accepted as a valid MIME type |
Add this to before you load any 3p (especially GTM) in the document.
What it does is when it executes:
document
level addEventListener
override that intercepts added listeners if it's likely they from from a 3p (-> based on the 3rd argument passed to the fn)On the document load
event (so that it executes after GTM etc.):
document.body
level overridedataLayer.push
and gtag()
to yield first