Android Open Source - FireCast Media Item






From Project

Back to project page FireCast.

License

The source code is released under:

MIT License

If you think the Android project FireCast listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.google.plus.dougnlamb.firecast;
/*w  w  w .j  a  va2 s  . co  m*/
import java.util.Hashtable;
import java.util.Map;

public class MediaItem {

  private String url;
  private String mimeType;
  private int orientation;

  public MediaItem(String url, String mimetype, int orientation) {
    this.setUrl(url);
    this.setMimeType(mimetype);
    this.setOrientation(orientation);
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getMimeType() {
    return mimeType;
  }

  public void setMimeType(String mimeType) {
    this.mimeType = mimeType;
  }

  private int getOrientation() {
    return orientation;
  }

  private void setOrientation(int orientation) {
    this.orientation = orientation;
  }

  public Map getMap() {
    Map<String, String> map = new Hashtable<String, String>();
    map.put("url", getUrl());
    map.put("mimeType", getMimeType());
    map.put("orientation", Integer.toString(getOrientation()));
    
    return map;
  }

}




Java Source Code List

com.google.plus.dougnlamb.firecast.FireCastActivity.java
com.google.plus.dougnlamb.firecast.FireCastMessageStream.java
com.google.plus.dougnlamb.firecast.FireCastService.java
com.google.plus.dougnlamb.firecast.FireCastSession.java
com.google.plus.dougnlamb.firecast.FireMediaTask.java
com.google.plus.dougnlamb.firecast.MainActivity.java
com.google.plus.dougnlamb.firecast.MediaItem.java
com.google.plus.dougnlamb.firecast.MultimediaControlsFragment.java
com.google.plus.dougnlamb.firecast.SetupCastSessionActivity.java
com.google.plus.dougnlamb.firecast.SlideshowControlsActivity.java
com.google.plus.dougnlamb.firecast.VideoControlsActivity.java