Apple Inc., seeking to capitalize on the popularity of social networks, is developing a video sharing and editing application and is testing new related features for its iPhone and iPad operating systems.

The early plans are part of a newly directed focus to integrate social networking applications within Apple’s mobile products and are a response to the success of social media-focused companies such as Facebook Inc. and Snapchat Inc., according to people familiar with Apple’s strategy. An Apple spokeswoman declined to comment.

The growth of Apple’s hardware business is slowing and Chief Executive Officer Tim Cook is looking to the company’s services business, such as the App Store and iCloud storage, as a way to generate increased revenue.

Apple has failed to successfully launch social-media services in the past, including an iTunes-focused social network called Ping in 2010. Now as Snapchat and Facebook’s Instagram and Messenger apps grow atop Apple’s iOS mobile operating system, Apple is seeking to create its own features to remain relevant, particularly for younger users.