Using the Google Photos API, I'd like to play a video using the <video>...</video>
html tag. I tried using the baseUrl
, but the video does not play as the baseUrl
is just an image.
Here is a sample mediaItem
:
{
"id": "AGj1epULNh3net3nkDb1kIh3...",
"productUrl": "https://photos.google.com/lr/photo/some-long-url",
"baseUrl": "https://lh3.googleusercontent.com/lr/some-really-long-url",
"mediaMetadata": {
"creationTime": "2017-08-13T22:09:48Z",
"width": "1920",
"height": "1080",
"video": {
"cameraMake": "Apple",
"cameraModel": "iPhone SE",
"fps": 29.978708303761533,
"status": "READY"
}
},
"filename": "IMG_2281.MOV"
},
I feel like that last part, filename
, has to be an important part of it. I tried appending it to the baseUrl
but returns a 404.