Open BesrourMS opened 7 years ago
I have the same problem, can you post an example code of how can I have an audio player with youtube as source?
Spencer's comment is irrelevant to this feature suggestion.
Plyr already supports soundcloud that you can use for audio (though I haven't tried it myself).
I think audio only via youtube is a bad idea. It would require more network resources than necessary for just the audio (by a factor of something like 50-100% assuming it's using very low res video) and in addition to that use a lot more cpu. It might be convenient for content creators, but suboptimal for consumption. And what about for example youtube ads? They're audiovisual, and removing just the video is likely to lead to confusion. Click to skip also wouldn't work.
You can hack this yourselves though. Add a wrapper .plyr--audio
, then hide .plyr__video-wrapper
, make sure .plyr__controls
are positioned relative
or static
and disable fullscreen and auto-hiding the controls (more will be needed in v3) via the optional parameter.
Audio support will be added in the not too distant future but I can't say when. Soundcloud has been temporarily removed in v3 (it will be back) as it was only partially supported and really untested by myself.
Audio support will be added in the not too distant future but I can't say when. Soundcloud has been temporarily removed in v3 (it will be back) as it was only partially supported and really untested by myself.
Hey @sampotts, is it possible already to display player as audio only for youtube? Thanks!
I read this article how embed YouTube video as audio : https://www.labnol.org/internet/youtube-audio-player/26740/ and I believe that is a very interesting