Jump to content

Recommended Posts

I really didn't want to subscribe to a different forum, so hopefully someone here has a clue.

This looked like the most appropriate forum - as in no other forum looked appropriate ...

 

Following html code:

 

<div style="float: left;">
  <p>Mating Call</p>
  <audio controls="controls">
    <source src="/media/ogg/bullfrog.ogg" type="audio/ogg"/>
    <object type="application/x-java-applet">
      <param name="archive" value="http://theora.org/cortado.jar"/>
      <param name="code" value="com.fluendo.player.Cortado.class"/>
      <param name="url" value="/media/ogg/bullfrog.ogg"/>
      <param name="autoPlay" value="false"/>
      <p>
        <a href="/media/ogg/bullfrog.ogg">bullfrog.ogg</a>
      </p>
    </object>
  </audio>
</div>

 

Works beautifully, uses java cortado player as fallback - BUT asks user to accept sig first.

Solution is to host a local cortado.jar file, so that everything on same server.

However, when I try that, it doesn't work - and there are 404 errors in apache log for /herps/com - so it looks like using a local copy of the jar results in the client looking for stuff other than just the jar file.

 

Other than the archive parameter value, what else do I need to do so that java works with a locally hosted copy of the jar file?

 

It seems every freaking web page that discusses embedding java talks about using applet and/or embed which I just plain am NOT allowed to use, I HAVE to use W3C compliant tags which means object (audio/video/source are only exceptions).

Link to comment
https://forums.phpfreaks.com/topic/165978-embedded-java-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.