Tokio Posted December 15, 2018 Share Posted December 15, 2018 function asdasdsas() playSound("http://www.convertmp3.io/fetch/?video=https://www.youtube.com/watch?v=iq7q82Cd6RI") end addCommandHandler("test",asdasdsas) what wrong? the API working fine, but the playSound not.. how to fix? Link to comment
Investor Posted December 15, 2018 Share Posted December 15, 2018 For me, this link directs to youtubeinmp3.com which is a nonexistent domain name as it "might be temporarily down or it may have moved permanently to a new web address. (ERR_NAME_RESOLUTION_FAILED)" You can try addEventHandler("onClientSoundStream", root, function(succ, length, streamN, err) if not succ then outputChatBox("Sound: "..streamN.." failed to start: "..err,100,0,0) end end ) to see the reason for the failure to download/stream it. Link to comment
Moderators Patrick Posted December 15, 2018 Moderators Share Posted December 15, 2018 Szerintem nem az MTA funkcióval van a baj, szimplán az API nem jó (vagy nem jól van használva) és néha csak azt az oldalt hozza be ahol a letöltés gomb van és nem a direct letöltést. English: I think the api is wrong, because sometimes it's open the download page and not the direct download link. Link to comment
Tommy. Posted December 15, 2018 Share Posted December 15, 2018 (edited) Try this: function asdasdsas() playSound("http://www.convertmp3.io/download/?video=https://www.youtube.com/watch?v=iq7q82Cd6RI") end addCommandHandler("test",asdasdsas) EDIT: did i not testEDIT²: The API is broken, sometimes it does not start download. Edited December 15, 2018 by Tommy. EDIT² on API Link to comment
Tokio Posted December 15, 2018 Author Share Posted December 15, 2018 9 minutes ago, Tommy. said: Try this: function asdasdsas() playSound("http://www.convertmp3.io/download/?video=https://www.youtube.com/watch?v=iq7q82Cd6RI") end addCommandHandler("test",asdasdsas) EDIT: did i not testEDIT²: The API is broken, sometimes it does not start download. you know another, working API? Link to comment
Tommy. Posted December 15, 2018 Share Posted December 15, 2018 52 minutes ago, Nerve said: you know another, working API? No, most use token on links 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