add Open Source Media Player?

tedor2 / 2010-08-07 10:46:34   

Hello
I found this free player (http://www.mediafront.org/) and I have difficulties to add it to indexhibit. It was easy to customize the player's php sample page, but when I wanted to add the code (below) to a page the


Open Standard Media (OSM) Player: PHP Demo




Open Standard Media (OSM) Player


tedor2 / 2010-08-07 10:50:36   

excuse me, the code did not appear:

so, when I add the code to the indexhibit site the first part disappears and I didn't get the mediaplayer in. Any ideas how this could work?

thanks +++
K

  1. <?php
  2.    include"http://tedor.info/osmplayer/OSMPlayer.php"
  3.    $player  new OSMPlayerarray
  4.       'debug' => true
  5.       'playlist' => 'http://tedor.info/osmplayer/playlist.xml'
  6.    
  7. ?>

then the html part comes later.

arsondpi / 2010-08-07 12:48:36   

the text box is not able to handle php.

insert the code by making a plugin.

Vaska A / 2010-08-07 16:56:55   

And, you realize that arsondpi made a plugin that does this already...search the forum.

tedor2 / 2010-08-07 19:55:16   

hi, so it is possible, that is good news! Thank you.
So far I only could cure the issue with the iframe plugin, but that doesn't allow me to fullscreen the video player, so I will have to step further. Unfortunately I could find arspondi's plugin on the forum, therefore I might need some more help, please.

I've found the "how to writ a plugin" that hopefully will help me.
Will I have to write 3 plugins or 1 plugin with 3 functions?

1, before the html code,
2, in the head,
3, in the body.

[the * is not in the code I just added it to see the whole]

  1. 1. 
  2. <*?php
  3.    include("OSMPlayer.php");
  4.    $player = new OSMPlayer(array(
  5.       'debug' => true,
  6.       'playlist' => 'playlist.xml'
  7.    ));
  8. ?>
  1. 2. 
  2.  <*?php print $player->getHeader(); ?>
  1. 3. 
  2.  <*?php print $player->getPlayer(); ?></td>

looking forward, all the best, K

Vaska A / 2010-08-07 20:06:32   

Three plugins. Plugins are separate files that you call as needed.

Search the forum, look in Useful Threads, find arson's example of how he did this (he provides some stuff to download as well) - will be greatly helpful.

;)

This thread has been closed, thank you.