Android Open Source - M3UPlayer M3 U Head






From Project

Back to project page M3UPlayer.

License

The source code is released under:

Apache License

If you think the Android project M3UPlayer 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.iptv.parser;
//ww w  . j a va  2  s. c  om
/**
 * This class describes a general m3u file head.
 * 
 * @author Ke
 */
public class M3UHead {
  /**
   * The human readable playlist name.
   */
  private String mName;
  /**
   * The default for playlist media type.
   */
  private String mType;
  /**
   * The default for playlist DLNA profile.
   */
  private String mDLNAExtras;
  /**
   * The default for playlist media plugin (handler).
   */
  private String mPlugin;

  public void setName(String name) {
    mName = name;
  }

  public String getName() {
    return mName;
  }

  public void setType(String type) {
    mType = type;
  }

  public String getType() {
    return mType;
  }

  public void setDLNAExtras(String profile) {
    mDLNAExtras = profile;
  }

  public String getDLNAExtras() {
    return mDLNAExtras;
  }

  public void setPlugin(String plugin) {
    mPlugin = plugin;
  }

  public String getPlugin() {
    return mPlugin;
  }

  @Override
  public String toString() {
    StringBuffer sb = new StringBuffer();
    sb.append("[Head]");
    if (mName != null) {
      sb.append("\nName: " + mName);
    }
    if (mType != null) {
      sb.append("\nType: " + mType);
    }
    if (mDLNAExtras != null) {
      sb.append("\nDLNA Extras: " + mDLNAExtras);
    }
    if (mPlugin != null) {
      sb.append("\nPlugin: " + mPlugin);
    }
    return sb.toString();
  }
}




Java Source Code List

com.iptv.parser.M3UFile.java
com.iptv.parser.M3UHandler.java
com.iptv.parser.M3UHead.java
com.iptv.parser.M3UItem.java
com.iptv.parser.M3UParser.java
com.iptv.parser.M3UToolSet.java
com.iptv.parser.package-info.java
com.iptv.player.Player.java
com.iptv.utils.BaseActivity.java
com.iptv.utils.FileBrowser.java
com.iptv.utils.Interlude.java
com.iptv.utils.MessageBox.java
com.iptv.utils.SystemProperties.java