I have watched this scene 50 times and I am still amazed at Cagney’s flawless technique
https://www.youtube.com/watch?v=xlvB4xk4LNQ
Anyways, I forwarded him the link to the OP's video via email and he responded saying to check out The Gallant Hours... as it reminds him of his time in the USN.
I distinctively remember seeing this movie with him on TCM, as I recall noting the Fleet Admiral Flag flying at the beginning of the film, and that at the end of the film that flag the one passed to him as he is Piped Ashore.