-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Video player doesn't load or play movies #206
Movie source file doesn't get attached #207
- Loading branch information
dularion
committed
Aug 9, 2016
1 parent
6a50dab
commit 72c5927
Showing
14 changed files
with
128 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import streama.Episode | ||
|
||
model { | ||
Episode episode | ||
} | ||
|
||
json g.render(episode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import streama.Episode | ||
|
||
model { | ||
Iterable<Episode> episodeList | ||
} | ||
|
||
json tmpl.episode(episodeList ?: []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import streama.Episode | ||
|
||
model { | ||
Episode episode | ||
} | ||
|
||
json g.render(episode, [deep:true, excludes: ['files']]){ | ||
files episode.files.findAll{it.extension != '.srt' && it.extension != '.vtt'} | ||
subtitles episode.files.findAll{it.extension == '.srt' || it.extension == '.vtt'} | ||
hasFiles episode.files ? true : false | ||
nextEpisode {id episode.getNextEpisode()?.id } | ||
viewedStatus episode.getViewingStatus() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import streama.File | ||
|
||
model { | ||
File file | ||
} | ||
|
||
json g.render(file){ | ||
|
||
src file.getSrc() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import streama.File | ||
|
||
model { | ||
Iterable<File> fileList | ||
} | ||
|
||
json tmpl.file(fileList ?: []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import streama.File | ||
|
||
model { | ||
File file | ||
} | ||
|
||
json tmpl.file(file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import streama.Video | ||
|
||
model { | ||
Video video | ||
} | ||
|
||
json g.render(video) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import streama.Video | ||
|
||
model { | ||
Iterable<Video> videoList | ||
} | ||
|
||
json tmpl.video(videoList ?: []) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import streama.Episode | ||
import streama.Video | ||
|
||
model { | ||
Video video | ||
} | ||
|
||
json g.render(video, [deep:true, excludes: ['files']]){ | ||
files video.files.findAll{it.extension != '.srt' && it.extension != '.vtt'} | ||
subtitles video.files.findAll{it.extension == '.srt' || it.extension == '.vtt'} | ||
hasFiles video.files ? true : false | ||
viewedStatus video.getViewingStatus() | ||
|
||
// if(video instanceof Episode){ | ||
//// nextEpisode { | ||
//// id video.nextEpisode?.id | ||
//// } | ||
// } | ||
} | ||
|