The research areas of tissue engineering and drug development have displayed increased interest in organ-on-a-chip studies, in which physiologically or pathologically relevant tissues can be engineered to test pharmaceutical candidates. Microfluidic technologies enable the control of the cellular microenvironment for these applications through the topography, size, and elastic properties of the microscale cell culture environment, while delivering nutrients and chemical cues to the cells through continuous media perfusion. Traditional materials used in the fabrication of microfluidic devices, such as poly(dimethylsiloxane) (PDMS), offer high fidelity and high feature resolution, but do not facilitate cell attachment. To overcome this challenge, we have developed a method for coating microfluidic channels inside a closed PDMS device with a cell-compatible hydrogel layer. We have synthesized photocrosslinkable gelatin and tropoelastin-based hydrogel solutions that were used to coat the surfaces under continuous flow inside 50 μm wide, straight microfluidic channels to generate a hydrogel layer on the channel walls. Our observation of primary cardiomyocytes seeded on these hydrogel layers showed preferred attachment as well as higher spontaneous beating rates on tropoelastin coatings compared to gelatin. In addition, cellular attachment, alignment and beating were stronger on 5% (w/v) than on 10% (w/v) hydrogel-coated channels. Our results demonstrate that cardiomyocytes respond favorably to the elastic, soft tropoelastin culture substrates, indicating that tropoelastin-based hydrogels may be a suitable coating choice for some organ-on-a-chip applications. We anticipate that the proposed hydrogel coating method and tropoelastin as a cell culture substrate may be useful for the generation of elastic tissues, e.g. blood vessels, using microfluidic approaches.