abcVideo 플레이어 소스 (client / server / shared / pythonsource / docs / .claude). .gitignore 적용으로 node_modules·storage·samplevideo·미디어 등 대용량 일괄 제외. 103 files, ~964K. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
343 B
TypeScript
17 lines
343 B
TypeScript
import { Router } from 'express';
|
|
import { streamVideo } from '../services/streaming';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/:videoId', async (req, res) => {
|
|
try {
|
|
await streamVideo(req, res);
|
|
} catch (err) {
|
|
if (!res.headersSent) {
|
|
res.status(500).json({ error: 'Streaming error' });
|
|
}
|
|
}
|
|
});
|
|
|
|
export default router;
|