Hello,
I am attempting to stream videos from Amazon s3 via cloudfront. I have set up the files and everything plays fine in a browser...but I'm having problems getting the video player to play correctly from the product description within Virtuemart. I can play the below video just fine in a browser, on an article, etc. However, when the {mp4remote} tag is inserted into some Javascript, it is not playing correctly from the same URL. It is playing from one that is appended by Virtuemart:
Examples:
Here is the mp4remote code (if you just plug in the URL it plays great and you can stop, jump ahead, etc.:
Here is the javascript to load the video if they fall within a 5 day period but the video that ends up outputting is extremely slow and you can't fast forward or even pause the video and play again...:
As you can see it checks to see if the user falls within 5 days of purchase, then lets them view the file. However, the play buttons appended on the receipt page, play from a virtuemart URL that is displaying the video, but not in a streaming capacity, as you can't pause and restart. It simply won't play the video again...
How can I add the video to play correctly with the following URL in the tags so that is plays smoothly and can be stopped, rewind, etc.?: {mp4remote}s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Paul+Szych+Training+-+Segment+1.mp4{/mp4remote}
The ending URL that Virtuemart is pushing the user to is: stophimfromkillingthem.com/index.php?option=com_virtuemart&view=plugin&name=spiral_download&custom_id=2&dlkey=cF9SY0duaUpaVA==&oid=35
The above just won't do because a user can't pause and restart it. Any help is greatly appreciated.
I am attempting to stream videos from Amazon s3 via cloudfront. I have set up the files and everything plays fine in a browser...but I'm having problems getting the video player to play correctly from the product description within Virtuemart. I can play the below video just fine in a browser, on an article, etc. However, when the {mp4remote} tag is inserted into some Javascript, it is not playing correctly from the same URL. It is playing from one that is appended by Virtuemart:
Examples:
Here is the mp4remote code (if you just plug in the URL it plays great and you can stop, jump ahead, etc.:
{mp4remote}https://s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Paul+Szych+Training+-+Segment+1.mp4{/mp4remote}Here is the javascript to load the video if they fall within a 5 day period but the video that ends up outputting is extremely slow and you can't fast forward or even pause the video and play again...:
if ($results2 != 1) {
?>[[div class="vid-div" style="width: 100%; float: left;"]]{mp4remote}https://s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Segment+1+Intro.mp4{/mp4remote}[[/div]]<?php
} else {
if ($results3 != "C") {
echo("[[div style=\"margin: 12px 0; color: red;\"]]Payment Incomplete[[/div]]");
?>[[div class="vid-div" style="width: 100%; float: left;"]]{mp4remote}https://s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Segment+1+Intro.mp4{/mp4remote}[[/div]]<?php
} else {
if (strtotime("now") > strtotime("+5 days", strtotime($results4))) {
echo ("[[div style=\"margin: 12px 0; color: red; font-size: 8pt;\"]]Your 5 Day Subscription Has Expired. Please Purchase Again to Continue Viewing.[[/div]]");
?>[[script]]jQuery(".addtocart-button").show();[[/script]][[div class="vid-div" style="width: 100%; float: left;"]]{mp4remote}https://s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Segment+1+Intro.mp4{/mp4remote}[[/div]]<?php
} else {
?>[[script]]jQuery(".addtocart-button").hide(); jQuery(".course-preview").hide(); jQuery(".product-price").hide();[[/script]]{mp4remote}https://s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Paul+Szych+Training+-+Segment+1.mp4{/mp4remote}[[script]]jQuery(".avPlayerWrapper").insertBefore(".description-product"); jQuery(".description-product").css({"width": "100%", "padding-top": "24px"}); jQuery(".v-preview").hide(); jQuery(".price").hide();[[/script]]<?phpAs you can see it checks to see if the user falls within 5 days of purchase, then lets them view the file. However, the play buttons appended on the receipt page, play from a virtuemart URL that is displaying the video, but not in a streaming capacity, as you can't pause and restart. It simply won't play the video again...
How can I add the video to play correctly with the following URL in the tags so that is plays smoothly and can be stopped, rewind, etc.?: {mp4remote}s3-us-west-2.amazonaws.com/paul-szych-videos/UPDATED/Paul+Szych+Training+-+Segment+1.mp4{/mp4remote}
The ending URL that Virtuemart is pushing the user to is: stophimfromkillingthem.com/index.php?option=com_virtuemart&view=plugin&name=spiral_download&custom_id=2&dlkey=cF9SY0duaUpaVA==&oid=35
The above just won't do because a user can't pause and restart it. Any help is greatly appreciated.