Play mysql BLOB video

Asked

Viewed 319 times

1

Hello, I’m creating an uploads site, and I’ve taken a part, it’s not professional I’m just testing my knowledge and training. My problem is this, I need to make an efficient way that the video blob of the database is played in mine without bugging the progress bar, like this: https://playex.link/painel/upload/test.php?id=426612290166

Or that you have to download the entire file and then play as in a Datauri...

One solution I had thought was that by creating a URI blob it would suit everyone, but it expires after the session closes and becomes invalid.

So you can help me?

My current test code is:

<?php
$id = $_GET['id'];

header('Content-Type: video/mp4');
$servidor = 'playex.link.mysql';
$usuario = 'playex_link';
$senha = '*******';
$banco = 'playex_link';

$mq = new mysqli($servidor, $usuario, $senha, $banco);

$sel = 'SELECT * FROM Videos WHERE vid=' . $id ;
$re = $mq->query($sel);

while($row = $re->fetch_assoc()){
    print $row["q720"];
}

$mq->close();
?>
  • Just a hint, discard the previous question.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.