I’ve been wanting to write about this topic for a long time.

Some of our users are asking how to stream with MP4 files. Personally, I cannot recommend using stream with MP4 files. Because MP4 streaming is not a cost-effective solution. As everyone knows that, most of the concern is Data Transfer prices for AWS.

Here are the MP4 streaming concern details:

1- If clients have huge network capacity, consumes a lot of bandwidth from the server. If server bandwidth capacity doesn’t enough, it can cause a bandwidth bottleneck.

2- The client can consume a lot of stream data without a watch. …

I worked for 1 day to solve this problem. This issue encounter in the WordPress system. Here is the use-case:

We have a zip file and we want to downloadable links for users. I see a lot of examples and tried many of them. But I couldn’t solve this issue. I wanted to write this solution for people like me.

Here is the solution:

$fileName = “download.zip”;
$filePath = “/home/antmedia.io/public_html/wp-content/uploads/” . $fileName;
header(‘Pragma: public’);
header(“Cache-Control: must-revalidate, post-check=0, pre-check=0”);
header(“Expires: 0”);
header(“Content-Type: application/zip”);
header(“Content-Disposition:attachment; filename={$fileName}”);
header(“Content-Type: application/force-download”);
header(“Content-Transfer-Encoding: binary”);
while (ob_get_level()) {


I hope, it works for you :)

Hi guys,

If you faced “Error: package javafx.geometry does not exist” error and if you couldn’t find any solution, you’re right there :))

I spent hours on this problem. I am writing this article so that no one does not spend hours with this problem.

The default openjfx package on Ubuntu 18.04 is not compatible with OpenJDK 8. You may use the older version of the openjfx package. Please note that it’s not a fully secure solution because you won’t get updates for the package.

Firstly, make sure java-8 using in your system.

Image for post
Image for post

After that check java version.

Image for post
Image for post

If everything is normal, you can skip the next step. Make sure below jdk/jre’s install normally. …


Selim Emre Toy

Software Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store