Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
La chaîne "Ma sélection" est la deuxième ligne de l'écran d'accueil, après
la ligne des applications. Le système crée et gère cette chaîne. Votre application peut ajouter
Programmes à la chaîne "Ma sélection" : programmes que l'utilisateur a marqués comme
intéressantes, qui ont été interrompues au milieu ou qui ont un rapport avec le contenu
que l'internaute regarde (par exemple, le prochain épisode d'une série ou la prochaine saison d'une
afficher).
La chaîne "Ma sélection" présente des contraintes: votre application ne peut pas être déplacée, supprimée,
masquer la ligne de la chaîne "Ma sélection".
Étapes
L'insertion de programmes dans la chaîne "Ma sélection" est semblable
insérer des programmes sur votre chaîne.
Consultez les sections suivantes pour en savoir plus sur "Ma sélection".
Publication sur la chaîne "Ma sélection" sur Google TV (affichée sous la forme "Continuer")
visionnement") nécessite l'approbation préalable de Google par le biais d'une procédure de certification.
utilise le traitement côté serveur pour trier les programmes en fonction de leurs attributs.
Pour commencer le processus de certification, veuillez
envoyez ce formulaire associé.
Lorsque vous ajoutez du contenu à la chaîne "Ma sélection", vous devez suivre ces consignes:
Il existe quatre types de programmes "Ma sélection". Sélectionnez le type approprié:
Type
Notes
WATCH_NEXT_TYPE_CONTINUE
L'utilisateur s'est arrêté pendant le visionnage du contenu.
WATCH_NEXT_TYPE_NEXT
Prochain programme disponible de la série que l'utilisateur regarde
est disponible. Par exemple, si l'utilisateur regarde l'épisode 3 d'une série, l'application peut lui suggérer de regarder ensuite l'épisode 4.
WATCH_NEXT_TYPE_NEW
De nouveaux contenus qui suivent clairement ce que l'utilisateur regarde sont désormais disponibles. Par exemple, si l'utilisateur regarde l'épisode 5 d'une série, l'épisode 6 devient disponible.
WATCH_NEXT_TYPE_WATCHLIST
Il est inséré par le système ou l'application lorsque l'utilisateur enregistre un programme.
Utilisez TvContractCompat.buildWatchNextProgramUri(long watchNextProgramId) pour
Créez le Uri dont vous avez besoin pour mettre à jour un programme Watch Next.
Lorsque l'utilisateur ajoute un programme à la chaîne "Ma sélection", le système copie le
programme à la ligne. Il envoie l'intent
TvContractCompat.ACTION_PREVIEW_PROGRAM_ADDED_TO_WATCH_NEXT pour avertir l'application
que le programme a été ajouté. L'intent inclut deux extras: l'identifiant du programme
qui a été copié et l'ID de programme créé pour le programme dans "Ma sélection"
canal.
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/27 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/27 (UTC)."],[],[],null,["# Add programs to the Watch Next channel\n\nThe Watch Next channel is the second row that appears in the home screen, after\nthe apps row. The system creates and maintains this channel. Your app can add\nprograms to the Watch Next channel: programs that the user marked as\ninteresting, stopped watching in the middle, or that are related to the content\nthe user is watching (like the next episode in a series or next season of a\nshow).\n| **Note:** On the home screen, the Watch Next channel has the label **Play Next** . However, the Android classes used to manage the Watch Next channel are [`WatchNextProgram`](/reference/androidx/tvprovider/media/tv/WatchNextProgram) and [`WatchNextPrograms`](/reference/android/media/tv/TvContract.WatchNextPrograms). They have methods and constants with the stem \"watchnext\".\n\nThe Watch Next channel has some constraints: your app cannot move, remove, or\nhide the Watch Next channel's row.\n\nSteps\n-----\n\nInserting programs into the Watch Next channel is similar to\n[inserting programs into your own channel](/training/tv/discovery/recommendations-channel#add-programs).\nSee the following sections for details specific to Watch Next.\n\nPublishing to the Watch Next channel on Google TV (displayed as \"Continue\nwatching\") requires prior approval by Google through a certification process and\nuses server-side processing to sort programs based on their attributes.\nTo start the certification process, please\nsubmit this [linked form](https://docs.google.com/forms/d/e/1FAIpQLSeaNhHjDNM8osXPgkXeUQMSl5CntaEw0EeGYHIAc5jxUhQuHg/viewform).\n\nWhen inserting content into the Watch Next channel, you must follow these guidelines:\n\n- [Watch Next guidelines for app developers](/training/tv/discovery/guidelines-app-developers)\n- [Watch Next guidelines for TV providers](/training/tv/discovery/guidelines-tv-providers)\n\n### Select a type of program\n\nThere are four types of Watch Next programs. Select the appropriate type:\n\n| Type | Notes |\n|-----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `WATCH_NEXT_TYPE_CONTINUE` | The user stopped while watching content. |\n| `WATCH_NEXT_TYPE_NEXT` | The next available program in a series the user is watching is available. For example, if the user is watching episode 3 of a series, the app can suggest that they watch episode 4 next. |\n| `WATCH_NEXT_TYPE_NEW` | New content that clearly follows what the user is watching is now available. For example, the user is watching episode number 5 from a series and episode 6 becomes available for watching. |\n| `WATCH_NEXT_TYPE_WATCHLIST` | Inserted by the system or the app when the user saves a program. |\n\nFor more information, see [Watch Next attributes](/training/tv/discovery/watch-next-programs).\n\n### Use the WatchNextProgram builder\n\nUse a `WatchNextProgram.Builder`. For more information, see\n[Watch Next attributes](/training/tv/discovery/watch-next-programs). \n\n### Kotlin\n\n```kotlin\nval builder = WatchNextProgram.Builder()\nbuilder.setType(TvContractCompat.WatchNextPrograms.TYPE_MOVIE)\n .setWatchNextType(TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE)\n .setLastEngagementTimeUtcMillis(time)\n .setTitle(\"Title\")\n .setDescription(\"Program description\")\n .setPosterArtUri(uri)\n .setIntentUri(uri)\n .setInternalProviderId(appProgramId)\n\nval watchNextProgramUri = context.contentResolver\n .insert(TvContractCompat.WatchNextPrograms.CONTENT_URI,\n builder.build().toContentValues())\n```\n\n### Java\n\n```java\nWatchNextProgram.Builder builder = new WatchNextProgram.Builder();\nbuilder.setType(TvContractCompat.WatchNextPrograms.TYPE_MOVIE)\n .setWatchNextType(TvContractCompat.WatchNextPrograms.WATCH_NEXT_TYPE_CONTINUE)\n .setLastEngagementTimeUtcMillis(time)\n .setTitle(\"Title\")\n .setDescription(\"Program description\")\n .setPosterArtUri(uri)\n .setIntentUri(uri)\n .setInternalProviderId(appProgramId);\n\nUri watchNextProgramUri = context.getContentResolver()\n .insert(TvContractCompat.WatchNextPrograms.CONTENT_URI, builder.build().toContentValues());\n```\n\nUse `TvContractCompat.buildWatchNextProgramUri(long watchNextProgramId)` to\ncreate the `Uri` you need to update a Watch Next program.\n\nWhen the user adds a program to the Watch Next channel, the system copies the\nprogram to the row. It sends the intent\n`TvContractCompat.ACTION_PREVIEW_PROGRAM_ADDED_TO_WATCH_NEXT` to notify the app\nthat the program has been added. The intent includes two extras: the program ID\nthat was copied and the program ID created for the program in the Watch Next\nchannel."]]