1. Getting Started
The WINK Media Router facilitates service and distribution of live video streams. The WINK Media Router enables advanced delivery, security and authentication controls of your live streaming video. The WINK Media Router also offers aggregate video publish and highly available functionality.
Key Capabilities
- Multi-protocol video distribution (RTMP, RTSP, SRT, WebRTC, HLS, MPEG-DASH)
- Camera protocol emulation (Axis, Panasonic, Sony, Hikvision, Dahua, Bosch)
- Advanced security with ACLs and OTP authentication
- High availability with VRRP failover
- Network bonding for increased throughput
- RESTful API for automation and integration
- Real-time monitoring and statistics
- Support for 3rd party modules and plugins
This document covers the basic concepts of the configuration. For advanced controls, functionality and advanced routing options, especially if you wish to use multiple WINK Media Routers and/or multiple WINK Forges, it is recommended you pair your network design with WINK Crossroads.
2. Web Interface Access
The web interface can be accessed via HTTP on TCP Port 88 or HTTPS on TCP Port 444.
- Generate a self-signed certificate (See SSL Section) and add it to your browser authorized list to avoid certificate warnings
- Corporate environments offering secondary bundling are fully supported by the WINK Media Router certificate manager
- The only requirement is that certificates are included in a single PFX bundle
2.1 Default Login
Default login credentials for the web administration interface are:
Default Credentials
- Username: admin
- Password: admin
3. System Internals
3.1 Paths and Access URLs
Local publishing for Web output mode (RTMP, HLS, MPD & JPG) is commonly used as the standard output in addition to a parallel output for debugging purposes.
The standard input path is:
Example URLs
Protocol | URL Format | Example |
---|---|---|
RTMP Input | rtmp://[server]/[app]/[stream] | rtmp://192.168.1.100/live/WMR1-ABCD-1234_camera1 |
HLS Output | http://[server]/[app]/HLS/[stream] | http://192.168.1.100/live/HLS/WMR1-ABCD-1234_camera1 |
DASH Output | http://[server]/[app]/DASH/[stream] | http://192.168.1.100/live/DASH/WMR1-ABCD-1234_camera1 |
3.2 HLS and MPEG-DASH Configuration
WINK Media Routers produce HLS and MPEG-DASH sequences with the following default parameters:
Default Streaming Parameters
- Segment Size: 5 seconds
- Playlist Length: 30 seconds
- Format: TS segments for HLS, fMP4 for DASH
Static JPEGs (Video Previews)
Static JPEGs or previews are produced at a rate of once every 10 seconds. The system will retain and display the last generated JPEG as long as the stream remains in the start status regardless of input availability. The JPEG creation frequency or interval can only be modified using WINK Crossroads.
The file's timestamp provided over the HTTP or HTTPS protocol can be referenced to verify the date or time of the file's production.
3.3 Access Control Lists
Access is defined per application instance. The correct syntax is IP-based CIDR notation with comma-separated values.
ACL Examples
Example | Description | Includes |
---|---|---|
192.168.1.0/24 |
Single subnet | 192.168.1.1 – 192.168.1.254 |
192.168.1.0/24, 10.20.20.0/27 |
Multiple subnets | 192.168.1.1 – 192.168.1.254 and 10.20.20.0 – 10.20.20.31 |
any or 0.0.0.0/0 |
All addresses | All IP addresses |
Publish ACL (IP Address Publish)
This parameter defines the allowed address of hosts, WINK Forges, WINK Media Routers or WINK Gateways permitted to publish to the WINK Media Router.
Playback ACL (IP Address Playback)
This parameter defines the allowed address of hosts permitted to view streams for the RTMP protocol. This value does not affect or control HTTP-based protocols.
3.4 One-Time Password (OTP) Authentication
One-Time Password is the ideal way to secure live and video on demand streams from unwanted or unauthorized viewers. OTP with predefined auto-renewing expiries is one of the easiest ways for simple control and integration into existing video players.
OTP Benefits
- Time-limited access tokens
- No password storage in player applications
- Automatic expiration prevents unauthorized sharing
- Easy integration with existing authentication systems
- Per-stream or per-user access control
See supplemental API documentation for OTP implementation details.
3.5 Globally Unique Identifier (GUID)
Each WINK Media Router is issued a Globally Unique Identifier, and no two systems will contain the same GUID. This value, as the name implies, is unique. Uniqueness is important to avoid collisions of publishing and to help identify the owner of a stream to a specific WINK Forge.
Example GUID
These values are respected as a unit by the WINK Media Router and must be referenced when accessing, manipulating or viewing streams.
GUID Collision Avoidance
If your deployment requires duplicate GUIDs across devices for high availability purposes, it is recommended to isolate the publishers via Media Router or unique Application or publish points.
4. Network Ports and Communication
The following tables define the inbound and outbound ports required for operation of the associated protocols.
Required Ports
Protocol | Direction | Protocol | Port |
---|---|---|---|
RTMP | Inbound + Outbound | TCP | 1935 |
HTTP Media | Inbound + Outbound | TCP | 80 |
HTTP Admin | Inbound | TCP | 88 |
HTTPS Media | Inbound + Outbound | TCP | 443 |
HTTPS Admin | Inbound | TCP | 444 |
RTSP | Inbound + Outbound | TCP | 554 |
RTSP UDP | Inbound + Outbound | UDP | 554 |
RTSP UDP Range | Inbound + Outbound | UDP | 1024-32000 |
NTP | Outbound | UDP | 123 |
SMTP | Outbound | TCP | 25 (configurable) |
Optional Ports
Protocol | Direction | Protocol | Port |
---|---|---|---|
NTP Server | Inbound | UDP | 123 |
SNMP | Inbound | TCP | 161 |
SSH | Inbound | TCP | 22 |
ZeroConf | Inbound + Outbound | UDP | 5353 |
HTTP Media Alt | Inbound | TCP | 8080 |
API | Inbound + Outbound | TCP | 444 |
5. Media Formats and Protocols
The WINK Media Router supports a wide range of popular and standard transport protocols. In addition, a broad range of custom or proprietary transport protocols are supported. There are furthermore a number of proprietary protocols provided by WINK Streaming and partner companies or vendors.
5.1 RTMP
RTMP Protocol Suite
- Suite: RTMP, RTMPE
- Direction: IN, OUT
- Port: TCP 1935
5.2 RTSP
RTSP Configuration
- Suite: RTSP/RTP/RTCP
- Direction: IN, OUT
- Authentication: BASIC | DIGEST
- Transport: TCP (Interleaved) | UDP | UDP Multicast
- Codecs: H.264, H.265/HEVC, MJPEG, MPEG-4, VP8, VP9
- Audio: AAC, G.711, G.722, Opus
Enhanced RTSP Features:
- ONVIF Compliance: Full support for ONVIF Profile S/G/T
- PTZ Control: Pass-through PTZ commands
- Metadata: ONVIF analytics and event metadata
- Keep-Alive: Automatic connection maintenance
- Reconnection: Configurable retry with backoff
5.3 HTTP/HTTPS
HTTP Protocol Support
- Suite: HTTP, HTTPS
- Direction: IN, OUT
- SSL/TLS: Certificates will be ignored (no verification on inputs)
Usage format:
5.4 HLS
HTTP Live Streaming
- Direction: OUT
- Protocol Type: HTTP Live Streaming
- Segment Format: TS
- Playlist Format: M3U8
Usage format:
5.5 MPEG-DASH
Dynamic Adaptive Streaming
- Direction: OUT
- Protocol Type: Dynamic Adaptive Streaming over HTTP
- Segment Format: fMP4
- Manifest Format: MPD
Usage format:
5.6 SRT (Secure Reliable Transport)
SRT Protocol Support
- Direction: IN, OUT
- Mode: Caller, Listener, Rendezvous
- Encryption: AES-128/256 with passphrase
- Port: UDP (configurable, default 9000)
- Latency: Configurable 20ms - 8000ms
SRT Features:
- Low Latency: Sub-second glass-to-glass delivery
- Error Recovery: ARQ with configurable latency buffer
- Firewall Traversal: UDP-based with NAT support
- Bandwidth Efficiency: Adaptive bitrate and congestion control
- Stream ID: Metadata support for routing
5.7 WebRTC
WebRTC Support
- Direction: IN, OUT
- Publishing: WHIP (WebRTC-HTTP Ingestion Protocol)
- Playback: WHEP (WebRTC-HTTP Egress Protocol)
- Signaling: WebSocket/HTTP
- Video Codecs: AV1, VP9, VP8, H.264 (baseline profile for WHIP)
- Audio Codecs: Opus, G.711, G.722
- Transport: SRTP over ICE/DTLS
- STUN/TURN: Configurable servers
WebRTC Features:
- Ultra-Low Latency: < 500ms typical
- Browser Native: No plugins required
- Adaptive Bitrate: Automatic quality adjustment
- P2P Option: Direct peer connections when possible
- Mobile Support: iOS/Android SDK compatible
- Standards Compliant: WHIP/WHEP for interoperability
5.8 Camera Protocol Emulation
The WINK Media Router can emulate various camera manufacturers' protocols, enabling seamless integration with VMS platforms that don't support standard protocols. This powerful feature allows the router to appear as a native camera to the VMS.
Supported Camera Emulations
- Axis: VAPIX API emulation (most comprehensive support)
- Panasonic: i-PRO protocol support
- Sony: VISCA over IP and CGI commands
- Hikvision: ISAPI protocol emulation
- Dahua: HTTP API emulation
- Bosch: BVIP protocol support
Use Cases for Camera Emulation
- Legacy VMS Integration: Connect modern streams to older VMS systems
- Cross-VMS Bridging: Share cameras between incompatible VMS platforms
- Protocol Translation: Convert unsupported formats to VMS-native protocols
- Cloud to On-Premise: Present cloud streams as local cameras
Example: Axis Camera Emulation
When configured for Axis emulation, the Media Router responds to:
- VAPIX discovery requests
- Parameter queries (resolution, framerate, etc.)
- PTZ commands (if source supports PTZ)
- Event and analytics metadata
- Motion detection alerts
5.9 UDP/MPEG-TS
UDP/MPEG-TS Support
- Direction: IN, OUT
- Transport: UDP Unicast, UDP Multicast
- Container: MPEG Transport Stream
- Ports: Configurable (default 5000-5999)
- Multicast Range: 224.0.0.0 - 239.255.255.255
Use Cases:
- IPTV Distribution: Multicast streams for set-top boxes
- Broadcast Integration: Professional broadcast workflows
- Low-Latency Distribution: LAN-based video delivery
- Legacy System Support: Compatible with older equipment
5.10 Comprehensive Codec Support
Video Codecs
Codec | Input | Output | Notes |
---|---|---|---|
H.264/AVC | ✓ | ✓ | All profiles supported, baseline required for WHIP |
H.265/HEVC | ✓ | ✓ | Main and Main10 profiles |
AV1 | ✓ | ✓ | Next-gen codec, excellent compression |
VP9 | ✓ | ✓ | WebRTC and YouTube compatible |
VP8 | ✓ | ✓ | Legacy WebRTC support |
MPEG-4 | ✓ | ✓ | Legacy camera support |
MJPEG | ✓ | ✓ | Low-latency, high bandwidth |
MPEG-1/2 | ✓ | ✓ | Broadcast compatibility |
Audio Codecs
Codec | Input | Output | Typical Use |
---|---|---|---|
AAC | ✓ | ✓ | High quality, widely supported |
Opus | ✓ | ✓ | WebRTC, excellent quality |
MP3 | ✓ | ✓ | Legacy compatibility |
AC-3 | ✓ | ✓ | Broadcast/theatrical |
G.711 (PCMU/PCMA) | ✓ | ✓ | VoIP, telephony |
G.722 | ✓ | ✓ | Wideband telephony |
6. Settings
6.1 User Accounts
Accounts are managed when logged in as admin in the Settings → User Accounts section.
Default Credentials
WINK Media Routers are instantiated with the following default account login credentials:
Username | Password | Role |
---|---|---|
admin | admin | Administrator |
apiuser | apipass | API User |
Permission Levels
Three permission levels exist in the WINK Media Router via the local management interface:
ADMIN
Superuser with ability to view, edit, create, and delete all settings.
OPERATOR
Ability to view, stop and start streams. This user permission level can also reboot the system.
APIUSER
Ability to perform API commands using the API interface. See API Section for additional information.
otpuser
.
6.2 Network Configuration
WINK Media Routers can be configured with static or dynamic IP addresses, though it is highly recommended that users always use a static IP address. Optional network failover bonding is available by selecting two interfaces and setting the correct network parameters.
Default Network IP Address
Default Network Configuration
- IP Address: 192.168.50.100
- Subnet Mask: 255.255.255.0 (/24)
- Interface: Primary network interface
Each WINK Media Router comes preconfigured with this default IP address. This system will always be available as a backup mechanism to contact the system via the primary network interface.
Bonding Modes
The default bonding mode is failover, where the first interface is active and the secondary interface is used in the event the primary interface fails. Alternative bonding modes are available to suit your network environment and performance needs.
Mode | Name | Description | Use Case |
---|---|---|---|
0 | Balance Round Robin | Transmits packets in sequential order across interfaces | Load balancing and fault tolerance |
1 | Active-Backup | One interface active, others in standby | Simple fault tolerance (default) |
2 | Balance XOR | Transmits based on XOR formula | Load balancing with same slave for each destination |
3 | Broadcast | Transmits on all slave interfaces | Specific use cases only |
4 | 802.3ad (LACP) | Dynamic Link Aggregation | Requires switch support, best performance |
5 | Transmit Load Balancing | Adaptive transmit load balancing | When inbound > 1Gbps, outbound < 1Gbps |
6 | Adaptive Load Balancing | Transmit and receive load balancing | No switch support required, good performance |
MTU Configuration
A maximum transmission unit (MTU) is the largest packet or frame size, specified in octets (eight-bit bytes) that can be sent in a packet- or frame-based network such as the internet.
- Standard Ethernet MTU: 1500 bytes
- Jumbo Frames: 9000 bytes (requires full path support)
- VPN/MPLS networks may require smaller MTU (1400-1450)
- Wireless bridges often require reduced MTU
6.3 VRRP High Availability
Virtual Router Redundant Protocol (VRRP) is an open source protocol very similar to Cisco's HSRP. It enables multiple devices to share a Virtual IP address in a master/slave configuration.
VRRP Benefits
- Automatic failover without reconfiguration
- Sub-second failover times possible
- No single point of failure
- Transparent to end users
- Support for multiple backup levels
VRRP uses the multicast address 224.0.0.18 for communication. To ensure VRRP communication between hosts, you must allow continuous multicast communication between WINK Media Routers via this multicast address.
VRRP Configuration Parameters
Parameter | Description | Example/Options |
---|---|---|
VRRP State | Role of this router | Disable, Master, Backup |
Router ID | Shared ID for VRRP group | 1-255 (must be same on all members) |
Priority | Election priority (lower = higher priority) | 1-254 (1 = highest priority) |
Interval | Heartbeat interval | 1-255 seconds (default: 1) |
Source IP | Primary IP of this router | 192.168.1.100 |
Password | Authentication password | Alphanumeric only |
Virtual IP | Shared virtual address | 192.168.1.200/24 (CIDR notation) |
6.4 System Options
Hostname Configuration
The system hostname should be a unique name for each WINK Media Router in your local and global deployment. The hostname has the following requirements:
- Maximum 63 alphanumeric characters
- May include the minus sign (-) but not at the end
- Case-insensitive for network operations
- Should be DNS-compliant
MediaRouterSecurityZone1.WINK.MyCompany.com
Time Management
Local or remote NTP time servers are essential for maintaining several services on a WINK Media Router including:
- Audio & video synchronization
- Valid SSL certificates
- Valid WINK Media Router license
- Log file accuracy
- VRRP synchronization
NTP Best Practices
- Use at least two NTP servers for redundancy
- Prefer local NTP servers over internet servers
- Public NTP pools available at www.ntppool.org
- Can use other WINK devices as NTP sources in isolated networks
6.5 SSL Certificate Management
In the event you wish to use signed certificates with your WINK Media Router, you have the option to generate a certificate and either self-sign the certificate or have the certificate signed by a signing authority.
Certificate Requirements
- Format: PFX (PKCS#12) bundle
- Must include full certificate chain
- Password protected
- Supports wildcard certificates
- Corporate intermediate certificates supported
7. Tools
The WINK Media Router includes several diagnostic tools to help troubleshoot network and streaming issues.
Available Tools
Ping Test
ICMP ping to verify connectivity
MTR
Combined traceroute and ping analysis
TCPDump
Packet capture for advanced debugging
Traceroute
UDP-based path discovery
RTSP Probe
Test RTSP camera connectivity
API Tester
Test REST API commands
TCPDump Advanced Usage
This tool is for advanced testing to confirm receipt or delivery of data from a camera encoder or to a media delivery point.
8. Monitoring and Support
System Graphs
System graphs should be your first point of reference when starting a debug process. A quick look at the CPU and Network graphs often very clearly paints a picture of an issue.
Network Graphs
Network graphs indicate the inbound and outbound of the primary network interface.
System Memory
Memory graphs indicate the amount of used and available memory.
System CPU
CPU graphs indicate the amount of used and idle CPU available.
Logs
The logs are a sortable and searchable interface, with a maximum limit of 10,000 records. Available log types include:
- Login: User authentication events
- Request: HTTP/API requests
- Cron: Scheduled task events
- API: API-specific events
- OTP: One-time password events
- API-USER: API user actions
9. REST API
The REST API provides a range of functionality for both programmatic operation and administration.
API Capabilities
- Stream management (start, stop, status)
- Configuration management
- Statistics and monitoring
- OTP token generation
- User management
- System control
See the WINK Streaming - REST Command API document for detailed API documentation.
10. Advanced Configuration
Network Optimization Parameters
These advanced parameters can be configured when working with WINK Forge for optimized stream handling:
Parameter | Description | Recommended Value |
---|---|---|
buffer_size | Input buffer in KB | 1024-4096 |
rtsp_transport | RTSP transport mode | tcp (more reliable) |
srt_latency | SRT latency (ms) | 120-1000 |
timeout | Connection timeout (µs) | 10000000 (10 sec) |
reconnect | Auto-reconnect on failure | enabled |
API Integration
OTP API Reference
The Media Router provides comprehensive API support for OTP token management:
Create OTP Token
curl -d "apiuser=apiuser&apipass=apipass&action=create&duration=60&hash_type=numeric&hash_length=20" \ -X POST https://router.example.com/otp/api/
Parameters:
duration
: Token lifetime in minutes (1-525600)hash_type
: alpha, numeric, or alphanumhash_length
: Token length (8-128 characters)
Extend OTP Token
curl -d "apiuser=apiuser&apipass=apipass&action=extend&token=24814928371014572819&duration=900" \ -X POST https://router.example.com/api/v1/otp/
Query Token Status
curl -d "apiuser=apiuser&apipass=apipass&action=query&token=24814928371014572819" \ -X POST https://router.example.com/api/v1/otp/
Stream Control API
When integrated with WINK Forge, the Media Router supports advanced stream control:
<wink_api user='apiuser' pass='apipass' key='shared_key'> <req id='unique_id' command='route_update'> <route>application_name</route> <guid>FORGE_GUID</guid> <stream>stream_name</stream> <action>add|remove</action> </req> </wink_api>
High Availability Configuration
Multi-Router Setup
For mission-critical deployments, configure multiple Media Routers in a high-availability configuration:
- Primary/Secondary Setup:
- Configure VRRP with matching Router IDs
- Set priority values (lower = higher priority)
- Use shared Virtual IP for client connections
- Load Balanced Setup:
- Deploy multiple active routers
- Use DNS round-robin or hardware load balancer
- Configure identical applications on each router
- Geographic Distribution:
- Deploy routers in multiple data centers
- Use GeoDNS for client routing
- Configure cross-region replication
Performance Optimization
System Tuning
Component | Optimization | Impact |
---|---|---|
Network Buffers | Increase kernel buffer sizes | Reduces packet loss at high bitrates |
CPU Affinity | Bind processes to specific cores | Improves cache efficiency |
Memory Allocation | Pre-allocate memory pools | Reduces latency spikes |
Disk I/O | Use SSDs for HLS/DASH segments | Faster segment delivery |
Monitoring Best Practices
- System Metrics:
- Monitor CPU usage (target < 80%)
- Track memory utilization
- Watch network interface saturation
- Monitor disk I/O for segment storage
- Stream Metrics:
- Active connection count
- Bandwidth per stream
- Client geographic distribution
- Error rates and types
- Alert Thresholds:
- CPU > 85% for 5 minutes
- Memory > 90% utilization
- Network > 80% of capacity
- Failed authentication attempts > 10/minute
Advanced Authentication
Authentication Methods
The Media Router supports multiple authentication methods for different use cases:
Method | Use Case | Configuration |
---|---|---|
Internal | Simple username/password | Configured in user management |
HTTP-Based | External auth server | HTTP endpoint for validation |
JWT | Token-based auth | Public key or shared secret |
OTP | Time-limited access | API-generated tokens |
JWT Authentication
For scalable, stateless authentication:
JWT Configuration
- Algorithm: RS256, HS256
- Claims: sub, exp, iat, custom claims
- Validation: Signature and expiration
- Header: Authorization: Bearer {token}
HTTP-Based Authentication
Integrate with existing authentication systems:
# Authentication endpoint called by Media Router POST https://auth.example.com/validate Content-Type: application/json { "username": "user", "password": "pass", "ip": "client_ip", "path": "stream_path" } # Expected response { "authenticated": true, "permissions": ["read", "write"] }
Integration with WINK Ecosystem
WINK Forge Integration
The Media Router works seamlessly with WINK Forge for complete streaming workflows:
Typical Configuration
- WINK Forge transcodes incoming streams
- Media Router receives transcoded outputs
- Router distributes to multiple protocols/destinations
- OTP authentication secures viewer access
WINK Archive Integration
For recording capabilities, integrate with WINK Archive:
- Route streams to Archive for storage
- Use metadata tags for searchable recordings
- Configure retention policies
- Enable compliance recording modes
WINK Crossroads Integration
For advanced routing and load balancing:
- Centralized management of multiple routers
- Intelligent routing based on load/geography
- Failover orchestration
- Global stream directory