quran / quran.com-frontend-v2

https://previous.quran.com
GNU General Public License v3.0
456 stars 199 forks source link

Added audio in ayah link for sharing #354

Open naveed-ahmad opened 3 years ago

naveed-ahmad commented 3 years ago

Thanks for the wonderful website! I use it a lot for our new Muslims to introduce them to the Quran. I like to email links for them to listen to: https://www.quran.com/09/51-60?reading=false For example the one above. But I'd like to also change the reciter in the link (for example use Abu-bakr Al-Shatiry instead of the default reciter) - is there a way to do that?

naveed-ahmad commented 3 years ago

Sorry if issue is confusing, this is actually a feature request from someone. They want to add audio info to share URL, if someone open this link, reciter added in the URL will be auto selected.

On Mon, Mar 1, 2021, 7:43 PM Abdirahman-Nur notifications@github.com wrote:

i have used you link so sorry if i am not talking about the right one. Did you try to click settings (top right under the search bar and next to the surah info) and reciters, you will find Ash Shatiry there

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/quran/quran.com-frontend-v2/issues/354#issuecomment-788001266, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLI7375WNRPHXIJ5LAIQDTBORZZANCNFSM4YMIAEFQ .

mangoess commented 3 years ago

I think this is a great idea! I tried seeing if this exists anywhere in the code but I don't think it does But there is a way to get a link of a verse that will automatically start once you have pressed the link. For example (Using the link you provided) if I wanted to automatically start when I pressed the link. The only thing I could find that does just that is the requests the site makes when getting the audio url. For example ( https://audio.qurancdn.com/Alafasy/mp3/009052.mp3 ) is a link to an mp3 file; That will automatically play.

But these links do not contain anything else. Although I do think this is a great idea and I massively support it!