0 Replies - 4419 Views - Last Post: 29 December 2012 - 07:10 AM

#1 Layman1  Icon User is offline

  • New D.I.C Head

Reputation: -3
  • View blog
  • Posts: 12
  • Joined: 29-December 12

OSM Player: Can I use modified code from other player? Code Samples?

Posted 29 December 2012 - 07:10 AM

OSM Player: Can I use modified code from other player?

I guess every player uses a little bit different tags/elements or how to call it. (I am layman.) I mean this, for example: They told me, JW Player does not use: "random play" but: 'shuffle': 'true'. But how people could know it if the producer of a player doesn't include the code into the information of installation?

I would like to use OSM Player but I cannot find anywhere a code to play unlimited numbers of UPLOADED videos (flv, MP4 etc.) as well as LINKED videos (URL from YouTube, Vimeo, etc.), TRUE random play, autoplay, repeat ALL list, fullscreen, annotations, share. Where can I get samples of the code of this features for OSM Player? How I can make such code when every player uses different tags/elements?

I have a code for JW player (SEE below). How should I modify the code to use it for OSM Player? Should I write there TRUE random play OR 'shuffle': 'true', and what other things are the same and what other things are not the same? :

HTML CODE:
<html>
<head>
<title>Videos</title>
<script type="text/javascript" src="/jwplayer/jwplayer.js" ></script>
</head>
<h1> </h1>
<video id="container"></video>
<script type="text/javascript">
jwplayer('container').setup({
'flashplayer': '/jwplayer/player.swf',
'id': 'playerID',
'width': '800',
'height': '560',
'file': '/videos/myplaylist.xml',
'playlistfile': '/videos/myplaylist.xml',
'autostart': 'true',
'shuffle': 'true',
'repeat': 'list',
'plugins': { 
'sharing-3': {}
}
});
</script>
</body>
</html>




XML CODE FOR A PLAYLIST:
<rss version="2.0"
xmlns:media="http://search.yahoo.com/mrss/"
xmlns:jwplayer="http://developer.longtailvideo.com/trac/wiki/FlashFormats">
<channel>
<title>Example media RSS playlist</title>

<item>
<title>Video (mp4/ogv/flv)</title>
<link>http://www.singingtv.cwahi.net/</link>
<description></description>
<pubDate></pubDate>
<media:credit role="author">the Peach Open Movie Project</media:credit>
<media:group>
<media:content url="http://www.singingtv.cwahi.net/videos/uploadedvideos/Flowers.flv" />
<media:content url="http://www.singingtv.cwahi.net/videos/uploadedvideos/Michael.flv" />
</media:group>
</item>

<item>
<title>Youtube video with start</title>
<link>http://www.singingtv.cwahi.net//</link>
<description></description>
<pubDate></pubDate>
<media:group>
<media:credit role="author">the Peach Open Movie Project</media:credit>
<media:content url="http://www.youtube.com/watch?v=PC8tjwuHSCo" />
<media:content url="http://www.youtube.com/watch?v=IUqAKc0xSfE" />
<media:content url="http://www.youtube.com/watch?v=FQonXXDuR-8" />
<media:content url="http://www.youtube.com/watch?v=gt2Az3_Gvz8" />
</media:group>
<jwplayer:start>10</jwplayer:start>
</item>

</channel>
</rss>



Is This A Good Question/Topic? 0
  • +

Page 1 of 1