4

jquery mobile - CFML - reading swf on ipod

 2 years ago
source link: https://www.codesd.com/item/jquery-mobile-cfml-reading-swf-on-ipod.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

jquery mobile - CFML - reading swf on ipod

advertisements

I'm new to this, so bare with me. I have a jquery mobile page that plays the swf file in Firefox. But I need it to play on an iphone, etc. I researched using jplayer but don't understand it. The only thing I get on the iphone is a banner with the file name. The url is; http://devm.jobsintax.com/main/login and log in as Jason/Jason123

Click on "A Day In The Life". Click on "Play Audio".

The current code uses player.swf and works in Firefox.

<cfset request.layout = false />
<cfparam name="rc.soundFile" default="" />
<cfparam name="rc.titles" default="" />
<script language="JavaScript" src="/assets/audio/audio-player.js"></script>
<script language="JavaScript" src="/assets/audio/jquery.jplayer.min.js"></script>
<script>

    /* $("#jpId").jPlayer( {
        swfPath: "/assets/audio"
    }); */

</script>
<cfoutput>
    <h2>#rc.titles#</h2>
    <object type="application/x-shockwave-flash" data="/assets/audio/player.swf" id="audioplayer1" height="24" width="200">
        <param name="movie" value="/assets/audio/player.swf">
        <param name="FlashVars" value="playerID=audioplayer1&soundFile=#rc.soundFile#&titles=#rc.titles#&bg=00447b&leftbg=00447b&lefticon=FFFFFF&rightbg=00447b&righticon=FFFFFF&width=890&animation=no&remaining=yes&autostart=yes">
        <param name="quality" value="high">
        <param name="menu" value="false">
        <param name="wmode" value="transparent">
    </object>
</cfoutput>


As stated you cannot play SWF or FLV files on any iOS device because they don't support Flash. You can however use a player like JPlayer or FlowPlayer or JWPlayer to help you use fallbacks (if the user can't view a FLV file then a HTML5 video can be used, or the other-way-around).

You can convert FLV files to OGG and WEBM for free with tons of tools, I like this one (it's a addon for Firefox): http://firefogg.org/

Here is a great resource for finding tools to help encode media in HTML5 compliant formats: http://www.webmproject.org/tools/


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK