As a merchant, I would like the ability to post/attach a video in the publish post section, so that it can be included in the post I am making.
Twitter and FB each have different requirements for video uploads. When each social media is selected, the restrictions should be put on the post.
Social Media Restrictions
Twitter: https://dev.twitter.com/rest/media/uploading-media.html
When saving a deferred post, the media will need to be sent to Twitter in chunks. Retry functionality should be built into the API to retry the video if failed.
Facebook: https://developers.facebook.com/docs/graph-api/video-uploads
When saving a deferred post, the Facebook API should provided with a URL for a downloadable video via the file_url parameter instead of uploading the video in chunks.
*More research needed to determine if it's better to upload to MXI API first before uploading to FB. This might be more efficient than for the browser to upload directly to possibly two social media accounts at the same time (since user upload speeds are normally lower than the MXI API bandwidth). This will also eliminate duplicate code for uploading chunks of data in the browser and API, compared to a single service in the API for each social service.