Unable to get video from the media object in products from the android sdk.

shafayatb
New Member
4 0 0

Hello,

 

My client has a product with a video on it which is viewable from the website. https://www.totencarry.com/collections/tote-carry-in-stock-travel-sets/products/black-apollo-ii-trav...

 

When I am retrieving the same product from the android sdk, the media object in only returning MediaImage Type.

I am using the following query to retrieve the media under a product,

 

.media({ args -> args.first(50) },
{ mediaQuery ->
mediaQuery.edges { mediaEdge ->
mediaEdge
.node { mediaNode ->
mediaNode
.previewImage { prevQue ->
prevQue
.originalSrc()
}
.onExternalVideo { exVideoQuery ->
exVideoQuery
.embeddedUrl()
.previewImage { prevQue ->
prevQue
.originalSrc()
}

}
.onVideo { videoQue ->
videoQue
.previewImage { prevQue ->
prevQue
.originalSrc()
}
.sources { sourceQue ->
sourceQue
.url()
}
}
}
}
})

 

How can I retrieve video in this product? Thanks.

Replies 0 (0)