2017-12-24 9 views
0

Android 음악 플레이어 애플리케이션을 개발 중입니다. Google Assistant와 통합하여 음성으로 재생 및 검색 노래를 제어하고 싶습니다. 이미 내 애플리케이션에서 official documentation의 지침에 따라 미디어 세션을 구현했습니다. 내 응용 프로그램과 함께 뭔가를 재생하기 위해 지원을 요구하는 경우내 앱을 Google Assistant의 기본 음악 서비스로 정의하십시오.

는, 내가 좋아하는 뭔가 "MyApp를일부 아티스트재생"을 말해야한다. "Play 일부 아티스트"이라고 말하면 Assistant는 기본 음악 제공자를 구성하지 않았다고 말합니다.

이는 구글 도우미 응용 프로그램에서 다음 화면으로 날 리드 : 나는 MyApp를는 "당신의 음악 서비스"에 나열되지 않은 점에 유의

enter image description here

. 내 질문은 다음과 같습니다. 기본 음악 서비스로 선택할 수 있도록 앱에서 무엇을 변경해야합니까? 순간

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    xmlns:tools="http://schemas.android.com/tools" 
    package="fr.nihilus.music"> 

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
    <uses-permission android:name="android.permission.WAKE_LOCK" /> 

    <uses-feature 
     android:name="android.hardware.audio.output" 
     android:required="true" /> 

    <application 
     android:name=".NihilusMusicApplication" 
     android:allowBackup="true" 
     android:fullBackupContent="@xml/backup" 
     android:icon="@mipmap/ic_launcher" 
     android:label="@string/app_name" 
     android:roundIcon="@mipmap/ic_launcher_round" 
     android:supportsRtl="true" 
     android:theme="@style/AppTheme" 
     tools:ignore="GoogleAppIndexingWarning"> 

     <!-- Main activity for music browsing. --> 
     <activity 
      android:name=".HomeActivity" 
      android:launchMode="singleTop" 
      android:theme="@style/AppTheme.NoActionBar"> 

      <!-- Make this Activity visible in launcher --> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 

      <!-- Make this activity available as the default music app. --> 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.APP_MUSIC" /> 
       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 

      <!-- Intent filter that enables voice searches, such as "Play the Beatles" --> 
      <intent-filter> 
       <action android:name="android.media.action.MEDIA_PLAY_FROM_SEARCH" /> 

       <category android:name="android.intent.category.DEFAULT" /> 
      </intent-filter> 

      <meta-data 
       android:name="android.app.default_searchable" 
       android:value=".ui.SearchResultActivity" /> 
      <meta-data 
       android:name="android.app.shortcuts" 
       android:resource="@xml/shortcuts" /> 
     </activity> 

     <!-- Activity showing detail and tracks of an album. --> 
     <activity 
      android:name=".ui.albums.AlbumDetailActivity" 
      android:parentActivityName=".HomeActivity" 
      android:theme="@style/AppTheme.NoActionBar" /> 

     <!-- Activity for toggling user preferences. --> 
     <activity 
      android:name=".settings.SettingsActivity" 
      android:label="@string/action_settings" 
      android:parentActivityName=".HomeActivity" /> 

     <!-- 
      Activity to be opened as a dialog window when a track is selected 
      from the file explorer. 
     --> 
     <activity android:name=".FileViewerActivity" 
      android:theme="@style/AppTheme.FileViewer" 
      android:excludeFromRecents="true"> 
      <intent-filter> 
       <action android:name="android.intent.action.VIEW" /> 

       <category android:name="android.intent.category.DEFAULT" /> 

       <data 
        android:mimeType="audio/*" 
        android:scheme="content" /> 
      </intent-filter> 
     </activity> 

     <!-- 
      Main music service, provides media browsing and media playback services to 
      consumers through MediaBrowserService and MediaSession. Consumers connect to it through 
      MediaBrowser (for browsing) and MediaController (for play session control) 
     --> 
     <service 
      android:name=".service.MusicService" 
      android:exported="true" 
      android:label="@string/playback_service_label" 
      android:process=":musicplayer" 
      tools:ignore="ExportedService"> 
      <intent-filter> 
       <action android:name="android.media.browse.MediaBrowserService" /> 
      </intent-filter> 
     </service> 

     <!-- 
      A receiver that will receive media buttons and send as intents to MusicService. 
      Required on pre-Lollipop. 
     --> 
     <receiver android:name="android.support.v4.media.session.MediaButtonReceiver"> 
      <intent-filter> 
       <action android:name="android.intent.action.MEDIA_BUTTON" /> 
      </intent-filter> 
     </receiver> 
    </application> 

</manifest> 

답변

0

구글 도우미가 목록에서 특정 파트너 응용 프로그램을 할 수 있습니다 : 당신의 내용

, 여기에 매니페스트 파일입니다. 파트너에게 당신이하는 일을 정확히 모르겠습니다. 대형 음악 제공 업체 중 하나에 있다면 이미 Google 비즈니스 개발 담당자가있어 적합한 사람과 연락 할 수 있어야합니다.

Google에 아직 연락하지 않은 경우이 페이지에 다양한 연락처 옵션이 있습니다. "첫날부터 필요한 지원 받기"섹션의 https://developers.google.com/actions/. 나는 이것들 중 하나 이상을 시도 할 것입니다. 바라건대 당신을 올바른 팀에 데려다 줄 것입니다.

관련 문제