本文整理了Java中chameleon.playlist.Media.getSource()
方法的一些代码示例,展示了Media.getSource()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Media.getSource()
方法的具体详情如下:
包路径:chameleon.playlist.Media
类名称:Media
方法名:getSource
[英]Returns the media source.
[中]返回媒体源。
代码示例来源:origin: com.github.muff1nman.chameleon/core
@Override
public void endVisitMedia(final Media target)
{
// Suppress media components with unspecified URI.
if (target.getSource() == null)
{
_logger.info("Removing media with no source: " + target);
target.getParent().removeComponent(target);
}
}
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-pla
if (media.getSource() != null)
filenames.add(media.getSource().toString()); // Shall not throw UnsupportedOperationException, ClassCastException, NullPointerException, IllegalArgumentException.
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-hypetape
if (media.getSource() != null)
track.setId(Integer.toString(System.identityHashCode(media.getSource())));
track.setName(media.getSource().toString());
track.setMP3(media.getSource().toString());
playlist.addTrack(track);
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-pls
if (media.getSource() != null)
resource.setLocation(media.getSource().toString());
if (media.getSource().getDuration() >= 0L)
resource.setLength((media.getSource().getDuration() + 999L) / 1000L);
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-plp
if (media.getSource() != null)
filenames.add(media.getSource().toString()); // Shall not throw UnsupportedOperationException, ClassCastException, NullPointerException, IllegalArgumentException.
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-m3u
if (media.getSource() != null)
resource.setLocation(media.getSource().toString());
if (media.getSource().getDuration() >= 0L)
resource.setLength((media.getSource().getDuration() + 999L) / 1000L);
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-rmp
if (media.getSource() != null)
track.setTitle(media.getSource().toString());
track.setFileName(media.getSource().toString());
if (media.getSource().getLength() >= 0L) // NOPMD Deeply nested if..then statements are hard to read
track.setSize(media.getSource().getLength()); // Shall not throw IllegalArgumentException.
if (media.getSource().getDuration() >= 0L) // NOPMD Deeply nested if..then statements are hard to read
track.setDuration((int)(media.getSource().getDuration() / 1000L)); // Shall not throw IllegalArgumentException.
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-rss
if (media.getSource() != null)
content.setURL(media.getSource().getURI()); // May throw SecurityException, URISyntaxException.
url = content.getURL();
content.setFileSize(Long.valueOf(media.getSource().getLength()));
content.setType(media.getSource().getType());
content.setDefault(true);
if (media.getSource().getDuration() >= 0L) // NOPMD Deeply nested if..then statements are hard to read
content.setDuration((int)((media.getSource().getDuration() + 999L) / 1000L));
if (media.getSource().getWidth() >= 0) // NOPMD Deeply nested if..then statements are hard to read
content.setWidth(Integer.valueOf(media.getSource().getWidth()));
if (media.getSource().getHeight() >= 0) // NOPMD Deeply nested if..then statements are hard to read
content.setHeight(Integer.valueOf(media.getSource().getHeight()));
enclosure.setURL(media.getSource().getURI()); // May throw SecurityException, URISyntaxException.
url = enclosure.getURL();
enclosure.setLength(media.getSource().getLength());
if (media.getSource().getType() != null) // NOPMD Deeply nested if..then statements are hard to read
enclosure.setType(media.getSource().getType());
item.setTitle(media.getSource().toString());
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-mpcpl
if (media.getSource() != null)
resource.setFilename(media.getSource().toString());
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-b4s
if (media.getSource() != null)
entry.setPlaystring(media.getSource().toString());
if (media.getSource().getLength() >= 0L) // NOPMD Deeply nested if..then statements are hard to read
entry.setLength((int) media.getSource().getLength()); // Shall not throw IllegalArgumentException.
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-plist
if (media.getSource() != null)
entry.put("Track ID", new chameleon.plist.Integer(System.identityHashCode(media.getSource())));
playlist.addPlistObject(entry);
tracks.put(Integer.toString(System.identityHashCode(media.getSource())), track);
track.put("Track ID", new chameleon.plist.Integer(System.identityHashCode(media.getSource())));
if (media.getSource().getLength() >= 0L) // NOPMD Deeply nested if then statement
track.put("Size", new chameleon.plist.Integer((int) media.getSource().getLength()));
if (media.getSource().getDuration() >= 0L) // NOPMD Deeply nested if then statement
track.put("Total Time", new chameleon.plist.Integer((int) media.getSource().getDuration()));
if (media.getSource().getLastModified() > 0L) // NOPMD Deeply nested if then statement
track.put("Date Modified", new chameleon.plist.Date(new Date(media.getSource().getLastModified())));
track.put("Location", new chameleon.plist.String(media.getSource().toString()));
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-atom
if (media.getSource() != null)
final URI uri = media.getSource().getURI(); // May throw SecurityException, URISyntaxException.
link.setHref(uri.toString());
link.setRel("enclosure");
link.setType(media.getSource().getType());
if (media.getSource().getLength() >= 0L) // NOPMD Deeply nested if..then statements are hard to read
link.setLength(Long.valueOf(media.getSource().getLength()));
title.setText(media.getSource().toString());
if (media.getSource().getLastModified() > 0L)
entry.setUpdated(new Date(media.getSource().getLastModified()));
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-xspf
if (media.getSource() != null)
location.setText(media.getSource().toString());
track.addStringContainer(location);
if (media.getSource().getDuration() > 0L) // NOPMD Deeply nested if..then statements are hard to read
track.setDuration((int) media.getSource().getDuration());
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-wpl
if (media.getSource() != null)
wplMedia.setSource(media.getSource().toString());
wplSeq.addMedia(wplMedia);
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-kpl
if (media.getSource() != null)
entry.setFilename(media.getSource().toString());
entries.add(entry);
tag.setGenre("Other");
tag.setYear("Unknown Year");
tag.setTitle(media.getSource().toString());
entry.setTag(tag);
代码示例来源:origin: com.github.muff1nman.chameleon/core
if ((media2.getSource() == null) || !media2.getSource().equals(media1.getSource()))
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-smil
final Reference ref = new Reference();
if (media.getSource() != null)
ref.setSource(media.getSource().toString());
ref.setType(media.getSource().getType()); // May be null.
代码示例来源:origin: com.github.muff1nman.chameleon/playlist-asx
if ((media.getRepeatCount() != 0) && (media.getSource() != null)) // Ignore "empty" media.
final String path = media.getSource().toString().toLowerCase();
entryRef.setHref(media.getSource().toString());
newContainer.addAsxElement(entryRef);
reference.setHref(media.getSource().toString());
内容来源于网络,如有侵权,请联系作者删除!