The problem: In a template with an html5 embedded video, the source url is generated with a helper.
If I hard code the helper and have a route without params my video loads. If I add params to the route, the video is not loaded, but the generated source url is correctly generated.
template(name="html5Player")
if Template.subscriptionsReady
video(id="video" controls="controls" preload="auto")
source(type="video/mp4" src="video/{{video.fileName}}")
So if I change the route to
FlowRouter.route('/videoplayer/:videoId'
and use some arbitrary id, the video stops loading. I believe that this is inconsistent behavior, maybe a timing error ? Any idea what to do about this ?
Since you are not using any FlowRouter specific code, it should not re-render. If so, that's an error.
Could you isolate this case into a simple repo, where I can try to run this locally?
The problem: In a template with an html5 embedded video, the source url is generated with a helper. If I hard code the helper and have a route without params my video loads. If I add params to the route, the video is not loaded, but the generated source url is correctly generated.
I have a route like this:
With a hardcoded helper:
a subscription:
And a simple jade template
So if I change the route to
and use some arbitrary id, the video stops loading. I believe that this is inconsistent behavior, maybe a timing error ? Any idea what to do about this ?
For now I use queryParams instead.