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)
- [Issue] Asdoc bug treats "/" within RegExp literals incorrectly as a RegExp delimiter HOT 3
- Log and Ignore invalid SWFs file to be stripped HOT 1
- [Android] TextField Input focus issue
- Unable to debug in devices from 50.2.4 HOT 2
- iOS : same url using a not trusted certificate, connect first to http and after https causes app crash HOT 3
- Referencing File.url triggers an error after calling File.canonicalize() - Windows 10, only after system update KB5037768 HOT 4
- Android-Crash - Airsdk 50.2.4.1 HOT 1
- Crackling sound on `NetStream` stop
- flash.text.Textfield selected scrolls down, last line doesn't displayed in some case HOT 3
- Error while building AAB file with Sonoma 14.5 HOT 3
- [Feature Request][iOS] `NetworkInfo` support
- Asset validation failed (90035) when using transporter HOT 3
- WebService call converting string into Infinity integer HOT 4
- Emulator fails with out of memory error HOT 5
- Issue with Starling and SDK 51 on mac ? HOT 18
- About FOREGROUND_SERVICE HOT 11
- No solution for client websocket desktop air app, please help! HOT 38
- [Bug] Android crash after update to Air 51.0.1.2 HOT 2
- Geolocation for windows
- [Feature Request] `NetStream::appendBytes()` MP4 H.264 support (for streaming content)
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.