Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getVideoFrameURL is hard-coded to use https://www.webpagetest.org as the domain #34

Closed
rsahlstrom opened this issue Mar 13, 2017 · 6 comments

Comments

@rsahlstrom
Copy link
Contributor

We're using a private instance of webpagetest and not publishing our results publicly. As a result, the images are not pushed up to https://www.webpagetest.org. However, they are published on our private ec2 instance.

Looking at getVideoFrameURL though, it's hard-coded to always try to load the images form webpagetest.org.

return `https://www.webpagetest.org/getfile.php?test=${id}&video=video_1&file=frame_${frame}.jpg`

Is it possible to instead use the value in wptUrl instead as the base URL for getVideoFrameURL?

@eduardoboucas
Copy link
Member

Absolutely. I'll look into this.

@eduardoboucas
Copy link
Member

This is a bit more complex than what I had anticipated. The value for wptUrl is configured in the main configuration file (speedtracker.yml), which is never accessed by the dashboard — it doesn't even know how to locate or read this file.

One possible solution for this would be to move this value to the profile files, which are accessible by the dashboard. This would have the added benefit of allowing different profiles to use different WPT instances, which is a feature that was suggested in the past (ping @iamnmtd).

Would you be against this?

@rsahlstrom
Copy link
Contributor Author

rsahlstrom commented Mar 25, 2017 via email

@eduardoboucas
Copy link
Member

@janiv Could you help me test this?

To see if this works, you'll need to do two things:

  • Update your dashboard: I deployed some changes to my fork of the SpeedTracker dashboard. You can get them by creating a pull request from my fork to yours. You'll also need to add your WPT URL to your profile, as shown here.

  • Request a test using the staging API: I deployed a new version of the API to the staging instance, which lives at dev.speedtracker.org, as opposed to the live one at api.speedtracker.org. You'd need to request a test using this version and it'd need to be done using a GET or POST request and not using the UI at speedtracker.org. You can see how here.

I don't have a private instance to test with so I'd really appreciate if you could lend a hand.

Thanks!

@rsahlstrom
Copy link
Contributor Author

This looked to be working for me. Filmstrip now works great with the private WPT instance in the profile.

@eduardoboucas
Copy link
Member

Thanks for your help. This has been released as part of v1.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants