Here is a Xcode project for Apple TV 4
Posted: 19 Dec 2015 15:17
Hello all,
I have developed a project for the Apple TV for life streaming from Enigma 2 powered SAT/cable receivers with WebIf. It also supports EPG and the view of recordings. The stream is stable and there is now difference in the quality also in full HD.
Put the IP address of the receiver on the text field on top of the screen. You can also use the Bonjour name if this is enabled on the receiver.
The web port should be 80.
The streaming port in my case is 8001 (VU Plus Duo with VTI image).
HTTPS is not supported.
Loading the EPG data is done in the background because it can take up to 30 minutes. I store the data so that at the next start only the updates will loaded.
The "Movies" button opens the list of recorded movies. It can takes some time if the HD in the receiver is sleeping.
If a movie is playing you can swipe down for EPG info.
In MobileVLCKit.xcodeproject I have built the releases for device and simulator. Then I put them together with:
$ lipo -create Release-appletvos/libTVVLCKit.a Release-appletvsimulator/libTVVLCKit.a -o libTVVLCKit.a
I stored the lib directly in the project and also the header files (which I had to change a little bit because of the pathes).
There are some issues:
- The app does not check if recordings are available (disk built in).
- During compiling some warnings appear. I think simulator and device are not correctly differentiated.
- tvOS does not a allow to store permanent data to the documents folder. I used the temp folder for storing IP address, ports and EPG data. But the temp folder is not save.
- The pause/stop feature I have disabled - it seems it does not work. See the method (void)pausePlayPressed in VideoViewController.m.
- Selecting of special audio tracks does not work. I have disabled my tries. See also the method (void)pausePlayPressed in VideoViewController.m.
- Timeshift is not implemented. I does not know the API in WebIf for doing that.
Here you can download the project: https://www.dropbox.com/s/ol73m4sbxguox ... s.zip?dl=0
Screenshots:
https://www.dropbox.com/s/srwrpdailc933 ... 8.png?dl=0
https://www.dropbox.com/s/gwkh8nwba46m4 ... 4.png?dl=0
Use the project as proof of concept.
Use it as example.
What about to store it on github to build together a nice app...
Best regards, Matthias
I have developed a project for the Apple TV for life streaming from Enigma 2 powered SAT/cable receivers with WebIf. It also supports EPG and the view of recordings. The stream is stable and there is now difference in the quality also in full HD.
Put the IP address of the receiver on the text field on top of the screen. You can also use the Bonjour name if this is enabled on the receiver.
The web port should be 80.
The streaming port in my case is 8001 (VU Plus Duo with VTI image).
HTTPS is not supported.
Loading the EPG data is done in the background because it can take up to 30 minutes. I store the data so that at the next start only the updates will loaded.
The "Movies" button opens the list of recorded movies. It can takes some time if the HD in the receiver is sleeping.
If a movie is playing you can swipe down for EPG info.
In MobileVLCKit.xcodeproject I have built the releases for device and simulator. Then I put them together with:
$ lipo -create Release-appletvos/libTVVLCKit.a Release-appletvsimulator/libTVVLCKit.a -o libTVVLCKit.a
I stored the lib directly in the project and also the header files (which I had to change a little bit because of the pathes).
There are some issues:
- The app does not check if recordings are available (disk built in).
- During compiling some warnings appear. I think simulator and device are not correctly differentiated.
- tvOS does not a allow to store permanent data to the documents folder. I used the temp folder for storing IP address, ports and EPG data. But the temp folder is not save.
- The pause/stop feature I have disabled - it seems it does not work. See the method (void)pausePlayPressed in VideoViewController.m.
- Selecting of special audio tracks does not work. I have disabled my tries. See also the method (void)pausePlayPressed in VideoViewController.m.
- Timeshift is not implemented. I does not know the API in WebIf for doing that.
Here you can download the project: https://www.dropbox.com/s/ol73m4sbxguox ... s.zip?dl=0
Screenshots:
https://www.dropbox.com/s/srwrpdailc933 ... 8.png?dl=0
https://www.dropbox.com/s/gwkh8nwba46m4 ... 4.png?dl=0
Use the project as proof of concept.
Use it as example.
What about to store it on github to build together a nice app...
Best regards, Matthias