This project was submitted for the 2017 iQiyi National Programming Contest and won the First Prize and Best Individual.
The name Triplore is the combination of Trip and Explore, hoping it can help users grab useful information from massive online videos, and combine these information into a piece of note which can be reviewed when travelling.
Unfortunately, the video player library libav.a
provided by iQiyi is in 32 bit architecture and Apple requires that all apps are compiled under 64 bit architecture, so this project can not run very much likely. Please just refer to the source code and idea.
-
Provide selected travelling videos on homepage, to help users find inspiration.
-
Search all videos related to travelling provided by iQiyi.
-
Offer list of popular travelling destinations, including cities and countries. It is divided into "Food", "Shopping" and "Scene" categories so that users can pick what they want directly.
-
Add videos into their "Favorites".
-
Pull to refresh in video list, getting videos by pages.
-
Save user's "Watch history", helping users find videos they have watched.
-
Put phone in landscape mode to watch video in full screen mode.
-
Swipe up and down in the left / right part of the player to adjust brightness / volume.
-
There is a control pnael on player view, which has following functions:
-
When playing videos, use control panel to take a screenshot" or "add annotations", and combine them to a travelling note.
-
Use different templates and fonts to decorate the note.
-
When playing videos, use control panel to record a clip of video and save to local albums.
-
Edit / delete notes, including swipe left to delete an item in note, click to edit annotations, press long to adjust note item orders. When reading notes, users can go to player to watch the video again and edit the note.
-
Convert note into a high resolution picture and save to album.
-
After signing in, users can share notes on our server, others can see other's notes and mark them as "Like".
Testing on a real device is highly recommended.
-
Download this repo.
-
Because one of the library provided by iQiyi
libav.a
is too big(1.86 GB
after unzipping),we need to download it from 🔗Download and drag it to following place.. ├── IOSPlayerLib │ ├── include │ └── libav.a <------ HERE ├── Podfile ├── Podfile.lock ├── Pods ├── Triplore ├── Triplore.xcodeproj ├── Triplore.xcworkspace └── TriploreTests
-
Open
Triplore.xcworkspace
and pressCmd + R
to run。
- Add corresponding
.a
inTARGETS -> Triplore -> Build Phases -> Link Binary With Libraries
.
- Set every
Enable Bitcode
toNO
inPods -> EVERY Target -> Build Settings
.
- Add
libav.a
on your local machine inTARGETS -> Triplore -> General -> Linked Frameworks And Libraries
.
Thanks to following 3rd party libraries / platforms (in alphabetical order)