Comments (9)
The stage is listening to changes in the flash element and should resize the video accordingly, see: https://github.com/AxisCommunications/locomote-video-player/blob/master/src/Player.as#L111-L113
I'm a little confused as to why it doesn't resize for you. Which version of locomote are you using? This should be available in 0.1.0.
from locomote-video-player.
I think I was using an old one, because I updated to the one the master branch and I works more or less.
Now the behaviour is a bit different. The camera stream always takes the full size of the player and ignore the ratio of the stream. See screenshot below. I just added the camera on the right. Again if I go fullscreen and back, the size is back to normal.
Alternatively, I can use the videoResize() method that I just exposed in my pull request when the stream start (onstreamStarted) and everything is back to normal. Maybe you invoke the videoResize too fast and didn't wait for the stream to be available.
If you fixed it, you can ignore my pull request #98.
Regards
Gaétan
from locomote-video-player.
Locomote always take aspect ratio into account (see: https://github.com/AxisCommunications/locomote-video-player/blob/master/src/Player.as#L153-L172).
Could you provide an SSCCE which demonstrate the behavior you see above?
from locomote-video-player.
I don't have the time today, but I will try to reproduce this in a small example.
from locomote-video-player.
Luckily I reproduce this bug in a small example. It seems to be linked to CSS and not angular.
https://mega.co.nz/#!SgZBXSZY!lUiBsSncfrBiX_Au7qFtRXRK7FHIl0g3vkCsQG8u5x4
Use the parameter url to se the stream url (cf Readme).
Again, if you go fullscreen and back, the player size is ok.
from locomote-video-player.
Thanks. I'll see if I can reproduce and hopefully narrow down why the event is not transmitted as it should·
from locomote-video-player.
I managed to reproduce this (I think) and it was an issue when the new metadata (e.g. the video dimensions) was set and when resize was called. I think b044a8a should fix it. Would you mind testing if it works? It is available on master
from locomote-video-player.
Wow ! Not only you solve the bug but the player is much more reactive now !
Before, when you played a stream and you switched to another stream the first one was still displayed for some seconds (just a freeze on the last image). Now the new stream is directly played without freeze or anything.
Maybe it's due to another commit but nice work anyway ! 👍
from locomote-video-player.
I'm glad to hear it. I'm not sure why you're experiencing better responsiveness from the player though.. Might be that the resizing somehow makes it look and feel better.
from locomote-video-player.
Related Issues (20)
- No error in log, but can't play rtsp stream. HOT 2
- expand on full width with auto height HOT 13
- Dahua DVR RTSP No RTP-INFO
- play but fast rate,why? HOT 1
- Locomote not working correctly with the last update of Chrome (51) HOT 1
- Locomote player gives this error: Object {code: 731, message: "Socket reported a security error: Error #2048."} HOT 6
- httpm with nondefault port: no policy connection to the port HOT 3
- Enhancement for RTSP over UDP
- "Pause" RTSP
- Help for a begineer HOT 8
- Error 824: Can't determine track URL
- RTSP frameByFrame mode no video display HOT 3
- RTMP video is not smooth,there has sawtooth HOT 1
- Only first frame displayed in video container
- How should I close the audio from rtsp?
- Live Cam heavily delayed after Locomote update from 0.7.0 to 1.1.9
- locomote and cisco VSM. HOT 1
- How to connect a large scale camera rtsp signals?
- API listener 'apiReady' never ready.
- H.265 Not Support? 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 locomote-video-player.