js flv player fullscreen option - javascript

I am developing my custom video control using jquery , javascript. for that i choose js flv player without any control bar,
so I almost developed its control bar and all the option using its listner javascript object, but now there is no full screen method in that js flv player.
any body know how can I control the full screen option, I am using the following flv player
flv-player.net

As per their FAQs:
Fullscreen only works with Flash Player newer than 9.0.16.
It is controlled by showfullscreen option which clearly mentions that it only works with Flash v9.0.16 or higher.
An alternative is to switch to FlowPlayer plugin. I've used it in a current project with great success. It provides many more options and supports mobile devices too (iPad etc).
Here's a Flowplayer demo for switching to fullscreen: Forcing to view the video in fullscreen mode
Another one: Custom Fullscreen action with overlay

The best player to use would be videojs. Really flexible. I have used it in one of my projects and i would recommend this for you. Got a full screen option by default. Uses js and no flash needed at all.

DEMO: http://so.devilmaycode.it/js-flv-player-fullscreen-option/
NOTE: as explaned by the author of the FLash Player here
Fullscreen only works with Flash Player newer than 9.0.16.
Fullscreen is not compatible with wmode transparency.
so we can at least simulate the full screen for those that not support it by using the $(document) width / height ( or whatever you want ) to fix the player size: and make use of the wmode property; this way you can use CSS position and z-index to display the controls over the flash player.
UTILS: Detecting Flash Player versions and embedding SWF files with SWFObject

Related

Apple/Safari issue playing background video on mobile device

I have a site with full screen background video using BigVideo.js. (http://dfcb.github.io/BigVideo.js/) On mobile devices, android is working great. However, on an apple device the video loads with a 'Play' button that you need to click which loads the video in a modal window over top of the site. Any ideas on how to make this behave like desktop/android devices where the video seamlessly plays in the background? Could there be an Apple app-driven event detecting video and forcing play in a modal?
Example HTML:
<div class="screen" data-video="vid/1-Statue.mp4">
Many mobile devices do not support video autoplay - the idea is to avoid users running up large mobile data bills. Last time I looked all the smaller iOS devices, i.e. iPhones did not.
There is a popular javascript library to detect browser features which includes a test for autoplay which may be useful for you:
https://github.com/Modernizr/Modernizr/blob/master/feature-detects/video/autoplay.js
Similarly, inline video is not supported on all Mobile devices - it is evolving so more devices do now but it is probably not a good idea to rely on it. Again, there is at least one open source library trying to address this on iPhone (inline video works on iPads last time I checked, as far as I recall):
https://github.com/newshorts/InlineVideo

Adobe Edge generated video with overlay, play on ios without full screen

I have an animation made in Adobe Edge, featuring an animated body with an overlay of a face, pulled via an URL parameter.
It works fine on web. However, on IOS a video can only be played full screen - and then the image overlay obviously doesn't show.
Does anyone know a solution of how I could make this work on IOS? Either some way to convert the video+overlay to a merged video, svg animation or something else? Or just play the video without fullscreen - but I don't think this is possible.
On iOS mobile devices videos played in Safari go full screen with no other elements available. There is no way to stop this behaviour in Safari. Videos can be made to play inline within a native app, but not Safari unfortunately.
on iOS tablet devices, videos can be played inline within Safari.
However,you mentioned that you've created the animation in Adobe Edge Animate? I'd be tempted to publish your animation as a web animation and use that where your video would be.

HD button of video,js player

I need HD toggle/ON-OFF button for video.js player like in vimeo player. Do I have to make a custom button?
First of all you need to understand it's not merely just a button. Button is just a physical UI element that's used to switch between video source.
The concept is that you provided 2 different resolution videos as source to player and the button is used for selecting one of them. e.g if user selects HD, then the source of video changes to the video of better resolution or if it's SD then source changes to low resolution video.
Now coming to what you want to achieve, there's no default HD/SD video switching support in video.js (if my guess is right). You can use a plugin: There's this video-js-resolutions plugin by onyxrev - available on Github.
Use this plugin: https://github.com/vidcaster/video-js-resolutions
then you can change the css and JS to change the current style to a button that you want.
demo: http://vidcaster.github.io/video-js-resolutions/
I hope it helps.

how to make html5 player play on Ipad fullscreen using UIWebView

I have a video application where I have added custom css to HTML5 player.
It works fine in windows browser both in minimised and maximised mode.But in case of Ipad fullscreen HTML5 does not show up instead native player comes into play.
How can we make HTML5 player to play on Ipad fullscreen mode instead of native player.
I came to know that if it is Enabled only in a UIWebView with the allowsInlineMediaPlayback property set to YES.
We can make HTML5 player appear.But what is UIWebView and how can I make use of it?
Any kind of help is greatly appreciated.please help.
UIWebView refers to development of application (App Store) using either native code or using web languages with technologies like Phonegap. It is a component that allows to render a webpage in an application.
Apple does not allow to control its native fullscreen experience on iPad/iPhone when you watch HTML5 video in Safari iOS - the video will play in the default quicktime player when in fullscreen. It is stated here.
allowsInlineMediaPlayback is used in a UIWebView as an HTML5 video tag property to allow video to play inline (aka in window mode) and so that the native fullscreen player is not automatically toggled when video is watched on an iPhone/iPod.
To achieve what you want you can either build an App for this or if you want to stick to browser based video display in HTML5 you can emulate fullscreen on iPad (and iPad only - it will not work on iPhone/iPod). For that you need to develop your own custom controls and extend the dimension in CSS of the video tag to the full width and height of the view port.
This is a bit tricky but you can read here - section Pseudo Fullscreen - for a start. IE9 and 10 for example do not support native fullscreen in HTML5 video and you need to implement this approach as well.
I personally use something slightly different like:
.fullscreen{
position:fixed;
z-index:1000;
left:0; right:0; top:0; bottom:0;
width:100%;
height:100%;
background:#000000;
overflow:hidden;
}
For the iPad you can bypass the native full screen approach with this pseudo fullscreen angle.
You may also want to read here on how to detect native fullscreen capabilities in browser.

Is there a good wrapper for using Media Player in IE

I need to add media playback ability to a web application. It has to play audio and video, and the player has to be MS Media Player (shouldn't use any plugin non existent on a standard windows machine). I know I can add it directly as an ActiveX to IE, and control it with JavaScript. I wonder if there is some popular and good wrapper that will save me some of the work.
UPADTE: Having a way to easily embed the player on the page is cool. But I would like the interaction with the player to be managed too. Things I would like it to support:
Play
Pause
Stop
Load different media clip
Change volume
resize
Also I would like to be able to replace the default controls (visible in the Windows Media Player) with my own skinned controls.
Hey, this one should help:
http://malsup.com/jquery/media/
Flowplayer is also a good one: http://flowplayer.org/

Categories