{"_id":"@anora.dev/videostream-pro-nextjs","_rev":"2-9130a61b2d1af22e118936cb023e306e","name":"@anora.dev/videostream-pro-nextjs","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@anora.dev/videostream-pro-nextjs","version":"1.0.0","keywords":["nextjs","react","video","player","vast","advertising","analytics","streaming"],"author":{"name":"VideoStream Pro Team"},"license":"MIT","_id":"@anora.dev/videostream-pro-nextjs@1.0.0","maintainers":[{"name":"anora.dev","email":"support@anora.dev"}],"dist":{"shasum":"714abe2f025d572eda8032e4ae1f2d4622f3bbeb","tarball":"https://registry.npmjs.org/@anora.dev/videostream-pro-nextjs/-/videostream-pro-nextjs-1.0.0.tgz","fileCount":9,"integrity":"sha512-4veQeVL52Tu9eAUMTW1uhSa9j3FjRXCYhH62VPiE0K00cZ9xKb9QZeV4hW0r90z12jMNf09Q828U5LYIKy+pZg==","signatures":[{"sig":"MEUCIH0N8yzR4PjuxFd5AzWWbxUWWhhEQp12EqDkQ8uHZ6lRAiEA1QLFPVfRV8r5r1bSwRHD32lOpLhu/vxweGsCLfQCdHY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":815601},"main":"index.cjs.js","types":"index.d.ts","module":"index.esm.js","exports":{".":{"types":"./index.d.ts","import":"./index.esm.js","require":"./index.cjs.js"}},"gitHead":"a0271d546e5e0a19a79ea563d2cca9e4bc36c3c3","_npmUser":{"name":"anora.dev","email":"support@anora.dev"},"_npmVersion":"10.8.2","description":"VideoStream Pro SDK for Next.js - Professional video player with VAST ads","directories":{},"_nodeVersion":"20.19.3","_hasShrinkwrap":false,"peerDependencies":{"next":">=13.0.0","react":">=18.0.0","react-dom":">=18.0.0"},"_npmOperationalInternal":{"tmp":"tmp/videostream-pro-nextjs_1.0.0_1759390501181_0.19732876024413337","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@anora.dev/videostream-pro-nextjs","version":"1.0.1","description":"VideoStream Pro SDK for Next.js - Professional video player with VAST ads","main":"index.cjs.js","module":"index.esm.js","types":"index.d.ts","exports":{".":{"import":"./index.esm.js","require":"./index.cjs.js","types":"./index.d.ts"}},"peerDependencies":{"react":">=18.0.0","react-dom":">=18.0.0","next":">=13.0.0"},"keywords":["nextjs","react","video","player","vast","advertising","analytics","streaming"],"author":{"name":"VideoStream Pro Team"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/videostream-pro/nextjs-sdk.git"},"_id":"@anora.dev/videostream-pro-nextjs@1.0.1","gitHead":"1ede72ea103c83f6d1d936205526b10a4bbe59d6","bugs":{"url":"https://github.com/videostream-pro/nextjs-sdk/issues"},"homepage":"https://github.com/videostream-pro/nextjs-sdk#readme","_nodeVersion":"20.19.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-KI4MuxoTpv8rY/KRYLA4OWXF1ggXIavLB0Q3rnxn5ZiCAANgR+BRi7JSEn3LzU/DmqFjKMSA0AHdnhSnhWWNlQ==","shasum":"44d7aea791a9d239c85b83822dcc6bde512cebb3","tarball":"https://registry.npmjs.org/@anora.dev/videostream-pro-nextjs/-/videostream-pro-nextjs-1.0.1.tgz","fileCount":7,"unpackedSize":811928,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCGJqmh9wZZvTkncN3bdmAyIqYPPrV6rOd+S3MuzD/G0gIhAJ/5esw++JLp1J2+QQg+L5+etod0p6PhrvKxKLyDiANG"}]},"_npmUser":{"name":"anora.dev","email":"support@anora.dev"},"directories":{},"maintainers":[{"name":"anora.dev","email":"support@anora.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/videostream-pro-nextjs_1.0.1_1759455920052_0.6892916934185136"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-02T07:35:01.040Z","modified":"2025-10-03T01:45:20.513Z","1.0.0":"2025-10-02T07:35:01.433Z","1.0.1":"2025-10-03T01:45:20.314Z"},"author":{"name":"VideoStream Pro Team"},"license":"MIT","keywords":["nextjs","react","video","player","vast","advertising","analytics","streaming"],"description":"VideoStream Pro SDK for Next.js - Professional video player with VAST ads","maintainers":[{"name":"anora.dev","email":"support@anora.dev"}],"readme":"# VideoStream Pro - Next.js SDK\n\nProfessional video player library for Next.js with VAST advertising support.\n\n## Installation\n\n```bash\nnpm install @videostream-pro/nextjs\n# or\nyarn add @videostream-pro/nextjs\n# or\npnpm add @videostream-pro/nextjs\n```\n\n## Features\n\n- ✅ **Next.js App Router** compatible (with 'use client')\n- ✅ **Next.js Pages Router** compatible\n- ✅ **React 18+** support\n- ✅ **TypeScript** definitions included\n- ✅ **VAST advertising** integration\n- ✅ **Google IMA SDK** support\n- ✅ **Tree-shakeable** ESM bundle\n- ✅ **No React bundled** (peer dependency)\n\n## Quick Start\n\n### Next.js App Router (13+)\n\n```tsx\n// app/video-player/page.tsx\n'use client';\n\nimport { VideoPlayer } from '@videostream-pro/nextjs';\n\nexport default function VideoPage() {\n  const video = {\n    id: 'demo',\n    title: 'Sample Video',\n    objectPath: 'https://example.com/video.mp4'\n  };\n\n  return (\n    <div className=\"container mx-auto p-4\">\n      <VideoPlayer\n        video={video}\n        aspectRatio=\"16:9\"\n        controls={true}\n        ads={true}\n      />\n    </div>\n  );\n}\n```\n\n### Next.js Pages Router\n\n```tsx\n// pages/video.tsx\nimport { VideoPlayer } from '@videostream-pro/nextjs';\nimport type { NextPage } from 'next';\n\nconst VideoPage: NextPage = () => {\n  const video = {\n    id: 'demo',\n    title: 'Sample Video',\n    objectPath: 'https://example.com/video.mp4'\n  };\n\n  return (\n    <div className=\"container mx-auto p-4\">\n      <VideoPlayer\n        video={video}\n        aspectRatio=\"16:9\"\n        controls={true}\n      />\n    </div>\n  );\n};\n\nexport default VideoPage;\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `video` | `Video` | - | Video object with metadata |\n| `src` | `string` | - | Direct video URL (alternative to video object) |\n| `aspectRatio` | `'16:9' \\| '4:3' \\| '1:1' \\| '21:9'` | `'16:9'` | Video aspect ratio |\n| `controls` | `boolean` | `true` | Show video controls |\n| `autoPlay` | `boolean` | `false` | Auto-play video |\n| `ads` | `boolean` | `false` | Enable VAST advertising |\n| `vastTagUrl` | `string` | - | VAST tag URL for ads |\n| `onPlay` | `() => void` | - | Called when video plays |\n| `onPause` | `() => void` | - | Called when video pauses |\n| `onEnded` | `() => void` | - | Called when video ends |\n\n## With VAST Advertising\n\n```tsx\n<VideoPlayer\n  video={video}\n  ads={true}\n  vastTagUrl=\"https://pubads.g.doubleclick.net/gampad/ads?...\"\n  onAdStart={() => console.log('Ad started')}\n  onAdComplete={() => console.log('Ad completed')}\n/>\n```\n\n## TypeScript\n\nFull TypeScript support with type definitions included:\n\n```tsx\nimport { VideoPlayer, VideoPlayerProps, Video } from '@videostream-pro/nextjs';\n```\n\n## Browser Compatibility\n\n- Chrome 80+\n- Firefox 74+\n- Safari 13.1+\n- Edge 80+\n\n## License\n\nMIT\n","readmeFilename":"README.md","homepage":"https://github.com/videostream-pro/nextjs-sdk#readme","repository":{"type":"git","url":"git+https://github.com/videostream-pro/nextjs-sdk.git"},"bugs":{"url":"https://github.com/videostream-pro/nextjs-sdk/issues"}}