• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
    • Products

      • Wowza ClearCaster
      • Facebook Live appliance
      • Wowza Streaming Cloud
      • Cloud streaming services
      • Wowza Streaming Engine
      • Streaming server software
      • Wowza GoCoder & SDK
      • Mobile capture and encoding app
    • Capabilities

      • CDN
      • Ultra Low Latency
      • SRT
      • Player
      • WebRTC
      • Live Transcoding
      • See All Capabilities
  • DOCS & APIS

      Docs & APIs

      • Getting Started
      • User Guides
      • Technical Articles
      • Video Tutorials
      • API & SDK Docs
  • SOLUTIONS
    • Streaming Types

      • Live Video Streaming
      • Video on Demand
      • Audio-Only Streaming
      • IP Camera Streaming
      • VR and 360° Streaming
      • Chat
    • Industries

      • Broadcast & OTT
      • Education
      • Enterprise
      • Government
      • Live Events
      • Live Sports
      • Religious Organizations
    • Streaming Solutions

      • MediaDS—Integrated Streaming Device
      • Streaming Service Providers
      • Live Mobile Broadcasting
  • PRICING
    • Wowza ClearCaster

      • Facebook Live appliance
      • Starting at $2,995
      • Add to Cart
      • Request a Demo
    • Wowza Streaming Cloud

      • Cloud streaming services
      • Starter Plan: $49/month
      • Add to Cart
      • See All Plans
    • Wowza Streaming Engine

      • Streaming server software
      • Annual Plan: $65/month
      • Add to Cart
      • See All Plans
    • Wowza GoCoder SDK

      • SDK for mobile streaming
      • Talk to a Streaming Expert
      • Contact Us
      • Free Trial
  • RESOURCES

      Resources

      • Blog
      • Case Studies
      • Webinars
      • Videos
      • Podcasts
      • Test Players
      • Developer Tools
  • SUPPORT
    • Support

      • Forums
      • Software Updates
      • Open a Support Ticket
    • Plans & Services

      • Support Plans
      • Advisory Services
      • Live Event Support
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Developer Dojo /
  • Wowza Streaming Server Java API /
avatar image
Question by Jagir Highq · Aug 09, 2016 at 05:52 AM · wowza streaming server java api

Dynamic SMIL not working

Hello,

I am trying to generate smil file dynamically , but somehow it not works for me.

When I am trying to play video using following line :

<source src="http://192.168.7.10:1935/vod/amlst:bigbuckbunny/playlist.m3u8" type="application/x-mpegURL"/>

It shows me no playable resource found

Same working with "http://192.168.7.10:1935/vod/smil:bigbuckbunny.smil/playlist.m3u8" URL

I have created j2ee web project.

Below is my code :

HTML code

=========

<video id="video" class="video-js vjs-default-skin" width="640" height="360" autoplay controls>

<source src="http://192.168.7.10:1935/vod/amlst:bigbuckbunny/playlist.m3u8" type="application/x-mpegURL"/>

</video>

Java code

========

package com.jagir.wowza.smil;

import com.wowza.wms.application.IApplicationInstance;

import com.wowza.wms.medialist.MediaList;

import com.wowza.wms.medialist.MediaListRendition;

import com.wowza.wms.medialist.MediaListSegment;

import com.wowza.wms.module.ModuleBase;

import com.wowza.wms.stream.IMediaListProvider;

import com.wowza.wms.stream.IMediaListReader;

import com.wowza.wms.stream.IMediaStream;

public class ModuleAMLSTTest extends ModuleBase

{

class MyMediaListProvider implements IMediaListProvider

{

public MediaList resolveMediaList(IMediaListReader mediaListReader, IMediaStream stream, String streamName)

{

MediaList mediaList = new MediaList();

MediaListSegment segment = new MediaListSegment();

mediaList.addSegment(segment);

MediaListRendition rendition1 = new MediaListRendition();

segment.addRendition(rendition1);

rendition1.setName("mp4:"+streamName+"_450.mp4");

rendition1.setBitrateAudio(44100);

rendition1.setBitrateVideo(45000);

rendition1.setWidth(424);

rendition1.setHeight(240);

rendition1.setAudioCodecId("mp4a.40.2");

rendition1.setVideoCodecId("avc1.66.12");

MediaListRendition rendition2 = new MediaListRendition();

segment.addRendition(rendition2);

rendition2.setName("mp4:"+streamName+"_750.mp4");

rendition2.setBitrateAudio(44100);

rendition2.setBitrateVideo(750000);

rendition2.setWidth(640);

rendition2.setHeight(480);

rendition2.setAudioCodecId("mp4a.40.2");

rendition2.setVideoCodecId("avc1.77.31");

MediaListRendition rendition3 = new MediaListRendition();

segment.addRendition(rendition3);

rendition3.setName("mp4:"+streamName+"_1100.mp4");

rendition3.setBitrateAudio(44100);

rendition3.setBitrateVideo(1100000);

rendition3.setWidth(1272);

rendition3.setHeight(720);

rendition3.setAudioCodecId("mp4a.40.2");

rendition3.setVideoCodecId("avc1.77.31");

MediaListRendition rendition4 = new MediaListRendition();

segment.addRendition(rendition4);

rendition4.setName("mp4:"+streamName+"_1500.mp4");

rendition4.setBitrateAudio(44100);

rendition4.setBitrateVideo(1100000);

rendition4.setWidth(1272);

rendition4.setHeight(720);

rendition4.setAudioCodecId("mp4a.40.2");

rendition4.setVideoCodecId("avc1.77.31");

System.out.println("::::::::::::::::::::::"+streamName);

return mediaList;

}

}

public void onAppStart(IApplicationInstance appInstance)

{

appInstance.setMediaListProvider(new MyMediaListProvider());

}

}

bigbuckbunny_450.mp4

bigbuckbunny_750.mp4

bigbuckbunny_1100.mp4

bigbuckbunny_1500.mp4

files are stored in content folder.

I have also added

<Module>

<Name>ModuleAMLSTTest</Name>

<Description>ModuleAMLSTTest</Description>

<Class>com.jagir.wowza.smil.ModuleAMLSTTest</Class>

</Module>

to

C:\Program Files (x86)\Wowza Media Systems\Wowza Streaming Engine 4.5.0\conf\vod\Application.xml inside <Modules>
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by sal jefferson · Aug 09, 2016 at 08:41 AM

Duplicate. No need to double post.

Best,

Salvadore
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

ModuleRTMPAuthenticate.onConnect 5 Answers

Logging to a Database 27 Answers

Rest api >> wowza 4 2 Answers

How can LoopUntilLive module recognize a multi-bitrate live stream from Transcoder? 1 Answer

rtsp to rtmp from vivotek ip camer 10 Answers

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2018 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Users
  • Badges