Video Content
Support for videos up to 15 minutes and 2GB file size
Multiple Formats
Support for 3gp, avi, f4v, flv, m4v, mov, mp4, ogv, 3g2, wmv, vob, webm, mkv
Overview
Clip posts enable sharing of video content with rich features:- Video Duration: Up to 15 minutes of video content
- Rich Captions: Text descriptions with mentions and hashtags
- Interactive Features: Users can react and comment on clips
- Metadata Support: Custom data for enhanced functionality
Requirement | Limit | Notes |
---|---|---|
File Size | Up to 2GB per clip | Maximum supported file size |
Duration | Maximum 15 minutes | Per single clip |
File Formats | 3gp, avi, f4v, flv, m4v, mov, mp4, ogv, 3g2, wmv, vob, webm, mkv | Multiple format support |
Clips must be uploaded first before creating the post. Prior to creating a
clip post, upload the video clip to obtain the clip data that will be used in
post creation.
1
Upload Clip
Use the File Repository to upload your video clip and get file ID
2
Create Post
Use the file ID in your clip post creation request
3
Handle Response
Process the response and handle any errors
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
text | String | ✅ | Text content of the post (max 20,000 characters) |
clip | Object | ✅ | Clip data obtained from upload process |
targetType | Enum | ✅ | Target type (user or community ) |
targetId | String | ✅ | Target ID (user id or community id) |
metadata | Object | ❌ | Additional properties for custom fields or mentions |
Best Practices
Video Optimization
Video Optimization
- Compress videos before upload to reduce file size - Use appropriate resolution for target platform - Optimize for mobile viewing experience - Implement progress indicators for uploads
User Experience
User Experience
- Show video preview before posting - Provide video editing capabilities - Handle upload failures gracefully with retry options - Implement smooth playback experience
Performance
Performance
- Preload video thumbnails - Cache uploaded clips to avoid re-uploads - Implement lazy loading for video content - Use appropriate video loading libraries
Troubleshooting
Video Upload Failures
Video Upload Failures
Problem: Clips fail to upload or post creation failsSolutions:
- Check file size (must be under 2GB)
- Verify supported format (3gp, avi, f4v, flv, m4v, mov, mp4, ogv, 3g2, wmv, vob, webm, mkv)
- Ensure clip duration is under 15 minutes
- Ensure stable internet connection
- Implement retry logic with exponential backoff
Playback Issues
Playback Issues
Problem: Videos don’t play or have poor qualitySolutions:
- Use supported video codecs
- Optimize video compression settings
- Implement proper video player configuration
- Test on different devices and network conditions
Performance Issues
Performance Issues
Problem: App becomes slow or crashes with video contentSolutions:
- Implement video compression before upload
- Use video loading libraries with memory management
- Optimize video resolution and bitrate
- Clear video cache periodically
Clip Format: Clips are optimized for short-form video content and provide
enhanced engagement features compared to regular video posts.
Common Use Cases
- Social Moments: Share engaging video moments up to 15 minutes
- Product Demos: Detailed product demonstrations and features
- Tutorials: Comprehensive how-to videos and educational content
- Entertainment: Creative video content and storytelling
- Behind-the-Scenes: Extended glimpses into processes or events
- Presentations: Video presentations and announcements