

音乐播放器失效问题
source link: https://yuang01.github.io/post/music/index/
音乐播放器失效问题 | 竹
主题自带的播放器
前些天主题自带的音乐播放器(左下角)失效了,这是因为播放器依赖的是meting.js
,而meting.js
的api挂了,但也说不定过几天就好了,如果一直不好的话可以自己搭建,具体请看他的github:
导入外部播放器
当然,自带的音乐播放器并不是唯一,也可以自定义音乐播放器,例如下面的播放器
我用的是他的免注册demo版本。具体操作步骤如下:在主题配置文件_config.yml
里,找到import
配置项,导入js即可
# 自己嵌入css或者scriptimport: script: - <script defer src="https://player.lzti.com/api/player/demo" id="myhk" key="demo" skin="player" lr="l" m="1"></script>
注意, script标签一定要带上
defer
属性, 因为这个播放器依赖jquery
,如果不加defer
的话,则会在jquery.js加载之前加载,就会报错。
然后刷新页面就能看到效果了,当然你也可以不用demo
版本,直接登录注册,然后使用自己的网易云或者qq音乐歌单。
其实我一开始发现的是一个叫做明月浩空
的播放器,跟懒耗子
一样,也不知道谁是真的,我不管,能用就行,但是明月浩空
播放器,播放音乐的时候,歌词出现严重错位,所以我就用了懒耗子
,这里附上明月浩空
播放器网址:
In The Shadow Of The Sun - Professor Green
Composed by:Alex Schwar
Max Elto:
They say that life is always easier
After you let yourself come undone
They say they'll give you whatever you want
And they'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
Till I'm in the ground
Professor Green:
Keep your past your own I don't care about before
I don't wanna know your secrets I wanna help you keep yours
No one needs to no one'll ever know what we do
Where we go why don't we go to a place where only we know
Where we escape from real life and it feels good and it feels nice
That we ain't yet but we still might
Cause we go with it if it feels right
And it feels feels amazing
We ain't ready to see the day
Max Elto:
And I'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
And I'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
Till I'm in the ground
Professor Green:
Let go of fear
This can be a secret that we both keep that we both share
Hidden behind the smiles we both wear
As the sun creeps through the curtains
On the walls we become two silhouettes
As we close our eyes
Let go of the lies that fill our heads
Let's light it up live life in the moment
Why would we worry about where we might end up
They can't see us they can't judge us it's just us
They might wonder but only know where we go
When the sun comes up
Max Elto:
And I'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
And I'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
Till I'm in the ground
I'm in the shadow of the shadow of the the sun
Where I belong girl there's something coming on
I'm in the shadow of the shadow of the sun
Oh and I need you
Professor Green:
Chasing it chasing it
I don't know what I'm chasing is
All I know is I've been craving it
Ever since I had a taste of it
Life is what you make of it
We're just here writing our own books
This is just a page of it
Before you wave your fingers at us
You better make sure your hands are clean
We all obey our hands are tied
And I don't wanna have to leave
I don't wanna say goodbye
They say life is always easier when you come undone
When I go you'll know where I've gone
And I'll be waiting in the shadow of the sun
I'll be waiting in the shadow of the sun
Seizing time where no one's been before
Close the curtains what you waiting for
And I'll be keeping secrets
Till I'm in the ground (直到我离开人世)
Recommend
About Archive Link
everyday a lot of link has gone away.
archive.link will keep it forever.