Skip to content

Commit

Permalink
- Major Overhaul in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshathSai committed Jul 21, 2024
1 parent fb971db commit 0a75d1d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 35 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
Expand All @@ -70,6 +74,14 @@
<artifactId>spring-content-rest-boot-starter</artifactId>
<version>${spring.content.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-rest-hal-explorer</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import com.akshathsaipittala.streamspace.library.Movie;
import org.springframework.content.commons.store.ContentStore;
import org.springframework.content.rest.StoreRestResource;
import org.springframework.stereotype.Component;

@Component
@StoreRestResource
public interface MovieContentStore extends ContentStore<Movie, String> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import com.akshathsaipittala.streamspace.library.Song;
import org.springframework.content.commons.store.ContentStore;
import org.springframework.content.rest.StoreRestResource;
import org.springframework.stereotype.Component;

@Component
@StoreRestResource(path="music")
public interface MusicStore extends ContentStore<Song, String> {}
15 changes: 0 additions & 15 deletions src/main/resources/static/assets/manifest.json

This file was deleted.

Binary file removed src/main/resources/static/favicon.ico
Binary file not shown.
12 changes: 6 additions & 6 deletions src/main/resources/templates/personalmedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ <h3 class="display-6 pt-3 mb-3">
title="Refresh"
hx-get="/refresh/personalmedia"
hx-indicator=".globalProgress"
hx-swap="outerHTML:#personal-media-files"></i>
hx-swap="outerHTML"></i>
</small>
</h3>

<ul id="personal-media-files" class="text-left">
<div id="mini-player" class="row">

</div>

<ul id="personal-media-files" class="row text-left">

<li th:each="video: ${videos}">
<a th:text="${video.name}"
Expand All @@ -40,8 +44,4 @@ <h3 class="display-6 pt-3 mb-3">

</div>

<div id="mini-player" class="col">

</div>

</div>
12 changes: 2 additions & 10 deletions src/main/resources/templates/player.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
<div th:fragment="videoPlayer" th:remove="tag">

<div class="fade-me-in">
<!-- <p class="display-6 text-muted">Now Playing</p>-->
<video class="img-fluid shadow-lg" controls>
<source th:src="@{'/movies/' + ${movieCode} + '/content'}" type="video/mp4">
<source th:src="@{'/movies/' + ${movieCode}}" type="video/mp4">
<!--<source th:src="@{'/movies/' + ${movieCode}}" type="video/webm">
<source th:src="@{'/movies/' + ${movieCode}}" type="video/ogg">-->
<p>
Sorry, your browser doesn't support embedded videos, but don't worry, you can continue downloading and watch it with your favorite video player!
</p>
</video>
<!--<p class="display-6 text-muted">Now Playing</p>-->
<video class="img-fluid shadow-lg" th:src="@{'/movies/' + ${movieCode} + '/content'}" type="video/webm" controls preload="auto"></video>
</div>

</div>
Expand Down

0 comments on commit 0a75d1d

Please sign in to comment.