jwplayer

check if video is streaming

天涯浪子 提交于 2019-12-06 00:25:26
I have this stream from http://www.tpai.tv/live but as you can see now, its down, i need to check if stream is playing and if not to play other thing. This is the streaming code: <base href="http://www.jet7angola.com/entretenimento/tpa-internacional-online-directo.html"> <script src="http://www.jet7angola.com/tpa/jquery-1.6.2.min.js" type="text/javascript"></script> <script src="/tpai/jquery-blink.js+jquery.mousewheel.js+jquery.rollover.js+jquery.jscrollpane.min.js+jquery.tools.min.js+jquery.fancybox-1.3.4.pack.js.pagespeed.jc.UjuzPwaNVv.js"></script> <script>eval(mod_pagespeed_68xhNxTuZL);<

Responsive video player

为君一笑 提交于 2019-12-06 00:12:05
问题 I need a video player for responsive layout website which is developed by using bootstrap. That means when i do re-size the screen or viewing the page in different size screens the player should be automatically fit to the screen. I had tried with jwplayer and flowplayer but it didn't work. http://www.longtailvideo.com/support/forums/jw-player/setup-issues-and-embedding/24635/responsive-video-internet-explorer-100-widthheight note: The player should be able to play the youtube videos.... Is

JWPlayer and HLS streaming - “Error loading player: No playable sources found”

こ雲淡風輕ζ 提交于 2019-12-05 21:28:24
The problem I have a server (nginx-rtmp-module) that streams from IP camera to HLS. I want to embed the live stream to popular browsers: Chrome, Firefox and IE. The stream is not working on some desktop browsers. Test player: https://content.jwplatform.com/previews/KCpvutTz-FfTLdraP What I tried Tested devices and browsers: Firefox on PC - "Error loading player: No playable sources found" IE 11 - OK Chrome on PC - OK Chrome on Android - OK iPhone - OK The questions How to resolve these issues? Is the flash a requirement for live HLS streaming on desktop browsers? After contacting jwpplayer

jwplayer - how do I get video duration before playback?

痞子三分冷 提交于 2019-12-05 14:07:39
I'm trying to get the duration of a video before the jwplayer starts playing. I tried calling getDuration () in the onReady event callback, but it returns -1. When I call getDuration () in the onPlay event callback, I get the correct value. Any ideas? Here's my code: <video src="movie.mp4" id="video" width="800" height="600"></video> <script type="text/javascript"> jwplayer ('video').setup ({ flashplayer: '/js/mediaplayer-5.10/player.swf', width: 600, height: 400, events: { onReady: function () { var duration = this.getDuration(); alert ('ready, duration: ' + duration); }, onPlay: function

Cannot use jwplayer in an Android app

谁说胖子不能爱 提交于 2019-12-05 11:40:00
I am developing an Android application where I want to play some video dynamically from a URL. So I put a web view in layout and view a html file which contains the jwplayer code but jwplayer is not there, and the web view is showing only "Loading the player....". I can not understand where the issue is. My VideoView code here import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.Toast; public class

How to seek() then pause() with JWPlayer 5.4

人走茶凉 提交于 2019-12-05 09:26:12
Does anyone know how to get JW PLayer v5.4 (either the Flash rendering or the HTML5 rendering) to pause after a seek() command? I'm trying to get the video to step 0.01 seconds forward or backward when a user clicks the fine-grain control buttons (or uses the left or right arrow keys). This is so they can snap a framegrab with better precision. I'm not sure if this is even possible but I've tried a few things with no luck. Such as the following: var stepTo = jwplayer("video_player").getPosition() + 0.01; jwplayer("video_player").seek(stepTo).onComplete(function(){ jwplayer('video_player')

JWPLAYER custom error message

Deadly 提交于 2019-12-05 08:33:16
I embedded JWPlayer on my page with custom error message that display different image when stream is not online but error image is not loading. <script type='text/javascript'> jwplayer('player').setup({ file: 'http://blog.com/stream.m3u8', image: 'http://blog.com/streamimage.png', title: 'STREAMING TITLE', width: '100%', height: "100%", aspectratio: '16:9', skin: 'glow', mute: 'true', ga: '{}' }); jwplayer().onError(function(){ jwplayer().load({image:"http://blog.com/streamimage-error.png"}); jwplayer().play(); }); </script> See here You need to add file attribute as mentioned in the document

how to Create webvtt file for subtitle dynamically

梦想的初衷 提交于 2019-12-04 16:23:38
i am trying to create the web vtt file dynamically where user pauses , and player should be able to do get the current playtime than user can write subtitle .... i am trying to give user a screen as well .. so that he can see what is he doing after user is finished writing subtitle i want to save the file in web vtt format for subtitle is it possible ?? than how ?? pls guide me ??? i got some help from here because it does look like what i have in mind html 5 wepage video subtitle HTML5 VIDEO CAPTION MAKER ONE MORE THING I AM TRYING TO DO THIS IN JWPLAYER 来源: https://stackoverflow.com

Stop JWPlayer when hidden the div with the player

拜拜、爱过 提交于 2019-12-04 15:45:20
I have a site where I'm using a JavaScript to add or remove a css class. Using this method I hide a div or show a div, as I need it. It works great. The problem is one div opens a Video with a JWplayer, when I hide the "window" or better say, the div. The sound is still playing, so I need a code to put stop on the video when someone clicks the "hide" button or close button. How do you do that? I have no idea. Thanks HTML <div class="videoquon"> <div class='my-video-close'></div> <div id='my-video'></div> <script type='text/javascript'> jwplayer('my-video').setup({ file: 'qvideo.f4v', width:

Javascript document.write('HTML CODE HERE') and using a var grabbed by flash

徘徊边缘 提交于 2019-12-04 15:21:21
so this is 2 questions in one. My first question is how would I do this? document.write(' <div id="jwplayer"> <center> <div id='mediaplayer'></div> <script type="text/javascript"> jwplayer('mediaplayer').setup({ 'flashplayer': 'jwplayer/player.swf', 'id': 'playerID', 'width': '640', 'height': '580', 'provider': 'rtmp', 'streamer': 'rtmp://domain/recorder/_definst_', 'file': 'onSaveOk("+streamName+")' }); </script> </center> </div> '); I basically just want to print out that code when the function is called. This is the second part of my question, this function runs when the flash video