mediafront / osmplayer

The Open Standard Media Player is an all-in-one media player for the web. It is an industry changing, open source (MIT) media player that is built to dynamically deliver any type of web media, including HTML5, YouTube, Vimeo, and Flash.
http://www.mediafront.org
MIT License
342 stars 181 forks source link

How to assign Logo for player #61

Open Aladdinych opened 10 years ago

Aladdinych commented 10 years ago

How to assign Logo for player

zoogylong commented 10 years ago

In your script add the parameter "logo" followed by the path to your image: 'pathname/example.jpg'

For example in your script:

$(function() { $("#osmplayer").osmplayer({ playlist: src='vidxml/exampleplaylist.xml', width: '100%' , logo: src='images/logohere.jpg' ,

Please keep in mind with this method that you will need to edit your image to fit within the confines of your player and if desiring a watermark or bug like effect it'll need to be a format that renders opacity in web browsers such as .png

If using a content management system there should be an option somewhere to point to one, but I couldn't say where it would be exactly. Hope that helps!