Jump to content

HTML5 audio player in short description?


Recommended Posts

Hi there,

 

I'm trying to implement an audio player http://mediaelementjs.com/ in the short description but no success!

 

I removed the restriction striptag / truncate on the field already.

 

when inserting the <script> I always get the following error: The short_description field (English (United Kingdom)) is invalid.

 

What's the way around that?

 

Cheers

 

J

Link to comment
Share on other sites

I'd like to use the following from mediaelement

<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>HTML5 MediaElement</title>	
	
	<script src="../build/jquery.js"></script>	
	<script src="../build/mediaelement-and-player.min.js"></script>
	<script src="testforfiles.js"></script>	
	<link rel="stylesheet" href="../build/mediaelementplayer.min.css" />
</head>
<body>

<audio id="player2" src="../media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls">		
</audio>	

<script>
$('audio,video').mediaelementplayer();
</script>

</body>
</html>


with the <head> in the header.tpl file, I guess that's the right place for that?

 

and the following in the short description:

<audio id="player2" src="../media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls">		
</audio>	

<script>
$('audio,video').mediaelementplayer();
</script>

all of it correctly linked to files on my server, this is mediaelement sample code.

 

much appreciate your help!

 

 

 

 

Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
×
×
  • Create New...