• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Stlin
V2EX  ›  程序员

基于网易云与 Vuejs 写了个播放器

  •  2
     
  •   Stlin · Jun 16, 2016 · 8070 views
    This topic created in 3793 days ago, the information mentioned may be changed or developed.

    Github : https://github.com/axhello/vPlayer

    Demo : http://skyling.me/vPlayer/

    API 用的网易云 php 版本的:NeteaseCloudMusicApi

    纯属娱乐,目前功能实现了:可以搜歌,放歌,滚动歌词,可以快进(没法快退),自动循环列表,歌曲播放历史(用了 localstorge ),删除播放历史歌曲等。

    preview

    33 replies  •  2016-06-17 11:26:28 +08:00
    playniuniu
    playniuniu
    Jun 16, 2016
    1
    不错哦,已 star
    eric6356
    eric6356
    Jun 16, 2016
    2
    不错啊
    detailAPI 似乎有时候不能返回 mp3Url 呢,比如 http://skyling.me/vPlayer/api/detailApi.php?id=19945726
    Stlin
    Stlin
    OP
    Jun 16, 2016
    3
    @playniuniu thanks
    Stlin
    Stlin
    OP
    Jun 16, 2016
    4
    @eric6356 因为网易云有些歌可能涉及版权,所以你懂的...
    phantomer
    phantomer
    Jun 16, 2016 via iPhone
    5
    厉害👍🏻
    qcloud
    qcloud
    Jun 16, 2016
    6
    cool ~
    codespots
    codespots
    Jun 16, 2016
    7
    我感觉咱们认识,你之前是不是让我帮你看 PHP 的代码,如果是那你认识狗哥吗,如果你认识,就确认了!
    kingcos
    kingcos
    Jun 16, 2016
    8
    好厉害, mark 看看
    fhefh
    fhefh
    Jun 16, 2016
    9
    mark~~~~
    fising
    fising
    Jun 16, 2016
    10
    不错,如果能整合多个音乐网站就好了。因为有的网站没版权
    songjiaxin2008
    songjiaxin2008
    Jun 16, 2016
    11
    漂亮
    free9fw
    free9fw
    Jun 16, 2016
    12
    没有缓存?
    zhuangzhuang1988
    zhuangzhuang1988
    Jun 16, 2016
    13
    不错, 已 star
    Stlin
    Stlin
    OP
    Jun 16, 2016
    14
    @fising 嗯嗯!这个可以,因为我也发现了网易云好多歌都是 404 了,也不知道是不是 api 问题
    kn007
    kn007
    Jun 16, 2016
    15
    very well~
    Stlin
    Stlin
    OP
    Jun 16, 2016
    16
    @free9fw 没有呢~ 可以尝试下!
    Stlin
    Stlin
    OP
    Jun 16, 2016
    17
    @westooy 狗哥?没印象呢
    wslsq
    wslsq
    Jun 16, 2016
    18
    很漂亮 刚想深入学 vue 感谢楼主
    aias
    aias
    Jun 16, 2016
    19
    呃?用不来..
    时间线显示 0:00 / NaN:NaN
    Kokororin
    Kokororin
    Jun 16, 2016
    20
    厉害!网易云音乐老的 api 获取有版权的歌曲已经不行了
    maowu
    maowu
    Jun 16, 2016
    21
    要是 api 用 js 实现的话,用 node-webkit 加载的话就可以成为一个桌面应用了
    Stlin
    Stlin
    OP
    Jun 16, 2016
    22
    @aias 是 api 的问题,这 api 有些歌会 404 ,但有些还是可以放的...
    Stlin
    Stlin
    OP
    Jun 16, 2016
    23
    @Kokororin 诶~ 不知道有没有新的呢? 现在找的多数都是不行的了...
    Kokororin
    Kokororin
    Jun 16, 2016
    24
    @Stlin musicbox 的 wiki 里有新版的,你可以试试呢
    Wangxf
    Wangxf
    Jun 17, 2016
    25
    叼
    deanshi0626
    deanshi0626
    Jun 17, 2016 via iPhone
    26
    `if (lrc.nolyric === true) {`

    看了代码,强迫症表示这不能忍啊😱
    kawaiiushio
    kawaiiushio
    Jun 17, 2016
    27
    希望增加播放指定歌單功能
    imxieke
    imxieke
    Jun 17, 2016
    28
    赞一个
    exoticknight
    exoticknight
    Jun 17, 2016
    29
    为什么要用 php ?不可以纯 js ?
    pmkx2
    pmkx2
    Jun 17, 2016
    30
    不错呢,已 star
    miaotaizi
    miaotaizi
    Jun 17, 2016
    31
    就一个组件哦.....
    不过挺好的~!
    xudd
    xudd
    Jun 17, 2016
    32
    不错,学习了。
    horizon
    horizon
    Jun 17, 2016
    33
    学习了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2027 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 16:28 · PVG 00:28 · LAX 08:28 · JFK 11:28
    ♥ Do have faith in what you're doing.