(url?: string)
| 6 | import { getAppxCourseId } from '@/utiles/appx'; |
| 7 | |
| 8 | function bunnyUrl(url?: string) { |
| 9 | if (!url) return ''; |
| 10 | return url |
| 11 | .replace('https://appxcontent.kaxa.in', 'https://appxcontent.b-cdn.net') |
| 12 | .replace( |
| 13 | 'https://appx-transcoded-videos.livelearn.in', |
| 14 | 'https://appx-transcoded-videos.b-cdn.net', |
| 15 | ) |
| 16 | .replace( |
| 17 | 'https://appx-recordings.livelearn.in', |
| 18 | 'https://appx-recordings.b-cdn.net', |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | async function isUrlAccessible(url: string): Promise<boolean> { |
| 23 | try { |