Videos in table


I’ve tried to use table_beta with both animated images (gif) and videos (mp4). See code below.

In both cases I noticed the size of the cells is slightly different: bigger for first column.

Gifs work quite well, they start all automatically at the same time, but videos (mp4) only work with manual control. Do you think it would be possible to add an argument for control/autoplay (as in HTML)?

Here is the code

for i, t in enumerate(selected_trials):
    c = i % num_cols
    if c == 0:
        cols = st.beta_columns(num_cols)
    cols[c].write(f'Trial {t}')
    # cols[c].image(os.path.join(base_dir, f'camera_rgb_{t}.gif') )
    cols[c].video(os.path.join(base_dir, f'camera_rgb_{t}.mp4') )