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.
Page 4 of 50 FirstFirst ... 2345614 ... LastLast
Results 46 to 60 of 742
  1. #46
    New Coder
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the help .Sorry for request a spoonfeed query.I had been quite bad in javas and text aligning.it took me sometime to figure how to align the player and browse button so as the play button to the right side.

  2. #47
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I was hoping someone could answer my question.

    I'm embedding a media player in a simple web page, which I sucessfully completed, but I'm curious if there is a solution to a couple of problems.

    First problem, when I acess the page with the embedded media player using IE, the browser will block active X or I get "this page contains both secure or non-secure items". All my photos and vids linked to this page are on the same server. I know its the media player causeing IE to block since I've removed the player and did not get that block.

    Any idea how to stop IE from blocking.

    Second problem may be related to the first. When I try to access the page with FireFox the mediaplayer doesnt even show up.

    I'm using Frontpage 2003, and inserting the player with the component add-in button.

  3. #48
    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
    The alert should stop when you upload your page onto the internet. Please try this code, it uses the embed tag, but its the only way that I know is supported in FF and IE, I can use the object tag using a different mime type but this isn't supported in IE
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script type="text/javascript"><!--
    function song(){
    document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('cancion').value+"' name='MediaPlayer1' width='300' height='75' controltype='2' showcontrols='1' showstatusbar='1' AutoStart='true'></embed>";
    }
    //-->
    </script>
    </head>
    <div id="jukebox">JUKEBOX<br><br>
    <select  id="cancion" onchange="song()" size="1"> 
       <option value="none">::::::::::::: Choose Your Song Here :::::::::::::</option>
       <option value="http://urltosong1playlist.m3u">Playlist 1</option>
       <option value="http://urltosong2playlist.m3u">Playlist 2</option>
       <option value="http://urltosong3playlist.m3u">Playlist 3</option>
       <option value="http://urltosong4playlist.m3u">Playlist 4</option>
       <option value="http://urltosong5playlist.m3u">Playlist 5</option>	
    </select><br> 
    <span id="music1"><embed type="application/x-mplayer2" id="music1"
    pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" 
    src="" 
    name="MediaPlayer1" 
    width="300"
    height="70"
    controltype="2" 
    showcontrols="1"
    showstatusbar="1"
    AutoStart="0">
    </embed></span>
    </div>
    </body>
    </html>
    change the option values to whatever media type you wish.

  4. #49
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks so much for the reply. One problem though. That snippet of code is for an audio player. Do you have a code snippet for the entire media player? I'm looking to show a video clip of game play.

    Thanks again for your reply.

  5. #50
    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
    Adjust the height of the embed tag to adjust for the video size.

  6. #51
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Your code works great in IE, and I now can see the player in Firefox. But, when Firefox attempts to open the file a Media Player dialog pops up with this error "The file you are attempting to play has an extension that does not match the file format. Playing the file may result in unexpected behavior". Then the file cant be played.

    I'm trying to stream a .wmv file, and I'm wondering if a different file format is better.

    Any suggestions?

    Thanks.

    P.S. Sorry for being such a noob.

  7. #52
    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
    hmm was it orginally a wmv file? or did you just change the file extension? Can you post a link?

  8. #53
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Below is the link to my web page. I dont think the file was changed. Though when I video edited the file, i was compressed a bit more, though the file type remained.

    I cant stand these multiple browsers, un-uniformity is setting back the internet rather than going forward. I could see how web devs must get frustrated when these new browsers pop up.
    Last edited by kippekai; 04-24-2005 at 02:03 AM.

  9. #54
    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
    Okay I want to say its the codec that was used to encode the video once you compressed it. Firefox I believe is unable to read the video because of the codecs that its able to understand and the one you used might not be one of them.

  10. #55
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks. I'll try a differnt file format in its native form and post back with the results.

  11. #56
    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
    Okay cool, but something I did discovered was that the video did play but only when a form was used to play it. When it played the video seemed to play at a very large resolution. Check it out for yourself here

  12. #57
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OK, so I went round and round a bit trying to find out why my embedded streams dont work in Firefox. Apparently it appears to be server related issues.

    My files are stored on a Comcast.net personal account server. When I brought this issue up in a comcast forum, I was told the server is not secure, and NOT to use HTTPS as a URL, but use HTTP instead.

    So I experimented. Using HTTP works fine in Firefox, but crasshes or becomes unstable in Internet Explorer. Now I'm no code master, so I figured maybe theres a way to get IE to use HTTPS url and Firefox to use HTTP. So I tried the embed generator and its code produces a cross browser function that appears to work.

    In the OBJECT url I used HTTPS...In the EMBED url I used HTTP. Example code shown below.This appears to work, though I have no clue why.

    Only one problem left. The OBJECT tags seem to generate a "This page contains both secure and non secure items" warning when vieing with Internet Explorer, which is something I would like to get rid of.

    Any suggestions.

    EXAMPLE CODE:

    <OBJECT id='mediaPlayer' width="370" height="350"
    classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
    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='fileName' value="https://your path">
    <param name='animationatStart' value='true'>
    <param name='transparentatStart' value='false'>
    <param name='autoStart' value="false">
    <param name='showControls' value="true">
    <param name='loop' value="false">
    <PARAM NAME="windowlessVideo" VALUE="true">
    <EMBED type='application/x-mplayer2'
    pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
    bgcolor='darkblue' showcontrols="true" showtracker='-1'
    showdisplay="0" showstatusbar='-1' videoborder3d='-1' width="370" height="350"
    src="http//:your path" autostart="0" designtimesp='5311' loop="false">
    </EMBED>
    </OBJECT>

  13. #58
    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
    Are you testing your page offline or online? I've told you this already once you upload your page to your server you wont get that warning message. The message happens on systems with SP2 only locally though. If I had known that you were only displaying one video, then I would have told you about the generator a while back.
    Last edited by _Aerospace_Eng_; 04-22-2005 at 07:10 AM.

  14. #59
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I always upload prior testing, heres the link.



    I'm wondering if the warning goes away after it been upoladed for an hour or so.
    Last edited by kippekai; 04-24-2005 at 02:04 AM.

  15. #60
    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
    Oh that warning, only way to prevent that is to not use https the user can set this site to a site that bypasses the alert but nothing you can do about except from what i've told you already which was to not use https.


 
Page 4 of 50 FirstFirst ... 2345614 ... LastLast

Posting Permissions

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