public VideoPlayer update(AjaxRequestTarget target, FlvRecording r) {
boolean videoExists = r != null && getMp4Recording(r.getFileHash()).exists();
if (videoExists) {
PageParameters pp = new PageParameters().add("id", r.getFlvRecordingId());
playerModel.setObject(Arrays.asList(
new MediaSource("" + getRequestCycle().urlFor(mp4res, pp), "video/mp4")
, new MediaSource("" + getRequestCycle().urlFor(oggres, pp), "video/ogg")));
player.recId = r.getFlvRecordingId();
}
container.setVisible(videoExists);
if (target != null) {
target.add(container);