  The Planck constant ($\hbar$) plays a pivotal role in quantum physics.
Historically, it has been proposed as postulate, part of a genius empirical
relationship $E=\hbar \omega$ in order to explain the intensity spectrum of the
blackbody radiation for which classical electrodynamic theory led to an
unacceptable prediction: The ultraviolet catastrophe. While the usefulness of
the Planck constant in various fields of physics is undisputed, its derivation
(or lack of) remains unsatisfactory from a fundamental point of view. In this
paper, the analysis of the blackbody problem is performed with a series
expansion of the electromagnetic field in terms of TE, TM modes in a metallic
cavity with small losses, that leads to developing the electromagnetic fields
in a \textit{complete set of orthonormal functions}. This expansion, based on
coupled power theory, maintains both space and time together enabling modeling
of the blackbody's evolution toward equilibrium. Reaching equilibrium with a
multimodal waveguide analysis brings into consideration the coupling between
modes in addition to absorption and emission of radiation. The properties of
the modes, such as spectral broadening, losses and lifetime, then progressively
become independent of frequency and explains how equilibrium is allowed in good
conductor metallic cavities. Based on the free electron relaxation time in
gold, a value of $\hbar = 1.02 \times 10^{-34}$ J$\cdot$s for the reduced
Planck constant is found and the uncertainty principle is also emerging from
this \textit{a priori} classical study. The Planck constant is then obtained no
longer as an ad hoc addition but as a natural consequence of the analysis
taking boundary conditions into account as into optical resonators. That
analysis based on finite-spacetime paradigm, also shine new light on the notion
of decoherence in classical optics and electrodynamics.
