GoPro Footage Gives You A Rocket's-Eye View Of Spaceflight (gizmag.com)
Eloking quotes a report from Gizmag: Action cameras have been strapped to dogs, chainsaw-wielding drones and everything in between, but there's a new benchmark for homegrown heroes and their action-cam videos courtesy of UP Aerospace. Having strapped a GoPro HERO 4 to the outside of its SpaceLoft-10 sounding rocket, the company launched it into the thermosphere, gathering some footage that's simply out of this world along the way. The footage is incredible and begs the question: how did they fasten the cameras to a rocket traveling at 3,796 mph? You can watch the footage here on YouTube.
Not floating but falling together on a ballistic trajectory, and since none of the sections have engines running nor any significant aerodynamic drag there's no reason for them to move quickly apart. Plus there are lots of cameras on the vehicle so they will pick up good views, and you're only seeing selected good bits not the many, many minutes of video where the cameras show nothing interesting.
how did they fasten the cameras to a rocket traveling at 3,796 mph?
I'm reasonably certain that they didn't. They attached it to the rocket while it was stationary.