Can't play a single file

15 replies [Last post]
eloigc
Offline
Last seen: 1 year 32 weeks ago
Joined: 05/25/2010

Hello,
Before anything, I would like to thank you for the great job you have done with OSM.
I'm using the osmplayer.php and following the examples I have been able to find at the web, but I can't make it work.
When I use this code:

<?php

include('OSMPlayer.php');
$player = new OSMPlayer( array(
'debug' => true,
'file' => 'Ben2.mp4',
'width' => '320',
'height'=> '240',
'showNodeVoter' => false,
'disablePlaylist' => true
  
));
print
$player->getHeader();
print
$player->getPlayer();

?>

I can see the player but it keeps waiting and playing anything.
But if I use a playlist with the same file it does work.

Thanks in advance.

travist
travist's picture
Offline
Last seen: 10 weeks 2 days ago
Joined: 08/21/2009
I see you are using relative

I see you are using relative path for your media file. If this is the case, then your media file will need to be right next to the index.php file within your webroot for it to show up. If your media file is in a different location, then this is your problem.

Thanks,

Travis.

International Open Source Solutions
What can Alethia build for you?

eloigc
Offline
Last seen: 1 year 32 weeks ago
Joined: 05/25/2010
can't play a single file

Thanks for your answer.
I have tried both ways: relative and absolute path, but it doesn't work anyway.

Eloi

james
Offline
Last seen: 37 weeks 1 day ago
Joined: 05/15/2011
I had a similar problem.

I had a similar problem.

The default path to the mediafront.swf player is ./flash/mediafront.swf

It wasn't till I passed in the correct path through the flashPlayer var that everything worked.

<?php

include('OSMPlayer.php');
$player = new OSMPlayer( array(
 
'debug' => true,
 
'file' => 'Ben2.mp4',
 
'width' => '320',
 
'height'=> '240',
 
'showNodeVoter' => false,
 
'showPlaylist' => false,
 
'flashPlayer' => '/path/to/osmplayer/flash/mediafront.swf',
 
));
print
$player->getHeader();
print
$player->getPlayer();

?>

johns
Offline
Last seen: 2 weeks 6 days ago
Joined: 10/31/2011
Hello,I love reading through

Hello,I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.70-401 papers// 70-432 pdf// 70-433 papers// 70-448 prep// 70-450 papers// 70-513 prep// 70-515 prep// 70-516 papers//

jerryjones05
Offline
Last seen: 2 weeks 13 hours ago
Joined: 12/21/2011
I'll focus on the replay of

I'll focus on the replay of simple uncompressed (aka PCM) WAV files, since that's what we use for perceptual experiments. car title loans south carolina

johnsteve
Offline
Last seen: 1 week 3 days ago
Joined: 12/31/2011
Hi, tracks i've written and

Hi, tracks i've written and uploaded myself won't play even though i'm accessing them from the same computer! I just get a message saying....google
"Windows Media Player cannot access the file. The file might be in use, you might not have access to the computer where the file is stored, or your proxy settings might not be correct."
I don't really understand, what do i need to do please??

kokamoti
Offline
Last seen: 2 weeks 5 days ago
Joined: 01/09/2012
where to invest

php and following the examples I have been able to find at the web, but I can't make it work
where to invest

johns
Offline
Last seen: 2 weeks 6 days ago
Joined: 10/31/2011
Hello,I love reading through

Hello,I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.312-50 dumps// 70-649 dumps// A00-201 dumps// 70-272 dumps// 350-001 dumps// 220-301 dumps// 1z0-147 dumps// 310-065 dumps//

sinu
Offline
Last seen: 6 days 22 hours ago
Joined: 01/28/2012
I see you are using relative

I see you are using relative path for your media file. If this is the case, then your media file will need to be right next to the index.php file within your webroot for it to show up. Hispanic Grants If your media file is in a different location, then this is your problem

bresnin173
Offline
Last seen: 4 days 22 hours ago
Joined: 01/30/2012
Very informative post thanks

Very informative post thanks for share this with us i highly appreciate you for this information
1z0-052 exam
70-536 exam
352-001 exam
70-297 exam
640-460 exam
BH0-006 exam
70-272 exam
70-431 exam

jibran
Offline
Last seen: 1 day 17 hours ago
Joined: 12/25/2011
The best person to give you

I am just searching for the right link to download this and watch it on my pc. Please let me know if any of you have a link for this music. Thanks. gift basket ideas

bijo
Offline
Last seen: 3 days 20 hours ago
Joined: 01/31/2012
I'll focus on the replay of

I'll focus on the replay of simple uncompressed (aka PCM) WAV files, wolff parkinson white since that's what we use for perceptual experiments.

nehan
Offline
Last seen: 2 days 23 hours ago
Joined: 02/01/2012
I wanted to leave a little

I wanted to leave a little comment to support you and wish you a good continuation. waterhouse friderichsen syndrome
Wishing you the best of luck for all your blogging efforts

jack
Offline
Last seen: 1 day 19 hours ago
Joined: 02/02/2012
I see you are using relative

I see you are using relative path for your media file. Prilosec If this is the case, then your media file will need to be right next to the index.php file within your webroot for it to show up

sudan
Online
Last seen: 6 min 48 sec ago
Joined: 02/04/2012
I am just searching for the

I am just searching for the right link to download this and watch it on my pc. toilet problems Please let me know if any of you have a link for this music. Thanks

Sponsors