Integrations Guide
Streamix connects to outside services for storage, payments, email, messaging, analytics and more. All of them are configured in the admin under Configuration → Add-ons (/admin/settings/integrations). Credentials are encrypted in the database (integration_connections, AES-256-GCM keyed by SECRET_KEY) and never sent to the browser. There are no provider environment variables to set.
What Streamix needs
| Need | Channel | Required? |
|---|---|---|
| Artwork, video, subtitles and HLS files | Storage | Yes, before any upload |
| Taking payment for plans | Payments | Yes, to sell memberships |
| Verification codes, sign-in codes, billing and lifecycle emails | Strongly recommended | |
| Browser notifications | Web push (built in; push feature add-on) |
Optional |
| Social sign-in, captcha, analytics, live chat, SMS, WhatsApp | Various | Optional |
Channel catalogue
| Channel | Free providers | Premium providers |
|---|---|---|
| Storage | Cloudflare R2 | Amazon S3, Google Cloud Storage, DigitalOcean Spaces |
| Payments | Cash, Bank transfer, PayPal | Stripe, Razorpay, Square, Mollie, Paystack, Flutterwave, PayU, Authorize.Net, Checkout.com, Mercado Pago, Coinbase Commerce, Airwallex, dLocal, eWAY, PayTabs, Tap, Telr, Viva Wallet, Xendit, Yoco |
| SMTP | SendGrid, Postmark, Amazon SES | |
| Analytics | Google Analytics 4 | Google Tag Manager, Meta Pixel, Microsoft Clarity, PostHog, TikTok |
| SMS | — | Twilio, MSG91 |
| — | WhatsApp Cloud API, Twilio WhatsApp | |
| Social login | — | Google, Facebook |
| CAPTCHA | — | reCAPTCHA v2, reCAPTCHA v3 |
| Live chat | — | Crisp, Tawk, Intercom, Freshchat, Tidio, Zendesk |
| AI chatbot | — | OpenAI, Anthropic, OpenRouter (also used for machine translation) |
| Realtime chat | — | Pusher, Ably |
| Calendar | — | Google Calendar, Calendly |
| Video embeds | YouTube, Vimeo | Mux, Cloudflare Stream, Bunny |
Video embed providers are not the streaming pipeline. The Streamix player plays HLS or MP4 URLs from your storage bucket (or any HTTPS URL you enter). The video channel add-ons come from the shared core and are not used by the player. Mux and Cloudflare Stream as playback providers are on the Roadmap.
Free providers work without a key. Premium providers need a license entitlement or a per-add-on purchase code (see License Guide). On local development hosts everything is unlocked for testing.
Storage
- Configuration → Add-ons → Storage → choose the provider.
- Enter access key, secret key, bucket and public URL (plus account/endpoint or region as asked).
- Mark the connection Active and Default. The active default connection is the only storage the app uses.
- Set CORS so browsers can upload directly and players can fetch media:
npx tsx scripts/setup-r2-cors.ts https://watch.example.com
npx tsx scripts/check-storage.ts # optional sanity check
Tips:
- Serve the bucket through a custom domain or CDN for better caching.
SignatureDoesNotMatchon upload means the stored secret key is wrong or was rotated; re-enter it.- Files are organised under
ott/(ott/artwork,ott/stills,ott/video,ott/subtitles,ott/hls/<asset>/<version>/). - Media is served from the bucket's public URL. There is no URL signing yet.
Payments
- Configuration → Add-ons → Payments → connect a gateway (for example PayPal client id and secret, or Stripe keys).
- Activate it. A gateway shows at checkout only when it is active and has a driver.
- Test a purchase and a renewal end to end in sandbox mode.
How Streamix uses the gateway:
- Each purchase or renewal is a one-off payment of an amount the server computes. The membership is activated or extended only after the gateway confirms the payment (
/api/v1/checkout/verify). - No card is stored and no automatic recurring charge is made. Members renew each period from
/account/membership/renew; reminders, on-hold and expiry are handled by the cron. - Bank transfer and cash are offline: the subscription stays pending until an admin activates it.
Connect SMTP or a provider under Email. Email templates are under Notifications → Templates → Email. The streaming templates are created automatically (welcome, verify email, password reset, sign-in code, password changed, subscription activated, payment receipt, renewal reminder, on hold, expired, cancelled, plan changed, new-arrivals digest, new season, title available). Members choose optional emails under Account → Security → Communication settings.
Web push
Browser push uses VAPID keys that are generated on first use and stored in the settings table (private key encrypted). Members are asked to allow notifications from the bell; lifecycle messages (new arrivals, new seasons, reminders) go out by email and push according to their communication settings.
Social login and CAPTCHA
Connect Google or Facebook under Social login; the sign-in dialog shows the buttons when a provider is active. The callback URL is /api/v1/portal/auth/social/<provider>/callback on your domain. A CAPTCHA provider, when active, protects sign-in, sign-up and public forms.
Analytics
Connect GA4 (free) or a premium tag. Tags load only after the visitor accepts analytics cookies in the consent banner.
Machine translation
Blog and content translation uses the AI chatbot connection (OpenAI, Anthropic or OpenRouter) or, if none is connected, OPENAI_API_KEY / ANTHROPIC_API_KEY from the environment. The hourly cron translates posts that changed.
Webhooks and API tokens
Configuration → Integrations → Webhooks sends signed HTTP callbacks to your systems; API Tokens issue tokens for server-to-server access. The admin-only API reference is at /api/docs/v1.
© CreativeCape Solutions · creative-cape.com · support@creative-cape.com