Comments (6)
Yes, sorry, I didn't mean as a solution to this problem, I just meant there doesn't seem any sense in having AIR throw a security error when you're trying to do something that's possible via other mechanisms already.
So we can adjust it to provide this capability when it's using the appendBytes thing, pretty trivial change...
from adobe-runtime-support.
So .. I think that workaround is actually a bug i.e. that only works because there's a value not being reset properly.
The security error is being thrown deliberately in this mode - any server-based connection should result in the same thing, local files are set up so you can have access to them for snapshots etc, but unless an RTMP server has explicitly granted the access, anything streamed would have this restriction.
In this instance, there's nothing to tell the NetStream object that the byte array isn't just data that's retrieved via some online stream, hence the restriction will apply.
Is this something you need specifically when the video source is an embedded character in a SWF file? or are you looking for snapshots of any random FLV file that's pulled from somewhere online?
thanks
from adobe-runtime-support.
@ajwfrost
I'm using ffmpeg to "convert" local video files or video streams (which AIR not supported: AVI, H.265, RTSP, ...) "on the fly" to FLV container (with H.264 or H.263 codec) to provide it to NetStream
for playback.
So it's not RTMP in this "problem" case. I need to take screenshot from "locally provided FLV video bytes".
from adobe-runtime-support.
Okay thanks .. will check whether there are any restrictions we have to abide by here, although I would have thought if you're already able to convert things via ffmpeg then it would also be possible for you to rip off the video frames in the same way!
So perhaps the appendBytes() mechanism is one where we can allow the screenshot, whilst still preventing it if you're using an RTMP stream...
from adobe-runtime-support.
although I would have thought if you're already able to convert things via ffmpeg then it would also be possible for you to rip off the video frames in the same way!
Unfortunately it not suitable for me in this case cause I need not only a video frame but "stage screenshot" (what actually right now on the stage with all other rendered objects).
from adobe-runtime-support.
Related Issues (20)
- Android app crashes HOT 12
- How to load swf files from the sever in order to reduce app size HOT 5
- [ANE] `ApiException SIGN_IN_CANCELLED` after sign-in dialog in Google Play Games extension code HOT 2
- LoaderInfo::containsDebugInfo
- [AIR SDK 51.0.0.2] Animate trying to use 50.2 namespace HOT 2
- [AIR SDK 51.0.0.2] airsdk.xml not updated HOT 1
- [Android][ANE] Warning: exception thrown from ANE function: returning a null value to ActionScript HOT 5
- [AIR SDK 51.0.0.2] ReferenceError: Error #1069: Property declaration not found on builtin.as$0.MethodClosure and there is no default value. HOT 5
- [AIR 50.2.4.4+] `NetStream` fails to play local files which name starting from number HOT 2
- IPA crashes on iphone X which compiled using SDK 50.2.4.4 for Window
- [Feature Request] `TimeZone::keyName`
- [Feature Request][Android] `TimeZone::displayName` change
- 'storageAccessFrameworkFromAPI' attibute missing - AIRSDK 51.0.0.2 HOT 1
- AIR SDK Manager doesn't propose to upgrade to AIR 51.0.0.3 from AIR 51.0.0.2 HOT 2
- [Feature Request] `Camera::mirrored` HOT 4
- App crashes randomly on iPhone OS 16.5.1 after update to SDK 50.2.4.3 HOT 2
- [AIR 51.0.0.3][macOS] `Worker::start()` cause crash HOT 2
- [Feature Request] Move native extensions reference to airsdk.dev
- [AIR 51.0.0.3][macOS] `EncryptedLocalStore.setItem()` doesn't work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adobe-runtime-support.