[Server] GStreamer ---> HTML [Client]
- gstreamer-1.x
- Browser which supports video tag of HTML5
| //"use strict"; | |
| var Accessory, Service, Characteristic, UUIDGen; | |
| var JSONRequest = require("jsonrequest"); | |
| var inherits = require('util').inherits; | |
| var path = require('path'); | |
| var fs = require('fs'); | |
| var moment = require('moment'); | |
| let localCache; | |
| let localPath; | |
| let _homebridge; |
| // (see the blog post at https://andrewdupont.net/2018/04/27/laundry-spy-part-3-the-software/) | |
| // GENERAL CONFIG | |
| // ============== | |
| // The baud rate of serial output for logging. If necessary, change the baud | |
| // rate in your Serial Monitor to match this. | |
| #define BAUD_RATE 115200 | |
| // The name by which this device will identify itself over mDNS (Bonjour). |
| # -------------------------------------------------------- | |
| # Camera sample code for Tegra X2/X1 | |
| # | |
| # This program could capture and display video from | |
| # IP CAM, USB webcam, or the Tegra onboard camera. | |
| # Refer to the following blog post for how to set up | |
| # and run the code: | |
| # https://jkjung-avt.github.io/tx2-camera-with-python/ | |
| # | |
| # Written by JK Jung <[email protected]> |
| #!/bin/bash | |
| #This script will compile and install a static ffmpeg build with support for nvenc un ubuntu. | |
| #See the prefix path and compile options if edits are needed to suit your needs. | |
| #install required things from apt | |
| installLibs(){ | |
| echo "Installing prerequisites" | |
| sudo apt-get update | |
| sudo apt-get -y --force-yes install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \ |
| #------------------------------------------------- | |
| # | |
| # Project created by QtCreator 2017-05-31T16:27:44 | |
| # | |
| #------------------------------------------------- | |
| QT += core gui concurrent | |
| greaterThan(QT_MAJOR_VERSION, 4): QT += widgets |
| import SwiftUI | |
| struct TestPage: View { | |
| @State private var rect: CGRect = .zero | |
| @State var uiImage: UIImage? = nil | |
| var body: some View { | |
| VStack { | |
| HStack { | |
| Image(systemName: "sun.haze") |
| import SwiftUI | |
| struct TestPage: View { | |
| @State private var rect: CGRect = .zero | |
| @State private var uiImage: UIImage? = nil | |
| @State private var showShareSheet = false | |
| var body: some View { | |
| VStack { | |
| HStack { |