aralekk / simple360player_ios Goto Github PK
View Code? Open in Web Editor NEWSimple 360 Video player for iOS using SceneKit
Simple 360 Video player for iOS using SceneKit
It doesn't look like working on Simulator. Do you think it's possible to support this on Simulators?
i'm toying with the play/pause feature where upon going from play to pause the motion tracking pauses as well. before going back from pause to play, the orientation of the phone could change. for example, i could resume watching turned 180 degrees from where i was before.
as a result, upon resuming the device orientation tracking will update the view to show me the content that is 180 degrees from the frame in which i paused.
my goal is to make it such that when i resume playback under my new orientation, i will be able to resume watching from the angle in which i left off and still have the device motion tracking update as i move around while the video is playing again.
i'm struggling to understand how i'd accomplish this as i'm not very experienced thinking in 3d graphics.
how would you offset/update the orientation/quaternion based on the previously paused orientation to solve this use case?
Just spotted this – if you run the example, pause it for a while and rotating the device a few times will autoplay the video. Even this is at paused mode?
Please update! This project is so awesome
For mp4 files that have audio I can not get the audio to be included in the playback. The volume property for the underlying AVPlayer is 1.0 but there is still no audio.
Any suggestions?
i want to move camera when user scroll up or down can you help me sir
What apis would you use ?
Hello,
there are huge memory leaks not caused by you developers directly but I think that its Apple's SpriteKit and AVKit.
Steps to reproduce are simple:
Just curious, I see people choosing seemingly random numbers for the sphere radius. How did you arrive at the value of 30?
这么大个文件,没有使用, 我下载了好久。 建议作者删了
Its working with the base example and the main bundle stuff
but if i save the file in the documents directory the player is not playing the file
FileExists on iphone
any ideas?
I am trying to take action when the video finishes. To do this I subscribed to the AVPlayerItemDidPlayToEndTimeNotification notification. By doing this I noticed that this notification gets called repeatedly after the video finishes, multiple times a second.
I looked into the issue further by setting up KVO on the "rate" property of the player and noticed that after the videos finishes the rate values switches between 0 and 1 repeatedly, multiple times per second.
This explains why AVPlayerItemDidPlayToEndTimeNotification is getting calls so much but does not explain why the rate keeps toggling. The actual on screen video is frozen at the last frame and does not seen to be impacted.
The only thing that breaks this loop is calling videoSpriteKitNode!.pause(). Even this approach is not ideal because you still get a few AVPlayerItemDidPlayToEndTimeNotification notifications before you have a chance to call videoSpriteKitNode!.pause().
When I run the project in the simulator I just see a black screen. Is that intended?
The rotation will be panning, not tilting if user touch the screen and move along the screen's y axis in portrait mode.
I am trying to play the video that is commented in the code but sound doesnt work (iphone 6plus)
Memory leak when playing by Xcode profile tool launch app, why?
Hi Aralekk,
I've a dispatch error in rendered fonction when I dismiss my VR Player view.
I've tried debugging this, but have had no success. I was wondering if you would take a look at it possibly.
Thank you,
Pierre-Olivier
The current project compiles and runs on both the simulator and device but just displays a full grey screen.
UIPanGestureRecognizer responds to gestures and I can see and play the VR.mp4 in xcode but still can't see the VP.mp4 video in the app.
hi Aralekk,
I found the device getting very hot when running this player(it once induce the system restart), so I analyze with xcode instruments GPU tool, and found:
renderer utilization %: 708286
tiler utilization %:70
texture count: 809
device utilization %: 74~89
maybe an issue? or is there any method to lower them? thanks a lot~
Hi Aralekk,
I've discovered that with long videos, over 20 seconds, there is a major memory leak that causes the app to crash. I believe it is caused by the renderer function.
When reworking the view controller to non stereoscopic, using only left scene camera, there are no memory issues.
I've tried debugging this, but have had no success. I was wondering if you would take a look at it possibly.
Thank you,
Micah
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.