diff --git a/examples/tv-casting-app/android/App/app/src/main/jni/cpp/MatterCallbackHandler-JNI.cpp b/examples/tv-casting-app/android/App/app/src/main/jni/cpp/MatterCallbackHandler-JNI.cpp index c15521b9db383c..eb19010ea33853 100644 --- a/examples/tv-casting-app/android/App/app/src/main/jni/cpp/MatterCallbackHandler-JNI.cpp +++ b/examples/tv-casting-app/android/App/app/src/main/jni/cpp/MatterCallbackHandler-JNI.cpp @@ -252,11 +252,11 @@ jobject SampledPositionSuccessHandlerJNI::ConvertToJObject( jobject jSampledPosition = nullptr; if (!responseData.IsNull()) { - const chip::app::Clusters::MediaPlayback::Structs::PlaybackPosition::DecodableType & playbackPosition = + const chip::app::Clusters::MediaPlayback::Structs::PlaybackPositionStruct::DecodableType & playbackPosition = responseData.Value(); jclass responseTypeClass = nullptr; - CHIP_ERROR err = JniReferences::GetInstance().GetClassRef(env, "com/chip/casting/MediaPlaybackTypes$PlaybackPosition", + CHIP_ERROR err = JniReferences::GetInstance().GetClassRef(env, "com/chip/casting/MediaPlaybackTypes$PlaybackPositionStruct", responseTypeClass); if (err != CHIP_NO_ERROR) {