Notorious^ Posted October 9, 2018 Share Posted October 9, 2018 exports.Messages:sendClientMessage ( "Use 'B' button for On/Off Radio.", root, 255, 0, 0 ) local working = true local stream = playSound("http://radio.stereoscenic.com/asp-s") setSoundVolume (stream, 0.7) local x, y = guiGetScreenSize() local sX, sY = (x/1366), (y/768) local alpha = 175 local alpha2 = 255 local moveOn = true local font = dxCreateFont('font.ttf', y/80) function toggleRadio() working = not working if working == false then moveOn = false setSoundVolume(stream, 0) else moveOn = true setSoundVolume(stream, 0.7) end end bindKey("n","down",toggleRadio) Hello All, it doesnt work when ı change this radio channel with youtube URL.but really I need add youtube URL.what should ı do for it ? Are there any resource for youtube URL or any functiıon ? please help me. İngilizce---------------Dili algılaAfrikaancaAlmancaAmharcaArapçaArnavutçaAzericeBaskçaBatı FrizcesiBelarusçaBengalceBirman diliBoşnakçaBulgarcaCava DiliCebuanoÇekçeÇince (Basitleştirilmiş)Çince (Geleneksel)DancaEndonezceErmeniceEsperantoEstoncaFarsçaFelemenkçeFilipinceFinceFransızcaGalceGaliçyacaGüceratçaGüney Sotho diliGürcüceHaiti KreyoluHausa diliHawaii diliHırvatçaHintçeHmong Diliİbo diliİbraniceİngilizceİrlandacaİskoç GaelcesiİspanyolcaİsveççeİtalyancaİzlandacaJaponcaKannada diliKatalancaKazakçaKhmer diliKırgızcaKoreceKorsikacaKürtçeLao diliLatinceLehçeLetoncaLitvancaLüksemburgcaMacarcaMakedoncaMalayalam diliMalaycaMalgaşçaMaltacaMaori diliMarathi diliMoğolcaNepalceNorveççeNyanjaÖzbekçePencapçaPeştucaPortekizceRumenceRusçaSamoa diliShonaSırpçaSindhi diliSinhali diliSlovakçaSlovenceSomaliceSunda DiliSvahili diliTacikçeTamilceTaycaTelugu diliTürkçeUkraynacaUrducaVietnamcaYidişYorubacaYunancaZosa diliZulucaTürkçe Link to comment
N3xT Posted October 9, 2018 Share Posted October 9, 2018 playSound function doesn't support YouTube. Note: The only supported audio formats are MP3, WAV, OGG, RIFF, MOD, XM, IT, S3M and PLS(e.g. Webstream). Link to comment
idarrr Posted October 9, 2018 Share Posted October 9, 2018 No, you can't use youtube URL to play a sound. There is an API to convert youtube url to mp3 file and you can play it. Or, you can create invisible browser and open youtube URL. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now