question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing and using in our App

See original GitHub issue

Hi,

When I try the gif format, I get an error:

  1. After cature.save(), I get below error:

Uncaught Error: Width and height must be set prior to rendering

When trying webWriter, I get the below errors/issues

  1. After capture.start(), I use a setTimeout for 3 seconds before capture.stop() and capture.save(). The setTimeout never gets fired because of the internal clearTimeout in capture.start()

  2. Even when I try to stop recording using a button onClick, I get following error when I capture.save()

WebMWriter.js:230 Uncaught TypeError: Cannot read property 'dataOffset' of undefined
    at fileOffsetToSegmentRelative (WebMWriter.js:230)
    at writeCues (WebMWriter.js:500)
    at Object.complete (WebMWriter.js:642)
    at CCWebMEncoder.webpackJsonp.2150.CCWebMEncoder.save (CCapture.js:2

This is caused by the below lines

            function fileOffsetToSegmentRelative(fileOffset) {
                return fileOffset - ebmlSegment.dataOffset;
            }

PS: I am using webm-writer NPM package import WebMWriter from "webm-writer";

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:11

github_iconTop GitHub Comments

4reactions
daterminecommented, Feb 27, 2019

Actually, I just decided to write a canvas recorder of my own using MediaSource/MediaRecorder. Found some open source code and made some slight modifications.

This is my CanvasRecorder.js file: https://pastebin.com/raw/U7kwaV5S

…which produced this kind of thing in conjunction with some canvas drawing stuff: https://presentio.us/view/18b3ba

Unfortunately MediaSource/MediaRecorder support for the iPad is non-existent, so I’m back to the drawing board looking at ffmpegserver.js

https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder#Browser_compatibility https://developer.mozilla.org/en-US/docs/Web/API/MediaSource#Browser_compatibility

3reactions
Gureycommented, Nov 3, 2019

I had the same problem. After two hours a realized that i never used capture.start() … yey me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix App Not Installed Error on Android Phone - YouTube
How to Fix the App Not Installed Error on Android Phones. Android App not installed error is one of the Android problems.
Read more >
How to Fix Android App Not Installed Error
Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.
Read more >
Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >
Unable to Install Apps or Software on Windows? Here's What ...
1. Reboot Your Computer · 2. Check App Installer Settings in Windows · 3. Free Up Disk Space on Your PC · 4....
Read more >
Resolve app installation errors in Google Play Store
Open the Settings menu on your device. · Go to Apps or Application Manager. · Scroll to All apps and then scroll down...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found