Pseudo streaming


HTML5 browser supports the ability for players to seek any time position, regardless of video load status.
This functionality, often referred to as pseudo-streaming, is great for videos longer than a few minutes.

Such functionality is not available by default when playing videos using Flash version of Player.
However it is possible to install web server streaming modules modules and seek any time position in video using startparam option.
Such streaming modules are available for most popular web servers like Apache, Lighttpd and Nginx.

To enable http streaming for Nuevoplayer flash Player you must enable "provider" option by setting value= "http", like in example below


<script id="nuevo" type="text/javascript" src="/nuevo/player.js" charset="utf-8"></script>
<div id="player"></div>
<script type="text/javascript">
nvplayer.start( {
      id:'player',   // same as div id container
      regkey: xxxx,   // your registration key for flash player
      file: 'http://www.yourdomain.com/video.mp4',
      width:'740',
      height:'464',
      provider: 'http'   //enable pseudo streaming
}); 
</script>



The querystring parameter that must be used to load video from an offset position may differ per streaming module and CDN service.
Therefore, you can set ut in the Nuevoplayer using the "httparam" configuration option. Default value is "start".

Below according to longtailvideo resource these are different values that can be useful for "httparam" option.

Streaming module/CDNhttparam for FLVhttparam for MP4
mod_h264startstart
mod_flvx-start
HttpFlvModule-start
Bitgravityapstartapstart
Edgecastec_seekec_seek
Limelight-fs


RTMP streaming

RTMP (Real Time Messaging Protocol) is a system for delivering on-demand and live media to Adobe Flash applications.
RTMP supports video in MP4 and FLV and audio in AAC and MP3. Main advantages of RTM streaming are:
  • RTMP can do live streaming, so people can watch your video while it is being recorded.
  • Players can seek to later parts in a video, which is particularly useful for longer video files.
  • Players maintains a tiny buffer, instead of downloading a video during playback, saving bandwidth.

Main disadvantage or RTMP streaming is that it is not supported by HTML5 video tag.
Also RTMP uses different protocols and ports than HTTP for streaming, and it can be blocked by (corporate) firewalls.

RTMP SERVERS

In order to use RTMP, your host must have a dedicated RTMP server installed. There are two major services offering it:
today's most widely used solution Wowza Media Server and The Adobe Media Server

Other CDN Services (Content Delivery Networks) that support RTMP type of streaming are Akamai, CDNetworks,
Edgecast, Limelight and Amazon CloudFront Web Service.


Embedding RTMP stream with Nuevoplayer

Most basic embedding example for RTMP stream looks like below

<script id="nuevo" type="text/javascript" src="/nuevo/player.js" charset="utf-8"></script>
<div id="player"></div>
<script type="text/javascript">
nvplayer.start( {
      id:'player',   // same as div id container
      regkey: xxxx,   // your registration key for flash player
      file: 'rtmp://example.com/application/mp4:myVideo.mp4',
      width:'740', height:'464',
}); 
</script>



You can also split RTMP server and video file to play in configuration, just like in example below

<script id="nuevo" type="text/javascript" src="/nuevo/player.js" charset="utf-8"></script>
<div id="player"></div>
<script type="text/javascript">
nvplayer.start( {
      id:'player',   // same as div id container
      regkey: xxxx,   // your registration key for flash player
      streamer: 'rtmp://some_server.com'  //location of RTMP streaming server
      file: 'myVideo.mp4',
      width:'740', height:'464',
}); 
</script>


There is also an option to split the stream separate for flash and for HTML5.

<script id="nuevo" type="text/javascript" src="/nuevo/player.js" charset="utf-8"></script>
<div id="player"></div>
<script type="text/javascript">
nvplayer.start( {
      id:'player',   // same as div id container
      regkey: xxxx,   // your registration key for flash player
      file: 'rtmp://example.com/application/mp4:myVideo.mp4',
      html5: 'http://www.example.com/videos/myVideo.mp4',
      width:'740', height:'464',
}); 
</script>


If this is livestream you will also need to use option "livestream" and set its value to "true", just like other options and values.

IMPORTANT: Videos from RTMP server can play only as flash player on browsers with flash support.

YOUTUBE Streaming

Finally Nuevoplayer easily streams YOUTUBE videos thanks to official Youtube API Player.
Nuevoplayer allows to switch between all available youtube video qualities including HD quality.
Nuevoplayer plays youtube video as both: desktop and HTML5 player.
To play youtube video you simply provide youtube "http" URL as "file" option, eg.
http://www.youtube.com/watch?v=316AzLYfAzw
or
http://youtu.be/316AzLYfAzw


<script id="nuevo" type="text/javascript" src="/nuevo/player.js" charset="utf-8"></script>
<div id="player"></div>
<script type="text/javascript">
nvplayer.start( {
      id:'player',   // same as div id container
      regkey: xxxx,   // your registration key for flash player
      file: 'http://www.youtube.com/watch?v=316AzLYfAzw',
      width:'740', height:'464',
}); 
</script>