Skip to content
This repository has been archived by the owner. It is now read-only.

Handling MP3 files #734 #870

Closed
wants to merge 1 commit into from

Conversation

@vobornik
Copy link

commented Mar 25, 2013

The code does not make sense to me:

$file = \OC\Files\Filesystem::getView()->getAbsolutePath($path); // relative to www root!
$data = @$this->getID3->analyze('oc://' . $file);                // analyze() cannot recognize 'oc://' prefix

I corrected it to (I double checked - it works for me):

$file = \OC\Files\Filesystem::getLocalFile($path); // get local file name from $path
$data = @$this->getID3->analyze($file);            // analyze that file
@wolf-kapa

This comment has been minimized.

Copy link

commented Mar 26, 2013

👍 All over sudden my media app finds media files in S3 folders...

@VicDeo

This comment has been minimized.

Copy link
Member

commented Mar 27, 2013

@icewind1991 I've seen a dozen of such reports. Is stream required here?

@VicDeo

This comment has been minimized.

Copy link
Member

commented Mar 28, 2013

@vobornik 'oc://' is used to retrieve files through the stream wrapper.
It's needed to index/play files from the external storage.
It works for me without patch (Nginx/php-fpm 5.4.12)

please check if http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
is enabled in your php.ini

@VicDeo

This comment has been minimized.

Copy link
Member

commented Mar 29, 2013

Should be alreadyfixed with 53cc464

@VicDeo VicDeo closed this Mar 29, 2013

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants
You can’t perform that action at this time.