HTML5 MP3 Player with Playlist
  • Home
  • About Us
    • Developers
    • Testimonials
  • FAQ
  • Pricing
    • Cart
    • Shop
    • My Account
    • Track Order
  • Products
    • HTML5 Video Player with Playlist
    • Pay Per Plugin for HTML5 Media
    • HTML5 MP3 Radio FM Stream
    • HTML5 MP3 WordPress Plugins
      • Vertical Playlist
      • Horizontal Playlist
      • Downloadable Playlist Option
    • HTML5 MP3 Joomla Plugin
    • Footer Stick HTML5 Playlist
    • Karaoke – HTML5 MP3 Player with Lyrics
    • HTML5 MP3 Player for Feedburner Podcast
    • Jinzora HTML5 MP3 Popup Player
  • Portfolio
    • Get Widget
    • Shortcodes
    • HTML5 MP3 Player on Facebook Page
    • iOS, iPhone and iPad Support
    • Android Compatible
  • Contact Us

How to make player code validate on W3C?



W3C will throw error for iframes, so you need to use object tags in place of iframe tags.

<?php

if($matches[1][0]==”full”)
{
$replace = ‘<object data=”http://html5.svnlabs.com/html5full.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”606″ height=”230″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 606px; height: 230px;”></object>’;
}
else if($matches[1][0]==”big”)
{
$replace = ‘<object data=”http://html5.svnlabs.com/html5big.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”386″ height=”434″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 386px; height: 434px;”></object>’;
}
else
{
$replace = ‘<object data=”http://html5.svnlabs.com/html5small.php?id=’.$matches[2][0].’&bg=f6f6f6″ type=”text/html” width=”386″ height=”230″ style=”border: medium none; background-color:#f6f6f6; overflow:hidden; width: 386px; height: 230px;”></object>’;
}

if($matches[1][0]==”full”)
{
$replace = ‘<iframe src=”http://html5.svnlabs.com/html5full.php?id=’.$matches[2][0].’” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”566″ height=”207″></iframe>’;
}
else if($matches[1][0]==”big”)
{
$replace = ‘<iframe src=”http://html5.svnlabs.com/html5big.php?id=’.$matches[2][0].’” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”347″ height=”414″></iframe>’;
}
else
{
$replace = ‘<iframe src=”http://html5.svnlabs.com/html5small.php?id=’.$matches[2][0].’” frameborder=”0″ marginheight=”0″ marginwidth=”0″ scrolling=”no” width=”347″ height=”207″></iframe>’;
}

?>

Posted in: HTML5, Joomla, WordPress

 

Categories:

  • Basic Website
  • iOS

View more:

  • Shortcodes
  • HTML5 MP3 Joomla Plugin
  • Portfolio

What we do

  • Interactive Technology
  • Online Marketing
  • Website Design
  • Radio Server
  • E-Learning

Who We Are

  • About us
  • Other Services
  • Vision that drives us
  • Terms & Conditions

Featured work

  • Mobile Web App
  • Footer Stick Player
  • Radio FM Gallery
  • Wordpress Plugin
  • Joomla Plugin
  • Red5 Plugin

From our Blog

  • Pay Per Listen for Joomla
  • Remote Secure Token
  • iPad compatible scrollable playlist
  • Record Audio from Websites
  • SHOUTCast Radio Stream
  • AWS CloudFront with PHP
  • Live Broadcast in Joomla
Twitter Facebook Flickr RSS Feed

© 2012 SVN Labs Softwares