@James Can you elaborate on what the issues you were having with Raw HTML and PHP-exec?
@bruno Thanks for the suggestions.
I have gone through all the steps you mentioned. Double-checked. Triple-checked. I also uninstalled S2, reset the former S2 settings with the code mentioned here. I setup a new bucket on S3 and implemented my Cloudfront with private key. Cloudfront shows the distributions accordingly with a status of deployed and state of enabled. My jwplayer files are in the root of the site at /jwplayer/ and I have boxed checked to disable the visual editor when writing along with both Raw HTML and PHP-exec plugins installed and activated with the recommended settings. In addition, I have tried numerous code samples as suggested in the JW Player & RTMP protocol examples AND also tried the S2 Video Shortcodes plugin… and nothing works.
My download restrictions are set to 999999999 for every 1 day.
Even with all these tests, I notice one strange thing and I can’t figure out how to avoid this issue. I’m getting paragraph tags and linebreaks added to the code after submission even though the visual editor is disabled.
When I try the code sample suggested by S2Member, the source looks on the page looks like this…
<div id="jw-container">JW Player® appears here.</div>
<p><script type="text/javascript" src="/jwplayer/jwplayer.js"></script><br />
<script type="text/javascript">
jwplayer("jw-container").setup({modes: /* JW Player®. */
[
/* First try real-time streaming with Flash® player. */
{type: "flash", provider: "rtmp", src: "/jwplayer/player.swf",
config: {streamer: code removed here but looks correct... </p>
<p> /* Else, try an HTML5 video tag. */
{type: "html5", provider: "video",
config: {file: more code removed but looks correct... </p>
<p> /* Else, this is a safe fallback. */
{type: "download", /* Download the file. */
config: {file: "code removed but looks correct... }}
],
/* Set video dimensions. */ width: 480, height: 270
});
</script></p>
Lots of p tags everywhere. Why? I have no idea.
I’m now trying the S2 Video Shortcodes plugin as I seem to get a bit closer but still a couple of p tags.
[s2video html5="true" download="true" downloadkey="true" width="1024" height="768" video="myvideofile.mp4"]
When I go into view the source for the video post it looks something like this…
<div id="videoplayer" class="videoplayer"></div>
<p> <script type="text/javascript" src="http://www.mysite.com/jwplayer/jwplayer.js"></script><br />
<script type="text/javascript">all this code removed but looks good</script><br />
<script type="text/javascript">
if(typeof mp4 === 'object')
{
jwplayer("videoplayer").setup({
modes:[
{type: "flash", provider: "rtmp", src: "http://www.mysite.com/jwplayer/player.swf",
config: {"streamer": mp4['streamer'], "file": mp4['file']}},{type: "html5", provider: "video", config: {"file": mp4['url']}},{type: "download", config: {"file": mp4['url']}},],
"author": "",
"description": "",
"duration": "",
"image": "",
"start": "",
"title": "",
"controlbar": "bottom","width": "1024","height": "768","plugins": ""});
}
else
{
document.write("Sorry, you do NOT have access to this file.");
}
</script></p>
Finally, when I use the code suggested by S2Member, I do get a “JW Player® appears here”. However, when I use the shortcode, I get nothing that displays on the front end.
Anybody got any ideas on what else I can do to troubleshoot?