Lily
(Lily)
February 7, 2022, 9:46am
#1
Hello koders I need your advance help with JS Webviewer to get DocumentElementsMetadata
Here is an example link of an audio which is embedded with thumbnail so please how can I get Thumbnail using JS codes
get Audio
I have tried some JS codes such as
document.getElementById("image");
document.getElementById("image").src"https://mahando.com/abc/Shukurani.mp3";
But I failed to get what I need please I know nothing is impossible but currently I don’t know how to do this please I need your help
My Blocks
Groza
(95)
February 7, 2022, 9:54am
#2
what do you want to get? audio?
Lily
(Lily)
February 7, 2022, 9:57am
#3
I want to get Image from this audio
But did you read my post clearly?
Groza
(95)
February 7, 2022, 9:58am
#4
I think with js commands this is not doable.
Lily
(Lily)
February 7, 2022, 10:01am
#5
@Groza are you sure for real?
Ok if js commands can’t do what is the option then?
Groza
(95)
February 7, 2022, 10:02am
#6
I used to see an extension for working with audio. but I don’t remember which site. I hope our moderators will help you
Inorder to get image via js command your url must be valid, but you are having MP3 url by which you can play… see the source of your url, it is not in readable format, if so js command will not work, i hope so…
HERE
I feel it is unable . I was tried in mobile, based on result ive replied
.but you can try with extension, it will do rathar than js
Lily
(Lily)
February 7, 2022, 10:47am
#9
Still-learning:
HERE
the audio is valid I have made it by myself and I tested it on my own coded server try it and you will see here
upload audio to extract image
Lily
(Lily)
February 7, 2022, 11:48am
#10
This doesn’t work with online audio but it works with offline audio only
Lily
(Lily)
February 7, 2022, 12:42pm
#11
Still-learning:
Inorder to get image via js command your url must be valid, but you are having MP3 url by which you can play… see the source of your url, it is not in readable format, if so js command will not work, i hope so…
Hello @Still-learning help me upload file on this using js
audioextractor
I am trying to use this document.getElementById("src").setAttribute("src", URL.createObjectURL(files[0]));
code but I am not able to do it
Shreyaa
(shreya )
February 7, 2022, 12:52pm
#12
quick extension
com.shreya.audioImage.aix (4.9 KB)
I haven’t tested it yet, but it should work
use image component
1 Like
Shreyaa
(shreya )
February 7, 2022, 12:54pm
#15
yes only url of audio file
1 Like
Lily
(Lily)
February 7, 2022, 12:57pm
#16
nice to hear that let me test
Shreyaa
(shreya )
February 7, 2022, 1:02pm
#18
just now tested it working
image = image component of builder
1 Like
Lily
(Lily)
February 7, 2022, 1:06pm
#19
Wow it works like a charm you are the
legend and best among the other thank you in advance
@Shreyaa
1 Like
Lily
(Lily)
February 7, 2022, 1:53pm
#20
Hello @Shreyaa
I wonder why this block is not contained the image url
is there any way I can get the url image so that I can download the image or use it somewhere I need?