Commit 0a415632 authored by Martin Finkel's avatar Martin Finkel
Browse files

php sample: review feedback

parent 837f27bb
<?php <?php
use LibVLCSharp\Shared\Core as Core; use LibVLCSharp\Shared\Core;
use LibVLCSharp\Shared\LibVLC as LibVLC; use LibVLCSharp\Shared\LibVLC;
use LibVLCSharp\Shared\MediaPlayer as MediaPlayer; use LibVLCSharp\Shared\MediaPlayer;
use LibVLCSharp\Shared\Media as Media; use LibVLCSharp\Shared\Media;
# Hack to compute libvlc.dll/libvlccore.dll path for PHP projects Core::Initialize(__DIR__);
list($scriptPath) = get_included_files();
$p = str_replace("program.php", "", $scriptPath);
$libvlcPath = $p . "bin\\Debug\\netcoreapp2.0";
$libVLC = new LibVLC(); $libVLC = new LibVLC();
$mediaPlayer = new MediaPlayer($libVLC); $mediaPlayer = new MediaPlayer($libVLC);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment