kibook / pmms

Synchronized media player for FiveM and RedM
133 stars 56 forks source link

adding other link like soundcloud, deezer, spotify #57

Open sadoj-kuro opened 1 year ago

sadoj-kuro commented 1 year ago

I don't know if it's possible but it would be nice to be able to use spotify links, soundcloud deezer etc.

kibook commented 1 year ago

It's mostly going to come down to what MediaElement.js supports. It does seem to support Soundcloud, but there may have been some extra issues related to NUI/DUI. It's probably worth looking into again, though.

Others like Spotify I highly doubt will ever be supported. These require accounts to listen to any music. It might be possible to do what many Discord "Spotify" bots do, however, which is take the Spotify link, get the song metadata like the title and artist, and find a video on YouTube that matches.

sadoj-kuro commented 1 year ago

apparently on the mediaelement github, soundcloud would be considered

HTML5 player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

kathryn2101 commented 1 month ago

can confirm it isnt supporting soundcloud but would be awesome if i could get help to make it support soundcloud image

kathryn2101 commented 1 month ago

and with the short link image