Hello everyone,
I'm coming across an issue using Flashphoner snapshot feature with web SDK library on my sample app.
Differentry from Flashphoner website snapshot demo, I'm trying to get snapshot from a Player only Web app, while another Web app is streaming on a smartphone device.
Like that demo, everytime snapshot is requested, I'm creating a new streaming from session (using createStream method), calling snapshot() method and listening for SNAPSHOT_COMPLETE event .
Now the issue itself: I'm able to get the snapshot base64 every time but if i do another request, it seems that i get the same image as before, and next requests will have a curious pattern.
Let's say I'm trying to get this 3 subjects snapshot in this sequence: a pen , a mouse, a keyboard. If I keep asking for snapshots, I'll get this pattern: pen, pen (same), pen (same), mouse, keyboard and so on.
I already checked if it could be my software problem, but the thing is that this pattern is directly returned by Websocket response which contains image base64.
I also checked snapshot demo, which works perfectly, so i don't think the problem could be streamer's device.
Another fun fact: if I switch device orientation on streamer app (which is also managed with a video resize on player side) in between snapshots , I will always get the right image.
Some more info about my environments:
Francesco.
I'm coming across an issue using Flashphoner snapshot feature with web SDK library on my sample app.
Differentry from Flashphoner website snapshot demo, I'm trying to get snapshot from a Player only Web app, while another Web app is streaming on a smartphone device.
Like that demo, everytime snapshot is requested, I'm creating a new streaming from session (using createStream method), calling snapshot() method and listening for SNAPSHOT_COMPLETE event .
Now the issue itself: I'm able to get the snapshot base64 every time but if i do another request, it seems that i get the same image as before, and next requests will have a curious pattern.
Let's say I'm trying to get this 3 subjects snapshot in this sequence: a pen , a mouse, a keyboard. If I keep asking for snapshots, I'll get this pattern: pen, pen (same), pen (same), mouse, keyboard and so on.
I already checked if it could be my software problem, but the thing is that this pattern is directly returned by Websocket response which contains image base64.
I also checked snapshot demo, which works perfectly, so i don't think the problem could be streamer's device.
Another fun fact: if I switch device orientation on streamer app (which is also managed with a video resize on player side) in between snapshots , I will always get the right image.
Some more info about my environments:
- streamer app
- device: Xiaomi redmi 9 se
- os: Android 10
- browser: Chrome 81.0.4044.138
- web SDK version: latest
- player app
- device: PC
- os: Windows 10
- browser: Chrome 81.0.4044.138
- web SDK version: latest
Francesco.