@Override public void onServiceConnected(ComponentName name, IBinder service) { songManager = (SongManager) service; try { if (songManager.isPlayingMusic()) { updateSongDuration(songManager.getSongDuration("ÎÞ×Ö±®")); updateSongLrc(songManager.getSongWordLine("ÎÞ×Ö±®")); } } catch (RemoteException e) { e.printStackTrace(); } }
public void playMusic(String songName) { try { songManager.startPlaySong(songName); } catch (RemoteException e) { e.printStackTrace(); } }