Configure every aspect of your live event programmatically: pricing, DRM, multiview tiers, ad schedules, and AI features. V100 provisions the infrastructure automatically based on your expected viewer count.
import { V100 } from 'v100-sdk';
const v100 = new V100('YOUR_API_KEY');
// Create a PPV concert event with all monetization
const event = await v100.broadcast.create({
name: 'Summer Music Festival — Main Stage',
type: 'ppv',
cameras: 6,
ai_director: true,
drm: { widevine: true, fairplay: true },
ppv: {
standard: { price: 29.99, multiview: false },
vip: { price: 59.99, multiview: true, backstageCam: true }
},
ssai: {
preRoll: true,
intermissionAds: true,
vastUrl: 'https://ads.example.com/vast'
},
dvr: true,
max_concurrent_viewers: 50000,
ai_highlights: {
enabled: true,
autoPublish: ['youtube', 'instagram', 'tiktok', 'x']
},
delivery: 'll-hls' // LL-HLS for broad device support
});
// During event: real-time revenue and viewer metrics
const stats = await v100.broadcast.liveStats(event.id);
// stats = {
// concurrent_viewers: 34219,
// ppv_revenue: 684380.00,
// ad_impressions: 127450,
// avg_watch_time_minutes: 78,
// buffering_ratio: 0.002
// }