} 
        };
        //播放一个列表
        obj.playList = function(arr){
            if(jQuery.isArray(arr) && arr.length>=1){
                obj.playlist = arr;
                obj.position = 0;
                obj.start();  
            }
        };
        //播放下一首
        $(obj).on("ended",function(e){
             obj.playlist.shift();
            //obj.position++;
            obj.start();           
        });
    };
        initPlayer(audio);
        receiver_socket.onmessage = fun