I would like to disable the audio/image upload in the Kaltura module. It isn't necessary in this case and I believe it will confuse the site users. How can I make the uploader support only video? I must be missing an option. Thanks!

Comments

timofey’s picture

Good q'n. Does anyone know if there is a way to do this now?

davidseth’s picture

Issue tags: +kaltura, +kaltura_ce, +ui_conf

Are you using Kaltura CE on your own server? If so you can edit the file, it is located at: /var/www/sites/kaltura/src/kalturaCE/content/uiconf/kaltura/drupal. It worked like a charm for me!

And here is my edited ui_conf.xml file that removes audio and a few of the providers (please note I just commented out the XML stuff I didn't want):

<ContributionWizard>
<MediaProviders>
  <service>
    <id>1</id>
    <type>upload</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>UploadView.swf</moduleUrl>
    <name>File Upload</name>
    <logo/>
    <media>
      <type>video</type>
      <fileExt>flv,asf,qt,mov,mpg,avi,wmv,mp4</fileExt>
    </media>
<!--    <media>
      <type>audio</type>
      <fileExt>flv,asf,wmv,qt,mov,mpg,avi,mp3,wav</fileExt>
    </media>
-->
    <media>
      <type>image</type>
      <fileExt>jpg,bmp,png,gif</fileExt>
    </media>
  </service>
<!--
  <service>
    <id>20</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>Kaltura</name>
    <logo>http://www.kaltura.com/images/wizard/logo_kaltura.gif</logo>
    <media>
      <type>video</type>
    </media>
    <media>
      <type>audio</type>
    </media>
    <media>
      <type>image</type>
    </media>
  </service>
-->
  <service>
    <id>27</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>My Content</name>
    <logo></logo>
    <media>
      <type>video</type>
    </media>
<!--
    <media>
      <type>audio</type>
    </media>
-->
    <media>
      <type>image</type>
    </media>
    <tokens>
     <token>
      <name>extra_data</name>
      <value>$partner_id</value>
     </token>
    </tokens>
  </service>
  <service>
    <id>3</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
      <authMethod>4</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>Flickr</name>
    <logo>http://www.kaltura.com/images/wizard/logo_flickr.png</logo>
    <media>
      <type>image</type>
    </media>
  </service>
<!--
  <service>
    <id>9</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>Jamendo</name>
    <logo>http://img.jamendo.com/logo/jamendo-200-en.png</logo>
    <media>
      <type>audio</type>
    </media>
  </service>

  <service>
    <id>10</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>CCMixter</name>
    <logo>http://ccmixter.org/mixter-files/ccdj.gif</logo>
    <media>
      <type>audio</type>
    </media>
  </service>
-->
 <!-- <service>
    <id>11</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>NYPL</name>
    <logo>http://www.kaltura.com/images/wizard/logo_nypl.png</logo>
    <media>
      <type>image</type>
    </media>
  </service>
-->
  <service>
    <id>4</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
      <authMethod>2</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>YouTube</name>
    <logo>http://www.kaltura.com/images/wizard/logo_youtube.png</logo>
    <media>
      <type>video</type>
    </media>
  </service>
<!--  <service>
    <id>7</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
      <authMethod>3</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>MySpace</name>
    <logo>http://www.kaltura.com/images/wizard/logo_myspace.png</logo>
    <media>
      <type>video</type>
    </media>
  </service>
-->
  <service>
    <id>5</id>
    <type>search</type>
    <authMethodList>
      <authMethod>1</authMethod>
    </authMethodList>
    <moduleUrl>SearchView.swf</moduleUrl>
    <name>Any webpage</name>
    <logo>http://www.kaltura.com/images/wizard/logo_url.gif</logo>
    <media>
      <type>image</type>
    </media>
  </service>
</MediaProviders>

<UIConfigList>

  <UIConfig>
    <target>
		ContributionWizard.swf
    </target>
    <cssUrl>//content/uiconf/kaltura/drupal/styles_ContributionWizard.swf</cssUrl>
    <localeUrl>//content/uiconf/kaltura/en_US_ContributionWizard.swf</localeUrl>
  </UIConfig>

</UIConfigList>

<StartupDefaults>
	<NavigationProperties>
		<enableIntroScreen>false</enableIntroScreen>
		<enableTagging>true</enableTagging>
	</NavigationProperties>
	<gotoScreen>
		<mediaType>video</mediaType>
		<mediaProviderId>0</mediaProviderId>
	</gotoScreen>
</StartupDefaults>
<autoTOUConfirmation>true</autoTOUConfirmation>
</ContributionWizard>
timofey’s picture

Nice find! Your directories are way different... you must have really figured this out;)

The ui file is in kalturaCE\content\uiconf.template\kaltura\drupal\cw_drupal.xml

I wish there was an easier way to know what items those Service Ids correspond to.

timofey’s picture

Never mind about the Service Ids guide... this is pretty easy to understand