Home

Awesome

VGA Player

VGAPlayer is an open source player for FLV videos (static or RTMP stream).

Demo: http://euske.github.io/vgaplayer/demo.html

Typical usage:

<embed src="vgaplayer.swf" width="100%" height="99%" 
     allowScriptAccess="sameDomain"
     allowFullScreen="true"
     type="application/x-shockwave-flash"
     FlashVars="url=rtmp://rtmp.example.com&amp;fullscreen=1"
     pluginspage="http://www.adobe.com/go/getflashplayer" />

FlashVars Parameters:

It takes a form of FlashVars="name=value&amp;name=value&amp;..."

Adding a Menu

It is possible to add a menu. (Javascript required.) There are two Javascript callback functions: VGAPlayerOnLoad and VGAPlayerOnMenuChoose.

Demo: http://euske.github.io/vgaplayer/jstest.html

<script language="JavaScript">
function VGAPlayerOnLoad(pid) {
  // Called when a player is initialized.
  flashObject.VGAPlayerAddMenuItem("High Quality", "rtmp://rtmp.example.com/high");
  flashObject.VGAPlayerAddMenuItem("Low Quality", "rtmp://rtmp.example.com/low");
}
function VGAPlayerOnMenuChoose(value) {
  // Called when a menu item is chosen.
  flashObject.VGAPlayerConnect(value);
}
</script>
...
<embed src="vgaplayer.swf"
  id="flashObject" width="100%" height="99%" 
  allowScriptAccess="sameDomain"
  allowFullScreen="true"
  type="application/x-shockwave-flash"
  FlashVars="menu=1&amp;pid=test1"
  pluginspage="http://www.adobe.com/go/getflashplayer" />

Terms and Conditions

(This is so-called MIT/X License)

Copyright (c) 2014 Yusuke Shinyama <yusuke at cs dot nyu dot edu>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.