For my purposes, I need to be able to view video or play audio at the same time as editing text file. For start, I’m trying to write Atom package, that simply creates element, pointing to the local file. I use this code:
atom.workspaceView.appendToBottom("<audio controls id='audio' src='file:////Users/peter/Downloads/Devin_256.mp3' />")
That creates audio element, but I’m unable to start it, because controls are greyed. There is no error in the console, or anywhere else, but audio simply doesn’t play. Google Chrome itself has no problem with this, so I assume Atom somehow limits this?