diff --git a/views/cdn.php b/views/cdn.php index 74b38fd..2769c18 100644 --- a/views/cdn.php +++ b/views/cdn.php @@ -9,50 +9,68 @@ Al Quran Content Delivery Network (CDN)
- Al Quran Cloud provides an open CDN to serve audio files and Quran ayah images to allow you - integrate media into your app. The documentation below explains how to access the media. Please note that the CDN is available over both http and https. + Al Quran Cloud provides an open CDN to serve ayah and surah audio files and Quran ayah images to allow you + integrate media into your app. The documentation below explains how to access the media. + Please note that the CDN is available over both http and https.
- This CDN is also referenced in the API responses for audioeditions. + Audio files by ayah are also referenced in the API responses for audio editions via + https://api.alquran.cloud/v1/edition/format/audio. + To use a particular edition for a surah to stream by ayah: + https://api.alquran.cloud/v1/surah/1/ar.alafasy.
- Audio files can be accessed via the following URL: + Ayah audio files can be accessed on the CDN directly via the following URL:
https://cdn.islamic.network/quran/audio/{bitrate}/{edition}/{number}.mp3
+
Examples:
+ Surah audio files are available to stream via the CDN. + Please note that surah audio files are not integrated with the API as the API deals with with ayah level detail. + Surah audio files can be accessed on the CDN directly via the following URL: +
+
+ https://cdn.islamic.network/quran/audio-surah/128/{edition}/{number}.mp3
+
+
+ + Examples: +
+ + +- Image files can be accessed via the CDN in normal and high resolution using the following URLs: + Image files can be accessed via the CDN in normal and high resolution using the + following URLs:
https://cdn.islamic.network/quran/images/{surah}_{ayah}.png
- or
+ or
https://cdn.alquran.cloud/media/image/high-resolution/{surah}/{ayah}
Examples: