malsup / media Goto Github PK
View Code? Open in Web Editor NEWjQuery Media Plugin
Home Page: http://jquery.malsup.com/media/
jQuery Media Plugin
Home Page: http://jquery.malsup.com/media/
Hello, I want to use jquery.media to develop the preview function of PDF, but some browsers just download PDF instead of preview when they open.
I can find standards property in default options and I can overwrite it by specify it in parameter of $().media().
Shall I change if (o.standards) to if (opts.standards) to actually enable the condition?
Or I have to add standards property to every player object I want?
Thanks!
in order to get the full screen button to actually work on jw player:
Here is the line change
params: { wmode: 'transparent', allowfullscreen: 'true'}, // added to object element as param elements;
this is a fix by Zylgain @ jquery forums
1.9x version remove browser check kernel, so it will be an error message when use this plugin.
Hi,
When I get a pdf attachment from url 'getxxxpdf', the render of this plugin does not work, but if I change the url to 'xxx.pdf', it works.
Could it get the http file type from response header 'Content-Type'? Or provide a parameter to override the default setting?
If I understand the docs corretly, "attrs" are est as sttributes of the resulting .
So I tried something like:
$('.media').media({
width: "100%",
height: "100%",
autoplay: true,
attrs: {
id: 'id_' + new Date().getTime(),
attr1: 'something else'
}
});
without success.
How do you fix these errors in IE?
Object required
'null' is null or not an object
Original report
http://forum.jquery.com/topic/bug-jquery-media-js
With sites like "http://www.somesite.com.au/foo.pdf", the "au" part of the domain causes incorrect media type detection.
I need to play a lot of video data, but when I play, the plug is slowly disappearing, that is, the background of a number of video overlap together, I would like to ask how to solve this?
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
<script type="text/javascript" src="http://malsup.github.com/chili-1.7.pack.js"></script>
<script type="text/javascript" src="http://malsup.com/jquery/jquery.metadata.v2.js"></script>
<script type="text/javascript" src="http://github.com/malsup/media/raw/master/jquery.media.js?v0.92"></script>
<script type="text/javascript" src="http://malsup.com/jquery/media/swfobject.js"></script>
<script type="text/javascript">
$(function()
{
$('a.media').media();
});
</script>
</head>
<body>
<P>Free text <A class="media {width:480, height:380, type:'swf'}" href="http://www.youtube.com/v/6MJCvHMtwE4" target=_blank>Palin video</A></P>
</body>
When I remove the <P> </P> tags around the link, everything works fine.
**DAMN: This site does not correctly handle postings that contain tags... hope you can read the posting anyway. If not, mail me, I'll send you the HTML by email.
fullscreen not work - http://jquery.malsup.com/media/video.html
firefox 3.6, opera 11.50
opera 11.50 crash if quicktime not installed
I am trying to make jquery media pdf to fit to window,I read whole api document but couldn't find any option to make pdf full window(fit to screen)
http://jquery.malsup.com/media/video.html
Check the first video captioned "MOV File". The play and volume control at the bottom left corner are missing. Works on FireFox,
Thanks,
Hi,
Thanks for the nice plugin. In my asp.net website, i need to Play the video when clicking a button. is there any possibility of playing video on a button click? . it is now needed for .mov and .wmv files atleast.
Thanks for any help.
I get an access forbidden on mine. It works fine when I do it on my local machine but when I put it on the server it does not work and I have made the permissions to the file 777 and it still doesn't work
Hi,
jquery.media does not work with Internet Explorer 9
error: SCRIPT5022: DOM Exception: INVALID_CHARACTER_ERR (5)
on line 414:
var o = document.createElement(a.join(''));
IE9 handles createElement different than IE8 does does
any ideas?
Best reagrds
Bernd
Hi, We are unable to play mpeg files in full screen mode in IE 11. Double click event is not being bubble up to the parent element to make full screen work. Any solution/workaround for this issue?
Hi ,
THe bug is i cant able to view Avi videos rest all okay,but in the AVI i just hear the audio and not the video.
Why this is occuring did anyone come across this bug or me the first,any suggestions would be great.
Thanks.
Line 349 - update with:
var player = /.mp3\b/i.test(src) ? opts.mp3Player : opts.flvPlayer;
Now this will work::
$('.video').media({
flvPlayer:'myplayer.swf'
});
This plugin does not work with SWFObject v2.2, any plans on updating it. Thank you
I am proposing a fix for jquery.media.js that will allow a fallback to quicktime if the flash plugin doesn't load (for example, iphones...)
It needs swfobject v2+
Mod line 348
- var player = /\.mp3\b/i.test(src) ? opts.mp3Player : opts.flvPlayer;
- var key = opts.flvKeyName;
+ var player = /\.mp3\b/i.test(src) ? opts.mp3Player : opts.flvPlayer;
+ if (window.swfobject) // swfobject v2+
+ if(/\.mp3\b/i.test(src))
+ if(!swfobject.hasFlashPlayerVersion(opts.flashVersion)) // no flash
+ return generate(el, opts, 'quicktime'); // override with quicktime
+ var key = opts.flvKeyName;
Well, it could be useful for somebody else
Bye
Alamaz
Hello Malsup,
I am using your excellent plugin !!
Is there ANY way to access the jwplayer via it's JS api??
Like start / stop??
Searched the web frantically, but no luck.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.