Comments (6)
Hi - you should only call play(null)
once .. is there a specific need to call it multiple times?
We've got some protection in there now because of some other changes we'd made around this - so calling play(null)
on an already-playing stream isn't valid. I guess we could add the condition that it's okay if you'd previously started the stream with the same call...
I would be interested if you think there is a need for that, or whether you could update your code so that only the first call is made, without any other side effects?
thanks
from adobe-runtime-support.
@koreaflash
Also make sure you don't use ns.play("");
anymore. #3098
from adobe-runtime-support.
I will try update the code.
Thank you.
from adobe-runtime-support.
- We provide educational content.
- Users can learn page by page and move pages freely.
=> Users can access pages containing netstream from time to time. - There is a function to preload the front or back page of the current page.
=> Users can also use 3 netstreams at the same time.
For the above reasons, play() is called frequently.
Is there a solution...?
from adobe-runtime-support.
Well we can change it so that play(null) is accepted as long as the previous play() calls also had the null argument. But you could just omit that call after the first time; you're calling in the reset action which would have the same effect? or is there then a delay between switching videos whilst the data already sent in is still being processed?
Previously, calling "play(null)" on a netstream which was already playing would just have reset/orphaned everything and set up a new playback pipeline. So there's not a huge difference between that and creating a new NetStream object. But we can add back in the capability, with that security check to ensure it's not being switched between different modes...
from adobe-runtime-support.
Ah - I just checked the code, and this is actually already what it's trying to do. But the check for if the argument is "null" is failing because we're checking that after a string conversion and the object itself then comes out as a non-null object (containing a string with contents "null"!!) -> switching the check here to null-check the original argument, rather than the stringified version...
thanks
from adobe-runtime-support.
Related Issues (20)
- armv HOT 1
- [Windows] Non-embedded fonts displayed without anti-aliasing (smoothing)
- TextField: Incorrect double-click behavior HOT 2
- adl quit unexpectedly HOT 8
- [AIR SDK 50.2.5.1][Linux] `Worker::start()` cause crash HOT 2
- Error on constructing XML from a file created by Visual Studio HOT 1
- AIR 50.2.5 Crashing in Debug Mode on Mac OS HOT 4
- i am using air sdk 50.2.25 , getting error while publish for android HOT 1
- i am using air sdk 50.2.2.5 , getting error while publishing for android HOT 2
- [Linux] `NativeWindow` creation cause crash without adl in some cases HOT 2
- [AIR 51.0.0.4][Linux] AIR applications doesn't work before Ubuntu 22.04 HOT 1
- After updating AIR SDK to version 50.2.4.5 Huge Spike in Crashes on iOS devices HOT 14
- [Issue] Context3d fail to initialize on Android
- ABB and armv7? HOT 2
- [ISSUE] Digest and Encryption not working on IOS HOT 2
- [Feature Request] Support for stageScaleMode and stageAlign in [SWF] metadata tag
- IOS Photo Library Access
- ANR extremely high on CPU: ARM Cortex-A53 (3,40%) HOT 2
- [ISSUE] TextField (input) issue on IOS 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.