Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Just a small contribution to NSBasic.
- '"jPlayer is the completely free and open source (MIT) media library written in JavaScript.
- 'A jQuery plugin, jPlayer allows you to rapidly weave cross platform audio and video into your web pages."
- 'At http://www.tobem.com/jPlayer you can see a RTMP (Flash Live Streaming)
- 'and a M3U8 (HLS HTTP Live Streaming) example.
- 'A Container was used to host jPlayer DIV.
- 'So, now, you can make Video (NBA Livestream !!) and Audio (BBC Radio Livestream !!) Streaming using NSBasic.
- 'Media Support:
- 'HTML5: mp3, mp4 (AAC/H.264), ogg (Vorbis/Theora), webm (Vorbis/VP8), wav
- 'Flash: mp3, mp4 (AAC/H.264), rtmp, flv
- 'Some more info:
- 'HLS http://en.wikipedia.org/wiki/HTTP_Live_Streaming
- 'RTMP http://en.wikipedia.org/wiki/Real_Time_Messaging_Protocol
- 'jPlayer http://jplayer.org/
- 'NBR http://conteudo.ebcservicos.com.br/streaming/nbr
- 'NSBasic http://www.nsbasic.com
- Function PlayButton_onclick()
- jPlayerContainer.jPlayer("play")
- StopButton.disabled = False
- End Function
- Function StopButton_onclick()
- jPlayerContainer.jPlayer("stop")
- StopButton.disabled = True
- End Function
- Function LoadButton_onclick()
- JavaScript
- jPlayerContainer = $("#jPlayerContainer").jPlayer({
- ready: function(event) {
- $(this).jPlayer("setMedia", {
- title: "NBR",
- rtmpv: "rtmp://ebcremuxlivefs.fplive.net/ebcremuxlive-ebctvnbr/stream1.flv",
- m3u8v: "http://ebcremuxlive-live.hls.adaptive.level3.net/manifests/ebcremuxlive-ebctvnbr/live.m3u8",
- poster: "http://conteudo.ebcservicos.com.br/streaming/images/logo-nbr-nova.png"
- });
- },
- swfPath: "http://www.jplayer.org/latest/dist/jplayer",
- supplied: "rtmpv,m3u8v",
- solution: "html,flash",
- preload: "auto",
- nativeVideoControls: {
- apple: /(ipad|iphone|ipod)/
- },
- wmode: "window",
- size: {
- width: "300px",
- height: "220px"
- },
- });
- End JavaScript
- PlayButton.disabled = False
- LoadButton.disabled = True
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement