0

I upload a video to google photo.
I use jwplayer to play video. but I can't seek video.
When I click to seek video, video is replay with start time 00:00.

This is my code

player = jwplayer("apicodes-player");
    player.setup({
        playlist: [
            { sources: [{
                  label: "360p",
                  type: "video/mp4",
                  file: "https://video-downloads.googleusercontent.com/AMfe5wrawK220JrFOrFTfUGIbTtgk_MNzkCa3xGjrNyqCPODbSRcnm8JYAginZRK3VRcEM46ogfCAQzG2n3aly0zn9JQKy0mWx5z1YeNfwsIlUZwh-w_UeTV1xfBiRj6Wt246t5xt1m_lEoL6Ed5W8vptAG4t-3QhG5jqFTdNMJUZWsX8vaBeW_AxM0LGYtihXYZm9r-7aki"
            }]},
        ],
        aspectratio: "16:9",
        startparam: "start",
        primary: "html5",
        ga: {},
        playbackRateControls: true,
        autostart: false,
        preload: "auto"
});

I tried demo with https://www.jwplayer.com/developers/player-event-inspector/ but it doesn't not working with seek and rewind.
Json input test is:

{
    playlist: [{
        sources: [{
            label: "360p",
            type: "video/mp4",
            file: "https://video-downloads.googleusercontent.com/AMfe5wrawK220JrFOrFTfUGIbTtgk_MNzkCa3xGjrNyqCPODbSRcnm8JYAginZRK3VRcEM46ogfCAQzG2n3aly0zn9JQKy0mWx5z1YeNfwsIlUZwh-w_UeTV1xfBiRj6Wt246t5xt1m_lEoL6Ed5W8vptAG4t-3QhG5jqFTdNMJUZWsX8vaBeW_AxM0LGYtihXYZm9r-7aki"
        }]
    }, ],
    "width": "50%",
    "aspectratio": "16:9",
    "autostart": false,
    "controls": true,
    "preload": "metadata",
    "primary": "html5"
}

Please help me.

Huan Ho
  • 145
  • 2
  • 9
  • Perhaps you should be using the "Google Photo API" in some measure somewhere? Likely the link you are using was authenticated but very different script, but your code does not have auth so the Google server rejects the request? Sounds likely. – GetSet Apr 05 '20 at 07:30
  • Video play well. It just doesn't seek or rewind. – Huan Ho Apr 05 '20 at 08:42
  • Have you been able to seek and rewind on local videos in your test environment? – GetSet Apr 05 '20 at 08:47
  • I tested in localhost and real domain. – Huan Ho Apr 05 '20 at 09:24
  • What happens if you just treat it as a HTML5 video without the jwplayer? I suppose that might be a stretch. Have you checked the dev-tools of your test browser to inspect the errors/warnings? – GetSet Apr 05 '20 at 09:28
  • I also tested on https://www.jwplayer.com/developers/player-event-inspector/, but doesn't work with seed and rewind. I just updated post, you can see my demo. – Huan Ho Apr 05 '20 at 10:09
  • I just want to ask how do you get that url of the video? I just found some piracy websites used the same url type and I want to find out how to use that url or find that url *video-downloads.googleusercontent.com* – Sujal Jain Nov 14 '20 at 02:32

1 Answers1

0

I have the same problem. I think this is because the Google Photos server does not support partial content responses. See HTML5 Video Tag in Chrome - Why is currentTime ignored when video downloaded from my webserver? and https://issuetracker.google.com/issues/111931138.

One option would be to download the video from your server and control de streaming yourself.

4lejandrito
  • 182
  • 1
  • 6