HTML5 Video - Load and unload video tag with jQuery -
Get link
Facebook
X
Pinterest
Email
Other Apps
I am developing a website with a large slider which uses 100% width and height slides. I am using some video as background in some video slides. When I tried several plugins, some were working with JScroll, so I ended up using the "plain video jquery plugin" ().
The plugin uses video tags to play everything I am also adding a video tag inside each page, such as:
& lt; Div class = "rsImg page" id = "page1" & gt; & Lt; Video poster = "video / poster page" id = "video-intro" & gt; & Lt; Source src = "video / trailer_480p.ogg" type = "video / og" & gt; & Lt; Source src = "video / video.mp34" type = "video / mp34" & gt; & Lt; / Video & gt; & Lt; / Div & gt; & Lt ;! - End of page 1 - & gt;
The video plays and behaves correctly, it's good.
But as I add more slides, I am concerned about memory usage and slow speed in the whole experience. / P>
I have a function that listens for the "slide change" event, so there will be no problem deleting the video while changing the slide, such as:
So I have tried to clear and remove the empty divas, and after this, after that, to start the video again, I want to add the same code in one place. Thought, but it does not work as expected and I do not know that this is a good way to take care of the memory leak.
Edit:
I was using the "append" "html". My code now works like this, I need to increase memory and some kind of garbage collection. any advice?
नक्शा = नया बफर्ड इमेज [चौड़ाई] [ऊंचाई]; के लिए (int i = 0; i & lt; height; i ++) {for (int j = 0; j & lt; चौड़ाई; j ++) {if (charMap [j] [i] == पर्वत। इंडेंटफार्म) {if (j + 1 & lt ; चौड़ाई और amp; amp; j-1 & gt; = 0) {if (charMap [j-1] [i]! = पर्वत। इंडेंटिफ़ायर & amp; amp; & amp; amp; charMap [j + 1] [i]! = पर्वत। इंडेंटफार्म) {नक्शा [जे] [आई] = टाइल ग्रिड [1] [10]; }} और {नक्शा [जे] [आई] = टाइल ग्रिड [8] [10]; }}} यह कोड है जिसे मैं सेल के चारों ओर प्रत्येक टाइल को चेक करके 2 डी सर की जांच करने के लिए उपयोग कर रहा हूं लेकिन मुझे लगता है कि किसी को भी सोच रहा हूँ मदद कर सकता है? मुझे संदेह है कि आपको NullPointerException को charMap [j] से प्राप्त हो रहा है [ I] == पर्वत। इंडेंटिफ़ायर लाइन। सुनिश्चित करें कि आप ज्योफ द्वारा सुझाए गए दोनों मानचित्रों के लिए आंतरिक सरणियों को प्रारंभ करते हैं।
I am currently working on a school project and I think that is to gather some problems with the MPEG file I The scope of my project is: 1) Split the MPEG file into pieces of many fixed sizes. 2) Collecting some of them and leaving some part. Problem 1: When I run the file in the media player, it will play the video until it reaches that segment which I left Give it Example: Chunk = ["yui_1", "yui_2", "yui_3", "yui_5", "yui_6"] Duration of each segment: 1 second * If you think I have left the "yui_4" section. * If I went to collect all the parts except "yui_4", then the video will play the first 2 seconds before being hanged throughout the period. Problem 2: When I gather the first part off the part, it is unable to run the full MPEG file is. Duration of each piece: 1 second Example: wheel = ["yui_2", "yui_3", "yui_4", "yui_5", "yui_6"...
In an MVC3 web application, I was using Public Static Zero Global Filter Filter (GlobalFilterCollection filter) In order to implement global error handling, where the user was shown 'Error' view, if there was no exception, an exception occurred. For a particular view, I also wanted to display a different error view, if by decorating the method with [HandleError (View = "SpecialError")] Unwanted exceptions occurred. It works fine. Then I want to add global logging to unsociable exceptions. I created a custom handle error feature with the logging code: Public class MyHandleErrorAttribute: HandleErrorAttribute {The public override zero over exponence (exception context context) {// code to log code code. Xxation (reference); }} And instead of using this attribute name, register global filter and method decoration has been updated. It usually works, but when there is an exception method that is decorated with MyHandleError (see = "special error...
Comments
Post a Comment