Add the following code before</head>: <script src=" http://apps.bdimg.com/libs/ jquery /1.7.1/jquery.min.js" type="text/ javascript "></script> <script type="text/javascript"> $(document).ready(function(){ $(".playbox").each(function() { var playsrc = $(this).attr('data-u'); var playwidth = $(this).attr('data-w'); var playheight = $(this).attr('data-h'); if ((navigator.userAgent.match(/(iPhone|iPod|Android|ios|iOS|iPad|Backerry|WebOS|Symbian|Windows Phone|Phone)/i))) { $(this).html('<video width="'+playwidth+'" height="'+playheight+'" src="'+playsrc+'" controls></video>'); }else{ $(this).html('<embed wmode="transparent" width="'+playwidth+'" height="'+playheight+'" src=" https://lanye.org/demo/Lyplayer.swf?path= '+playsrc+'&type=flv&fullscreen=true&autoplay=false&backcolor=99ff33& frontcolor=ffffff" type="application/x-shockwave-flash" quality="high" allowfullscreen="true">'); } }) }) </script> Add the following code to the content: data-u is the music video address, data-w is the player width, and data-h is the player height. <div class="playbox" data-u="music or video address" data-w="width" data-h="height"></div>