-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed package name, added support for different media types, improved…
… documentation.
- Loading branch information
1 parent
a456af5
commit e42a76d
Showing
17 changed files
with
336 additions
and
170 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
# Change Log | ||
|
||
## 0.1.1 | ||
|
||
- Improved documentation. | ||
- Support for multiple file types added. | ||
- Changed package name when I decided to buy `lubecki.com` but the minimum bid was 5000£. Managed to get `jlubecki.com`. |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
group 'com.lubecki.q' | ||
group 'com.jlubecki.q' | ||
version '0.1.0' | ||
|
||
apply plugin: 'java' | ||
|
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,79 @@ | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2015 Jacob Lubecki | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
*/ | ||
|
||
package com.jlubecki.q; | ||
|
||
/** | ||
* Describes the various media types the Q should be able to handle. | ||
*/ | ||
public enum MediaType { | ||
|
||
/** | ||
* Used as the default media type for all tracks. Players that only need one media format can then ignore the | ||
* {@link QTrack#mediaType} field. | ||
*/ | ||
DEFAULT("default"), | ||
|
||
/** | ||
* Used for music or other plain audio formats. | ||
*/ | ||
AUDIO("audio"), | ||
|
||
/** | ||
* Used for any type of playable video. | ||
*/ | ||
VIDEO("video"), | ||
|
||
/** | ||
* Used for live streamed audio content. (i.e. online radio, live podcasts, etc.) | ||
*/ | ||
STREAM_AUDIO("stream audio"), | ||
|
||
/** | ||
* Used for live streamed video content. | ||
*/ | ||
STREAM_VIDEO("stream video"), | ||
|
||
/** | ||
* Used for images. Doubt this is useful, but now the option is there. | ||
*/ | ||
IMAGE("image"), | ||
|
||
/** | ||
* Describes anything that can be described with a {@link com.jlubecki.q.playback.Player} but doesn't necessarily | ||
* match any of the explicitly provided media types. | ||
*/ | ||
OTHER("other"); | ||
|
||
private String type; | ||
|
||
MediaType(String type) { | ||
this.type = type; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return type; | ||
} | ||
} |
Oops, something went wrong.