Hi @ShopifyDevSup
Here is the mutation:
mutation productCreateMedia($media: [CreateMediaInput!]!, $productId: ID!) {
productCreateMedia(media: $media, productId: $productId) {
media {
alt,
mediaContentType,
status,
id
}
product {
id
handle
}
mediaUserErrors {
code
field
message
}
}
}
Variables
{
“media”: [
{
“originalSource”: “https://storage.googleapis.com/shopify-staged-uploads/tmp/64696615085/files/6a2e0dc2-8ad7-4833-86a7-3aa9ccce42f9/XXXX.mp4”,
“alt”: “”,
“mediaContentType”: “VIDEO”
}
],
“productId”: “gid://shopify/Product/7545977077933”
}
I restarted the all process but now, I cant even play the video that I upload to my store. I’m feeling frustrated. I already spent so many time on this and I cannot understand what is going on 
EDIT:
Let me recap just to be sure.
1st
Use the stagedUploadsCreate mutation witch return the parameters to POST the video to Google.
NOTE: The endpoint must be "https://shopify-staged-uploads.storage.googleapis.com" and not the full resourceUrl
2nd
Upload the video using the information os the first step
3rd
Create the file in Shopify using the fileCreate mutation. The originalSource link must be the resourceUrl of the first step
4th
Associate the video to the product using the productCreateMedia. The originalSouce is the resourceUrl of the first step and the mediaContentType is VIDEO
In the documentation (step 2) you specify that “The original source of the media object. Can be an external URL for images, YouTube videos, and Vimeo videos, or an upload URL for images, videos, and 3D models hosted by Shopify. For assets hosted by Shopify, use the resourceUrl value returned by the stagedUploadsCreate mutation.” just like I said. However, looking for the example, the originalUrl used seems to be the one that is returned after uploading the file to Google. I tried both of them, but none work.
Kyle, can you show me what am I doing wrong and why the video does not play? I tried the resourceUrl, Shopify Url (Content > Files) and the one returned after uploading the file to Google. Thanks in advance!
EDIT2:
On the productCreateMedia mutation, I changed the mediaContentType value form VIDEO to IMAGE and I was able to associate. I went to the product page and the media was processing. After a while it failed (as expected). This proves that the url that I’m providing as the originalSource is correct. Something else is missing or may not be working on the API