Recommended Posts

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?

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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 test
EDIT²: The API is broken, sometimes it does not start download.

Edited by Tommy.
EDIT² on API

Share this post


Link to post
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 test
EDIT²: The API is broken, sometimes it does not start download.

you know another, working API?

Share this post


Link to post
52 minutes ago, Nerve said:

you know another, working API?

No, most use token on links

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.