live

Live Wallpaper Water Ripple Effect

跟風遠走 提交于 2019-11-29 20:31:30
I'm working on a live wallpaper that incorporates some water ripple effects on touching the screen but I'm a little stuck. Would it be better to create multiple images and loop through them to create a ripple animation or would it be better to distort the bitmap a bit before I place it on the canvas? This is a video of a very nice ripple effect done through OpenGL. I don't have any experience yet with OpenGL and was wondering if it is still possible to create a 2D water effect on the live wallpaper? esteewhy I wanted to implemented a realistic ripple effect in Android too, so will share my

how to make live click event on new added DOM

蓝咒 提交于 2019-11-29 16:41:26
i am a live() user and i know somehow live() is deprecated. i've tried to use bind() to have the event on new added dom working, but it's not. can you please tell me how to do bind() properly ? or is there any other method to do this task? this is the html: <table> <tr> <td> hi there <span class="click">click me</span></td> <tr> <tr> <td> hi there2 <span class="click">click me</span></td> <tr> <tr class="end"> <td></td> </tr> </table> <button class="add_new">add new row</button> this is the js : var new_row = '<tr><td> hi there, new row! <span class="click">click me</span></td><tr>'; $('.add

Adding new HighChart Series

让人想犯罪 __ 提交于 2019-11-29 14:41:21
问题 At this code javascrip give an error $.each(JSON, function(i, array) { chart.series[i].name = array.teamName; chart.series[i].setData(array.teamPower, true); }); I must define the chart.series[i] because it say "Cannot set property 'name' of undefined" but i can't find a way in order to do this. Because it fonction runs with requestData so it came after chart determine with options function showGraph() { chart = new Highcharts.Chart(option); } chart: { renderTo: 'graphicShow', type: 'spline',

How to exlude all the devices which have low GPU in Android Manifest?

拥有回忆 提交于 2019-11-29 14:10:22
Basically, I created a live wallpaper for Android and tried it in my Droid X, Galaxy S, and Fascinate. And I noticed that it runs smootly in Galaxy S and Fasciante but not in Droid X which has lower GPU. My question is, is there anyway to exlude all the devices which has low GPU in Android Manifest? I am planning to publish this live wallpaper soon. Please help me! You can add supports-screens to the manifest, and pass in a true false valuefor each size. The below example would exclude all mobile handsets. Id imagine a solution to narrow everything down to exactly you want would be similar to

Mouseup bug in all browsers except Firefox?

落花浮王杯 提交于 2019-11-29 10:20:22
Mouseup doesn't fire on scroll bar for elements dynamically added (except Firefox): CSS: #dBox { height: 100px; width: 230px; overflow - y: auto; } HTML: <input type="text" id="s"> JQuery: $(function() { $('#s').focus(function() { var $dbox = $('<ul id="dBox"></ul>'); for (i = 0; i < 10; i++) $dbox.append('<li>' + i + '</li>'); $(this).after($dbox); $dbox.bind("mouseup", function() { alert('in: '); //console.log ('in: '); }); }); }); // OR LIKE THIS $('#s').focus(function() { var $dbox = $('<ul id="dBox"></ul>'); for (i = 0; i < 10; i++) $dbox.append('<li>' + i + '</li>'); $(this).after($dbox)

jQuery .on() with multiple selectors in event delegation?

放肆的年华 提交于 2019-11-29 06:28:45
问题 I have using .on() in jQuery 1.7 and wondered whether it is possible to attach multiple selectors at a time for elements that have been injected onto a page. Previously, I was using live() - but it's obvious why I want to move given performance improvements. Can you use .on() in the manner like: $(document).on('click', '#selector1, #selector2, .class1', function () { //stuff }); And are there any benefits lost in attaching to document ? ? 回答1: Can you use .on() in the manner like: $(document)

jQuery live() removing iPhone touch event attributes?

孤人 提交于 2019-11-29 00:12:43
I am binding live events on links in my PhoneGap app. The event does fire successfully (confirmed by alert() ing), but it seems any touch data is not attached to the event object like it should be. This happens on all touch events - touchstart , touchmove , and touchend . $('a').live('touchend', function(event) { event.preventDefault(); alert(event.touches.length); // event.touches should be populated! }); Any ideas? Am I SOL with jQuery.live()? The touch events are not currently supported by Events/live . From the documentation: Possible event values: click, dblclick, mousedown, mouseup,

Scaled live iPhone Camera view in center, “CGAffineTransformTranslate” not working

我怕爱的太早我们不能终老 提交于 2019-11-29 00:11:41
I have a little problem which I could not solve. I really hope someone can help me with that. I wanted to resize the live camera view and place it in the center, using the following code below: picker.cameraViewTransform = CGAffineTransformScale(picker.cameraViewTransform, 0.5, 0.56206); picker.cameraViewTransform = CGAffineTransformTranslate(picker.cameraViewTransform, 80, 120); But all I got was a scaled 1/2 sized view on the top left of the screen. It seems as though "CGAffineTransformTranslate" does nothing at all. The translation didn't work even when I used: picker.cameraViewTransform =

How to live stream video from iPhone to a Wowza server?

纵饮孤独 提交于 2019-11-28 23:13:18
问题 I would like to live stream a video from the iPhone camera to a Wowza server using the RTP protocol. I was 'playing' with the AVFoundation framework but is not possible to send the data to an specific URL to do it. I read in the forums that the better way is to use the ffmpeg library. I compile the it and I got all the *.a files. Also, I compile a library of a user of this forums (Livu creator) called ffstream.a I think I have to encode my RAW images which I get with the AV framework to H264

RTMP stream on iOS [closed]

安稳与你 提交于 2019-11-28 18:23:58
I have to make an iOS app which plays a live video stream from a camera. I know that the iPhone only supports Live HTTP stream, but unfortunately it comes with a delay of about 6-10 seconds, which is far from my needs - I need a real time view. MJPEG stream is also not an option, because it generates a huge traffic. So what remains is an RTMP stream, but iOS cannot play it natively :(( I've heard of rtmpdump for iPhone, but I couldn't get it working. Has anyone succeeded in playing RTMP video on iOS? Any suggestions on how to do it are greatly appreciated! I'm pretty sure mediastreamsegmenter