| 1 | import type { CctvCamera } from './types'; |
| 2 | |
| 3 | const JAPAN_CAMERAS: CctvCamera[] = [ |
| 4 | { |
| 5 | id: 'jp-shibuya-crossing', |
| 6 | lat: 35.6595, lng: 139.7005, |
| 7 | name: 'Shibuya Scramble Crossing', |
| 8 | city: 'Tokyo', country: 'Japan', |
| 9 | stream_url: 'https://www.youtube.com/embed/HpdO5Kq3o7Y?autoplay=1&mute=1', |
| 10 | stream_type: 'iframe', |
| 11 | source: 'ANN News / YouTube', |
| 12 | }, |
| 13 | { |
| 14 | id: 'jp-tokyo-tower', |
| 15 | lat: 35.6586, lng: 139.7454, |
| 16 | name: 'Tokyo Tower Live Cam', |
| 17 | city: 'Tokyo', country: 'Japan', |
| 18 | stream_url: 'https://www.youtube.com/embed/cbJ03Xk_eLQ?autoplay=1&mute=1', |
| 19 | stream_type: 'iframe', |
| 20 | source: 'YouTube', |
| 21 | }, |
| 22 | { |
| 23 | id: 'jp-mt-fuji', |
| 24 | lat: 35.3606, lng: 138.7274, |
| 25 | name: 'Mt. Fuji Live', |
| 26 | city: 'Shizuoka/Yamanashi', country: 'Japan', |
| 27 | stream_url: 'https://www.youtube.com/embed/5aLh8R2HqOQ?autoplay=1&mute=1', |
| 28 | stream_type: 'iframe', |
| 29 | source: 'YouTube', |
| 30 | }, |
| 31 | { |
| 32 | id: 'jp-osaka-dotonbori', |
| 33 | lat: 34.6687, lng: 135.5013, |
| 34 | name: 'Dotonbori Live Cam', |
| 35 | city: 'Osaka', country: 'Japan', |
| 36 | stream_url: 'https://www.youtube.com/embed/m6J9w94oBXY?autoplay=1&mute=1', |
| 37 | stream_type: 'iframe', |
| 38 | source: 'YouTube', |
| 39 | } |
| 40 | ]; |
| 41 | |
| 42 | export async function fetchJapanCameras(): Promise<CctvCamera[]> { |
| 43 | // Static cameras don't need a fetch, we just return them wrapped in a Promise |
| 44 | return JAPAN_CAMERAS; |
| 45 | } |