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:
- Domain filtering
- Referrer filtering
- Embed buster
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.4.22 <0.9.0; | |
| library TestsAccounts { | |
| function getAccount(uint index) pure public returns (address) { | |
| address[15] memory accounts; | |
| accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; | |
| accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; |
| Query( | |
| options: QueryOptions( | |
| documentNode: CompaniesDataQuery().document, | |
| ), | |
| builder: ( | |
| QueryResult result, { | |
| Future<QueryResult> Function() refetch, | |
| FetchMore fetchMore, | |
| }) { | |
| if (result.hasException) { |
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 time | |
| import json | |
| import gevent | |
| from uuid import uuid4 | |
| from locust import HttpLocust, TaskSet, task, ResponseError, events, Locust | |
| import websocket | |
| class SocketClient(object): |