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

php sample: review feedback

parent 837f27bb
<?php
use LibVLCSharp\Shared\Core as Core;
use LibVLCSharp\Shared\LibVLC as LibVLC;
use LibVLCSharp\Shared\MediaPlayer as MediaPlayer;
use LibVLCSharp\Shared\Media as Media;
use LibVLCSharp\Shared\Core;
use LibVLCSharp\Shared\LibVLC;
use LibVLCSharp\Shared\MediaPlayer;
use LibVLCSharp\Shared\Media;
# Hack to compute libvlc.dll/libvlccore.dll path for PHP projects
list($scriptPath) = get_included_files();
$p = str_replace("program.php", "", $scriptPath);
$libvlcPath = $p . "bin\\Debug\\netcoreapp2.0";
Core::Initialize($libvlcPath);
Core::Initialize(__DIR__);
$libVLC = new 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