Google 로그인 API가 지원 중단됨에 따라 2026년에 게임 v1 SDK가 삭제됩니다. 2025년 2월 이후에는 게임 v1 SDK와 새로 통합된 타이틀을 Google Play에 게시할 수 없습니다. 대신 games v2 SDK를 사용하는 것이 좋습니다.
이전 게임 v1 통합이 적용된 기존 타이틀은 몇 년 동안 계속 작동하지만 2025년 6월부터는 v2로 이전하는 것이 좋습니다.
이 가이드는 Play 게임즈 서비스 v1 SDK 사용에 관한 가이드입니다. Play 게임즈 서비스 v2 SDK에서는 동영상 녹화가 지원되지 않습니다.
Video Recording API를 사용하면 게임에 동영상 녹화를 쉽게 추가하고 사용자가 몇 가지 간단한 단계로 YouTube에서 친구들과 동영상을 공유할 수 있습니다. 예를 들어 전투 재생 화면 밖에 버튼을 추가하여 이 버튼을 누르면 Play 게임즈 동영상 녹화 환경이 표시되도록 할 수 있습니다.
주간 / 월간 / 연간 리플레이 대회를 통해 플레이어가 게임 리플레이를 녹화하고 공유하도록 유도
게임 내 또는 소셜 미디어를 통해 인기 동영상 및 크리에이터 표시
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[],null,["# Video recording in Android games\n\nFollowing the deprecation of the\n[Google Sign-In](https://android-developers.googleblog.com/2024/09/streamlining-android-authentication-credential-manager-replaces-legacy-apis.html)\nAPI, we are removing the games v1 SDK in 2026. After February 2025, you will be unable to publish\ntitles that are newly integrated with games v1 SDK, on Google Play. We recommend that you use the\ngames v2 SDK instead. \n\nWhile existing titles with the previous games v1 integrations continue to function for a\ncouple of years, you are encouraged to\n[migrate to v2](/games/pgs/android/migrate-to-v2)\nstarting June 2025. \n\nThis guide is for using the Play Games Services v1 SDK. Video recording\nis not supported in the Play Games Services v2 SDK.\n\nThe video recording API enables you to easily add video recording to your game\nand let users share their videos with friends on YouTube in a few simple\nsteps. For example, you could add a button off of a battle replay screen that\nwhen pressed would bring up the Play Games video recording experience.\n\nThis guide shows you how to implement video recording in games using the\nGoogle Play Games Services. The APIs can be found in the\n[`com.google.android.gms.games.video`](https://developers.google.com/android/reference/com/google/android/gms/games/video/package-summary) and\n[`com.google.android.gms.games`](https://developers.google.com/android/reference/com/google/android/gms/games/package-summary) packages.\n\nBefore you begin\n----------------\n\nBefore you start to use the video recording API:\n\n- Download and review the\n [code sample](https://github.com/playgameservices/android-basic-samples).\n\n- Familiarize yourself with the recommendations described in the\n [Quality Checklist](/games/pgs/v1/quality).\n\nGet the videos client\n---------------------\n\nTo start using the video recording API, your game must first obtain a\n[`VideosClient`](https://developers.google.com/android/games_v1/reference/com/google/android/gms/games/VideosClient.html) object. You can do this by calling the\n[`Games.getVideosClient()`](https://developers.google.com/android/reference/com/google/android/gms/games/Games.html#getVideosClient(android.app.Activity,%20com.google.android.gms.auth.api.signin.GoogleSignInAccount)) method and passing in the\nactivity and the [`GoogleSignInAccount`](https://developers.google.com/android/reference/com/google/android/gms/auth/api/signin/GoogleSignInAccount) for the current player. To learn how to\nretrieve the player account information, see\n[Sign-in in Android Games](/games/pgs/v1/android/signin).\n| **Note:** The [`VideosClient`](https://developers.google.com/android/games_v1/reference/com/google/android/gms/games/VideosClient.html) class makes use of the Google Play services [`Task`](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task) class to return results asynchronously. To learn more about using tasks to manage threaded work, see the [Tasks API developer guide](https://developers.google.com/android/guides/tasks).\n\nVideo recording API basics\n--------------------------\n\nYou can use the video recording API to integrate a video recording experience\ndirectly from within your game.\n\nThe video recording experience for users includes the following:\n\n- The video recording overlay, which has three buttons:\n\n 1. Start / stop recording\n 2. Turn on / off mic\n 3. Turn on / off forward facing camera\n\n | **Note:** Clicking the overlay's forward facing camera display brings up the three aforementioned buttons.\n- A developer-provided button to initiate recording, or an alternate recording\n trigger\n\n- A clickable toast that pops up at the end of recording that enables players to\n upload the video to YouTube, or view the video through the Photos app\n (Note: recorded videos are stored under the category `ScreenCasts` in Photos)\n\nLaunch the video recording overlay\n----------------------------------\n\nTo initiate video recording for the currently signed-in player, follow these\nsteps:\n\n1. Call the [`VideosClient.getCaptureOverlayIntent()`](https://developers.google.com/android/reference/com/google/android/gms/games/VideosClient.html#getCaptureOverlayIntent()) method.\n2. If the call is successful, Google Play games services returns a [`Task`](https://developers.google.com/android/reference/com/google/android/gms/tasks/Task) object which asynchronously loads an intent to launch the video recording overlay.\n3. Use the intent from the previous step to start an activity.\n\nHere's an example of how to bring up the video recording overlay: \n\n```transact-sql\nprivate static final int RC_VIDEO_OVERLAY = 9011;\n\npublic void showVideoOverlay(View myview) {\n Games.getVideosClient(this, GoogleSignIn.getLastSignedInAccount(this))\n .getCaptureOverlayIntent()\n .addOnSuccessListener(new OnSuccessListener\u003cIntent\u003e() {\n @Override\n public void onSuccess(Intent intent) {\n startActivityForResult(intent, RC_VIDEO_OVERLAY);\n }\n });\n}\n```\n\nTips for using video recording data\n-----------------------------------\n\nThe video recording API lets you integrate a video recording experience directly\nin your game.\n\n| Tip | Description |\n|----------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Make the video recording trigger easily discoverable | - Prominently place a recording button off your main menu - Automatically trigger the overlay from a dedicated and clearly labeled recording mode menu option |\n| Promote use of the feature in your store listing and inside the game | - Use a screenshot in your store listing that displays the video recording overlay - Promote the video recording feature through in-game promotions - Consider providing in-game rewards for replay sharing |\n| Engage your player community with replay competitions | - Encourage players to record and share game replays with weekly / monthly / yearly replay competitions - Recognize top videos and creators in-game or through social media |"]]