OpenSourcePhysics / tracker

Video analysis and modeling tool built on the Open Source Physics framework
GNU General Public License v3.0
206 stars 52 forks source link

TrackerJS needs to be able to load videos using URL #46

Closed BobHanson closed 1 year ago

BobHanson commented 1 year ago

solution is two-fold:

1) Add "%26type%3D.mp4" (that is, encoded &type=.mp4) to the j2sargs field so that Tracker identifies this as a video. (Technically, all we need is the "&.mp4" there, because all we are doing is providing the file extension that Tracker needs in order to recognize this as a video file.)

2) Adjust Tracker to check for video first, then trz

https://physlets.org/tracker/trackerJS/?j2sargs=https%3A%2F%2Fwww.compadre.org%2Fosp%2Fdocument%2FServeFile.cfm%3FID%3D10579%26DocID%3D5673%26TrackerSet%3D1%26test%3D.mp4