latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

htaccess – iOS JW Player MP4 stream

Home Forums Community Forum htaccess – iOS JW Player MP4 stream

This topic contains 30 replies, has 6 voices. Last updated by  Bendix 4 years, 10 months ago.

Page 2 Of Topic Replies

Viewing 5 replies - 26 through 30 (of 30 total)
Author Replies
Author Replies
Posted: Friday Mar 2nd, 2012 at 7:09 am #7053
Bendix
Username: benchefe

thank you very much for your help.
All videos are working on my iPhone. My files are stored local on my server (s2member-files directory).
Amazon was not working for me :(
I will try to use the code you are using and report as soon as tested.

Posted: Friday Mar 2nd, 2012 at 7:13 am #7054
DrByte
Username: DrByte

here’s what i am using on the second site using s2member file Directory

you can use the shortcode..just remove the /*

<div id="jw-container">JW Player® appears here.</div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
    jwplayer("jw-container").setup({modes: /* JW Player®. */
    [
        /* First try psuedo-streaming with Flash® player. */
        {type: "flash", provider: "http", src: "/jwplayer/player.swf",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    
        /* Else, try an HTML5 video tag. */
        {type: "html5", provider: "video",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    
        /* Else, this is a safe fallback. */
        {type: "download", /* Download the file. */
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/transformers3_iphone.mp4"}}
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="transformers3_iphone.mp4" /] */
    ],
    /* Set video dimensions. */ width: 480, height: 270
    });
</script>
  • This reply was modified 4 years, 10 months ago by  DrByte.
Posted: Friday Mar 2nd, 2012 at 7:29 am #7057
Bendix
Username: benchefe

When using this code, modified for my video, just the text of the jw-container div is displayed.

[s2If current_user_can(access_s2member_ccap_v1)]<div id="jw-container">JW Player® appears here.</div>
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<script type="text/javascript">
    jwplayer("jw-container").setup({modes: /* JW Player®. */
    [
        /* First try psuedo-streaming with Flash® player. */
        {type: "flash", provider: "http", src: "/jwplayer/player.swf",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/access_s2member_ccap_v1/testvideo.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="testvideo.mp4" /] */
    
        /* Else, try an HTML5 video tag. */
        {type: "html5", provider: "video",
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/access_s2member_ccap_v1/testvideo.mp4"}},
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="testvideo.mp4" /] */
    
        /* Else, this is a safe fallback. */
        {type: "download", /* Download the file. */
            config: {file: "/wp-content/plugins/s2member-files/s2member-file-inline/access_s2member_ccap_v1/testvideo.mp4"}}
            /* Shortcode equivalent: [s2File rewrite="yes" inline="yes" download="testvideo.mp4" /] */
    ],
    /* Set video dimensions. */ width: 600, height: 430
    });
</script>
[/s2If]

I also tried without s2if conditions… but the same…

Posted: Friday Mar 2nd, 2012 at 7:34 am #7058
DrByte
Username: DrByte

Try the the full url like http://www.site.com/jwplayer/jwplayer.js
&
http://www.site.com/jwplayer/player.swf

Also make sure the video name is correct

Also you have mp4 in at the s2/member inline box

Sam

Posted: Friday Mar 2nd, 2012 at 12:18 pm #7083
Bendix
Username: benchefe

I tried… but still the div text displayed….
hmm
I will try on a clean fresh wordpress installation…

Viewing 5 replies - 26 through 30 (of 30 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.