Showing posts with label embedding. Show all posts
Showing posts with label embedding. Show all posts
Tuesday, January 27, 2015
Embedding or linking audio files in PowerPoint
Do you always wonder why audio inserted in your PowerPoint presentation disappear when you play presentation on a computer other than the one where it was created? Do you fail to understand why online PowerPoint sharing websites like authorSTREAM, slideboom or slideshare (BTW they dont support audio inserted in PowerPoint file) fail to play audio inserted in your Presentation?
Answer to these questions lie in the way audio was inserted in PowerPoint. There are two methods of inserting audio files in PowerPoint presentations. Either you can embed audio in PowerPoint itself or link the audio file.
As per Microsoft
In case of linked files, PowerPoint always play audio from the linked location of file( say "c:my Documents est.wmv"). When you play PowerPoint file having linked audio on some other machine, PowerPoint file tries to locate and play audio file from linked path i.e. "c:my Documents est.wmv". As there is no such audio file at the path specified on new machine so audio fails to play. Embedded audio file is contained in PowerPoint itself so audio will play on online presentation sharing websites or on other computers.
Audio file of size more than 50 MB will always be linked. You may have to set audio file size from advance options so that audio file below 50 MB is always embedded. Follow steps below:


See videos on how to insert audio in PowerPoint file.
You can visit links below to understand difference between linked and embedded audio:
Office 2003
http://office.microsoft.com/en-us/powerpoint/HA010348231033.aspx
office 2007
http://office.microsoft.com/en-us/powerpoint/HA012303071033.aspx
Read more »
Answer to these questions lie in the way audio was inserted in PowerPoint. There are two methods of inserting audio files in PowerPoint presentations. Either you can embed audio in PowerPoint itself or link the audio file.
As per Microsoft
"Main differences between embedded (embedded object: Information (object) contained in a source file and inserted into a destination file. Once embedded, the object becomes part of the destination file. Changes you make to the embedded object are reflected in the destination file.) sounds (objects) (object: A table, chart, graphic, equation, or other form of information. Objects created in one application, for example spreadsheets, and linked or embedded in another application are OLE objects.) and linked (linked object: An object that is created in a source file and inserted into a destination file, while maintaining a connection between the two files. The linked object in the destination file can be updated when the source file is updated.) sounds are where they are stored and how you update them after you put them in your presentation. Embedded files are stored within the presentation, and linked files are stored outside the presentation."
In case of linked files, PowerPoint always play audio from the linked location of file( say "c:my Documents est.wmv"). When you play PowerPoint file having linked audio on some other machine, PowerPoint file tries to locate and play audio file from linked path i.e. "c:my Documents est.wmv". As there is no such audio file at the path specified on new machine so audio fails to play. Embedded audio file is contained in PowerPoint itself so audio will play on online presentation sharing websites or on other computers.
Audio file of size more than 50 MB will always be linked. You may have to set audio file size from advance options so that audio file below 50 MB is always embedded. Follow steps below:
See videos on how to insert audio in PowerPoint file.
You can visit links below to understand difference between linked and embedded audio:
Office 2003
http://office.microsoft.com/en-us/powerpoint/HA010348231033.aspx
office 2007
http://office.microsoft.com/en-us/powerpoint/HA012303071033.aspx
Saturday, January 24, 2015
Android beginner tutorial Part 85 Embedding fonts using Assets
In this tutorial we will learn how to load and use a font from an asset.
Assets are somewhat similar to resources, yet different. While resources are embedded into the application and can be referred to using the R class, assets are raw files that are stored in the assets directory and require us to manually read them to use them in our applications.
Today well learn how to embed and use a raw .ttf font file as an asset in our application.
First of all you need to find the ttf file. You can download fonts online, I use fontsquirrel.com - all the fonts there are free and pretty good.
Once you have the .ttf file, put it in the assets directory of your project.
Then go to activity_main.xml of your application and add a TextView there:
Now go to MainActivity.java class and load the font using Typeface.createFromAsset() static method. Once the font is extracted, apply it to the text using setTypeface() method:
Heres the full code:
It is that easy!
You can use assets to store all sorts of files and read them byte by byte or using whats provided by the Android SDK, like the Typeface.createFromAsset() method just now.
Thats all for today.
Thanks for reading!
Read more »
Assets are somewhat similar to resources, yet different. While resources are embedded into the application and can be referred to using the R class, assets are raw files that are stored in the assets directory and require us to manually read them to use them in our applications.
Today well learn how to embed and use a raw .ttf font file as an asset in our application.
First of all you need to find the ttf file. You can download fonts online, I use fontsquirrel.com - all the fonts there are free and pretty good.
Once you have the .ttf file, put it in the assets directory of your project.
Then go to activity_main.xml of your application and add a TextView there:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<TextView android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/myText"
android:textSize="36sp"
android:text="Hello world!"
/>
</LinearLayout>
Now go to MainActivity.java class and load the font using Typeface.createFromAsset() static method. Once the font is extracted, apply it to the text using setTypeface() method:
TextView mytext = (TextView)findViewById(R.id.myText);
Typeface face = Typeface.createFromAsset(getAssets(), "yukarimobil.ttf");
mytext.setTypeface(face);
Heres the full code:
package com.example.codeforfoodtest_two;
import android.app.Activity;
import android.graphics.Typeface;
import android.os.Bundle;
import android.widget.TextView;
public class MainActivity extends Activity{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
TextView mytext = (TextView)findViewById(R.id.myText);
Typeface face = Typeface.createFromAsset(getAssets(), "yukarimobil.ttf");
mytext.setTypeface(face);
}
}
It is that easy!
You can use assets to store all sorts of files and read them byte by byte or using whats provided by the Android SDK, like the Typeface.createFromAsset() method just now.
Thats all for today.
Thanks for reading!
Subscribe to:
Posts (Atom)