Beispiel #1
0
        public void Init(string clientID, string callbackUrl)
        {
#if UNITY_IOS
            try
            {
                SpotifyPlayer._Init(clientID, callbackUrl);
            }
            catch (Exception ex)
            {
                UnityEngine.Debug.LogError(ex);
            }
#endif
        }
Beispiel #2
0
 public string ExecuteSpotifyAppleScript(string command)
 {
     try
     {
         var result = Marshal.PtrToStringAuto(SpotifyPlayer._ExecuteSpotifyAppleScript(command));
         return(result);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogError(ex);
     }
     return(string.Empty);
 }