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.

+
-

CDN

+

Audio files by Ayah

- 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:

@@ -61,43 +79,107 @@
+ +
+ +
+
+
+
+

Audio files by Surah

+

+ 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}
  • - {surah} - A surah number (from 1 to 114) + {surah} - A surah number (from 1 to 114)
  • - {ayah} - An ayah number relative to the surah + {ayah} - An ayah number relative to the surah

Examples:

diff --git a/views/common/navigation.php b/views/common/navigation.php index b79aef1..c711d22 100644 --- a/views/common/navigation.php +++ b/views/common/navigation.php @@ -31,6 +31,7 @@
  • Font Edition Tester
  • +
  • CDN