Merge "MediaSync: support MediaSync in native code."