Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    embading WMP in web

    Hi Team,

    I have embedded WMP 400 * 400 size in my web but the video is not covering the entire 400 * 400 it is showing like cinema scope. How to make it fit to my 400 * 400 screen size?

    script taken from Aero_eng and got it modifed:

    <script type="text/javascript">
    function PlayIt(what)
    {
    document.getElementById('music').innerHTML='<object width="400" height="400" '
    +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
    +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
    +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
    +'<param name="url" value="'+what+'">'
    +'<param name="uiMode" value="full">'
    +'<param name="autoStart" value="true">'
    +'<param name="EnableContextMenu" value="false">'
    +'<param name="stretchToFit" value="true">'
    +'<param name="showstatusbar" value="false">'
    +'<param name="playCount" value="9999">'
    +'<embed type="application/x-mplayer2" '
    +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
    +'showcontrols="false" enablecontextmenu="false" stretchToFit="true" uimode="full" width="400" height="400" '
    +'src="'+what+'" autostart="1" playcount="9999">'
    +'</object>';


    even added this param did not solve my issue
    +'<param name="stretchToFit" value="true">'


    Please assist me how to solve this issue?

    -Karthik

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Does it work properly in IE? How about FF?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Aero the Great,

    yes it works in both the browser, but the thing is different video is coming in different size.

    I want all the video to fit my 400*400 wmp embeded in my site.

    www.joetv.co.cc

    please check this and give me a solution to this issue.

    Thanks in advance

    -Karthik

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Can you post the code to one of your m3u files? m3u files are meant to play only mp3's.

    I can't get any of your m3us to play in FF3.0.10
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New to the CF scene
    Join Date
    May 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Aero the Great,

    The m3u doing wonders for me and works fine and I do not see any issues in my website.

    The code which runs video as well as audio using m3u. I have checked with both the browser and it works like a charm.

    I have to give the credits to your code which has saved me to play music and video using only one page instead of writing multiple page for each channels in my site.

    Hats of buddy


    code sample.
    -------------
    <script type="text/javascript">
    function PlayIt(what)
    {
    document.getElementById('music').innerHTML='<object width="400" height="400" '
    +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
    +'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" '
    +'standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">'
    +'<param name="url" value="'+what+'">'
    +'<param name="uiMode" value="full">'
    +'<param name="autoStart" value="true">'
    +'<param name="EnableContextMenu" value="false">'
    +'<param name="stretchToFit" value="true">'
    +'<param name="showstatusbar" value="false">'
    +'<param name="playCount" value="9999">'
    +'<embed type="application/x-mplayer2" '
    +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
    +'showcontrols="false" enablecontextmenu="false" stretchToFit="true" uimode="full" width="400" height="400" '
    +'src="'+what+'" autostart="1" playcount="9999">'
    +'</object>';
    return false;
    }
    window.onload = function()
    {
    PlayIt('null.m3u');
    }
    </script>
    <style type="text/css">
    #playercontain {
    width:300;
    margin:auto;
    text-align:center;
    }
    #music {
    width:300;
    margin:auto;
    }

    </style>


    <td width="50%" valign="top" align="center" border="1">
    <center><h4> JoeTV FREE IPTV CHANNELS </h4></center>
    <div id="playercontain">
    <div id="music">&nbsp;</div>
    <div class="channelmenu">
    <table border="0">
    <tr >
    <td ><a href ="http://www.joetv.co.cc/ktv.m3u" onclick="return PlayIt(this.href);"><b>K TV</font></a></b></td>

    <td ><a href ="http://www.joetv.co.cc/kalaigartv.m3u" onclick="return PlayIt(this.href);"><b>Kalaigar TV</b></td>
    <td ><a href ="http://www.joetv.co.cc/thendraltv.m3u" onclick="return PlayIt(this.href);"><b>Thendral TV</b></td>
    <td><a href ="http://www.joetv.co.cc/shyamtv.m3u" onclick="return PlayIt(this.href);"><b>Shyam TV</font></a></b></td>
    </tr>
    <tr>
    <td><a href ="http://www.joetv.co.cc/vijaytv.m3u" onclick="return PlayIt(this.href);"><b>Vijay TV</font></a></b></td>
    <td><a href ="http://www.joetv.co.cc/sonytv.m3u" onclick="return PlayIt(this.href);"><b>Sony TV<b></td>
    <td><a href ="http://www.joetv.co.cc/ibncnntv.m3u" onclick="return PlayIt(this.href);"><b>Ibn cnn TV</font></b></td>
    <td><a href ="http://www.joetv.co.cc/cnbctv.m3u" onclick="return PlayIt(this.href);"><b>Cnbc TV</font></b></td>
    </tr>

    <tr>
    <td><a href ="http://www.joetv.co.cc/espntv.m3u" onclick="return PlayIt(this.href);"><b>Espn TV</font></b></td>
    <td><a href ="http://www.joetv.co.cc/mtv.m3u" onclick="return PlayIt(this.href);"><b>M TV India</font> </b></td>
    <td><a href ="http://www.joetv.co.cc/kisstv.m3u" onclick="return PlayIt(this.href);"><b>Kiss Music</font> </b></td>
    <td><a href ="http://www.joetv.co.cc/yupptv.m3u" onclick="return PlayIt(this.href);"><b>Yupp Music</font> </b></td>
    </tr>
    </table>
    </br>
    <center><h4> JoeTV FREE IP RADIO</h4></center>

    <table border="0">
    <tr >
    <td><a href ="http://www.joetv.co.cc/issaifm.m3u" onclick="return PlayIt(this.href);"><b>Issai FM</font></a></b></td>
    <td><a href ="http://www.joetv.co.cc/nilafm.m3u" onclick="return PlayIt(this.href);"><b>Nila FM</b></td>
    <td><a href ="http://www.joetv.co.cc/shyamfm.m3u" onclick="return PlayIt(this.href);"><b>Shyam FM</b></td>
    <td><a href ="http://www.joetv.co.cc/gokulnathfm.m3u" onclick="return PlayIt(this.href);"><b>Gokulnath FM</a></b></td>
    <td><a href ="http://www.joetv.co.cc/firstfm.m3u" onclick="return PlayIt(this.href);"><b>First Radio</a></b></td>
    </tr>
    <tr>
    <td><a href ="http://www.joetv.co.cc/minnalfm.m3u" onclick="return PlayIt(this.href);"><b>Minnal FM</a></b></td>
    <td><a href ="http://www.joetv.co.cc/tamilflash.m3u" onclick="return PlayIt(this.href);"><b>Tamil Flash</a></b></td>

    <td><a href ="http://www.joetv.co.cc/numradio.m3u" onclick="return PlayIt(this.href);"><b>Num Radio<b></td>
    <td><a href ="http://www.joetv.co.cc/mudhalfm.m3u" onclick="return PlayIt(this.href);"><b>Mudhal FM<b></td>
    </tr>
    </div>
    </div>
    </table>
    </div>


    You can check index page source for more info.

    thanks in advance

    -Karthik

  • #6
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    may be it worked in IE but not in FF or Safari.

  • #7
    New Coder
    Join Date
    Jul 2009
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I am having a problem getting the embedded player to play on the live website. Videos play fine on my computer when I view in a browser but don't play when the page is published. I have looked for several days in these forums for an answer to this problem and have not had any luck. So I have come to ask for help...I hope it is not bad etiquette to piggy-back on another person's post. There are two pages currently that have my videos on them. One which was built with a table and one built with DIVs and CSS (preferred). Can someone please look at my two pages and tell me why I can't get the video to play. Currently only the Christmas and Valentines Day videos are uploaded to the website.

    http://www.thefamily-saunders.com/videos.htm
    http://www.thefamily-saunders.com/Video_test.htm

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    What you have will only work in Internet Explorer. You need to read up more on the embedded media player thread for updated code that works cross browser.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    New Coder
    Join Date
    Jul 2009
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    IE vs other browsers

    Thank you for responding to my question. I will look into cross-browser compatability when I have a bit of time. I am currently deployed to Iraq and built the website to help pass the time. The reason that I only went with IE is because that is the only browser that my family and extended family uses. But another question: did either of the videos play for you? Because neither one will play for me when I view it on the live website. Thanks again for the response.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •